﻿        /* ==============================
           TOAST NOTIFICATION
        ============================== */
        #toast {
            position: fixed;
            bottom: calc(60px + env(safe-area-inset-bottom) + var(--space-md));
            left: 50%;
            transform: translateX(-50%) translateY(16px);
            background: var(--text);
            color: var(--bg);
            padding: var(--space-sm) var(--space-xl);
            border-radius: var(--radius-full);
            font-size: var(--text-sm);
            font-weight: 600;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            white-space: nowrap;
            transition: opacity 0.25s var(--ease-standard), transform 0.25s var(--ease-standard);
            box-shadow: var(--shadow-lg);
            backdrop-filter: blur(12px);
        }

        #toast.visible, 
        #toast.show { 
            opacity: 1; 
            transform: translateX(-50%) translateY(0);
        }

        /* ==============================
           BOTTOM NAV
        ============================== */
        nav.bottom-nav {
            position: fixed;
            bottom: 0;
            width: 100%;
            background: var(--bg);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-around;
            padding: var(--space-sm) 0 calc(env(safe-area-inset-bottom) + var(--space-sm));
            z-index: 200;
            transition: background-color 0.4s var(--ease-standard), border-color 0.4s var(--ease-standard);
        }

        .nav-item {
            background: none;
            border: none;
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            width: 16%;
            cursor: pointer;
            transition: all 0.25s var(--ease-standard);
            font-family: var(--font-main);
            padding: var(--space-xs) 0;
            position: relative;
            min-height: 44px;
            justify-content: center;
        }

        .nav-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--primary);
            border-radius: 0 0 var(--radius-full) var(--radius-full);
            transition: width 0.3s var(--ease-spring);
        }

        .nav-item:hover {
            color: var(--primary);
        }

        .nav-item:active {
            transform: scale(0.9);
        }

        .nav-item.active { 
            color: var(--primary);
        }

        .nav-item.active::after {
            width: 20px;
        }

        .ni-icon-wrap {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-item .ni-icon { 
            font-size: 22px;
            transition: transform 0.25s var(--ease-spring);
        }

        .nav-item.active .ni-icon {
            transform: translateY(-1px) scale(1.1);
        }

        .nav-item span.ni-label { 
            font-size: 9px; 
            font-weight: 700; 
            letter-spacing: 0.2px;
            transition: opacity 0.2s ease;
        }

        .saved-badge {
            position: absolute;
            top: -5px;
            right: -9px;
            background: var(--primary);
            color: white;
            border-radius: var(--radius-full);
            font-size: 8px;
            font-weight: 800;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--bg);
            z-index: 1;
        }

        .saved-badge.hidden { display: none; }

        /* ==============================
           VERSE CARD ROTATION ANIMATION
        ============================== */
        @keyframes verseSlideOut {
            0%   { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-18px); }
        }
        @keyframes verseSlideIn {
            0%   { opacity: 0; transform: translateY(18px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        .verse-card-inner {
            transition: none;
        }
        .verse-card-inner.slide-out {
            animation: verseSlideOut 0.35s ease forwards;
        }
        .verse-card-inner.slide-in {
            animation: verseSlideIn 0.38s ease forwards;
        }

        /* ==============================
           PERSONAL DATA MODAL (edit profile)
        ============================== */
        .edit-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 900;
            display: flex;
            align-items: flex-end;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .edit-modal-backdrop.active { 
            opacity: 1; 
            pointer-events: auto;
        }

        @keyframes backdropIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-sheet {
            background: var(--bg);
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
            width: 100%;
            max-height: 78vh;
            display: flex;
            flex-direction: column;
            padding-bottom: calc(env(safe-area-inset-bottom) + var(--space-sm));
            animation: sheetUp 0.4s var(--ease-sheet);
            transform-origin: bottom;
        }

        .edit-modal-sheet {
            background: var(--bg);
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 0 var(--space-xl) calc(env(safe-area-inset-bottom) + var(--space-2xl));
            animation: sheetUp 0.35s var(--ease-spring);
            transform-origin: bottom;
        }

        @keyframes sheetUp {
            from { 
                transform: translateY(100%) scale(0.98); 
                opacity: 0;
            }
            to { 
                transform: translateY(0) scale(1); 
                opacity: 1;
            }
        }

        @keyframes sheetOut {
            from { 
                transform: translateY(0) scale(1); 
                opacity: 1;
            }
            to { 
                transform: translateY(100%) scale(0.98); 
                opacity: 0;
            }
        }

        /* Verse Actions Modal (reading view) */
        .verse-actions-modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 900;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        .verse-actions-modal.active { opacity: 1; }

        .verse-actions-sheet {
            background: var(--surface);
            border-radius: var(--radius-xl);
            width: 90%;
            max-width: 400px;
            padding: var(--space-xl);
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
            transform: translateY(20px) scale(0.95);
            transition: transform 0.3s var(--ease-spring);
        }
        .verse-actions-modal.active .verse-actions-sheet {
            transform: translateY(0) scale(1);
        }

        .verse-actions-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .verse-actions-header h3 {
            font-size: var(--text-lg);
            font-weight: 700;
        }

        .verse-actions-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: var(--space-xs);
        }

        .verse-actions-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-sm);
        }

        .verse-action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-xs);
            padding: var(--space-lg);
            border-radius: var(--radius-md);
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text);
            font-size: var(--text-xs);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .verse-action-btn:hover {
            background: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }

        .verse-action-btn .material-icons-round {
            font-size: 20px;
        }

        .highlight-colors {
            display: flex;
            gap: var(--space-sm);
            justify-content: center;
            padding: var(--space-md) 0;
        }

        .highlight-color-circle {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .highlight-color-circle:hover {
            transform: scale(1.15);
            border-color: var(--text);
        }

        .highlight-color-circle.active {
            border-color: var(--text);
            box-shadow: 0 0 0 2px var(--surface);
        }

        /* Note Modal */
        .note-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 950;
            display: flex;
            align-items: flex-end;
            opacity: 0;
            transition: opacity 0.25s ease;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .note-modal-backdrop.active { opacity: 1; }

        .note-modal-sheet {
            background: var(--bg);
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: var(--space-xl);
            transform: translateY(100%);
            transition: transform 0.35s var(--ease-spring);
        }
        .note-modal-backdrop.active .note-modal-sheet {
            transform: translateY(0);
        }

        .note-modal-handle {
            width: 40px;
            height: 4px;
            background: var(--surface2);
            border-radius: var(--radius-full);
            margin: 0 auto var(--space-lg);
        }

        .note-modal-title {
            font-size: var(--text-xl);
            font-weight: 800;
            margin-bottom: var(--space-lg);
        }

        .edit-modal-handle {
            width: 40px;
            height: 4px;
            background: var(--surface2);
            border-radius: var(--radius-full);
            margin: var(--space-md) auto 0;
            transition: background 0.2s ease;
        }

        .edit-modal-handle:hover { background: var(--text-secondary); }

        .edit-modal-title {
            font-size: var(--text-xl);
            font-weight: 800;
            padding: var(--space-lg) 0 var(--space-xl);
            animation: fadeInUp 0.3s var(--ease-spring) 0.1s both;
        }

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

        .edit-field {
            opacity: 0;
            transform: translateY(10px);
            animation: fadeInUp 0.4s var(--ease-spring) both;
        }

        .edit-field:nth-child(2) { animation-delay: 0.05s; }
        .edit-field:nth-child(3) { animation-delay: 0.1s; }
        .edit-field:nth-child(4) { animation-delay: 0.15s; }
        .edit-field:nth-child(5) { animation-delay: 0.2s; }

        .edit-save-btn {
            opacity: 0;
            transform: translateY(10px);
            animation: fadeInUp 0.4s var(--ease-spring) 0.25s both;
        }

        .edit-field input, .edit-field select {
            transition: all 0.2s var(--ease-standard);
        }

        .edit-field input:focus, .edit-field select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
            transform: translateY(-1px);
        }

        .edit-field { margin-bottom: var(--space-lg); }

        .edit-field label {
            display: block;
            font-size: var(--text-xs);
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: var(--space-sm);
        }

        .edit-field input, .edit-field select {
            width: 100%;
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            padding: var(--space-md);
            font-size: var(--text-base);
            color: var(--text);
            font-family: var(--font-main);
            outline: none;
            transition: border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
            -webkit-appearance: none;
        }

        .edit-field input:focus, .edit-field select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .edit-save-btn {
            width: 100%;
            padding: var(--space-md);
            border-radius: var(--radius-md);
            border: none;
            background: var(--primary);
            color: white;
            font-weight: 700;
            font-size: var(--text-md);
            cursor: pointer;
            font-family: var(--font-main);
            margin-top: var(--space-sm);
            transition: all 0.2s var(--ease-standard);
            box-shadow: var(--shadow-sm);
        }

        .edit-save-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .edit-save-btn:active {
            transform: scale(0.98);
        }

        /* Verse interval chips */
        .interval-chips {
            display: flex;
            gap: var(--space-sm);
            flex-wrap: wrap;
        }

        .interval-chip {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            padding: var(--space-sm) var(--space-lg);
            font-size: var(--text-sm);
            font-weight: 600;
            cursor: pointer;
            color: var(--text-secondary);
            font-family: var(--font-main);
            transition: all 0.2s var(--ease-standard);
        }

        .interval-chip:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .interval-chip.selected {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* ==============================
           FILTER TABS
        ============================== */
        .filter-tabs {
            display: flex;
            gap: var(--space-sm);
            margin-bottom: var(--space-2xl);
            overflow-x: auto;
            padding-bottom: var(--space-xs);
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .filter-tabs::-webkit-scrollbar { display: none; }

        .tab-btn {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: var(--space-sm) var(--space-xl);
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: var(--text-xs);
            white-space: nowrap;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.25s var(--ease-standard);
            font-family: var(--font-main);
            position: relative;
            overflow: hidden;
        }

        .tab-btn:hover {
            background: var(--primary-light);
            border-color: transparent;
            color: var(--primary);
            transform: translateY(-1px);
        }

        .tab-btn.active { 
            background: var(--primary); 
            color: white; 
            border-color: var(--primary);
            box-shadow: 0 2px 8px var(--primary-glow);
        }

        .tab-btn:active {
            transform: scale(0.96);
        }

        /* ==============================
           SKELETON SCREEN
        ============================== */
        .skeleton {
            background: linear-gradient(90deg,
                var(--surface) 0%, var(--surface) 30%,
                var(--surface2) 50%,
                var(--surface) 70%, var(--surface) 100%);
            background-size: 200% 100%;
            animation: shimmer 1.8s ease-in-out infinite;
            border-radius: var(--radius-sm);
        }

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

        .sk-line {
            height: 14px;
            margin-bottom: var(--space-sm);
            border-radius: var(--radius-xs);
        }

        .sk-block {
            margin-bottom: var(--space-xl);
        }

        /* ==============================
           LOADING SKELETON ANIMATIONS
        ============================== */
        .skeleton-fade-in {
            animation: skeletonFadeIn 0.3s ease both;
        }
        @keyframes skeletonFadeIn {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==============================
           ACCESSIBILITY
        ============================== */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ==============================
           DYNAMIC CONTENT CLASSES
        ============================== */

        /* Saved verses */
        .saved-verse-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            margin-bottom: var(--space-md);
            transition: all 0.25s var(--ease-standard);
        }
        .saved-verse-card:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
            transform: translateY(-1px);
        }
        .saved-verse-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-md);
        }
        .saved-verse-ref {
            font-size: var(--text-xs);
            color: var(--primary);
            font-weight: 700;
            letter-spacing: 0.3px;
        }
        .saved-verse-remove {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-xs);
            border-radius: var(--radius-sm);
            transition: all 0.2s var(--ease-standard);
            min-width: 32px;
            min-height: 32px;
        }
        .saved-verse-remove:hover {
            color: var(--danger);
            background: rgba(239, 68, 68, 0.08);
        }
        .saved-verse-text {
            font-family: var(--font-bible);
            line-height: 1.7;
            font-size: var(--text-base);
            margin-bottom: var(--space-md);
        }
        .saved-verse-actions {
            display: flex;
            gap: var(--space-sm);
        }
        .saved-verse-action {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-xs);
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: var(--text-xs);
            font-weight: 600;
            cursor: pointer;
            font-family: var(--font-main);
            transition: all 0.2s var(--ease-standard);
        }
        .saved-verse-action:hover {
            background: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }
        .saved-verse-action .material-icons-round {
            font-size: 16px;
        }

        /* Stats sections */
        .stats-section {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: var(--space-lg);
            margin-bottom: var(--space-lg);
        }
        .stats-section h3 {
            font-size: var(--text-sm);
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: var(--space-md);
        }
        .streak-display {
            text-align: center;
            padding: var(--space-md);
        }
        .streak-number {
            font-size: var(--text-3xl);
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
            margin-bottom: var(--space-xs);
        }
        .streak-text {
            font-size: var(--text-sm);
            color: var(--text-secondary);
        }
        .reading-time {
            text-align: center;
            font-size: var(--text-2xl);
            font-weight: 800;
            color: var(--primary);
            padding: var(--space-md);
        }
        .weekly-progress-stats {
            padding: var(--space-sm) 0;
        }
        .week-days-stats {
            display: flex;
            justify-content: space-between;
        }
        .day-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .day-stat .day-name {
            font-size: 9px;
            font-weight: 700;
            color: var(--text-secondary);
        }
        .day-dot {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--surface2);
            border: 1.5px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .day-stat.today .day-dot {
            border-color: var(--primary);
        }
        .day-stat.has-reading .day-dot {
            background: var(--primary);
            border-color: var(--primary);
        }

        /* Loading & error states */
        .loading-spinner {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-4xl);
            color: var(--text-secondary);
        }
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: var(--space-md);
        }
        .error-state {
            text-align: center;
            padding: var(--space-4xl) var(--space-xl);
            color: var(--text-secondary);
        }
        .error-state .material-icons-round {
            font-size: 48px;
            color: var(--danger);
            opacity: 0.5;
            margin-bottom: var(--space-md);
            display: block;
        }

        /* Prayer items */
        .prayer-item {
            display: flex;
            align-items: flex-start;
            gap: var(--space-md);
            padding: var(--space-md);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            margin-bottom: var(--space-sm);
        }
        .prayer-text {
            flex: 1;
            font-size: var(--text-sm);
            line-height: 1.5;
        }
        .prayer-date {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        .prayer-remove {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: var(--space-xs);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .prayer-remove:hover {
            color: var(--danger);
        }

        /* Notes items */
        .note-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-sm);
        }
        .note-title {
            font-size: var(--text-md);
            font-weight: 700;
        }
        .note-reference {
            font-size: var(--text-xs);
            color: var(--primary);
            font-weight: 600;
        }
        .note-text {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .note-date {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: var(--space-sm);
        }
        .note-remove {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: var(--space-xs);
            display: flex;
        }
        .note-remove:hover {
            color: var(--danger);
        }

        /* Highlight items */
        .highlight-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-sm);
        }
        .highlight-ref {
            font-size: var(--text-xs);
            color: var(--primary);
            font-weight: 700;
        }
        .highlight-text {
            font-family: var(--font-bible);
            font-size: var(--text-sm);
            line-height: 1.6;
        }
        .highlight-date {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: var(--space-sm);
        }
        .highlight-actions {
            display: flex;
            gap: var(--space-sm);
            margin-top: var(--space-md);
        }
        .highlight-action {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: var(--space-sm);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            background: var(--surface);
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            font-family: var(--font-main);
            color: var(--text);
        }
        .highlight-action:hover {
            background: var(--primary-light);
            border-color: var(--primary);
            color: var(--primary);
        }

        /* ==============================
           GOOGLE ADS - DESKTOP ONLY
        ============================== */
        .google-ads-desktop {
            display: none;
            position: fixed;
            bottom: 70px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: var(--space-xs) var(--space-md);
            box-shadow: var(--shadow-lg);
            max-width: 728px;
            width: calc(100% - 32px);
        }

        .google-ads-desktop .ad-label {
            font-size: 10px;
            color: var(--text-secondary);
            text-align: center;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .google-ads-desktop .ad-slot {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 90px;
            overflow: hidden;
        }

        @media (min-width: 1024px) {
            .google-ads-desktop {
                display: block;
            }
        }

