 
 @font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/amiri-quran-v19-arabic-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/amiri-v30-arabic-700.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2-variations');
  font-display: swap;
}

 
 /* ===== Islamic Theme ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0f2818;
    --primary-mid: #1a4a2c;
    --primary-light: #2d6b42;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-glow: rgba(201, 168, 76, 0.3);
    --cream: #f7f2e8;
    --cream-dark: #e8dfcf;
    --text-light: #f5f0e8;
    --text-dark: #1e1307;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --radius: 20px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --rule-1: #4fc3f7;
    --rule-2: #81c784;
    --rule-3: #ffb74d;
    --rule-4: #ce93d8;
    --rule-5: #ef5350;
    --rule-6: #26c6da;
    --rule-idgham-bg: rgba(26, 107, 138, 0.45);
    --rule-idgham-border: #1a6b8a;
    --rule-izhar-bg: rgba(46, 125, 50, 0.45);
    --rule-izhar-border: #2e7d32;
    --rule-ikhfa-bg: rgba(230, 125, 20, 0.45);
    --rule-ikhfa-border: #e67d14;
    --rule-qalqala-bg: rgba(142, 68, 173, 0.45);
    --rule-qalqala-border: #8e44ad;
    --rule-madd-bg: rgba(198, 40, 40, 0.40);
    --rule-madd-border: #c62828;
    --rule-ghunna-bg: rgba(0, 150, 136, 0.40);
    --rule-ghunna-border: #009688;
}

html,
body {
    min-height: 100vh;
    font-family: 'Amiri', 'Inter', serif;
    background: var(--primary-dark);
    color: var(--text-light);
    /* ✅ REMOVED: display: flex; align-items: center; justify-content: center; padding: 20px; */
    background-image: radial-gradient(ellipse at 20% 50%, rgba(26, 74, 44, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201, 168, 76, 0.015) 40px, rgba(201, 168, 76, 0.015) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201, 168, 76, 0.015) 40px, rgba(201, 168, 76, 0.015) 41px);
    pointer-events: none;
    z-index: 0;
}

/* ===== MAIN APP CONTAINER ===== */
#app-container_ {
    width: 100%;                    /* ✅ Full width */
    max-width: 100%;                /* ✅ No limit */
    margin: 0;                      /* ✅ No centering */
    padding: 0;                     /* ✅ No extra spacing */
    min-height: 100vh;              /* Optional: ensures it fills viewport */
}
#app-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 33px 10px 10px 10px;
    min-height: 100vh;
    margin-top: 20px;
}

/* ===== CARD – now full width ===== */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;                /* ✅ Remove the 820px limit */
    background: linear-gradient(165deg, rgba(15, 40, 24, 0.92), rgba(26, 74, 44, 0.88));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    padding: 40px 36px 36px;         /* ✅ Keep inner padding for content breathing */
    box-shadow: var(--shadow), 0 0 80px rgba(201, 168, 76, 0.06);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(201, 168, 76, 0.4);
}


        .page-title {
            text-align: center;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--gold);
            margin: 6px 0 2px;
            font-family: 'Amiri', serif;
        }

        .page-sub {
            text-align: center;
            font-size: 0.85rem;
            color: rgba(245, 240, 232, 0.4);
            margin-bottom: 16px;
            font-family: 'Inter', sans-serif;
            letter-spacing: 2px;
        }

        /* ===== TOOLBAR ===== */
        .quran-toolbar {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 12px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .quran-toolbar .right-controls {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        .multi-select-wrapper {
            position: relative;
            width: 100%;
            /* max-width: 220px; */
            user-select: none;
        }

        .multi-select-trigger {
            width: 100%;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 6px;
            color: var(--text-light);
            font-size: 0.85rem;
            font-family: 'Amiri', serif;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .multi-select-trigger:hover {
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .multi-select-trigger .arrow {
            font-size: 0.7rem;
            opacity: 0.5;
            transition: transform 0.25s ease;
        }

        .multi-select-trigger.open .arrow {
            transform: rotate(180deg);
        }

        .multi-select-trigger .selected-badge {
            background: rgba(201, 168, 76, 0.15);
            color: var(--gold-light);
            padding: 0 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-family: 'Inter', sans-serif;
            white-space: nowrap;
            display: none;
        }

        .multi-select-trigger .selected-badge.show {
            display: inline-block;
        }

        .multi-select-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            background: rgba(15, 40, 24, 0.98);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(201, 168, 76, 0.2);
            border-radius: 14px;
            padding: 8px 0;
            max-height: 200px;
            overflow-y: auto;
            z-index: 50;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        }

        .multi-select-dropdown.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .multi-select-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 16px;
            cursor: pointer;
            transition: var(--transition);
            color: rgba(245, 240, 232, 0.7);
            font-family: 'Amiri', serif;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        }

        .multi-select-option:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-light);
        }

        .multi-select-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--gold);
            cursor: pointer;
            flex-shrink: 0;
        }

        .multi-select-option .opt-label {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .multi-select-dropdown::-webkit-scrollbar {
            width: 4px;
        }

        .multi-select-dropdown::-webkit-scrollbar-track {
            background: transparent;
        }

        .multi-select-dropdown::-webkit-scrollbar-thumb {
            background: var(--gold);
            border-radius: 8px;
        }

        .toolbar-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 6px;
            color: rgba(245, 240, 232, 0.6);
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Amiri', serif;
            font-size: 0.85rem;
        }

        .toolbar-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .toolbar-btn .icon {
            font-size: 1.2rem;
        }

        /* ===== NAVIGATION ARROWS ===== */
        .nav-arrows {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }

        .nav-arrows .nav-btn {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 6px;
            color: rgba(245, 240, 232, 0.5);
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Amiri', serif;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 48px;
            flex-shrink: 0;
        }

        .nav-arrows .nav-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .nav-arrows .nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .nav-arrows .nav-center {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 0;
        }

        .nav-arrows .nav-center .nav-center-top {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 6px 12px;
        }

        .nav-arrows .nav-center .surah-name {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--gold-light);
            font-family: 'Amiri', serif;
        }

        .nav-arrows .nav-center .verse-num {
            font-size: 0.85rem;
            color: rgba(245, 240, 232, 0.5);
            font-family: 'Inter', sans-serif;
            background: rgba(255, 255, 255, 0.06);
            padding: 2px 12px;
            border-radius: 20px;
        }

        .nav-arrows .nav-center .session-timer {
            font-size: 0.85rem;
            color: var(--gold-light);
            font-family: 'Inter', sans-serif;
            background: rgba(201, 168, 76, 0.1);
            padding: 3px 12px;
            border-radius: 20px;
            border: 1px solid rgba(201, 168, 76, 0.2);
            white-space: nowrap;
            direction: ltr;
            letter-spacing: 1px;
            font-weight: 600;
            min-width: 80px;
            text-align: center;
        }

        .nav-arrows .nav-center .nav-center-actions {
            display: flex;
            gap: 4px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;
        }

        .nav-arrows .nav-center .nav-center-actions button {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            color: var(--text-light);
            padding: 6px 10px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .nav-arrows .nav-center .nav-center-actions button:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--gold);
        }

        .nav-arrows .nav-center .nav-center-actions button.active-toggle {
            border-color: var(--gold);
            background: rgba(201, 168, 76, 0.12);
            color: var(--gold-light);
        }

        .nav-arrows .nav-center .nav-center-actions .toggle-label {
            font-size: 0.65rem;
            font-family: 'Inter', sans-serif;
            opacity: 0.6;
            font-weight: 300;
        }

        /* ===== AYAH CONTAINER ===== */
        .ayah-container {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            padding: 28px 24px 20px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            margin-bottom: 16px;
            position: relative;
            transition: var(--transition);
            min-height: 120px;
        }

        .ayah-container:hover {
            border-color: rgba(201, 168, 76, 0.15);
        }

       /*  .ayah-text {
            font-size: 1.8rem;
            line-height: 3.8rem;
            color: var(--cream-dark);
            font-family: 'Amiri', serif;
            text-align: center;
            word-spacing: 6px;
            letter-spacing: 1px;
            position: relative;
            padding-top: 24px;
        }
 */
        /* Segment wrapper */
        .ayah-text .segment-wrapper {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            vertical-align: middle;
            position: relative;
            margin: 0 2px;
        }

        .ayah-text .segment-wrapper .highlight-rule {
            padding: 2px 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            display: inline-block;
            position: relative;
            z-index: 2;
            font-size: 1.8rem;
            line-height: 1.6;
            margin-top: 4px;
        }

        .ayah-text .segment-wrapper .highlight-rule:hover {
            filter: brightness(1.15);
            transform: scale(1.03);
        }

        .ayah-text .segment-wrapper .highlight-rule.highlight-active {
            box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
            transform: scale(1.04);
        }

        /* Rule highlight colors */
        .ayah-text .segment-wrapper .highlight-rule.rule-idgham {
            background: var(--rule-idgham-bg);
            border-bottom: 3px solid var(--rule-idgham-border);
        }
        .ayah-text .segment-wrapper .highlight-rule.rule-izhar {
            background: var(--rule-izhar-bg);
            border-bottom: 3px solid var(--rule-izhar-border);
        }
        .ayah-text .segment-wrapper .highlight-rule.rule-ikhfa {
            background: var(--rule-ikhfa-bg);
            border-bottom: 3px solid var(--rule-ikhfa-border);
        }
        .ayah-text .segment-wrapper .highlight-rule.rule-qalqala {
            background: var(--rule-qalqala-bg);
            border-bottom: 3px solid var(--rule-qalqala-border);
        }
        .ayah-text .segment-wrapper .highlight-rule.rule-madd {
            background: var(--rule-madd-bg);
            border-bottom: 3px solid var(--rule-madd-border);
        }
        .ayah-text .segment-wrapper .highlight-rule.rule-ghunna {
            background: var(--rule-ghunna-bg);
            border-bottom: 3px solid var(--rule-ghunna-border);
        }

        /* ===== RULE BADGE & BOTTOM HINT – TOGGLE READY ===== */
        .ayah-text .segment-wrapper .rule-badge {
            display: none;
            align-items: center;
            gap: 4px;
            padding: 0 8px;
            border-radius: 8px;
            font-size: 0.65rem;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            line-height: 1.6;
            color: #fff;
            background: var(--rule-idgham-border);
            margin-bottom: 2px;
            transition: var(--transition);
        }

        .ayah-text .segment-wrapper .bottom-hint {
            display: none;
            flex-direction: column;
            align-items: center;
            margin-top: 2px;
            gap: 2px;
            transition: all 0.3s ease;
        }

        .ayah-text .segment-wrapper .rule-badge.show {
            display: inline-flex;
        }
        .ayah-text .segment-wrapper .bottom-hint.show {
            display: flex;
        }

        .hints-always .ayah-text .segment-wrapper .rule-badge {
            display: inline-flex;
        }
        .hints-always .ayah-text .segment-wrapper .bottom-hint {
            display: flex;
        }

        .hints-onclick .ayah-text .segment-wrapper .rule-badge {
            display: none;
        }
        .hints-onclick .ayah-text .segment-wrapper .bottom-hint {
            display: none;
        }
        .hints-onclick .ayah-text .segment-wrapper .rule-badge.show {
            display: inline-flex;
        }
        .hints-onclick .ayah-text .segment-wrapper .bottom-hint.show {
            display: flex;
        }

        .ayah-text .segment-wrapper .rule-badge.badge-idgham {
            background: var(--rule-idgham-border);
        }
        .ayah-text .segment-wrapper .rule-badge.badge-izhar {
            background: var(--rule-izhar-border);
        }
        .ayah-text .segment-wrapper .rule-badge.badge-ikhfa {
            background: var(--rule-ikhfa-border);
        }
        .ayah-text .segment-wrapper .rule-badge.badge-qalqala {
            background: var(--rule-qalqala-border);
        }
        .ayah-text .segment-wrapper .rule-badge.badge-madd {
            background: var(--rule-madd-border);
        }
        .ayah-text .segment-wrapper .rule-badge.badge-ghunna {
            background: var(--rule-ghunna-border);
        }

        .ayah-text .segment-wrapper .rule-badge .badge-text {
            font-size: medium;
        }

        .ayah-text .segment-wrapper .bottom-hint .pronunciation-text {
            font-size: medium;
            color: var(--gold-light);
            font-family: 'Inter', sans-serif;
            opacity: 0.7;
            background: rgba(201, 168, 76, 0.08);
            padding: 0 8px;
            border-radius: 8px;
            line-height: 1.6;
            direction: ltr;
            text-align: center;
            letter-spacing: 0.5px;
        }

        .ayah-text .segment-wrapper .rule-badge:hover {
            filter: brightness(1.15);
            transform: scale(1.04);
        }

        /* ===== TOOLBAR ===== */
        .toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: 14px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .toolbar .toolbar-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 16px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 6px;
            color: rgba(245, 240, 232, 0.6);
            cursor: pointer;
            transition: var(--transition);
            font-family: 'Amiri', serif;
            font-size: 0.85rem;
        }

        .toolbar .toolbar-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .toolbar .toolbar-btn.active {
            background: rgba(201, 168, 76, 0.12);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .toolbar .toolbar-btn .icon {
            font-size: 1.2rem;
        }

        .toolbar .session-timer {
            align-content: center;
            font-size: 0.85rem;
            color: var(--gold-light);
            font-family: 'Inter', sans-serif;
            background: rgba(201, 168, 76, 0.1);
            padding: 3px 12px;
            border-radius: 20px;
            border: 1px solid rgba(201, 168, 76, 0.2);
            white-space: nowrap;
            direction: ltr;
            letter-spacing: 1px;
            font-weight: 600;
            min-width: 80px;
            text-align: center;
        }

        /* ===== BOTTOM ACTIONS ===== */
        .bottom-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            padding-top: 16px;
            margin-top: 6px;
        }

        .bottom-actions .action-link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 6px;
            color: rgba(245, 240, 232, 0.6);
            text-decoration: none;
            font-family: 'Amiri', serif;
            font-size: 0.9rem;
            transition: var(--transition);
            cursor: pointer;
        }

        .bottom-actions .action-link:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .bottom-actions .action-link .icon {
            font-size: 1.2rem;
        }

        .bottom-actions .action-link.primary {
            background: linear-gradient(145deg, var(--gold), #b8952e);
            border: none;
            color: var(--primary-dark);
            font-weight: 700;
        }

        .bottom-actions .action-link.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
            background: linear-gradient(145deg, #dbb85a, #c9a84c);
        }

        .bottom-actions .action-link.finish-session {
            background: rgba(239, 83, 80, 0.12);
            border-color: #ef5350;
            color: #ef5350;
        }

        .bottom-actions .action-link.finish-session:hover {
            background: rgba(239, 83, 80, 0.2);
            border-color: #ef5350;
        }

        /* ===== TRAINING MODAL ===== */
        .training-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 300;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .training-modal-overlay.show {
            display: flex;
        }

        .training-modal-card {
            max-width: 780px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            background: var(--primary-dark);
            border: 1px solid rgba(201, 168, 76, 0.3);
            border-radius: 24px;
            padding: 28px 24px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
            animation: slideUp 0.35s ease;
        }

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





        /* ===== Theme Classes ===== */
body.theme-dark {
    background: #0f2818;
    color: #f5f0e8;
}
body.theme-light {
    background: #f5f0e8;
    color: #1e1307;
}
body.theme-light .card {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #d4c5a0 !important;
}
body.theme-light .top-nav,
body.theme-light .bottom-nav {
    background: rgba(245, 240, 232, 0.95) !important;
    border-bottom-color: #d4c5a0 !important;
}
body.theme-light .top-nav .brand {
    color: #b8952e !important;
}
body.theme-light .top-nav .user-greeting {
    color: #1e1307 !important;
}
body.theme-light .top-nav .level-badge {
    background: rgba(184, 149, 46, 0.15) !important;
    border-color: rgba(184, 149, 46, 0.3) !important;
    color: #1e1307 !important;
}
body.theme-light .drawer {
    background: rgba(245, 240, 232, 0.98) !important;
    border-left-color: #d4c5a0 !important;
}
body.theme-light .drawer .drawer-group a {
    color: #1e1307 !important;
}
body.theme-light .drawer .drawer-group a:hover {
    background: rgba(184, 149, 46, 0.08) !important;
}
body.theme-light .ayah-container {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: #d4c5a0 !important;
}
body.theme-light .ayah-text {
    color: #1e1307 !important;
}
body.theme-light .ayah-ref {
    color: #666 !important;
}

body.theme-sepia {
    background: #f4ecd8;
    color: #3d2b1f;
}
body.theme-sepia .card {
    background: rgba(244, 236, 216, 0.92) !important;
    border-color: #c4b59a !important;
}
body.theme-sepia .top-nav,
body.theme-sepia .bottom-nav {
    background: rgba(244, 236, 216, 0.95) !important;
    border-bottom-color: #c4b59a !important;
}
body.theme-sepia .top-nav .brand {
    color: #a88a2a !important;
}
body.theme-sepia .top-nav .user-greeting {
    color: #3d2b1f !important;
}
body.theme-sepia .top-nav .level-badge {
    background: rgba(168, 138, 42, 0.15) !important;
    border-color: rgba(168, 138, 42, 0.3) !important;
    color: #3d2b1f !important;
}
body.theme-sepia .drawer {
    background: rgba(244, 236, 216, 0.98) !important;
}
body.theme-sepia .drawer .drawer-group a {
    color: #3d2b1f !important;
}
body.theme-sepia .drawer .drawer-group a:hover {
    background: rgba(168, 138, 42, 0.08) !important;
}
body.theme-sepia .ayah-container {
    background: rgba(244, 236, 216, 0.8) !important;
    border-color: #c4b59a !important;
}
body.theme-sepia .ayah-text {
    color: #3d2b1f !important;
}

body.theme-system {
    /* Uses OS preference via prefers-color-scheme, we can keep it as is */
}

.settings-hub-view .card {
    max-width: 100% !important;
}