:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f4f1;
    --text-primary: #3d3d3d;
    --text-secondary: #6b6b6b;
    --text-muted: #9a9a9a;
    --accent: #7c6f5b;
    --accent-hover: #5c5245;
    --accent-light: #e8e4dc;
    --verse-number: #a65d57;
    --border: #e5e2dc;
    --border-light: #f0ede8;
    --highlight: #fdf6e3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    --font-scale: 1;
    --visible-versions: 3;
}

[data-theme="dark"] {
    --bg-primary: #1a1a18;
    --bg-secondary: #232320;
    --bg-tertiary: #2d2d29;
    --text-primary: #d4d4d0;
    --text-secondary: #a8a8a4;
    --text-muted: #6b6b67;
    --accent: #b8a990;
    --accent-hover: #d4c4a8;
    --accent-light: #3d3a32;
    --verse-number: #c9897e;
    --border: #3a3a36;
    --border-light: #2d2d29;
    --highlight: #3a3526;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Progress button */
.progress-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    transition: background var(--transition-base), border-color var(--transition-base);
}

.progress-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

/* Devotionale button */
.devotionale-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: background var(--transition-base), border-color var(--transition-base);
    z-index: 100;
}

.devotionale-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    transition: background var(--transition-base), border-color var(--transition-base);
    z-index: 100;
}

.theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity var(--transition-base), transform var(--transition-base);
    color: var(--text-primary);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
}

/* Favorites button */
.favorites-btn {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    text-decoration: none;
    color: var(--accent);
    transition: all var(--transition-base);
    z-index: 9998;
}

.favorites-btn:hover {
    transform: scale(1.05);
    background: var(--accent-light);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: bold;
    transition: all var(--transition-base);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
    box-shadow: var(--shadow-lg);
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Progress summary */
.progress-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.progress-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
}

.progress-card-title {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.progress-card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Testament sections */
.testament-section {
    margin-bottom: 25px;
}

.testament-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
}

.testament-header:hover {
    background: var(--accent-light);
}

.testament-title {
    font-weight: 600;
    color: var(--text-primary);
}

.testament-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testament-progress {
    font-size: 13px;
    color: var(--text-secondary);
}

.testament-percent {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
}

/* Books grid */
.books-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 5px 0;
}

.books-grid.expanded {
    display: grid;
}

.book-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.book-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.book-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-progress {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 8px;
}

/* Status colors */
.status-done {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.status-done .book-progress {
    color: #4CAF50;
}

.status-progress {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.status-progress .book-progress {
    color: #F9A825;
}

.status-none {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.status-none .book-progress {
    color: #F44336;
}

.percent-done {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.percent-progress {
    background: rgba(255, 193, 7, 0.15);
    color: #F9A825;
}

.percent-none {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
}

/* Legend */
.legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 15px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.done {
    background: #4CAF50;
}

.legend-dot.progress {
    background: #F9A825;
}

.legend-dot.none {
    background: #F44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-6);
    text-align: center;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.breadcrumbs {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-home {
    color: var(--accent);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.breadcrumb-home:hover {
    color: var(--accent-hover);
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--accent-hover);
}

.breadcrumbs span {
    color: var(--text-primary);
}

.header h1 {
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-2);
}

.header p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-5);
    margin-top: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Hide mobile settings on desktop */
.mobile-settings-btn,
.mobile-settings-panel {
    display: none;
}

.toolbar-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.version-checkboxes {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.version-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    user-select: none;
}

.version-checkbox input {
    display: none;
}

.version-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.version-checkbox .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.version-checkbox input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.version-checkbox input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.version-checkbox:hover .checkmark {
    border-color: var(--accent);
}

.version-checkbox .checkbox-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-1);
}

.font-size-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.font-size-control button:hover:not(:disabled) {
    background: var(--accent-light);
}

.font-size-control button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.font-size-control span {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

/* Uppercase text setting */
.uppercase-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-3);
    cursor: pointer;
    user-select: none;
}

.uppercase-control:hover {
    border-color: var(--accent);
}

.uppercase-control input {
    display: none;
}

.uppercase-control .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.uppercase-control .checkmark::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.uppercase-control input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.uppercase-control input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.uppercase-control .uppercase-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* Apply uppercase to verse text */
body.uppercase-mode .verse-text,
body.uppercase-mode .verse-text-mobile {
    text-transform: uppercase;
}

/* Text controls wrapper */
.text-controls {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* Mobile reading progress bar */
.mobile-reading-progress {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 9999;
}

.mobile-reading-progress .progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s ease;
}

@media (max-width: 768px) {
    .mobile-reading-progress {
        display: block;
    }
}

.play-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: var(--space-2);
    vertical-align: middle;
    color: var(--accent);
}

.play-btn-small:hover {
    color: var(--accent-hover);
    transform: scale(1.15);
}

.play-btn-small.playing {
    color: var(--verse-number);
}

.play-btn-small .play-icon {
    font-size: 16px;
    line-height: 1;
}

.chapter-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.chapter-selectors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
}

.chapter-nav select {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chapter-nav select:hover {
    border-color: var(--accent);
}

.chapter-nav select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.chapter-buttons {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.chapter-nav button {
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.chapter-nav button:hover:not(:disabled) {
    background: var(--accent-light);
    border-color: var(--accent);
}

.chapter-nav button:disabled {
    opacity: 0.5;
    color: var(--text-muted);
    cursor: not-allowed;
}

.chapter-nav button .btn-icon {
    font-size: var(--text-sm);
}

.error {
    text-align: center;
    padding: var(--space-10);
    color: var(--verse-number);
    font-size: var(--text-lg);
}

.grid-header {
    display: grid;
    background: var(--bg-tertiary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.grid-header-cell {
    padding: var(--space-4) var(--space-5);
    text-align: center;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.grid-header-cell:last-child {
    border-right: none;
}

.grid-header-cell .header-title {
    flex: 1;
}

.grid-header-cell.hidden,
.verse-text.hidden,
.copyright-cell.hidden {
    display: none;
}

.verse-row {
    display: grid;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
    scroll-margin-top: 60px;
}

.verse-row:nth-child(even) {
    background: var(--bg-tertiary);
}

.verse-row:hover {
    background: var(--highlight);
}

.verse-num-container {
    padding: var(--space-3) var(--space-2);
    text-align: center;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}

.verse-num {
    font-weight: 700;
    color: var(--verse-number);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.verse-num:hover {
    color: var(--accent);
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    line-height: 1;
}

.favorite-btn:hover {
    color: #e6a800;
    transform: scale(1.15);
}

.favorite-btn.active {
    color: #e6a800;
}

.favorite-btn.active .star-icon {
    text-shadow: 0 0 6px rgba(230, 168, 0, 0.5);
}

.verse-text {
    padding: var(--space-5);
    line-height: 1.9;
    font-size: calc(var(--text-base) * var(--font-scale));
    border-right: 1px solid var(--border-light);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.verse-text:last-child {
    border-right: none;
}

.verse-text.speaking,
.verse-text-mobile.speaking {
    background: var(--highlight);
    box-shadow: inset 3px 0 0 var(--verse-number);
}

/* Copyright row styles */
.copyright-row {
    display: grid;
    border-top: 2px solid var(--border);
    background: var(--bg-secondary);
}

.copyright-cell-num {
    padding: var(--space-4);
    background: var(--bg-tertiary);
    min-width: 60px;
}

.copyright-cell {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    text-align: center;
    border-right: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.copyright-cell:last-child {
    border-right: none;
}

.copyright-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
}

.copyright-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--accent);
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--accent-light);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.copyright-link:hover {
    background: var(--accent);
    color: white;
}

.copyright-mobile {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.copyright-mobile .copyright-text {
    font-size: var(--text-sm);
    line-height: 1.6;
}

.copyright-mobile .copyright-link {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    background: var(--accent-light);
    border-radius: var(--radius-md);
}

.mobile-view {
    display: none;
}

.footer {
    margin-top: auto;
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer-note {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Mobile styles */
@media (max-width: 768px) {
    .progress-btn {
        width: 38px;
        height: 38px;
        font-size: 10px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: var(--text-sm);
    }
    
    .scroll-top-btn {
        bottom: 75px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    
    .favorites-btn {
        bottom: 125px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    
    .header {
        padding: var(--space-4);
        padding-top: var(--space-4);
    }
    
    .header h1 {
        font-size: var(--text-xl);
    }
    
    .toolbar {
        gap: var(--space-3);
        padding: var(--space-2) 0;
        position: relative;
    }
    
    /* Hide desktop controls on mobile */
    .version-checkboxes,
    .text-controls {
        display: none !important;
    }
    
    /* Mobile settings button */
    .mobile-settings-btn {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
        background: var(--accent);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: var(--text-sm);
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition-fast);
    }
    
    .mobile-settings-btn:hover,
    .mobile-settings-btn:active {
        background: var(--accent-hover);
    }
    
    .mobile-settings-btn i {
        font-size: 1rem;
    }
    
    /* Mobile settings panel */
    .mobile-settings-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: var(--space-3);
        margin-top: var(--space-2);
        box-shadow: var(--shadow-lg);
        z-index: 100;
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }
    
    .mobile-settings-panel.active {
        display: flex;
    }
    
    .mobile-settings-section {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .mobile-settings-label {
        font-size: var(--text-sm);
        font-weight: 500;
        color: var(--text-secondary);
    }
    
    .mobile-version-checkboxes {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        justify-content: center;
    }
    
    .mobile-version-checkboxes .version-checkbox {
        display: flex !important;
    }
    
    .mobile-font-control {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        justify-content: center;
    }
    
    .mobile-font-control button {
        padding: var(--space-2) var(--space-3);
        background: var(--accent-light);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-weight: 600;
        cursor: pointer;
        color: var(--text-primary);
        font-size: var(--text-base);
    }
    
    .mobile-font-control button:hover,
    .mobile-font-control button:active {
        background: var(--accent);
        color: var(--bg-primary);
    }
    
    .mobile-font-control span {
        min-width: 45px;
        text-align: center;
        font-size: var(--text-sm);
        color: var(--text-primary);
    }
    
    .mobile-uppercase-control {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        cursor: pointer;
        font-size: var(--text-sm);
        justify-content: center;
    }
    
    .mobile-uppercase-control input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--accent);
    }
    
    .toolbar-label {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-1);
    }
    
    .chapter-nav {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .chapter-selectors {
        width: 100%;
        gap: var(--space-2);
    }
    
    .chapter-selectors select {
        flex: 1;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }
    
    .chapter-buttons {
        display: none;
    }
    
    .desktop-view {
        display: none;
    }
    
    .mobile-view {
        display: block;
        flex: 1;
        padding-bottom: 70px;
    }
    
    .version-indicator {
        font-size: var(--text-base);
        font-weight: 600;
        padding: var(--space-2) var(--space-4);
        background: var(--accent);
        color: white;
        text-align: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2);
        min-height: 56px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    }
    
    .indicator-center {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        line-height: 1.2;
        min-width: 0;
        overflow: hidden;
    }
    
    .indicator-book {
        font-size: var(--text-sm);
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .indicator-separator {
        display: none;
    }
    
    .indicator-version {
        font-size: var(--text-xs);
        opacity: 0.8;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .nav-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.2);
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-fast);
        color: white;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .nav-btn-mobile:hover {
        background: rgba(255,255,255,0.3);
    }
    
    .nav-btn-mobile:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.35);
    }
    
    .nav-btn-mobile:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }
    
    .chrono-check-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #28a745;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        color: white;
        font-size: 14px;
        flex-shrink: 0;
        transition: all var(--transition-fast);
    }
    .chrono-check-btn-mobile:hover {
        background: #218838;
    }
    .chrono-check-btn-mobile.checked {
        background: #17a2b8;
        cursor: pointer;
    }
    .chrono-check-btn-mobile.checked:hover {
        background: #138496;
    }
    .chrono-check-btn-mobile:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .play-btn-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        border-radius: var(--radius-full);
        cursor: pointer;
        transition: all var(--transition-fast);
        color: white;
    }
    
    .play-btn-indicator:hover {
        transform: scale(1.1);
    }
    
    .play-btn-indicator.playing {
        color: #ffcccc;
    }
    
    .play-btn-indicator .play-icon {
        font-size: 18px;
    }
    
    .verses-container {
        display: flex;
    }
    
    .verse-numbers-column {
        flex: 0 0 48px;
        background: var(--bg-tertiary);
        border-right: 2px solid var(--border);
    }
    
    .verse-num-container-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: var(--space-4) var(--space-1);
        border-bottom: 1px solid var(--border-light);
        min-height: calc(1.8 * var(--text-base) * var(--font-scale) + var(--space-4) * 2);
        box-sizing: border-box;
    }
    
    .verse-num-mobile {
        font-weight: 700;
        color: var(--verse-number);
        font-size: var(--text-sm);
        cursor: pointer;
    }
    
    .favorite-btn-mobile {
        background: none;
        border: none;
        cursor: pointer;
        padding: 2px;
        font-size: 0.95rem;
        color: var(--text-muted);
        transition: all var(--transition-fast);
        line-height: 1;
        margin-top: 2px;
    }
    
    .favorite-btn-mobile:hover {
        color: #e6a800;
    }
    
    .favorite-btn-mobile.active {
        color: #e6a800;
    }
    
    .verse-num-mobile.highlight {
        background: var(--highlight);
    }
    
    .versions-scroll-area {
        flex: 1;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .versions-track {
        display: flex;
    }
    
    .version-column {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .version-column.hidden {
        display: none;
    }
    
    .verse-text-mobile {
        padding: var(--space-4) var(--space-5);
        line-height: 1.8;
        font-size: calc(var(--text-base) * var(--font-scale));
        border-bottom: 1px solid var(--border-light);
        font-family: 'Georgia', 'Times New Roman', serif;
        transition: background var(--transition-fast);
    }
    
    .verse-text-mobile.highlight {
        background: var(--highlight);
    }
    
    .swipe-hint {
        position: fixed;
        bottom: 75px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--bg-secondary);
        color: var(--text-primary);
        padding: var(--space-3) var(--space-6);
        border-radius: var(--radius-full);
        font-size: var(--text-sm);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border);
        animation: fadeOut 3s forwards;
        white-space: nowrap;
    }
    
    @keyframes fadeOut {
        0%, 70% { opacity: 1; }
        100% { opacity: 0; pointer-events: none; }
    }
    
    .footer {
        padding: var(--space-4);
        padding-bottom: 80px;
    }
    
    .progress-summary {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .legend {
        flex-wrap: wrap;
        gap: 12px;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-light);
    color: var(--accent);
}
/* Dynamic grid columns based on visible versions */
.grid-header,
.verse-row,
.copyright-row {
    grid-template-columns: 50px repeat(var(--visible-versions, 3), 1fr);
}

@media (max-width: 768px) {
    .versions-track {
        width: calc(var(--visible-versions, 3) * 100%);
    }
    .version-column {
        flex: 0 0 calc(100% / var(--visible-versions, 3));
    }
}

/* Notification animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Verse number clickable styles */
.verse-num, .verse-num-mobile {
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}

.verse-num:hover, .verse-num-mobile:hover {
    color: var(--accent);
}

/* Verse number container for icons */
.verse-num-container,
.verse-num-container-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.verse-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 0.7em;
    line-height: 1;
}

.verse-icons .icon-favorite {
    color: #f4c430;
}

.verse-icons .icon-reported {
    color: #dc3545;
}

/* Favorite indicator on text */
.verse-text[data-favorite="1"],
.verse-text-mobile[data-favorite="1"] {
    border-left: 3px solid #f4c430;
    padding-left: 10px !important;
    margin-left: -3px;
}

/* Reported indicator on text */
.verse-text[data-reported="1"],
.verse-text-mobile[data-reported="1"] {
    border-left: 3px solid #dc3545;
    padding-left: 10px !important;
    margin-left: -3px;
}

/* Both favorite and reported */
.verse-text[data-favorite="1"][data-reported="1"],
.verse-text-mobile[data-favorite="1"][data-reported="1"] {
    border-left: 3px solid #f4c430;
    box-shadow: inset 3px 0 0 #dc3545;
}

/* Missing text alert */
.missing-text-alert {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    box-shadow: var(--shadow-md);
}

.missing-text-alert .alert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.missing-text-alert .alert-content h3 {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.missing-text-alert .alert-content p {
    margin: 0 0 var(--space-2) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.missing-text-alert .alert-suggestion {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.missing-text-alert .alert-suggestion a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.missing-text-alert .alert-suggestion a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .missing-text-alert {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
    }
    
    .missing-text-alert .alert-icon {
        font-size: 2.5rem;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hamburger Menu Button */
.hamburger-btn-open {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    transition: background var(--transition-base), border-color var(--transition-base);
    z-index: 100;
}

.hamburger-btn-open:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

/* Hamburger Menu Overlay */
.hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hamburger-menu.active {
    opacity: 1;
    visibility: visible;
}

.hamburger-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hamburger-menu.active .hamburger-content {
    transform: translateX(0);
}

.hamburger-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--space-2);
    line-height: 1;
}

.hamburger-close:hover {
    color: var(--text-primary);
}

.hamburger-nav {
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-4) var(--space-4);
    gap: var(--space-2);
}

.hamburger-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-size: var(--text-base);
}

.hamburger-link:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.hamburger-link.active {
    background: var(--accent);
    color: white;
}

.hamburger-link.active:hover {
    background: var(--accent);
    opacity: 0.9;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font: inherit;
}

.hamburger-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

/* Hide old devotionale button */
.devotionale-btn {
    display: none;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 9998;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.cookie-btn-accept {
    background: var(--accent);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
}

.cookie-btn-decline {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
    border-color: var(--accent);
}

@media (max-width: 600px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Hamburger User Info */
.hamburger-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-4);
    margin: var(--space-6) var(--space-4) var(--space-2);
    background: var(--accent-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.hamburger-user:hover {
    background: var(--border);
}

.hamburger-user .user-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hamburger-user .user-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hamburger-user .user-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hamburger-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-3) var(--space-4);
}

/* Login Modal */
.login-modal {
    max-width: 400px;
    width: 90%;
    padding: var(--space-6);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover {
    background: var(--bg-tertiary);
}

.auth-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login-header h2 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-2xl);
    color: var(--text-primary);
}

.login-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.form-group input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: #c53030;
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    min-height: 1.25rem;
}

.btn-login {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-login:hover {
    background: var(--accent-hover);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-note {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Profile Modal */
.profile-modal {
    max-width: 450px;
    width: 90%;
    padding: var(--space-6);
}

.profile-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.profile-avatar {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.profile-header h2 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--text-xl);
}

.profile-email {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-section {
    margin-bottom: var(--space-5);
}

.profile-section h3 {
    font-size: var(--text-base);
    margin: 0 0 var(--space-3) 0;
    color: var(--text-primary);
}

.history-list, .favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li, .favorites-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
}

.history-list li:last-child, .favorites-list li:last-child {
    border-bottom: none;
}

.history-list a, .favorites-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.history-list a:hover, .favorites-list a:hover {
    text-decoration: underline;
}

.fav-preview {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

.empty-message {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-style: italic;
}

.more-items {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.profile-member-since {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

/* Delete Account Modal */
.delete-modal {
    max-width: 400px;
    width: 90%;
    padding: var(--space-6);
}

.delete-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.delete-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-3);
}

.delete-header h2 {
    margin: 0 0 var(--space-2) 0;
    color: #c53030;
}

.delete-header p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

.btn-delete {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: #c53030;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-delete:hover {
    background: #9b2c2c;
}

.btn-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hamburger danger button */
.hamburger-btn-danger {
    color: #c53030 !important;
}

.hamburger-btn-danger:hover {
    background: #fff5f5 !important;
}

/* User arrow in hamburger */
.hamburger-user .user-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hamburger-user:hover {
    background: var(--bg-tertiary);
}

/* ==========================================
   HOMEPAGE STYLES
   ========================================== */

.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
}

.home-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.home-section h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.home-icon {
    font-size: 1.1rem;
    color: var(--accent);
    width: 1.2em;
}

/* Continue reading - highlighted */
.home-section-highlight {
    border: 2px solid var(--accent);
}

.continue-reading-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.continue-reading-link:hover {
    background: var(--accent);
    color: white;
}

.continue-book-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.continue-chapter {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 2px;
}

.continue-arrow {
    font-size: 1.5rem;
    opacity: 0.6;
}

.continue-reading-link:hover .continue-arrow {
    opacity: 1;
}

.first-time-message {
    text-align: center;
    padding: 10px;
    color: var(--text-secondary);
}

.first-time-message p {
    margin-bottom: 12px;
}

.start-reading-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.start-reading-btn:hover {
    opacity: 0.9;
}

/* Today's reading plan - subtle */
.home-section-plan {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.today-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-day-num {
    font-size: 0.8rem;
    opacity: 0.7;
}

.today-readings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.today-reading-link {
    padding: 8px 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.today-reading-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Testament tabs */
.testament-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.testament-tab {
    flex: 1;
    padding: 10px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.testament-tab:hover {
    background: var(--bg-tertiary);
}

.testament-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Books list */
.books-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.book-item {
    padding: 6px 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.book-item:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Quick links */
.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.quick-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.ql-icon {
    font-size: 1.1rem;
}
.text-success { color: #4ade80 !important; }
