        /* ============================================ */
        /* ===== RESET & CSS VARIABLES ===== */
        /* ============================================ */
        *, *::before, *::after {
            margin: 0; padding: 0; box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --space-2: 2px;
            --space-4: 4px;
            --space-6: 6px;
            --space-8: 8px;
            --space-12: 12px;
            --space-16: 16px;
            --space-20: 20px;
            --space-24: 24px;
            --space-32: 32px;
            --space-40: 40px;
            --space-48: 48px;
            --space-64: 64px;

            --text-display: 600 48px/1.1 'Inter', system-ui, sans-serif;
            --text-h1: 700 24px/1.3 'Inter', system-ui, sans-serif;
            --text-h2: 600 18px/1.4 'Inter', system-ui, sans-serif;
            --text-body: 400 15px/1.6 'Inter', system-ui, sans-serif;
            --text-caption: 500 12px/1.4 'Inter', system-ui, sans-serif;
            --text-micro: 600 10px/1.2 'Inter', system-ui, sans-serif;
            --text-arabic-display: 32px;
            --text-arabic-heading: 22px;
            --text-arabic-body: 18px;
            --arabic-line-height: 2;
            --arabic-font: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;

            --bg-primary: #0a1628;
            --bg-secondary: #0f1d30;
            --bg-card: rgba(255, 255, 255, 0.04);
            --bg-card-hover: rgba(255, 255, 255, 0.07);
            --bg-card-active: rgba(255, 255, 255, 0.03);

            --accent-gold: #C9A84C;
            --accent-gold-muted: rgba(201, 168, 76, 0.3);
            --accent-gold-subtle: rgba(201, 168, 76, 0.1);
            --accent-green: #2ECC71;
            --accent-green-muted: rgba(46, 204, 113, 0.3);
            --accent-green-subtle: rgba(46, 204, 113, 0.1);

            --text-primary: #FFFFFF;
            --text-secondary: rgba(255, 255, 255, 0.75);
            --text-muted: rgba(255, 255, 255, 0.5);
            --text-accent: var(--accent-gold);

            --border-subtle: rgba(255, 255, 255, 0.06);
            --border-medium: rgba(255, 255, 255, 0.1);
            --border-accent: rgba(201, 168, 76, 0.2);

            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
            --shadow-glow-gold: 0 0 20px rgba(201, 168, 76, 0.15);

            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;

            --height-button: 48px;
            --height-input: 48px;
            --height-nav-item: 56px;
            --height-list-row: 64px;
            --height-touch-min: 44px;

            --transition-fast: 150ms ease;
            --transition-normal: 250ms ease;

            --nav-height: 56px;
            --bottom-nav-height: 64px;
            --safe-top: env(safe-area-inset-top, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
            --font-scale: 1;

            --surface-card: linear-gradient(180deg, var(--bg-card-hover), var(--bg-card-active));
            --surface-accent: linear-gradient(180deg, var(--accent-gold-subtle), var(--bg-card-active));
            --surface-success: linear-gradient(180deg, var(--accent-green-subtle), var(--bg-card-active));
            --size-quick-tile: 100px;
            --size-tasbeeh-tap: 140px;
            --size-qibla-compass: 184px;
            --size-qibla-compass-mobile: 168px;

            --bg-dark: var(--bg-primary);
            --bg-light: var(--bg-secondary);
            --bg-surface: var(--bg-secondary);
            --bg-glass: rgba(10, 22, 40, 0.88);
            --gold-lightest: var(--text-primary);
            --gold-light: rgba(255, 255, 255, 0.92);
            --gold-mid: var(--accent-gold);
            --gold-dark: #8a6d2b;
            --gold-deep: #4a3a15;
            --gold-glow: var(--accent-gold-subtle);
            --emerald: #123525;
            --emerald-light: var(--accent-green);
            --emerald-glow: var(--accent-green-subtle);
            --ruby: #7A2E3B;
            --sapphire: #1a3a5c;
            --teal: #1B6B6D;
            --purple: #4a1a7a;
            --green-lightest: #e8f5e9;
            --green-light: #81c784;
            --green-mid: #4cad52;
            --green-dark: #1b5e20;
            --green-deep: #0a3d0a;
            --text-subtle: var(--text-secondary);
            --text-faint: var(--text-muted);
            --font-arabic: var(--arabic-font);
            --font-amiri: 'Amiri', serif;
            --font-title: 'Inter', system-ui, sans-serif;
            --font-text: 'Inter', system-ui, sans-serif;
            --shadow-soft: var(--shadow-sm);
            --shadow-card: var(--shadow-md);
            --shadow-elevated: var(--shadow-lg);
            --shadow-glow: var(--shadow-glow-gold);
            --transition-smooth: var(--transition-normal);
            --transition-spring: var(--transition-normal);
        }

        /* ===== LIGHT MODE ===== */
        [data-theme="light"] {
            --bg-primary: #F5F1EB;
            --bg-secondary: #EDE8E0;
            --bg-card: #FFFFFF;
            --bg-card-hover: #F8F6F2;
            --bg-card-active: #F2EEE8;

            --text-primary: #1a1a2e;
            --text-secondary: rgba(26, 26, 46, 0.7);
            --text-muted: rgba(26, 26, 46, 0.45);

            --border-subtle: rgba(0, 0, 0, 0.06);
            --border-medium: rgba(0, 0, 0, 0.1);
            --border-accent: rgba(201, 168, 76, 0.22);

            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

            --bg-dark: var(--bg-primary);
            --bg-light: var(--bg-primary);
            --bg-surface: var(--bg-secondary);
            --bg-glass: rgba(245, 241, 235, 0.92);
            --gold-lightest: #1a1a2e;
            --gold-light: #1a1a2e;
            --gold-mid: var(--accent-gold);
            --gold-dark: #745921;
            --gold-glow: rgba(201, 168, 76, 0.12);
            --emerald: #E8F5E9;
            --emerald-light: #16985A;
            --emerald-glow: rgba(22, 152, 90, 0.08);
            --green-lightest: #0a3d0a;
            --green-light: #2e7d32;
            --green-mid: #1b5e20;
            --text-subtle: var(--text-secondary);
            --text-faint: var(--text-muted);
            --shadow-soft: var(--shadow-sm);
            --shadow-card: var(--shadow-md);
            --shadow-elevated: var(--shadow-lg);
            --shadow-glow: var(--shadow-glow-gold);
        }
        [data-theme="light"] body::before {
            background: var(--bg-dark);
        }
        [data-theme="light"] body::after { opacity: 0; }
        [data-theme="light"] .top-nav,
        [data-theme="light"] .bottom-nav { background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(24px) saturate(185%); }
        [data-theme="light"] .top-nav { border-bottom-color: rgba(13, 123, 80, 0.1); }
        [data-theme="light"] .bottom-nav { border-top: 1px solid rgba(13, 123, 80, 0.08); }
        [data-theme="light"] .top-nav.scrolled { background: rgba(250, 247, 242, 0.97); box-shadow: 0 3px 14px rgba(72,52,27,0.08); }
        [data-theme="light"] .search-input { background: rgba(255, 255, 255, 0.8); color: #2d2d1a; border-color: rgba(13, 123, 80, 0.12); }
        [data-theme="light"] .toast { background: rgba(255, 255, 255, 0.92); color: #2d2d1a; border-color: rgba(13, 123, 80, 0.15); backdrop-filter: blur(20px); }
        [data-theme="light"] .arabic-text { color: #1a1a0e; }
        [data-theme="light"] .translation { color: #333; }
        [data-theme="light"] .dua-card { background: var(--bg-card); border-color: rgba(13, 123, 80, 0.1); box-shadow: var(--shadow-card); }
        [data-theme="light"] .arabic-container { background: linear-gradient(135deg, rgba(13, 123, 80, 0.03), rgba(255,255,255,0.6)); border-color: rgba(13, 123, 80, 0.06); }
        [data-theme="light"] .etiquette-panel,
        [data-theme="light"] .routine-panel,
        [data-theme="light"] .tasbeeh-panel,
        [data-theme="light"] .prayer-panel { background: var(--bg-dark); }
        [data-theme="light"] .side-panel { background: #fff; }
        [data-theme="light"] .overlay { background: rgba(0,0,0,0.2); }
        [data-theme="light"] .nav-title {
            background: linear-gradient(135deg, #1b5e20, #2e7d32, #0d7b50);
            -webkit-background-clip: text; background-clip: text;
        }
        [data-theme="light"] .dua-card:hover { box-shadow: 0 4px 24px rgba(13, 123, 80, 0.08); }
        [data-theme="light"] .streak-banner,
        [data-theme="light"] .daily-dua-banner { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); }
        [data-theme="light"] .pill { background: rgba(255, 255, 255, 0.6); }
        [data-theme="light"] .pill.active { background: rgba(13, 123, 80, 0.1); border-color: rgba(13, 123, 80, 0.3); color: #0d7b50; }
        [data-theme="light"] .pill:hover { background: rgba(13, 123, 80, 0.06); }
        [data-theme="light"] .toolbar-btn { background: rgba(255, 255, 255, 0.5); }
        [data-theme="light"] .font-controls { background: rgba(255, 255, 255, 0.5); }
        [data-theme="light"] .footer { background: transparent; }

        /* ===== COMPREHENSIVE LIGHT MODE OVERRIDES ===== */
        /* Critical: Text that would be invisible on light bg */
        [data-theme="light"] .etiquette-text { color: rgba(25, 60, 42, 0.85); }
        [data-theme="light"] .routine-desc { color: rgba(25, 60, 42, 0.72); }
        [data-theme="light"] .routine-desc .dua-ref { color: var(--gold-mid); }
        [data-theme="light"] .footer-text { color: rgba(25, 60, 42, 0.5); }
        [data-theme="light"] .footer-copyright { color: rgba(25, 60, 42, 0.35); }
        [data-theme="light"] .daily-label { color: var(--gold-mid); }

        /* Prayer panel light mode */
        [data-theme="light"] .prayer-location-bar { background: rgba(15, 80, 50, 0.08); border-color: rgba(15, 80, 50, 0.18); }
        [data-theme="light"] .prayer-subtab { background: rgba(15, 80, 50, 0.06); border-color: rgba(15, 80, 50, 0.18); color: var(--text-subtle); }
        [data-theme="light"] .prayer-subtab.active { background: rgba(154, 122, 47, 0.14); border-color: rgba(154, 122, 47, 0.34); color: var(--gold-light); }
        [data-theme="light"] .selected-city-chip { background: rgba(15, 80, 50, 0.08); border-color: rgba(15, 80, 50, 0.16); }
        [data-theme="light"] .selected-city-text { color: var(--text-primary); }
        [data-theme="light"] .city-search-shell { background: rgba(255, 255, 255, 0.95); border-color: rgba(15, 80, 50, 0.2); }
        [data-theme="light"] .city-search-input { color: var(--text-primary); }
        [data-theme="light"] .city-dropdown { background: rgba(255, 255, 255, 0.98); border-color: rgba(15, 80, 50, 0.18); }
        [data-theme="light"] .city-country-head { background: rgba(237, 233, 223, 0.98); border-bottom-color: rgba(15, 80, 50, 0.14); }
        [data-theme="light"] .city-name { color: var(--text-primary); }
        [data-theme="light"] .city-coords { color: rgba(25, 60, 42, 0.72); }
        [data-theme="light"] .prayer-countdown-card { background: rgba(15, 80, 50, 0.06); border-color: rgba(15, 80, 50, 0.15); }
        [data-theme="light"] .prayer-countdown-label { color: var(--emerald-light); }
        [data-theme="light"] .prayer-countdown-name { color: var(--emerald-light); }
        [data-theme="light"] .prayer-countdown-time { color: var(--gold-light); }
        [data-theme="light"] .prayer-time-row,
        [data-theme="light"] .prayer-row { background: rgba(15, 80, 50, 0.05); border-color: rgba(15, 80, 50, 0.12); }
        [data-theme="light"] .prayer-time-row.active-prayer,
        [data-theme="light"] .prayer-row.current-prayer { background: rgba(15, 80, 50, 0.1); border-color: rgba(15, 80, 50, 0.25); }
        [data-theme="light"] .prayer-name { color: var(--text-primary); }
        [data-theme="light"] .prayer-time-val { color: var(--gold-light); }
        [data-theme="light"] .prayer-time-name { color: var(--text-primary); }
        [data-theme="light"] .prayer-time-value { color: var(--gold-light); }
        [data-theme="light"] .prayer-now-badge { background: rgba(13, 123, 80, 0.15); color: var(--emerald-light); border-color: rgba(13, 123, 80, 0.3); }
        [data-theme="light"] .prayer-next-badge { background: rgba(45, 45, 26, 0.1); color: var(--gold-light); border-color: rgba(45, 45, 26, 0.2); }
        [data-theme="light"] .qibla-section { background: rgba(15, 80, 50, 0.05); border-color: rgba(15, 80, 50, 0.15); }
        [data-theme="light"] .qibla-title { color: var(--emerald-light); }
        [data-theme="light"] .qibla-compass { border-color: rgba(15, 80, 50, 0.24); background: radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.95), rgba(225, 236, 228, 0.95)); }
        [data-theme="light"] .qibla-degree-ring { opacity: 0.45; }
        [data-theme="light"] .qibla-direction-label { color: var(--text-muted); }
        [data-theme="light"] .qibla-direction-label span { color: var(--text-primary); }
        [data-theme="light"] .qibla-direction-label small { color: rgba(36, 61, 45, 0.8); }
        [data-theme="light"] .qibla-degree { color: var(--text-primary); }
        [data-theme="light"] .qibla-location { color: var(--text-primary); }
        [data-theme="light"] .qibla-status { color: var(--text-muted); }
        [data-theme="light"] .qibla-instruction { color: rgba(36, 61, 45, 0.78); }
        [data-theme="light"] .qibla-section.aligned {
            border-color: rgba(154, 122, 47, 0.42);
            box-shadow: 0 0 18px rgba(154, 122, 47, 0.16), inset 0 0 0 1px rgba(154, 122, 47, 0.18);
        }
        [data-theme="light"] .qibla-section.aligned .qibla-status { color: rgba(116, 89, 33, 0.95); }
        [data-theme="light"] .prayer-notify-row { background: rgba(15, 80, 50, 0.06); border-color: rgba(15, 80, 50, 0.18); }
        [data-theme="light"] .prayer-reminder-settings { background: rgba(15, 80, 50, 0.04); border-color: rgba(15, 80, 50, 0.15); }
        [data-theme="light"] .prayer-reminder-item { background: transparent; border-color: rgba(15, 80, 50, 0.08); }
        [data-theme="light"] .prayer-reminder-select { background: rgba(255, 255, 255, 0.9); border-color: rgba(15, 80, 50, 0.18); color: var(--text-primary); }
        [data-theme="light"] .prayer-reminder-status { border-color: rgba(15, 80, 50, 0.2); background: rgba(15, 80, 50, 0.06); color: var(--text-muted); }
        [data-theme="light"] .prayer-notify-label { color: var(--text-primary); }
        [data-theme="light"] .toggle-slider { background: rgba(15, 80, 50, 0.15); }
        [data-theme="light"] .toggle-slider::before { background: rgba(15, 40, 28, 0.4); }
        [data-theme="light"] .toggle-switch input:checked + .toggle-slider { background: rgba(13, 123, 80, 0.4); }
        [data-theme="light"] .toggle-switch input:checked + .toggle-slider::before { background: var(--emerald-light); }
        [data-theme="light"] .prayer-calc-label { color: var(--text-muted); }
        [data-theme="light"] .prayer-calc-select { background: rgba(255, 255, 255, 0.9); border-color: rgba(15, 80, 50, 0.2); color: var(--text-primary); }

        /* Critical: Auth badges — darken neon colors for readability */
        [data-theme="light"] .badge-quran { background: rgba(106, 27, 128, 0.1); color: #6a1b80; border-color: rgba(106, 27, 128, 0.25); }
        [data-theme="light"] .badge-sahih { background: rgba(13, 123, 80, 0.08); color: #0d7b50; border-color: rgba(13, 123, 80, 0.2); }
        [data-theme="light"] .badge-jayyid { background: rgba(14, 107, 122, 0.1); color: #0e6b7a; border-color: rgba(14, 107, 122, 0.25); }
        [data-theme="light"] .badge-sirah { background: rgba(139, 32, 32, 0.08); color: #8b2020; border-color: rgba(139, 32, 32, 0.2); }
        [data-theme="light"] .badge-hasan { background: rgba(138, 109, 43, 0.1); color: #6b5420; border-color: rgba(138, 109, 43, 0.22); }

        /* Critical: Focus/interactive states with hardcoded dark backgrounds */
        [data-theme="light"] .search-input:focus { background: rgba(255, 255, 255, 0.95); border-color: rgba(13, 123, 80, 0.4); box-shadow: 0 0 0 3px rgba(13, 123, 80, 0.08), var(--shadow-card); }
        [data-theme="light"] .back-to-top { background: rgba(255, 255, 255, 0.9); border-color: rgba(13, 123, 80, 0.15); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); color: var(--emerald-light); }
        [data-theme="light"] .back-to-top:hover { background: rgba(255, 255, 255, 1); border-color: rgba(13, 123, 80, 0.3); }

        /* High: Buttons with poor contrast in light mode */
        [data-theme="light"] .memorize-btn { background: rgba(106, 27, 128, 0.06); border-color: rgba(106, 27, 128, 0.18); color: #5e35b1; }
        [data-theme="light"] .memorize-btn.memorized { background: rgba(106, 27, 128, 0.12); border-color: #7e57c2; color: #5e35b1; }
        [data-theme="light"] .progress-reset-btn { background: rgba(198, 40, 40, 0.05); border-color: rgba(198, 40, 40, 0.15); color: #c62828; }
        [data-theme="light"] .progress-reset-btn:hover { background: rgba(198, 40, 40, 0.1); border-color: rgba(198, 40, 40, 0.3); }

        /* High: Action buttons & interactive elements — boost visibility on light bg */
        [data-theme="light"] .action-btn { background: rgba(13, 123, 80, 0.05); border-color: rgba(13, 123, 80, 0.15); }
        [data-theme="light"] .action-btn:hover { background: rgba(13, 123, 80, 0.1); border-color: rgba(13, 123, 80, 0.25); }
        [data-theme="light"] .dua-number { background: linear-gradient(135deg, rgba(13, 123, 80, 0.08), rgba(13, 123, 80, 0.03)); border-color: rgba(13, 123, 80, 0.18); }
        [data-theme="light"] .section-toggle { background: rgba(13, 123, 80, 0.08); border-color: rgba(13, 123, 80, 0.2); }
        [data-theme="light"] .section-toggle.collapsed { background: rgba(13, 123, 80, 0.04); }

        /* High: Tasbeeh elements */
        [data-theme="light"] .tasbeeh-tap-btn { background: linear-gradient(135deg, rgba(13, 123, 80, 0.08), rgba(13, 123, 80, 0.03)); border-color: rgba(13, 123, 80, 0.25); box-shadow: 0 0 30px rgba(13, 123, 80, 0.06); }
        [data-theme="light"] .tasbeeh-tap-btn:active { background: linear-gradient(135deg, rgba(13, 123, 80, 0.15), rgba(13, 123, 80, 0.06)); }
        [data-theme="light"] .tasbeeh-ctrl-btn { background: rgba(13, 123, 80, 0.05); border-color: rgba(13, 123, 80, 0.15); }
        [data-theme="light"] .tasbeeh-ctrl-btn:hover { background: rgba(13, 123, 80, 0.1); color: var(--emerald-light); }
        [data-theme="light"] .tasbeeh-preset { background: rgba(13, 123, 80, 0.04); border-color: rgba(13, 123, 80, 0.12); }
        [data-theme="light"] .tasbeeh-preset:hover,
        [data-theme="light"] .tasbeeh-preset.active { background: rgba(13, 123, 80, 0.08); border-color: rgba(13, 123, 80, 0.25); }
        [data-theme="light"] .tasbeeh-count-display { text-shadow: none; }
        [data-theme="light"] .tasbeeh-target { color: rgba(13, 123, 80, 0.6); }

        /* Moderate: Surfaces & containers */
        [data-theme="light"] .how-to-box { background: rgba(13, 123, 80, 0.04); border-color: rgba(13, 123, 80, 0.1); }
        [data-theme="light"] .time-dua-chip { background: rgba(13, 123, 80, 0.04); border-color: rgba(13, 123, 80, 0.12); }
        [data-theme="light"] .progress-bar-visual { background: rgba(13, 123, 80, 0.1); }
        [data-theme="light"] .progress-stat-card { border-color: rgba(13, 123, 80, 0.12); }
        [data-theme="light"] .progress-day-cell { background: rgba(13, 123, 80, 0.03); }
        [data-theme="light"] .progress-day-cell.active { background: rgba(13, 123, 80, 0.1); border-color: rgba(13, 123, 80, 0.2); }
        [data-theme="light"] .progress-day-cell.today { border-color: var(--emerald-light); }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            max-width: 100%;
            font-size: 16px;
            background: #0a1210;
        }

        body {
            font-family: var(--font-text);
            background: var(--bg-dark) !important;
            color: var(--gold-light);
            line-height: 1.85;
            min-height: 100vh; min-height: 100dvh;
            overflow-x: hidden;
            max-width: 100%;
            padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        #appContent,
        .app-content,
        .app-content .panel,
        #mainContainer.container,
        .home-dashboard {
            width: 100%;
            max-width: 100%;
            overflow-x: clip;
        }

        .home-dashboard > * {
            min-width: 0;
            max-width: 100%;
        }

        body.panel-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* ===== BACKGROUND PATTERN ===== */
        body::before {
            content: '';
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: -2; pointer-events: none;
        }

        body::after {
            content: '';
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            opacity: 0;
            background-image: none;
            z-index: -1; pointer-events: none;
        }

        /* ============================================ */
        /* ===== TOP NAVIGATION ===== */
        /* ============================================ */

        /* ===== FALLAH LOGO ===== */
        .fallah-logo {
            display: flex; align-items: center; gap: 10px;
            text-decoration: none; cursor: pointer;
        }
        .fallah-logo:hover .fallah-mark,
        .fallah-logo:focus-visible .fallah-mark {
            transform: translateY(-1px);
            transition: transform 0.16s ease;
        }
        .fallah-mark {
            position: relative; width: 36px; height: 36px;
            display: flex; align-items: center; justify-content: center;
        }
        .fallah-crescent {
            position: absolute; width: 30px; height: 30px;
            border: 1.5px solid transparent;
            border-radius: 50%;
            background: conic-gradient(from 200deg, var(--emerald-light), var(--gold-mid), var(--emerald-light)) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0.6;
        }
        .fallah-fa {
            font-family: var(--font-arabic); font-size: 1.25rem;
            color: var(--emerald-light); font-weight: 700;
            position: relative; z-index: 1; line-height: 1;
            text-shadow: 0 0 14px rgba(46, 196, 122, 0.25);
        }
        .fallah-text {
            display: flex; flex-direction: column;
        }
        .fallah-brand {
            font-family: var(--font-title); font-size: 0.62rem;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #2ec47a, #81c784, #c9a84c);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text; font-weight: 700; text-transform: none;
        }
        .fallah-sub {
            font-family: var(--font-arabic); font-size: 0.5rem;
            color: var(--gold-mid); opacity: 0.7; margin-top: -1px;
        }
            [data-theme="light"] .fallah-sub { color: #6b5420; opacity: 0.86; }

        /* ===== SPLASH SCREEN ===== */
        .splash-screen {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background:
                radial-gradient(140% 100% at 50% 0%, rgba(201, 168, 76, 0.16) 0%, rgba(201, 168, 76, 0) 56%),
                radial-gradient(120% 100% at 50% 100%, #0a1320 0%, #050b14 78%);
            z-index: 10000;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            transition: opacity 0.56s ease, visibility 0.56s ease;
            overflow: hidden;
        }
        .splash-screen::before {
            content: '';
            position: absolute;
            inset: -15%;
            background:
                repeating-linear-gradient(45deg, rgba(201, 168, 76, 0.05) 0 1px, transparent 1px 26px),
                repeating-linear-gradient(-45deg, rgba(201, 168, 76, 0.04) 0 1px, transparent 1px 26px);
            opacity: 0;
            transform: scale(1.03);
            animation: splashPatternIn 1.1s ease-out 0.08s forwards;
            pointer-events: none;
        }
        .splash-screen.hidden {
            opacity: 0; visibility: hidden; pointer-events: none;
        }
        .splash-logo-large {
            position: relative; width: 96px; height: 96px;
            display: flex; align-items: center; justify-content: center;
            animation: splashPulse 2.3s ease-in-out infinite;
            z-index: 1;
        }
        .splash-crescent-lg {
            position: absolute;
            width: 78px;
            height: 78px;
            color: #d8b458;
            filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
        }
        .splash-fa-lg {
            display: none;
            font-family: var(--font-arabic); font-size: 3rem;
            color: var(--emerald-light); font-weight: 700;
            position: relative; z-index: 1;
            text-shadow: 0 0 35px rgba(46, 196, 122, 0.3);
            opacity: 0; animation: splashFadeIn 0.8s ease-out 0.3s forwards;
        }
        .splash-title {
            font-family: var(--font-title);
            font-size: 0.84rem;
            letter-spacing: 5px;
            text-transform: none;
            color: #efd082;
            margin-top: 30px;
            opacity: 0;
            animation: splashFadeIn 0.55s ease-out 0.25s forwards;
            z-index: 1;
        }
        .splash-subtitle {
            font-family: var(--font-text); font-size: 0.82rem;
            color: rgba(237, 208, 130, 0.82); opacity: 0; font-style: italic;
            animation: splashFadeIn 0.55s ease-out 0.4s forwards;
            margin-top: 6px;
            z-index: 1;
        }
        [data-theme="light"] .splash-subtitle { color: rgba(247, 232, 181, 0.9); }
        .splash-credit {
            font-family: var(--font-arabic); font-size: 0.72rem;
            color: rgba(255, 245, 223, 0.66); opacity: 0;
            animation: splashFadeIn 0.55s ease-out 0.56s forwards;
            margin-top: 18px;
            z-index: 1;
        }
        @keyframes splashPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.03); }
        }
        @keyframes splashFadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes splashPatternIn {
            from { opacity: 0; transform: scale(1.03); }
            to { opacity: 0.22; transform: scale(1); }
        }
        [data-theme="light"] .splash-screen {
            background:
                radial-gradient(140% 100% at 50% 0%, rgba(219, 180, 88, 0.2) 0%, rgba(219, 180, 88, 0) 56%),
                radial-gradient(120% 100% at 50% 100%, #192437 0%, #0b121e 78%);
        }

        /* ===== FOOTER BRAND ===== */
        .footer-brand-row {
            display: flex; align-items: center; justify-content: center;
            gap: 10px; margin-top: 16px; margin-bottom: 4px;
        }
        .footer-logo-mini {
            position: relative; width: 28px; height: 28px;
            display: flex; align-items: center; justify-content: center;
        }
        .footer-crescent {
            position: absolute; width: 22px; height: 22px;
            border: 1px solid transparent; border-radius: 50%;
            background: conic-gradient(from 200deg, var(--emerald-light), var(--gold-mid), var(--emerald-light)) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            opacity: 0.4;
        }
        .footer-fa-mini {
            font-family: var(--font-arabic); font-size: 0.85rem;
            color: var(--emerald-light); font-weight: 700;
            position: relative; z-index: 1; opacity: 0.5;
        }
        .footer-credit-text {
            font-family: var(--font-title); font-size: 0.55rem;
            letter-spacing: 2px; text-transform: none;
            color: var(--text-subtle);
        }
        [data-theme="light"] .footer-credit-text { color: #6b5420; }
        .footer-copyright {
            font-family: var(--font-title); font-size: 0.5rem;
            letter-spacing: 1.5px; color: rgba(170, 210, 190, 0.4);
            margin-top: 8px;
        }

        .top-nav,
        .top-bar {
            position: fixed; top: 0; left: 0; right: 0;
            height: calc(var(--nav-height) + var(--safe-top));
            padding-top: env(safe-area-inset-top, 0px);
            background: #0a1210;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(46, 196, 122, 0.08);
            z-index: 1000;
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px;
            padding-left: 16px; padding-right: 16px;
            transition: transform 0.4s var(--transition-smooth), background 0.3s ease, box-shadow 0.3s ease;
        }
        .top-nav.hidden,
        .top-bar.hidden { transform: translateY(-100%); }
        .top-nav.scrolled,
        .top-bar.scrolled {
            background: #0a1210;
            box-shadow: 0 1px 20px rgba(0,0,0,0.3);
            border-bottom-color: rgba(46, 196, 122, 0.12);
        }

        .nav-title {
            font-family: var(--font-title); font-size: 0.72rem;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #2ec47a, #81c784, #c9a84c);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text; font-weight: 700; text-transform: none;
        }

        .nav-btn {
            background: rgba(46, 196, 122, 0.04); border: 1px solid rgba(46, 196, 122, 0.12);
            color: var(--text-muted); width: 34px; height: 34px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.3s var(--transition-smooth); font-size: 0.9rem;
        }
        .nav-btn:hover, .nav-btn:active {
            background: rgba(46, 196, 122, 0.1);
            border-color: rgba(46, 196, 122, 0.3); color: var(--emerald-light);
            transform: scale(1.08);
        }
        .nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; position: relative; }

        /* ===== FONT SIZE CONTROLS ===== */
        .font-controls {
            display: flex; align-items: center; gap: 0;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.1);
            border-radius: 50px; padding: 2px;
        }
        .font-btn {
            background: none; border: none;
            color: var(--text-muted); width: 36px; height: 36px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            cursor: pointer; font-family: var(--font-title); font-size: 0.7rem;
            font-weight: 700; transition: all 0.25s var(--transition-smooth);
        }
        .font-btn:hover { background: rgba(46, 196, 122, 0.1); color: var(--emerald-light); }
        .font-btn:active { transform: scale(0.88); }

        /* ============================================ */
        /* ===== PROGRESS BAR ===== */
        /* ============================================ */
        .progress-bar {
            position: fixed;
            top: calc(var(--nav-height) + var(--safe-top));
            left: 0; right: 0; height: 2px;
            background: rgba(46, 196, 122, 0.04);
            z-index: 999;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--green-dark), var(--emerald-light), var(--green-light), var(--emerald-light));
            background-size: 200% 100%;
            width: 0%; transition: width 0.2s ease-out;
            border-radius: 0 2px 2px 0;
            box-shadow: 0 0 12px rgba(46, 196, 122, 0.3);
            animation: progressShimmer 3s ease-in-out infinite;
        }
        @keyframes progressShimmer {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        /* ============================================ */
        /* ===== BOTTOM NAVIGATION ===== */
        /* ============================================ */
        .bottom-nav {
            position: fixed; bottom: 0; left: 0; right: 0;
            height: 60px;
            padding-bottom: env(safe-area-inset-bottom, 0px);
            background: rgba(12, 26, 19, 0.88);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-top: 1px solid rgba(46, 196, 122, 0.08);
            z-index: 9000;
            display: flex; align-items: stretch; justify-content: space-between;
            gap: 0;
            padding-left: 0;
            padding-right: 0;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        .bottom-nav button,
        .bottom-nav-item {
            display: flex; flex-direction: column; align-items: center; gap: 4px;
            justify-content: center;
            min-height: 60px;
            height: 100%;
            padding: 6px 0 10px 0;
            border-radius: 0;
            cursor: pointer;
            transition: all 0.3s var(--transition-smooth);
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.4); font-size: 0.63rem;
            font-family: var(--font-title); letter-spacing: 0.5px;
            position: relative;
            flex: 1;
            margin: 0;
            z-index: 9001;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            transition: color 0.2s var(--transition-smooth), background 0.2s var(--transition-smooth), transform 0.2s var(--transition-smooth);
            box-sizing: border-box;
        }
        .bottom-nav-item.active {
            color: var(--tab-accent, var(--emerald-light));
            background: rgba(var(--tab-accent-rgb, 46, 196, 122), 0.12);
            border-radius: 16px;
            padding: 6px 16px;
            margin: 4px 6px 6px;
            box-shadow: none;
        }
        .bottom-nav-item.active::before {
            display: none;
        }
        .bottom-nav-item .icon {
            font-size: 1.2rem;
            line-height: 1;
            transition: transform 0.25s var(--transition-spring);
            position: relative;
            z-index: 0;
        }
        .bottom-nav-item .icon::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            width: 0;
            height: 0;
            border-radius: 999px;
            transform: translate(-50%, -50%);
            transition: width 0.24s var(--transition-smooth), height 0.24s var(--transition-smooth), background 0.24s var(--transition-smooth);
            z-index: -1;
        }
        .bottom-nav-item:active .icon { transform: scale(0.9); }
        .bottom-nav-item.active .icon {
            filter: none;
        }
        .bottom-nav-item.active .icon::before { display: none; }
        .bottom-nav-item[data-nav='home'] {
            --tab-accent: #2d8659;
            --tab-accent-rgb: 45, 134, 89;
        }
        .bottom-nav-item[data-nav='quran'] {
            --tab-accent: #1a8a7a;
            --tab-accent-rgb: 26, 138, 122;
        }
        .bottom-nav-item[data-nav='duas'] {
            --tab-accent: #c49b2a;
            --tab-accent-rgb: 196, 155, 42;
        }
        .bottom-nav-item[data-nav='more'] {
            --tab-accent: #5a6a7a;
            --tab-accent-rgb: 90, 106, 122;
        }

        /* ============================================ */
        /* ===== MAIN CONTAINER ===== */
        /* ============================================ */
        .container {
            max-width: 660px;
            margin: 0 auto;
            padding: calc(var(--nav-height) + var(--safe-top) + 6px) 16px 2rem;
        }

        /* ============================================ */
        /* ===== SHIMMER / GOLD TEXT ===== */
        /* ============================================ */
        .gold-text {
            background: linear-gradient(135deg, #2ec47a 0%, #81c784 20%, #c9a84c 50%, #a5d6a7 75%, #2ec47a 100%);
            background-size: 300% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 8s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 300% center; }
        }

        .quran-shell {
            max-width: 900px;
            margin: 0 auto;
            display: grid;
            gap: 8px;
        }

        .quran-top-progress {
            position: sticky;
            top: calc(var(--safe-top) + 8px);
            z-index: 3;
            display: grid;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 18px;
            border: 1px solid rgba(201, 168, 76, 0.18);
            background: rgba(8, 18, 15, 0.84);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            margin-bottom: 4px;
        }
        .quran-top-progress::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(46, 196, 122, 0.04));
            pointer-events: none;
        }
        .quran-top-progress span {
            display: block;
            height: 5px;
            width: 0;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--gold-mid), var(--emerald-light));
            transition: width 0.2s ease-out;
            position: relative;
            z-index: 1;
        }
        .quran-top-progress-copy {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }
        .quran-top-progress-kicker {
            font-family: var(--font-title);
            font-size: 0.68rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--gold-mid);
        }
        .quran-top-progress-label {
            color: var(--text-primary);
            font-size: 0.78rem;
        }

        .quran-header-row {
            display: none;
        }
        .quran-header-copy h2 {
            font-family: var(--font-title);
            font-size: clamp(1.5rem, 4vw, 2.15rem);
            color: var(--text-primary);
            line-height: 1.05;
            margin-bottom: 8px;
        }
        .quran-header-copy p {
            max-width: 56ch;
            color: var(--text-subtle);
            font-size: 0.95rem;
            line-height: 1.6;
        }
        .quran-header-nav {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .quran-nav-btn,
        .quran-chip-btn,
        .quran-row-btn,
        .quran-ayah-btn {
            border: 1px solid rgba(201, 168, 76, 0.22);
            background: rgba(201, 168, 76, 0.08);
            color: var(--text-primary);
            border-radius: 999px;
            cursor: pointer;
            transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
        }
        .quran-nav-btn:hover,
        .quran-chip-btn:hover,
        .quran-row-btn:hover,
        .quran-ayah-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(201, 168, 76, 0.4);
            background: rgba(201, 168, 76, 0.14);
        }
        .quran-nav-btn {
            width: 42px;
            height: 42px;
            font-size: 1rem;
        }
        /* Persistent focus mode toggle dot (always visible on Quran tab, body-level) */
        .quran-focus-dot {
            position: fixed !important;
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 74px) !important; /* 14px base + 48px audio dot + 12px gap */
            right: 16px !important; /* right-aligned with the audio dot */
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(8, 18, 15, 0.9);
            border: 1.5px solid rgba(212, 175, 55, 0.38);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999 !important;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0,0,0,0.45);
            backdrop-filter: blur(10px);
            color: var(--text-subtle);
            padding: 0;
            transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
        }
        body[data-active-tab="quran"] .quran-focus-dot { display: flex; }
        .quran-focus-dot:hover { color: var(--text-primary); border-color: rgba(212, 175, 55, 0.6); }
        /* Focus ON state — gold accent so user knows they're in focus mode */
        .quran-focus-dot[aria-pressed="true"] {
            border-color: rgba(201, 168, 76, 0.75);
            color: var(--gold-lightest);
            background: rgba(18, 32, 20, 0.95);
            box-shadow: 0 4px 22px rgba(201, 168, 76, 0.22);
        }
        /* Focus mode: hide chrome */
        .quran-panel.focus-mode .panel-back-btn,
        .quran-panel.focus-mode .quran-control-card,
        .quran-panel.focus-mode .quran-audio-hub,
        .quran-panel.focus-mode .quran-top-progress,
        .quran-panel.focus-mode .quran-bottom-progress { display: none !important; }
        /* Focus mode: amplify reading */
        .quran-panel.focus-mode .quran-ayah-ar { font-size: 2.3rem; line-height: 2.1; }
        .quran-panel.focus-mode .quran-ayah-card { padding: 24px 18px; }
        .quran-panel.focus-mode .quran-ayah-translation p { font-size: 0.9rem; line-height: 1.75; }
        .quran-panel.focus-mode { background: rgba(8, 17, 12, 0.97); }
        .quran-chip-btn,
        .quran-row-btn {
            min-height: 38px;
            padding: 0 14px;
            font-family: var(--font-title);
            font-size: 0.72rem;
            letter-spacing: 0.35px;
        }
        .quran-row-btn-main {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.24), rgba(46, 196, 122, 0.14));
            border-color: rgba(201, 168, 76, 0.36);
            color: var(--gold-lightest);
        }

        .quran-control-card,
        .quran-continue-card,
        .quran-reader-header,
        .quran-audio-row,
        .quran-ayah-card,
        .quran-empty-state {
            border-radius: 20px;
            border: 1px solid rgba(46, 196, 122, 0.14);
            background: rgba(13, 26, 21, 0.92);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
        }

        .quran-continue-card:empty {
            display: none;
        }
        .quran-continue-inner {
            padding: 16px 18px;
            display: grid;
            gap: 10px;
        }
        .quran-continue-kicker {
            font-family: var(--font-title);
            font-size: 0.68rem;
            letter-spacing: 0.9px;
            text-transform: uppercase;
            color: var(--gold-mid);
        }
        .quran-continue-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .quran-continue-copy {
            display: grid;
            gap: 4px;
        }
        .quran-continue-surah {
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 1rem;
        }
        .quran-continue-ayah,
        .quran-continue-lastread {
            color: var(--text-subtle);
            font-size: 0.78rem;
        }

        .quran-control-card {
            padding: 14px 16px;
            display: grid;
            gap: 12px;
        }
        .quran-control-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }
        .quran-control-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .quran-control-label {
            font-family: var(--font-title);
            font-size: 0.74rem;
            letter-spacing: 0.85px;
            text-transform: uppercase;
            color: var(--text-subtle);
        }
        .quran-surah-select-wrap select {
            width: 100%;
            min-height: 50px;
            font-size: 0.92rem;
            border-radius: 14px;
        }
        .quran-toggle-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .quran-toggle-pill {
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 46px;
            padding: 0 14px;
            border-radius: 14px;
            border: 1px solid rgba(46, 196, 122, 0.18);
            background: rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            cursor: pointer;
        }
        .quran-toggle-pill input {
            accent-color: var(--emerald-light);
        }
        .quran-toggle-pill span {
            font-size: 0.84rem;
        }

        .quran-reader-screen {
            display: block;
            min-height: auto;
        }
        .quran-reader-sticky {
            position: static;
            top: auto;
            z-index: auto;
            display: grid;
            gap: 10px;
            margin-bottom: 8px;
        }
        .quran-reader-header {
            padding: 14px 16px;
            display: grid;
            gap: 10px;
        }
        .quran-reader-kicker {
            font-family: var(--font-title);
            font-size: 0.68rem;
            letter-spacing: 0.9px;
            text-transform: uppercase;
            color: var(--gold-mid);
        }
        .quran-reader-title-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }
        .quran-reader-title-copy {
            display: grid;
            gap: 6px;
        }
        .quran-reader-title {
            font-family: var(--font-title);
            font-size: 1.18rem;
            color: var(--text-primary);
        }
        .quran-reader-title-ar {
            font-family: var(--font-arabic);
            font-size: 1.45rem;
            color: var(--gold-lightest);
            text-align: right;
            direction: rtl;
            line-height: 1.25;
        }
        .quran-reader-meta-badge {
            flex-shrink: 0;
            min-height: 34px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid rgba(201, 168, 76, 0.24);
            background: rgba(201, 168, 76, 0.08);
            display: inline-flex;
            align-items: center;
            color: var(--gold-light);
            font-size: 0.74rem;
        }
        .quran-bismillah {
            padding-top: 10px;
            border-top: 1px solid rgba(201, 168, 76, 0.14);
            text-align: center;
            font-family: var(--font-arabic);
            font-size: 1.22rem;
            color: var(--gold-light);
            line-height: 1.55;
        }

        .quran-audio-hub {
            display: grid;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 20px;
            border: 1px solid rgba(46, 196, 122, 0.14);
            background: rgba(13, 26, 21, 0.92);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
        }
        .quran-audio-summary {
            display: grid;
            gap: 10px;
        }
        .quran-audio-summary-copy {
            display: grid;
            gap: 4px;
            min-width: 0;
        }
        .quran-audio-summary-kicker {
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 0.9px;
            text-transform: uppercase;
            color: var(--emerald-light);
        }
        .quran-audio-summary-title {
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 0.96rem;
        }
        .quran-audio-summary-status {
            color: var(--text-subtle);
            font-size: 0.72rem;
            line-height: 1.45;
        }
        .quran-audio-source-tabs {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }
        .quran-audio-source {
            min-height: 82px;
            padding: 10px 12px;
            border-radius: 16px;
            display: grid;
            gap: 4px;
            align-content: start;
            justify-items: start;
            text-align: left;
            border-color: rgba(46, 196, 122, 0.16);
            background: rgba(8, 18, 15, 0.78);
        }
        .quran-audio-source.is-selected {
            border-color: rgba(201, 168, 76, 0.34);
            box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.14), 0 12px 30px rgba(0, 0, 0, 0.16);
        }
        .quran-audio-source.is-playing {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(46, 196, 122, 0.1)), rgba(13, 26, 21, 0.92);
        }
        .quran-audio-source-label {
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 0.84rem;
        }
        .quran-audio-source-meta {
            color: var(--text-subtle);
            font-size: 0.66rem;
            line-height: 1.35;
            min-height: 1.8em;
        }
        .quran-audio-source-action {
            margin-top: 2px;
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 0.55px;
            text-transform: uppercase;
            color: var(--gold-light);
        }

        .quran-reciter-inline {
            display: grid;
            grid-template-columns: auto minmax(160px, 1fr);
            gap: 6px;
            align-items: center;
            min-width: 0;
        }
        .quran-reciter-inline label {
            font-family: var(--font-title);
            font-size: 0.68rem;
            letter-spacing: 0.7px;
            text-transform: uppercase;
            color: var(--text-subtle);
        }
        .quran-reciter-inline select {
            min-height: 38px;
            width: 100%;
        }

        .quran-scroll-content {
            display: grid;
            gap: 12px;
        }
        .quran-skeleton-list {
            display: none;
            gap: 10px;
        }
        .quran-skeleton-list.visible {
            display: grid;
        }
        .quran-skeleton-item {
            height: 132px;
            border-radius: 20px;
            background: linear-gradient(90deg, rgba(46,196,122,0.08), rgba(201,168,76,0.14), rgba(46,196,122,0.08));
            background-size: 200% 100%;
            animation: quranSkeletonPulse 1.3s linear infinite;
        }
        @keyframes quranSkeletonPulse {
            to { background-position: -200% 0; }
        }

        .quran-ayah-list {
            display: grid;
            gap: 12px;
            padding-bottom: 12px;
        }
        .quran-ayah-card {
            padding: 18px 18px 16px;
            position: relative;
            overflow: hidden;
            scroll-margin-top: 108px;
        }
        .quran-ayah-card.playing {
            border-color: rgba(201, 168, 76, 0.45);
            box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2), 0 22px 46px rgba(0, 0, 0, 0.24);
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(46, 196, 122, 0.08)), rgba(13, 26, 21, 0.92);
        }
        .quran-ayah-topline {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }
        .quran-ayah-num {
            min-width: 34px;
            height: 34px;
            padding: 0 10px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(201, 168, 76, 0.26);
            background: rgba(201, 168, 76, 0.1);
            color: var(--gold-lightest);
            font-family: var(--font-title);
            font-size: 0.74rem;
        }
        .quran-ayah-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .quran-ayah-btn {
            width: 36px;
            height: 36px;
            padding: 0;
            font-size: 0.95rem;
        }
        /* Inline ayah action row */
        .ayah-inline-actions {
            display: flex;
            gap: 7px;
            flex-wrap: wrap;
            padding: 10px 0 2px;
            margin-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            animation: ayahActionsSlide 150ms ease;
        }
        .ayah-inline-actions[hidden] { display: none; }
        @keyframes ayahActionsSlide {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .ayah-action-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 13px;
            height: auto;
            width: auto;
            font-size: 0.72rem;
            letter-spacing: 0.4px;
            border-radius: 50px;
            color: var(--text-subtle);
        }
        .ayah-action-pill:hover { color: var(--text-primary); }
        .ayah-action-pill.bookmarked { color: var(--gold-lightest); border-color: rgba(201,168,76,0.4); }
        .quran-ayah-ar {
            font-family: var(--font-arabic);
            font-size: calc(var(--quran-ar-size, 2rem) * var(--font-scale));
            line-height: 2.05;
            text-align: right;
            direction: rtl;
            color: var(--gold-lightest);
        }
        .quran-ayah-translation {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid rgba(46, 196, 122, 0.12);
        }
        .quran-ayah-translation-label {
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 0.85px;
            text-transform: uppercase;
            color: var(--emerald-light);
            margin-bottom: 8px;
        }
        .quran-ayah-translation p {
            margin: 0;
            line-height: 1.78;
            font-size: 0.92rem;
        }
        .quran-ayah-ps {
            direction: rtl;
            text-align: right;
            color: var(--text-primary);
        }
        .quran-ayah-en {
            color: var(--text-subtle);
        }

        .quran-load-more {
            display: none;
            text-align: center;
            padding: 10px 0 2px;
            color: var(--text-subtle);
            font-family: var(--font-title);
            font-size: 0.72rem;
        }
        .quran-load-more.visible {
            display: block;
        }

        .quran-empty-state {
            padding: 22px 18px;
            text-align: center;
            color: var(--text-subtle);
        }

        .quran-audio-dot {
            position: fixed !important;
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 14px) !important;
            right: 16px !important;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(8, 18, 15, 0.9);
            border: 1.5px solid rgba(212, 175, 55, 0.38);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999 !important;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0,0,0,0.45);
            backdrop-filter: blur(10px);
            color: var(--text-primary);
        }
        .quran-audio-dot.visible {
            display: flex;
        }
        .quran-audio-dot .dot-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.98rem;
            line-height: 1;
        }
        .quran-audio-dot.playing {
            animation: dotPulse 2s ease-in-out infinite;
        }
        @keyframes dotPulse {
            0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.45); }
            50% { box-shadow: 0 8px 28px rgba(212, 175, 55, 0.42); }
        }

        .quran-dot-popup {
            position: fixed !important;
            bottom: 132px !important;
            right: 16px !important;
            width: 168px;
            background: rgba(13, 26, 21, 0.95);
            border-radius: 16px;
            padding: 8px;
            z-index: 10000 !important;
            box-shadow: 0 10px 30px rgba(0,0,0,0.45);
            border: 1px solid rgba(212, 175, 55, 0.26);
            display: none;
            backdrop-filter: blur(12px);
        }
        .dot-popup-btn {
            width: 100%;
            min-height: 34px;
            border: 1px solid rgba(46, 196, 122, 0.2);
            background: rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            border-radius: 10px;
            margin-bottom: 6px;
            font-size: 0.72rem;
            font-family: var(--font-title);
        }
        .dot-popup-info {
            display: block;
            text-align: center;
            margin: 4px 0 8px;
            font-size: 0.64rem;
            letter-spacing: 0.5px;
            color: var(--text-subtle);
            font-family: var(--font-title);
        }

        [data-theme="light"] .quran-panel {
            background:
                radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 28%),
                radial-gradient(circle at top right, rgba(46, 196, 122, 0.1), transparent 24%),
                linear-gradient(180deg, rgba(244, 246, 241, 0.98), rgba(235, 240, 232, 0.98));
        }
        [data-theme="light"] .quran-top-progress,
        [data-theme="light"] .quran-control-card,
        [data-theme="light"] .quran-continue-card,
        [data-theme="light"] .quran-reader-header,
        [data-theme="light"] .quran-audio-hub,
        [data-theme="light"] .quran-ayah-card,
        [data-theme="light"] .quran-dot-popup,
        [data-theme="light"] .quran-audio-dot,
        [data-theme="light"] .quran-focus-dot,
        [data-theme="light"] .quran-empty-state {
            background: rgba(255, 255, 255, 0.92);
            border-color: rgba(15, 80, 50, 0.16);
            color: var(--text-primary);
        }
        [data-theme="light"] .quran-audio-source {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(15, 80, 50, 0.16);
        }
        [data-theme="light"] .quran-toggle-pill {
            background: rgba(15, 80, 50, 0.06);
            border-color: rgba(15, 80, 50, 0.16);
        }
        [data-theme="light"] .quran-nav-btn,
        [data-theme="light"] .quran-chip-btn,
        [data-theme="light"] .quran-row-btn,
        [data-theme="light"] .quran-ayah-btn {
            background: rgba(201, 168, 76, 0.1);
            border-color: rgba(15, 80, 50, 0.18);
            color: var(--text-primary);
        }
        [data-theme="light"] .quran-ayah-card.playing,
        [data-theme="light"] .quran-audio-source.is-playing {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.14), rgba(15, 80, 50, 0.08)), rgba(255, 255, 255, 0.92);
        }

        @media (max-width: 720px) {
            .quran-header-row,
            .quran-reader-title-row {
                grid-template-columns: 1fr;
            }
            .quran-audio-source-tabs {
                grid-template-columns: 1fr;
            }
            .quran-control-actions {
                width: 100%;
                justify-content: stretch;
            }
            .quran-header-nav,
            .quran-reciter-inline {
                justify-content: stretch;
            }
            .quran-nav-btn,
            .quran-row-btn,
            .quran-chip-btn {
                width: 100%;
            }
            .quran-reciter-inline {
                grid-template-columns: 1fr;
                min-width: 0;
            }
            .quran-toggle-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 520px) {
            .quran-panel {
                padding-inline: 12px;
            }
            .quran-top-progress,
            .quran-control-card,
            .quran-continue-inner,
            .quran-reader-header,
            .quran-audio-row,
            .quran-ayah-card {
                padding-inline: 14px;
            }
            .quran-header-copy h2 {
                font-size: 1.36rem;
            }
            .quran-reader-title-ar {
                font-size: 1.22rem;
            }
            .quran-ayah-ar {
                line-height: 1.92;
            }
            .quran-continue-main {
                flex-direction: column;
                align-items: stretch;
            }
        }
        .hero {
            text-align: center; padding: 2.5rem 1rem 1.4rem;
            position: relative; overflow: hidden;
        }
        .hero::before {
            content: ''; position: absolute;
            top: -60%; left: -60%; right: -60%; bottom: -60%;
            background: radial-gradient(ellipse at center, rgba(46, 196, 122, 0.03) 0%, transparent 55%);
            animation: heroGlow 10s ease-in-out infinite;
        }
        @keyframes heroGlow {
            0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
            50% { opacity: 1; transform: scale(1.15) rotate(2deg); }
        }
        .hero-content { position: relative; z-index: 1; }

        .bismillah {
            font-family: var(--font-arabic);
            font-size: calc(2rem * var(--font-scale));
            color: var(--gold-mid); margin-bottom: 1.2rem;
            text-shadow: 0 0 24px rgba(201, 168, 76, 0.12);
            line-height: 2.4; letter-spacing: 1px;
        }

        .hero-ornament {
            display: flex; align-items: center; justify-content: center; gap: 14px;
            margin: 0.8rem 0; color: var(--emerald-light); font-size: 0.7rem; opacity: 0.55;
        }
        .hero-ornament .line {
            width: 60px; height: 1px;
            background: linear-gradient(to right, transparent, rgba(46, 196, 122, 0.5));
        }
        .hero-ornament .line:last-child {
            background: linear-gradient(to left, transparent, rgba(46, 196, 122, 0.5));
        }

        h1 {
            font-family: var(--font-title); font-size: 1.7rem; font-weight: 800;
            letter-spacing: 4px; text-transform: none; line-height: 1.3;
            margin-bottom: 0.5rem;
        }

        .subtitle {
            font-family: var(--font-title); font-size: 0.72rem; letter-spacing: 3px;
            color: var(--text-muted); text-transform: none;
            margin-bottom: 1.5rem;
        }

        .intro-text {
            font-family: var(--font-text); font-size: 0.92rem;
            color: var(--text-muted); line-height: 1.9;
            max-width: 480px; margin: 0 auto 1.5rem;
            font-style: italic;
        }

        .stats-row {
            display: flex; justify-content: center; gap: 2rem;
            margin: 1.8rem 0;
        }
        .stat-item { text-align: center; }
        .stat-number {
            font-family: var(--font-title); font-size: 1.5rem;
            color: var(--emerald-light); font-weight: 700;
            letter-spacing: 0.5px;
        }
        .stat-label {
            font-family: var(--font-title); font-size: 0.62rem;
            letter-spacing: 2px; text-transform: none;
            color: var(--text-subtle); margin-top: 4px;
        }

        /* Reading Progress Ring */
        .stat-progress {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .stat-progress svg {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) rotate(-90deg);
            width: 52px; height: 52px;
        }
        .stat-progress .progress-ring-bg {
            fill: none;
            stroke: rgba(46, 196, 122, 0.1);
            stroke-width: 3;
        }
        .stat-progress .progress-ring-fill {
            fill: none;
            stroke: var(--emerald-light);
            stroke-width: 3;
            stroke-linecap: round;
            stroke-dasharray: 138.23;
            stroke-dashoffset: 138.23;
            transition: stroke-dashoffset 1s ease;
        }

        /* ============================================ */
        /* ===== STREAK BANNER ===== */
        /* ============================================ */
        .streak-banner {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.08);
            border-radius: var(--radius-lg);
            padding: 10px 18px; margin: 0 0 1.2rem;
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 1.5px; text-transform: none;
            color: var(--text-subtle);
            backdrop-filter: blur(8px);
        }
        .streak-fire { font-size: 1.1rem; }
        .streak-count { color: var(--emerald-light); font-size: 1rem; font-weight: 700; }

        /* ============================================ */
        /* ===== DAILY DUA BANNER ===== */
        /* ============================================ */
        .daily-dua-banner {
            background: var(--bg-glass);
            border: 1px solid rgba(201, 168, 76, 0.1);
            border-radius: var(--radius-lg);
            padding: 1.2rem 1rem; margin: 1rem 0 1.8rem;
            text-align: center; position: relative; overflow: hidden;
            cursor: pointer;
            transition: all 0.4s var(--transition-smooth);
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow-soft);
        }
        .daily-dua-banner:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-card);
            border-color: rgba(201, 168, 76, 0.2);
        }
        .daily-dua-banner::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
        }
        .daily-label {
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 2.5px; text-transform: none;
            color: rgba(201, 168, 76, 0.8); margin-bottom: 0.5rem;
        }
        .daily-label .sparkle { margin: 0 6px; }
        .daily-arabic {
            font-family: var(--font-arabic);
            font-size: calc(1.45rem * var(--font-scale));
            color: var(--gold-light); direction: rtl;
            line-height: 2.3; margin: 0.5rem 0;
        }
        .daily-translation {
            font-family: var(--font-text); font-size: 0.95rem;
            color: var(--text-muted); font-style: italic;
            line-height: 1.7; margin-top: 4px;
        }
        .daily-share-btn {
            display: inline-block; margin-top: 12px;
            font-family: var(--font-title); font-size: 0.68rem;
            letter-spacing: 1.5px; text-transform: none;
            padding: 6px 18px; border-radius: 20px;
            border: 1px solid rgba(201, 168, 76, 0.35);
            background: rgba(201, 168, 76, 0.12);
            color: var(--gold-light); cursor: pointer;
            transition: all 0.3s;
        }
        .daily-share-btn:hover { background: rgba(201, 168, 76, 0.18); border-color: rgba(201, 168, 76, 0.45); }

        /* ============================================ */
        /* ===== SEARCH BAR ===== */
        /* ============================================ */
        .search-container { position: relative; margin: 1rem 0 1.4rem; }
        .search-input {
            width: 100%; padding: 14px 18px 14px 46px;
            background: var(--bg-glass);
            border: 1px solid rgba(46, 196, 122, 0.1);
            border-radius: var(--radius-xl);
            color: var(--gold-light); font-family: var(--font-text);
            font-size: 0.9rem; outline: none;
            transition: all 0.4s var(--transition-smooth);
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow-soft);
        }
        .search-input::placeholder { color: var(--text-subtle); }
        .search-input:focus {
            border-color: rgba(46, 196, 122, 0.3);
            box-shadow: 0 0 0 3px rgba(46, 196, 122, 0.06), var(--shadow-card);
            background: rgba(22, 40, 30, 0.7);
        }
        .search-icon {
            position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
            color: var(--text-subtle); font-size: 1rem;
        }
        .search-clear {
            position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
            background: none; border: none; color: var(--text-subtle);
            cursor: pointer; font-size: 1rem; display: none;
            transition: color 0.25s;
        }
        .search-clear.visible { display: block; }
        .search-clear:hover { color: var(--emerald-light); }

        /* ============================================ */
        /* ===== TOOLBAR ROW ===== */
        /* ============================================ */
        .toolbar-row {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 12px; gap: 8px; flex-wrap: wrap;
        }
        .toolbar-btn {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 7px 14px; border-radius: 50px;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.08);
            color: var(--text-subtle);
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 1.5px; text-transform: none;
            cursor: pointer; transition: all 0.3s var(--transition-smooth); white-space: nowrap;
        }
        .toolbar-btn:hover, .toolbar-btn.active {
            background: rgba(46, 196, 122, 0.1);
            border-color: rgba(46, 196, 122, 0.25); color: var(--emerald-light);
        }
        .toolbar-btn:active { transform: scale(0.95); }

        /* ============================================ */
        /* ===== CATEGORY PILLS ===== */
        /* ============================================ */
        .category-pills {
            display: flex; gap: 8px; overflow-x: auto;
            padding: 4px 0 14px; margin-bottom: 0.8rem;
            -ms-overflow-style: none; scrollbar-width: none;
        }
        .category-pills::-webkit-scrollbar { display: none; }
        .pill {
            flex-shrink: 0; padding: 10px 20px; border-radius: 50px;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.08);
            color: var(--text-subtle);
            font-family: var(--font-title); font-size: 0.72rem;
            letter-spacing: 1.5px; text-transform: none;
            cursor: pointer; transition: all 0.35s var(--transition-smooth); white-space: nowrap;
        }
        .pill:hover {
            background: rgba(46, 196, 122, 0.08);
            border-color: rgba(46, 196, 122, 0.2); color: var(--text-primary);
        }
        .pill:active { transform: scale(0.97); }
        .pill.active {
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.12), rgba(46, 196, 122, 0.06));
            border-color: rgba(46, 196, 122, 0.3); color: var(--emerald-light);
            box-shadow: 0 0 16px rgba(46, 196, 122, 0.08);
        }
        .pill .count {
            display: inline-block; margin-left: 6px;
            background: rgba(46, 196, 122, 0.1);
            padding: 1px 7px; border-radius: 10px; font-size: 0.6rem;
        }
        .pill.pill-unread {
            background: transparent;
            border: 1.5px dashed rgba(46, 196, 122, 0.35);
            color: var(--emerald-light);
        }
        .pill.pill-unread:hover {
            background: rgba(46, 196, 122, 0.06);
            border-color: rgba(46, 196, 122, 0.5);
        }
        .pill.pill-unread.active {
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.15), rgba(46, 196, 122, 0.08));
            border-color: rgba(46, 196, 122, 0.5); border-style: solid;
        }

        /* ============================================ */
        /* ===== CATEGORY GRID (Visual Card Layout) === */
        /* ============================================ */
        .category-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            padding: 4px 0 10px;
            transition: opacity 0.3s ease;
        }
        .category-grid.hidden-grid { display: none; }

        .cat-card,
        .dua-category-card {
            position: relative;
            border-radius: 18px;
            overflow: hidden;
            cursor: pointer;
            min-height: 130px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 18px 16px;
            transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            border-left: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow:
                0 2px 8px rgba(0, 0, 0, 0.2),
                0 8px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            -webkit-tap-highlight-color: transparent;
            transform: perspective(800px) rotateX(0) rotateY(0);
            will-change: transform;
        }
        .cat-card:hover {
            transform: perspective(800px) translateY(-4px) scale(1.02);
            box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
        }
        .cat-card:active {
            transform: perspective(800px) scale(0.97);
            transition-duration: 0.12s;
        }
        .cat-card.featured {
            grid-column: 1 / -1;
            min-height: 150px;
        }

        /* Decorative pseudo-elements */
        .cat-card::before {
            content: '';
            position: absolute;
            top: -30%; right: -20%;
            width: 160px; height: 160px;
            background: rgba(255,255,255,0.08);
            border-radius: 50%;
            pointer-events: none;
        }
        .cat-card::after {
            content: '';
            position: absolute;
            bottom: -40%; left: -15%;
            width: 120px; height: 120px;
            background: rgba(255,255,255,0.05);
            border-radius: 50%;
            pointer-events: none;
        }

        .cat-card-icon,
        .dua-category-card .category-icon-circle {
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.85rem;
            height: 2.85rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .cat-card-icon svg,
        .dua-category-card .category-icon-circle svg,
        .dua-category-card .category-icon-circle i {
            width: 1.58rem;
            height: 1.58rem;
            display: block;
            color: #fff;
            opacity: 1;
            stroke: rgba(255, 255, 255, 1);
            stroke-width: 1.85;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            vector-effect: non-scaling-stroke;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
        }

        .cat-card.featured .cat-card-icon {
            width: 3.15rem;
            height: 3.15rem;
            border-radius: 16px;
        }

        .cat-card.featured .cat-card-icon svg {
            width: 1.76rem;
            height: 1.76rem;
        }

        .cat-card-name {
            font-family: var(--font-title);
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 6px rgba(0,0,0,0.3);
            line-height: 1.3;
            position: relative; z-index: 1;
        }
        .cat-card.featured .cat-card-name { font-size: 1.1rem; }

        .cat-card-count {
            font-family: var(--font-title);
            font-size: 0.62rem;
            color: rgba(255,255,255,0.75);
            letter-spacing: 1.5px;
            text-transform: none;
            margin-top: 3px;
        }

        /* Decorative wave/arc overlay */
        .cat-card-wave {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            pointer-events: none;
            overflow: hidden;
        }
        .cat-card-wave::before {
            content: '';
            position: absolute;
            top: -50%; right: -30%;
            width: 200%; height: 200%;
            background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
        }

        /* Individual card gradients */
        .cat-card[data-cat="all"] {
            background: linear-gradient(135deg, #2a6b4a 0%, #1a5035 50%, #0f3822 100%);
        }
        .cat-card[data-cat="quran"] {
            background: linear-gradient(135deg, #2a4a7a 0%, #1a355d 50%, #0f2240 100%);
        }
        .cat-card[data-cat="morning-evening"] {
            background: linear-gradient(135deg, #c47a3a 0%, #8b5225 50%, #6b3d1a 100%);
        }
        .cat-card[data-cat="protection"] {
            background: linear-gradient(135deg, #3a7aaa 0%, #2a5a85 50%, #1a3f65 100%);
        }
        .cat-card[data-cat="forgiveness"] {
            background: linear-gradient(135deg, #7a5aaa 0%, #5a3f85 50%, #3f2a65 100%);
        }
        .cat-card[data-cat="guidance"] {
            background: linear-gradient(135deg, #8a7a3a 0%, #6b5d25 50%, #4a401a 100%);
        }
        .cat-card[data-cat="wellbeing"] {
            background: linear-gradient(135deg, #3a8a7a 0%, #2a6b5d 50%, #1a4a40 100%);
        }
        .cat-card[data-cat="prophets"] {
            background: linear-gradient(135deg, #8a6a3a 0%, #6b5025 50%, #4a381a 100%);
        }
        .cat-card[data-cat="prayer"] {
            background: linear-gradient(135deg, #3a7a5a 0%, #2a5d40 50%, #1a402a 100%);
        }
        .cat-card[data-cat="provision"] {
            background: linear-gradient(135deg, #7a6a4a 0%, #5d5035 50%, #403822 100%);
        }
        .cat-card[data-cat="family"] {
            background: linear-gradient(135deg, #8a4a6a 0%, #6b3550 50%, #4a2238 100%);
        }
        .cat-card[data-cat="travel"] {
            background: linear-gradient(135deg, #5a7a7a 0%, #3f5d5d 50%, #2a4040 100%);
        }
        .cat-card[data-cat="scholars"] {
            background: linear-gradient(135deg, #8a6aaa 0%, #6b4f88 50%, #4f3868 100%);
        }
        .cat-card[data-cat="ramadan"] {
            background: linear-gradient(135deg, #3aaa8a 0%, #2a856b 50%, #1a654a 100%);
        }
        .cat-card[data-cat="evil-eye"] {
            background: linear-gradient(135deg, #7a5a8a 0%, #5d3f6b 50%, #402a4a 100%);
        }

        /* ===== FAVORITES TILE ===== */
        .cat-card[data-cat="favorites"] {
            background: linear-gradient(135deg, #7a5510 0%, #a07820 35%, #d4a847 65%, #8b6220 100%);
            border-top-color: rgba(212, 168, 71, 0.35);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15),
                        0 0 0 1px rgba(212,168,71,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
        }
        .cat-card.cat-favorites-empty .cat-card-count {
            font-style: italic;
            opacity: 0.75;
        }
        .back-to-grid {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            border-radius: 50px;
            background: rgba(10, 28, 20, 0.85);
            border: 1px solid rgba(46, 196, 122, 0.25);
            color: var(--emerald-light);
            font-family: var(--font-title);
            font-size: 0.78rem;
            letter-spacing: 0.4px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            margin: 0 0 14px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow: 0 2px 12px rgba(0,0,0,0.22);
        }
        .back-to-grid:hover {
            background: rgba(10, 28, 20, 0.95);
            border-color: rgba(46, 196, 122, 0.4);
        }
        .back-to-grid.visible { display: inline-flex; }

        /* Dua list section (when grid is showing, this hides) */
        .dua-list-section { transition: opacity 0.25s ease; }
        .dua-list-section.hidden-list { display: none; }

        /* Category detail header */
        .category-detail-header {
            display: none;
            text-align: center;
            padding: 16px 0 12px;
        }
        .category-detail-header.visible { display: block; }
        .category-detail-header .cdh-icon { font-size: 2.2rem; margin-bottom: 4px; }
        .category-detail-header .cdh-title {
            font-family: var(--font-title);
            font-size: 1.02rem;
            letter-spacing: 0.35px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .category-detail-header .cdh-subtitle {
            font-size: 0.78rem;
            color: var(--text-subtle);
            margin-top: 2px;
        }

        /* Light mode adjustments for category grid */
        [data-theme="light"] .cat-card,
        [data-theme="light"] .dua-category-card {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
        }
        [data-theme="light"] .cat-card:hover {
            box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
        }
        [data-theme="light"] .cat-card-name {
            color: #fff;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
        }
        [data-theme="light"] .cat-card-count {
            color: rgba(255, 255, 255, 0.82);
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
        }
        [data-theme="light"] .cat-card-icon,
        [data-theme="light"] .dua-category-card .category-icon-circle,
        [data-theme="light"] .cat-card-icon svg,
        [data-theme="light"] .dua-category-card .category-icon-circle svg,
        [data-theme="light"] .dua-category-card .category-icon-circle i {
            color: #fff;
            stroke: rgba(255, 255, 255, 1);
        }
        [data-theme="light"] .back-to-grid {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(13, 123, 80, 0.2);
            color: #0d7b50;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        /* ============================================ */
        /* ===== MEMORIZE PROMO CARD ===== */
        .memorize-promo-card {
            position: relative;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(46, 196, 122, 0.04));
            border: 1.5px solid rgba(212, 175, 55, 0.35);
            border-radius: var(--radius-lg);
            padding: 22px 20px 20px;
            margin-bottom: 20px;
            text-align: center;
        }
        .memorize-promo-card.dismissed { display: none; }
        .memorize-promo-dismiss {
            position: absolute; top: 10px; right: 12px;
            background: none; border: none; cursor: pointer;
            color: var(--text-subtle); font-size: 1rem; line-height: 1;
            padding: 4px 6px; border-radius: 4px;
            opacity: 0.6; transition: opacity 0.2s;
        }
        .memorize-promo-dismiss:hover { opacity: 1; }
        .memorize-promo-icon { font-size: 2rem; margin-bottom: 8px; }
        .memorize-promo-title {
            font-family: var(--font-title); font-size: 0.9rem;
            color: var(--text-primary); letter-spacing: 1px;
            margin: 0 0 8px; text-transform: uppercase;
        }
        .memorize-promo-desc {
            font-size: 0.78rem; color: var(--text-subtle);
            line-height: 1.5; margin: 0 0 14px;
        }
        .memorize-promo-btn {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
            border: 1px solid rgba(212, 175, 55, 0.4);
            color: #d4af37; border-radius: 50px;
            padding: 9px 24px; font-size: 0.78rem;
            font-family: var(--font-title); letter-spacing: 1px;
            cursor: pointer; transition: all 0.25s ease;
        }
        .memorize-promo-btn:hover {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
            border-color: rgba(212, 175, 55, 0.6);
        }

        /* ===== DUA CARDS ===== */
        /* ============================================ */
        .dua-card {
            background: var(--bg-card);
            border: 1px solid rgba(46, 196, 122, 0.07);
            border-radius: var(--radius-lg);
            margin-bottom: 20px; overflow: hidden;
            transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            box-shadow: var(--shadow-soft);
        }
        .dua-card.hidden-card { display: none; }
        .dua-card.read-card { border-left: 3px solid rgba(46, 196, 122, 0.4); }
        .dua-card.read-card .dua-number {
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.2), rgba(46, 196, 122, 0.08));
            border-color: rgba(46, 196, 122, 0.35);
        }
        .dua-card.read-card .dua-number::after {
            content: '✓';
            position: absolute;
            bottom: -4px; right: -4px;
            width: 15px; height: 15px;
            background: var(--emerald-light);
            color: var(--bg-dark);
            border-radius: 50%;
            font-size: 0.45rem; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.25);
            line-height: 1;
        }
        .dua-card.read-card .action-btn[onclick*="markRead"] {
            background: rgba(46, 196, 122, 0.12);
            border-color: rgba(46, 196, 122, 0.25);
            color: var(--emerald-light);
            pointer-events: none;
        }

        .dua-card:hover {
            border-color: rgba(46, 196, 122, 0.15);
            box-shadow: var(--shadow-card);
            transform: translateY(-1px);
        }

        .dua-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(46, 196, 122, 0.15), transparent);
        }

        .dua-card:focus-within {
            border-color: rgba(46, 196, 122, 0.25);
            box-shadow: 0 0 0 2px rgba(46, 196, 122, 0.08), var(--shadow-card);
        }

        /* ===== AUTHENTICATION BADGE ===== */
        .auth-badge {
            display: inline-block; font-family: var(--font-title);
            font-size: 0.55rem; font-weight: 700;
            padding: 3px 10px; border-radius: 50px;
            letter-spacing: 0.8px; text-transform: none;
            vertical-align: middle; margin-left: 6px;
        }
        .badge-quran { background: rgba(74,26,122,0.12); color: #ce93d8; border: 1px solid rgba(74,26,122,0.25); }
        .badge-sahih { background: rgba(46,196,122,0.1); color: #8fffc2; border: 1px solid rgba(46,196,122,0.2); }
        .badge-hasan { background: rgba(201,168,76,0.12); color: var(--gold-mid); border: 1px solid rgba(201,168,76,0.25); }
        .badge-jayyid { background: rgba(27,107,109,0.12); color: #80deea; border: 1px solid rgba(27,107,109,0.25); }
        .badge-sirah { background: rgba(122,46,59,0.12); color: #ef9a9a; border: 1px solid rgba(122,46,59,0.25); }

        /* Card Header */
        .card-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px 18px 14px; cursor: pointer; user-select: none;
        }
        .card-header-left { display: flex; align-items: center; gap: 12px; flex: 1; }

        .dua-number {
            width: 34px; height: 34px;
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.1), rgba(46, 196, 122, 0.03));
            border: 1px solid rgba(46, 196, 122, 0.15);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-family: var(--font-title); font-size: 0.7rem; font-weight: 700;
            color: var(--emerald-light); flex-shrink: 0;
            position: relative;
            transition: all 0.3s var(--transition-smooth);
        }

        /* Read checkmark on dua number */
        .dua-card.read-card .dua-number {
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.2), rgba(46, 196, 122, 0.08));
            border-color: rgba(46, 196, 122, 0.35);
        }
        .dua-card.read-card .dua-number::after {
            content: '✓';
            position: absolute;
            bottom: -4px; right: -4px;
            width: 15px; height: 15px;
            background: var(--emerald-light);
            color: var(--bg-dark);
            border-radius: 50%;
            font-size: 0.45rem; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.25);
            line-height: 1;
        }

        /* Mark Read button state on reload */
        .dua-card.read-card .action-btn[onclick*="markRead"] {
            background: rgba(46, 196, 122, 0.12);
            border-color: rgba(46, 196, 122, 0.25);
            color: var(--emerald-light);
            pointer-events: none;
        }

        .card-title-group { flex: 1; min-width: 0; }
        .dua-title {
            font-family: var(--font-title); font-size: calc(0.82rem * var(--font-scale));
            letter-spacing: 1.5px; text-transform: none;
            color: var(--gold-lightest); font-weight: 600; line-height: 1.5;
        }
        .dua-category-tag {
            font-family: var(--font-title); font-size: 0.6rem;
            letter-spacing: 1.2px; text-transform: none;
            color: var(--text-subtle); margin-top: 3px;
        }


        .card-actions { display: flex; gap: 3px; align-items: center; }
        .card-action-btn {
            background: none; border: none;
            color: var(--text-subtle);
            width: 40px; height: 40px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.3s var(--transition-smooth);
            font-size: 0.85rem; position: relative;
        }
        .card-action-btn:hover {
            color: var(--emerald-light);
            background: rgba(46, 196, 122, 0.08);
        }
        .card-action-btn.bookmarked { color: var(--gold-mid); }

        .expand-icon {
            transition: transform 0.35s var(--transition-smooth);
            color: var(--text-subtle); font-size: 0.75rem;
        }
        .dua-card.expanded .expand-icon { transform: rotate(180deg); }

        .card-body-inner { padding: 0 18px 20px; }

        /* Ornamental divider */
        .ornament-divider {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            margin: 6px 0 14px; opacity: 0.4;
        }
        .ornament-divider .line {
            flex: 1; height: 1px; max-width: 50px;
            background: linear-gradient(to right, transparent, var(--emerald-light));
        }
        .ornament-divider .line:last-child {
            background: linear-gradient(to left, transparent, var(--emerald-light));
        }
        .ornament-divider .diamond {
            width: 4px; height: 4px; background: var(--emerald-light);
            transform: rotate(45deg); border-radius: 1px;
        }

        /* Arabic Text */
        .arabic-container {
            background: var(--bg-surface);
            border: 1px solid rgba(46, 196, 122, 0.08);
            border-radius: var(--radius-md);
            padding: 26px 22px; margin-bottom: 14px;
            position: relative; overflow: hidden;
        }
        .arabic-container::before {
            content: '\275D'; position: absolute; top: 10px; right: 14px;
            font-size: 1.8rem; color: rgba(46, 196, 122, 0.05);
            font-family: serif; line-height: 1;
        }

        .arabic-text {
            font-family: var(--font-arabic);
            font-size: calc(1.6rem * var(--font-scale));
            line-height: 2.8; text-align: right; direction: rtl;
            color: var(--gold-lightest); font-weight: 600; word-spacing: 5px;
            text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
        }

        /* Word Popup — Tappable Arabic Words */
        .arabic-word {
            cursor: pointer; position: relative;
            border-radius: 4px; padding: 0 2px;
            transition: background 0.2s ease, color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .arabic-word:hover { background: rgba(46, 196, 122, 0.08); }
        .arabic-word.active-word { background: rgba(46, 196, 122, 0.15); color: var(--emerald-light); }

        .word-popup {
            position: fixed; z-index: 5000;
            background: var(--bg-surface);
            border: 1px solid rgba(46, 196, 122, 0.2);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            min-width: 200px; max-width: 300px;
            box-shadow: var(--shadow-elevated);
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; transform: translateY(8px) scale(0.95);
            transition: opacity 0.25s ease, transform 0.25s var(--transition-spring);
            pointer-events: none;
            text-align: center;
        }
        .word-popup.visible {
            opacity: 1; transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .word-popup-arabic {
            font-family: var(--font-arabic);
            font-size: calc(2rem * var(--font-scale));
            color: var(--gold-lightest); font-weight: 600;
            line-height: 1.6; margin-bottom: 8px;
            direction: rtl;
        }
        .word-popup-root {
            font-family: var(--font-arabic);
            font-size: 1rem; color: var(--emerald-light);
            margin-bottom: 6px; direction: rtl;
            letter-spacing: 4px;
        }
        .word-popup-root-label {
            font-family: var(--font-title);
            font-size: 0.55rem; letter-spacing: 1.5px;
            text-transform: none; color: var(--text-faint);
            margin-bottom: 2px;
        }
        .word-popup-meaning {
            font-family: var(--font-text);
            font-size: 0.82rem; color: var(--text-muted);
            line-height: 1.5;
        }
        .word-popup-divider {
            width: 30px; height: 1px; margin: 8px auto;
            background: rgba(46, 196, 122, 0.2);
        }
        .word-popup-arrow {
            position: absolute; left: 50%;
            width: 12px; height: 12px; background: var(--bg-surface);
            border: 1px solid rgba(46, 196, 122, 0.2);
            border-top: none; border-left: none;
        }
        .word-popup-arrow.arrow-bottom {
            bottom: -7px;
            transform: translateX(-50%) rotate(45deg);
        }
        .word-popup-arrow.arrow-top {
            top: -7px;
            transform: translateX(-50%) rotate(-135deg);
        }
        [data-theme="light"] .word-popup { background: rgba(255, 255, 255, 0.97); border-color: rgba(13, 123, 80, 0.15); }
        [data-theme="light"] .word-popup-arabic { color: #1a1a0e; }
        [data-theme="light"] .word-popup-arrow { background: rgba(255, 255, 255, 0.97); border-color: rgba(13, 123, 80, 0.15); }
        [data-theme="light"] .arabic-word:hover { background: rgba(13, 123, 80, 0.06); }
        [data-theme="light"] .arabic-word.active-word { background: rgba(13, 123, 80, 0.12); color: #0d7b50; }
        [data-theme="light"] .arabic-container {
            background: var(--bg-surface);
            border-color: rgba(13, 123, 80, 0.12);
        }
        [data-theme="light"] .translation { color: rgba(31, 43, 31, 0.92); }

        /* Transliteration */
        .transliteration {
            font-family: var(--font-amiri);
            font-size: calc(0.9rem * var(--font-scale));
            color: var(--text-muted); font-style: italic;
            line-height: 2.15; padding: 8px 0;
            border-bottom: 1px solid rgba(46, 196, 122, 0.05);
            margin-bottom: 8px;
        }
        [data-theme="light"] .transliteration { color: rgba(35, 62, 45, 0.86); }

        /* Translation */
        .translation {
            font-family: var(--font-text);
            font-size: calc(1.02rem * var(--font-scale));
            color: var(--text-primary);
            line-height: 2; padding: 8px 0;
        }

        /* Source/Reference */
        .reference {
            display: flex; align-items: center; gap: 8px;
            margin-top: 14px; padding-top: 12px;
            border-top: 1px solid rgba(46, 196, 122, 0.05);
        }
        .ref-icon { font-size: 0.75rem; color: var(--text-subtle); }
        .ref-text {
            font-family: var(--font-title); font-size: calc(0.56rem * var(--font-scale));
            letter-spacing: 0.4px;
            color: var(--text-subtle);
        }

        /* Virtue/Benefit Tag */
        .virtue-tag {
            display: inline-flex; align-items: center; gap: 6px;
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.08));
            border: 1px solid rgba(201, 168, 76, 0.22);
            border-radius: 50px; padding: 7px 14px; margin-top: 10px;
            font-family: var(--font-text); font-size: 0.75rem;
            color: rgba(244, 228, 172, 0.95); font-style: italic;
        }
        .virtue-tag .gem { font-size: 0.65rem; }
        [data-theme="light"] .virtue-tag {
            background: linear-gradient(135deg, rgba(154, 122, 47, 0.16), rgba(154, 122, 47, 0.09));
            border-color: rgba(154, 122, 47, 0.25);
            color: rgba(72, 52, 24, 0.92);
        }

        /* How-to box */
        .how-to-box {
            background: var(--bg-surface);
            border: 1px solid rgba(46, 196, 122, 0.06);
            border-radius: var(--radius-md);
            padding: 12px 14px; margin-top: 10px;
            font-family: var(--font-text); font-size: calc(0.85rem * var(--font-scale));
            color: var(--text-muted); line-height: 1.9;
        }
        .how-to-box strong { color: var(--emerald-light); }
        .how-to-box-ps { display: none; }
        .lang-ps .how-to-box:not(.how-to-box-ps) { display: none; }
        .lang-ps .how-to-box.how-to-box-ps { display: block; }

        /* Action Buttons Row */
        .copy-row {
            display: flex; gap: 6px; row-gap: 6px; margin-top: 12px; flex-wrap: wrap;
        }
        .action-btn {
            display: inline-flex; align-items: center; gap: 5px;
            padding: 9px 16px; border-radius: 50px;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.1);
            color: var(--text-subtle);
            font-family: var(--font-title); font-size: 0.62rem;
            letter-spacing: 1.2px; text-transform: none;
            cursor: pointer; transition: all 0.3s var(--transition-smooth); white-space: nowrap;
        }
        .action-btn:hover {
            background: rgba(46, 196, 122, 0.1);
            color: var(--emerald-light); border-color: rgba(46, 196, 122, 0.25);
            transform: translateY(-1px);
        }
        .action-btn:active { transform: scale(0.95); }
        .action-btn.copied, .action-btn.read {
            background: rgba(201, 168, 76, 0.08);
            border-color: rgba(201, 168, 76, 0.18);
            color: rgba(201, 168, 76, 0.85);
        }

        /* ============================================ */
        /* ===== SECTION DIVIDERS ===== */
        /* ============================================ */
        .section-header {
            text-align: center; margin: 2.5rem 0 1.2rem;
            position: relative;
        }
        .section-header .section-ornament {
            display: flex; align-items: center; justify-content: center; gap: 16px;
            margin-bottom: 8px;
        }
        .section-header .orn-line {
            width: 40px; height: 1px;
            background: linear-gradient(to right, transparent, rgba(46, 196, 122, 0.25));
        }
        .section-header .orn-line:last-child {
            background: linear-gradient(to left, transparent, rgba(46, 196, 122, 0.25));
        }
        .section-header .orn-center {
            font-size: 1.1rem; color: var(--emerald-light); opacity: 0.62;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .section-header .orn-center svg {
            width: 1rem;
            height: 1rem;
            stroke: currentColor;
            stroke-width: 1.7;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            vector-effect: non-scaling-stroke;
        }
        .section-title {
            font-family: var(--font-title); font-size: 0.92rem;
            letter-spacing: 0.5px;
            color: var(--emerald-light); font-weight: 700;
        }
        .section-subtitle {
            font-family: var(--font-text); font-size: 0.78rem;
            color: var(--text-muted); font-style: italic;
            margin-top: 4px;
        }

        /* ============================================ */
        /* ===== PANELS & OVERLAYS ===== */
        /* ============================================ */

        /* Etiquette Panel */
        .etiquette-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2000; overflow-y: auto;
            padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; visibility: hidden; transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .etiquette-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
        .panel-back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            padding: 0 9px;
            margin-top: 10px;
            margin-bottom: 2px;
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.2);
            background: rgba(46, 196, 122, 0.06);
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 0.62rem;
            letter-spacing: 0.35px;
            cursor: pointer;
            white-space: nowrap;
        }
        .panel-back-btn:hover,
        .panel-back-btn:focus-visible {
            background: rgba(46, 196, 122, 0.14);
            border-color: rgba(46, 196, 122, 0.32);
            outline: none;
        }
        .memorize-close {
            position: fixed;
            top: calc(var(--safe-top) + 16px);
            right: 16px;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2201;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
            padding: 8px 12px;
        }
        .memorize-close:hover,
        .memorize-close:focus-visible {
            color: rgba(255, 255, 255, 1);
            outline: none;
        }
        .memorize-close:active {
            color: rgba(255, 255, 255, 1);
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(255, 255, 255, 0.22);
        }
        [data-theme="light"] .memorize-close {
            color: rgba(25, 60, 42, 0.7);
            border-color: rgba(15, 80, 50, 0.2);
            background: rgba(255, 255, 255, 0.7);
        }
        [data-theme="light"] .memorize-close:hover,
        [data-theme="light"] .memorize-close:focus-visible {
            color: rgba(25, 60, 42, 0.95);
        }
        .etiquette-content {
            max-width: 500px; margin: 0 auto; padding-top: 20px;
        }
        .etiquette-content h2 {
            font-family: var(--font-title); font-size: 1rem;
            letter-spacing: 3px; text-transform: none;
            color: var(--emerald-light); text-align: center; margin-bottom: 1.5rem;
        }
        .etiquette-item {
            display: flex; gap: 12px; margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(46, 196, 122, 0.08);
        }
        .etiquette-num {
            width: 26px; height: 26px; border-radius: 50%;
            background: rgba(46, 196, 122, 0.08);
            border: 1px solid rgba(46, 196, 122, 0.15);
            display: flex; align-items: center; justify-content: center;
            font-family: var(--font-title); font-size: 0.6rem;
            color: var(--emerald-light); flex-shrink: 0;
        }
        .etiquette-text {
            font-family: var(--font-text); font-size: calc(0.88rem * var(--font-scale));
            color: rgba(230, 242, 218, 0.88); line-height: 1.8;
        }
        .etiquette-text strong { color: var(--gold-light); }
        .etiquette-text .ref {
            font-size: 0.7rem; color: rgba(46, 196, 122, 0.6);
            font-style: italic;
        }

        /* Routine Panel */
        .routine-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2000; overflow-y: auto;
            padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; visibility: hidden; transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .routine-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
        .routine-content {
            max-width: 500px; margin: 0 auto; padding-top: 20px;
        }
        .routine-content h2 {
            font-family: var(--font-title); font-size: 1rem;
            letter-spacing: 3px; text-transform: none;
            color: var(--emerald-light); text-align: center; margin-bottom: 1.5rem;
        }
        .routine-item {
            padding: 12px 0;
            border-bottom: 1px solid rgba(46, 196, 122, 0.08);
        }
        .routine-time {
            font-family: var(--font-title); font-size: 0.65rem;
            letter-spacing: 1.5px; text-transform: none;
            color: var(--emerald-light); margin-bottom: 4px;
        }
        .routine-desc {
            font-family: var(--font-text); font-size: 0.85rem;
            color: rgba(224, 238, 210, 0.75); line-height: 1.8;
        }
        .routine-desc .dua-ref {
            color: rgba(201, 168, 76, 0.6); font-size: 0.75rem;
            cursor: pointer; text-decoration: underline;
            text-decoration-color: rgba(201, 168, 76, 0.2);
        }
        .routine-desc .dua-ref:hover { color: var(--gold-mid); }

        /* About Panel */
        .about-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2000; overflow-y: auto;
            opacity: 0; visibility: hidden; transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .about-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
        .about-panel-content {
            max-width: 500px;
            margin: 0 auto;
            padding: calc(var(--safe-top) + 20px) 24px calc(var(--safe-bottom) + 80px);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 12px;
        }
        .about-panel-content h2 {
            font-size: 1.02rem;
            color: var(--text-primary);
            letter-spacing: 0.2px;
        }
        .about-panel-content p {
            max-width: 460px;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.65;
        }
        .about-meta {
            width: 100%;
            margin-top: 8px;
            border-radius: 14px;
            border: 1px solid rgba(46,196,122,0.1);
            background: var(--bg-surface);
            padding: 14px;
            display: grid;
            gap: 10px;
            font-size: 0.74rem;
            color: var(--text-primary);
        }
        .about-meta a {
            color: var(--emerald-light);
            text-decoration: none;
        }

        /* Prayer Panel */
        .prayer-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2000; overflow: hidden;
            padding: calc(var(--safe-top) + 6px) 12px calc(var(--safe-bottom) + 10px);
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; visibility: hidden; transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .prayer-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
        .prayer-panel-content {
            max-width: 500px; margin: 0 auto; padding-top: 0;
            height: 100%;
            display: flex;
            flex-direction: column;
            min-height: 0;
            position: relative;
            overflow: hidden;
        }
        .prayer-panel-content h2 {
            font-family: var(--font-title); font-size: 1rem;
            letter-spacing: 0.8px;
            color: var(--emerald-light); text-align: center; margin-bottom: 0.7rem;
        }
        .prayer-subtabs {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 8px;
            flex-shrink: 0;
        }
        .prayer-subtab-icon {
            display: inline-flex;
            width: 16px;
            height: 16px;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .prayer-subtab-label { white-space: nowrap; }
        .prayer-subtab {
            min-height: 32px;
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.2);
            background: rgba(46, 196, 122, 0.06);
            color: var(--text-subtle);
            font-family: var(--font-title);
            font-size: 0.6rem;
            letter-spacing: 0.4px;
            cursor: pointer;
            transition: all 0.25s var(--transition-smooth);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            line-height: 1;
        }
        .prayer-subtab.active {
            color: var(--gold-light);
            border-color: rgba(201, 168, 76, 0.45);
            background: rgba(201, 168, 76, 0.16);
            box-shadow: 0 0 14px rgba(201, 168, 76, 0.14);
        }
        .prayer-subtab-pane {
            display: none;
            flex: 1;
            min-height: 0;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .prayer-subtab-pane.active {
            display: flex;
            flex-direction: column;
            opacity: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            padding-bottom: calc(var(--safe-bottom) + 18px);
        }
        .prayer-tab-times,
        .prayer-tab-qibla,
        .prayer-tab-reminders {
            gap: 0.45rem;
        }
        .prayer-tab-times {
            padding-bottom: calc(var(--safe-bottom) + 26px);
        }
        .gps-location-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 12px 16px;
            margin-bottom: 10px;
            background: rgba(201, 168, 76, 0.07);
            border: 1px solid rgba(201, 168, 76, 0.35);
            border-radius: var(--radius-md);
            color: var(--accent-gold);
            font: 500 14px/1 'Inter', system-ui, sans-serif;
            cursor: pointer;
            transition: background var(--transition-fast), border-color var(--transition-fast);
            flex-shrink: 0;
        }
        .gps-location-btn:hover {
            background: rgba(201, 168, 76, 0.13);
            border-color: rgba(201, 168, 76, 0.55);
        }
        .gps-location-btn.gps-loading {
            color: var(--text-muted);
            border-color: rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.04);
            pointer-events: none;
        }
        .gps-location-btn.gps-loading svg {
            animation: gps-spin 1s linear infinite;
        }
        .gps-location-btn.gps-success {
            color: var(--accent-green);
            border-color: rgba(46, 204, 113, 0.4);
            background: rgba(46, 204, 113, 0.07);
        }
        .gps-location-btn.gps-error {
            color: var(--text-muted);
            border-color: rgba(255, 255, 255, 0.12);
            background: transparent;
        }
        @keyframes gps-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        [data-theme="light"] .gps-location-btn {
            color: var(--accent-gold);
            background: rgba(201, 168, 76, 0.08);
            border-color: rgba(201, 168, 76, 0.3);
        }
        [data-theme="light"] .gps-location-btn.gps-success {
            color: #16985A;
            border-color: rgba(22, 152, 90, 0.35);
            background: rgba(22, 152, 90, 0.08);
        }
        @keyframes tasbeeh-complete {
            0% { transform: scale(1); color: var(--text-primary); text-shadow: none; }
            50% { transform: scale(1.3); color: #C9A84C; text-shadow: 0 0 20px rgba(201, 168, 76, 0.5); }
            100% { transform: scale(1); color: var(--text-primary); text-shadow: none; }
        }
        .tasbeeh-complete-pulse {
            animation: tasbeeh-complete 0.6s ease-out;
        }

        /* ===== PRAYER-PERIOD AMBIENT THEMING ===== */
        :root {
            --ambient-tint: rgba(201, 168, 76, 0.04);
            --ambient-accent: #C9A84C;
        }
        [data-prayer-period="fajr"]    { --ambient-tint: rgba(30, 50, 80, 0.2);    --ambient-accent: #7BA7CC; }
        [data-prayer-period="morning"] { --ambient-tint: rgba(255, 220, 150, 0.08); --ambient-accent: #D4A84B; }
        [data-prayer-period="dhuhr"]   { --ambient-tint: rgba(255, 245, 220, 0.06); --ambient-accent: #E8C547; }
        [data-prayer-period="asr"]     { --ambient-tint: rgba(200, 150, 50, 0.1);   --ambient-accent: #C9A84C; }
        [data-prayer-period="maghrib"] { --ambient-tint: rgba(180, 80, 40, 0.12);   --ambient-accent: #D4764B; }
        [data-prayer-period="isha"]    { --ambient-tint: rgba(10, 15, 40, 0.3);     --ambient-accent: #6B7FBF; }

        /* Light mode period variants */
        [data-theme="light"][data-prayer-period="fajr"]    { --ambient-tint: rgba(30, 50, 80, 0.07);    --ambient-accent: #4A7BAA; }
        [data-theme="light"][data-prayer-period="morning"] { --ambient-tint: rgba(255, 200, 100, 0.1);  --ambient-accent: #8A6800; }
        [data-theme="light"][data-prayer-period="dhuhr"]   { --ambient-tint: rgba(255, 240, 180, 0.12); --ambient-accent: #7A6200; }
        [data-theme="light"][data-prayer-period="asr"]     { --ambient-tint: rgba(180, 120, 30, 0.08);  --ambient-accent: #7A5800; }
        [data-theme="light"][data-prayer-period="maghrib"] { --ambient-tint: rgba(160, 60, 20, 0.09);   --ambient-accent: #A04A20; }
        [data-theme="light"][data-prayer-period="isha"]    { --ambient-tint: rgba(10, 15, 40, 0.06);    --ambient-accent: #3A4F9A; }

        /* Ambient gradient on home screen top */
        .home-dashboard {
            position: relative;
            isolation: isolate;
        }
        .home-ambient-overlay {
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 340px;
            background: linear-gradient(to bottom, var(--ambient-tint), transparent);
            pointer-events: none;
            z-index: -1;
            transition: background 1.5s ease;
            border-radius: 0;
        }

        /* Ambient accent on countdown */
        #dashboardPrayerCountdown {
            color: var(--ambient-accent);
            transition: color 1.5s ease;
        }

        /* Greeting fade-in animation */
        @keyframes greetingFadeIn {
            from { opacity: 0; transform: translateY(-6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .dashboard-greeting-enter {
            animation: greetingFadeIn 0.5s ease forwards;
        }

        /* ===== SURAH INFO CARD ===== */
        .surah-info-card {
            text-align: center;
            padding: 28px 20px 20px;
            margin-bottom: 4px;
        }
        .surah-info-name {
            font-family: var(--arabic-font);
            font-size: 2.4rem;
            font-weight: 400;
            color: var(--text-primary);
            line-height: 1.4;
            margin: 0 0 8px;
            direction: rtl;
        }
        .surah-info-english {
            font-size: 0.92rem;
            color: var(--text-muted);
            margin: 0 0 14px;
            letter-spacing: 0.2px;
        }
        .surah-info-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: 18px;
        }
        .surah-info-badge {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            padding: 5px 12px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-secondary);
        }
        .surah-info-badge--makki {
            background: rgba(201, 168, 76, 0.12);
            border-color: rgba(201, 168, 76, 0.3);
            color: #D4A84B;
        }
        .surah-info-badge--madani {
            background: rgba(46, 196, 113, 0.1);
            border-color: rgba(46, 196, 113, 0.28);
            color: #2DC87A;
        }
        .surah-info-divider {
            color: var(--text-subtle);
            font-size: 0.75rem;
            letter-spacing: 4px;
            opacity: 0.5;
        }
        [data-theme="light"] .surah-info-badge {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
            color: var(--text-secondary);
        }
        [data-theme="light"] .surah-info-badge--makki { background: rgba(150, 100, 20, 0.1); border-color: rgba(150, 100, 20, 0.25); color: #7A5500; }
        [data-theme="light"] .surah-info-badge--madani { background: rgba(30, 140, 80, 0.1); border-color: rgba(30, 140, 80, 0.25); color: #156040; }

        /* ===== ONBOARDING ICON ===== */
        .onboarding-icon {
            font-size: 3rem;
            text-align: center;
            margin-bottom: 12px;
            line-height: 1;
        }

        .prayer-location-bar {
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 8px; padding: 6px;
            background: rgba(46, 196, 122, 0.14);
            border: 1px solid rgba(46, 196, 122, 0.28);
            border-radius: var(--radius-md);
            position: relative;
            flex-shrink: 0;
        }
        .loc-selector {
            flex: 1;
            position: relative;
            min-width: 0;
        }

        .selected-city-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 36px;
            padding: 6px 9px;
            border-radius: 12px;
            border: 1px solid rgba(46, 196, 122, 0.16);
            background: rgba(12, 26, 19, 0.34);
            margin-bottom: 6px;
        }

        .selected-city-pin {
            font-size: 0.96rem;
            filter: drop-shadow(0 0 6px rgba(46, 196, 122, 0.35));
        }

        .selected-city-text {
            flex: 1;
            font-family: var(--font-title);
            font-size: 0.78rem;
            color: var(--gold-light);
            letter-spacing: 0.4px;
        }

        .selected-city-change {
            border: 1px solid rgba(46, 196, 122, 0.28);
            background: rgba(46, 196, 122, 0.1);
            color: var(--emerald-light);
            border-radius: 999px;
            min-height: 32px;
            padding: 0 12px;
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 0.5px;
            cursor: pointer;
        }

        .city-search-shell {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 44px;
            border-radius: 14px;
            border: 1px solid rgba(46, 196, 122, 0.2);
            background: var(--bg-surface);
            padding: 0 12px;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }

        .city-search-shell:focus-within {
            border-color: rgba(46, 196, 122, 0.42);
            box-shadow: 0 0 0 3px rgba(46, 196, 122, 0.12);
        }

        .city-search-icon {
            font-size: 1rem;
            opacity: 0.9;
        }

        .city-search-input {
            width: 100%;
            border: 0;
            background: transparent;
            color: var(--text-primary);
            padding: 10px 0;
            font-family: var(--font-text);
            font-size: 0.96rem;
        }

        .city-search-input:focus {
            outline: none;
        }

        .city-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--bg-dark);
            border: 1px solid rgba(46, 196, 122, 0.2);
            border-radius: 14px;
            box-shadow: var(--shadow-card);
            max-height: 0;
            opacity: 0;
            transform: translateY(-10px);
            overflow: hidden;
            pointer-events: none;
            transition: max-height 200ms ease, opacity 200ms ease, transform 200ms ease;
            z-index: 20;
        }

        .city-dropdown.open {
            max-height: 420px;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
            overflow-y: auto;
            scroll-behavior: smooth;
        }

        .city-country-head {
            position: sticky;
            top: 0;
            padding: 8px 12px;
            font-family: var(--font-title);
            font-size: 0.64rem;
            letter-spacing: 0.6px;
            color: var(--emerald-light);
            background: rgba(20, 42, 30, 0.95);
            border-bottom: 1px solid rgba(46, 196, 122, 0.14);
            z-index: 1;
        }

        .city-option {
            width: 100%;
            border: 0;
            background: transparent;
            color: var(--text-primary);
            text-align: left;
            padding: 12px;
            cursor: pointer;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
            transition: background 0.2s ease;
            min-height: 56px;
        }

        .city-option:hover,
        .city-option:focus {
            background: rgba(46, 196, 122, 0.12);
            outline: none;
        }

        .city-option.gps-option {
            align-items: center;
            font-family: var(--font-title);
            font-size: 0.78rem;
            letter-spacing: 0.6px;
            color: var(--emerald-light);
            border-bottom: 1px solid rgba(46, 196, 122, 0.14);
            background: rgba(46, 196, 122, 0.06);
        }

        .city-name {
            font-family: var(--font-text);
            font-size: 0.92rem;
            color: var(--text-primary);
        }

        .city-subline {
            display: block;
            margin-top: 2px;
            font-size: 0.72rem;
            color: var(--text-subtle);
            opacity: 0.9;
        }

        .city-match {
            color: var(--gold-mid);
            text-shadow: 0 0 10px rgba(201, 168, 76, 0.22);
            font-weight: 600;
        }

        .city-coords {
            font-family: var(--font-title);
            font-size: 0.62rem;
            letter-spacing: 0.8px;
            color: var(--text-subtle);
            opacity: 0.8;
            white-space: nowrap;
        }

        .city-region-head {
            position: sticky;
            top: 0;
            z-index: 2;
            background: rgba(20, 42, 30, 0.98);
            border-top: 1px solid rgba(46, 196, 122, 0.1);
            border-bottom: 1px solid rgba(46, 196, 122, 0.1);
            padding: 7px 12px;
            font-family: var(--font-title);
            font-size: 0.62rem;
            letter-spacing: 0.5px;
            color: var(--gold-mid);
        }

        .gps-loading {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(46, 196, 122, 0.24);
            border-top-color: var(--emerald-light);
            border-radius: 50%;
            animation: gpsSpin 0.8s linear infinite;
        }

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

        .city-empty {
            padding: 12px;
            text-align: center;
            color: var(--text-subtle);
            font-size: 0.8rem;
        }

        .prayer-countdown-card {
            text-align: center; padding: 10px 10px;
            background: rgba(46, 196, 122, 0.10);
            border: 1px solid rgba(46, 196, 122, 0.20);
            border-radius: var(--radius-lg); margin-bottom: 8px;
            flex-shrink: 0;
            box-shadow: var(--shadow-soft);
        }
        .prayer-countdown-label {
            font-family: var(--font-title); font-size: 0.68rem;
            letter-spacing: 0.6px;
            color: rgba(46, 196, 122, 0.8); margin-bottom: 4px;
        }
        .prayer-countdown-name {
            font-family: var(--font-title); font-size: 0.94rem;
            color: var(--emerald-light); margin-bottom: 2px;
        }
        .prayer-countdown-time {
            font-family: var(--font-title); font-size: 1rem;
            color: var(--gold-light); letter-spacing: 1px;
        }
        .prayer-times-grid {
            display: flex; flex-direction: column; gap: 4px; margin-bottom: 0;
            flex: 0 0 auto;
            min-height: auto;
            overflow: visible;
            padding-right: 2px;
            padding-bottom: 8px;
        }
        .prayer-calc-settings {
            display: flex; flex-direction: column; gap: 6px;
            padding: 10px 12px;
            margin: 4px 0 8px;
            background: rgba(46, 196, 122, 0.06);
            border: 1px solid rgba(46, 196, 122, 0.13);
            border-radius: var(--radius-md);
        }
        .prayer-calc-row {
            display: flex; align-items: center; gap: 8px; justify-content: space-between;
        }
        .prayer-calc-label {
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 0.4px;
            color: rgba(224, 238, 210, 0.7);
            flex-shrink: 0;
        }
        .prayer-calc-select {
            flex: 1;
            background: rgba(15, 25, 15, 0.8);
            border: 1px solid rgba(46, 196, 122, 0.2);
            border-radius: 6px;
            color: var(--gold-light);
            font-size: 0.66rem;
            padding: 4px 6px;
            cursor: pointer;
            min-width: 0;
        }
        .prayer-calc-select:focus {
            outline: none;
            border-color: rgba(46, 196, 122, 0.45);
        }
        .prayer-row {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 7px 9px;
            background: rgba(46, 196, 122, 0.08);
            border: 1px solid rgba(46, 196, 122, 0.14);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-soft);
        }
        .prayer-row.current-prayer {
            background: rgba(46, 196, 122, 0.12);
            border-color: rgba(46, 196, 122, 0.3);
            box-shadow: 0 0 16px rgba(46, 196, 122, 0.1);
        }
        .prayer-row.next-prayer {
            background: rgba(46, 196, 122, 0.06);
            border-color: rgba(46, 196, 122, 0.15);
        }
        .prayer-icon {
            width: 24px;
            font-size: 1rem;
            flex-shrink: 0;
            text-align: center;
        }
        .prayer-name {
            font-family: var(--font-title);
            font-size: 0.7rem;
            letter-spacing: 0.32px;
            color: rgba(224, 238, 210, 0.8);
            flex: 1;
            min-width: 0;
        }
        .prayer-badge {
            font-family: var(--font-title);
            font-size: 0.58rem;
            letter-spacing: 1px;
            padding: 2px 8px;
            border-radius: 20px;
            min-width: 46px;
            text-align: center;
            color: var(--gold-light);
            border: 1px solid rgba(212, 175, 55, 0.2);
            background: rgba(212, 175, 55, 0.18);
            flex-shrink: 0;
            white-space: nowrap;
        }
        .prayer-badge-empty {
            visibility: hidden;
        }
        .prayer-row.current-prayer .prayer-badge {
            background: rgba(46, 196, 122, 0.25);
            color: var(--emerald-light);
            border-color: rgba(46, 196, 122, 0.3);
        }
        .prayer-time {
            font-family: var(--font-title);
            font-size: 0.72rem;
            color: var(--gold-light);
            letter-spacing: 0.7px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .prayer-bell {
            width: 20px;
            text-align: center;
            font-size: 0.8rem;
            flex-shrink: 0;
            filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.24));
        }
        .prayer-bell-toggle {
            border: none;
            background: transparent;
            padding: 0;
            cursor: pointer;
            transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
        }
        .prayer-bell-toggle:active {
            transform: scale(0.9);
        }
        .prayer-bell-toggle.active {
            filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.34));
        }
        .prayer-bell-static {
            opacity: 0.55;
        }
        .prayer-time-row {
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px;
            padding: 12px 14px;
            background: rgba(46, 196, 122, 0.08);
            border: 1px solid rgba(46, 196, 122, 0.14);
            border-radius: var(--radius-md);
            transition: all 0.3s;
            box-shadow: var(--shadow-soft);
        }
        .prayer-time-main {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }
        .prayer-time-meta {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: wrap;
        }
        .prayer-reminder-indicator {
            font-size: 0.78rem;
            opacity: 0.9;
            filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.24));
        }
        .prayer-reminder-time {
            font-family: var(--font-text);
            font-size: 0.67rem;
            color: rgba(201, 168, 76, 0.94);
            letter-spacing: 0.2px;
            background: rgba(201, 168, 76, 0.12);
            border: 1px solid rgba(201, 168, 76, 0.24);
            border-radius: 999px;
            padding: 2px 7px;
            white-space: nowrap;
        }
        .prayer-time-row.active-prayer {
            background: rgba(46, 196, 122, 0.15);
            border-color: rgba(46, 196, 122, 0.35);
            box-shadow: 0 0 12px rgba(46, 196, 122, 0.08);
        }
        .prayer-time-row.active-prayer .prayer-name { color: var(--emerald-light); }
        .prayer-time-row.passed-prayer { opacity: 0.6; }
        .prayer-name {
            font-family: var(--font-title); font-size: 0.8rem;
            letter-spacing: 0.4px;
            color: rgba(224, 238, 210, 0.8);
        }
        .prayer-time-val {
            font-family: var(--font-title); font-size: 0.85rem;
            color: var(--gold-light); letter-spacing: 1px;
        }
        /* Qibla Compass */
        .qibla-section {
            text-align: center; margin-top: 0; margin-bottom: 0;
            padding: 14px;
            background: rgba(46, 196, 122, 0.08);
            border: 1px solid rgba(46, 196, 122, 0.18);
            border-radius: var(--radius-lg);
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 0;
        }
        .qibla-title {
            font-family: var(--font-title); font-size: 0.72rem;
            letter-spacing: 0.6px;
            color: rgba(46, 196, 122, 0.8); margin-bottom: 16px;
        }
        .qibla-compass {
            width: min(46vw, 160px);
            height: min(46vw, 160px);
            min-width: 148px;
            min-height: 148px;
            margin: 0 auto 10px;
            position: relative;
            border-radius: 50%;
            border: 2px solid rgba(201, 168, 76, 0.34);
            background: radial-gradient(circle at 42% 30%, rgba(44, 68, 61, 0.9), rgba(16, 29, 39, 0.98));
            box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.18), inset 0 20px 40px rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0,0,0,0.35);
            overflow: hidden;
        }

        .qibla-compass-inner-shadow {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            box-shadow: inset 0 20px 30px rgba(255,255,255,0.04), inset 0 -18px 26px rgba(0,0,0,0.45);
            pointer-events: none;
            z-index: 2;
        }

        .qibla-outer-ring {
            position: absolute;
            inset: 8px;
            border-radius: 50%;
            border: 1px solid rgba(201, 168, 76, 0.36);
            pointer-events: none;
            z-index: 1;
        }
        .qibla-degree-ring {
            position: absolute;
            inset: 14px;
            border-radius: 50%;
            z-index: 3;
            pointer-events: none;
        }

        .qibla-tick {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 2px;
            height: 14px;
            transform-origin: center calc(-1 * (min(46vw, 160px) - 18px));
            background: linear-gradient(to bottom, rgba(201, 168, 76, 0.92), rgba(201, 168, 76, 0.45));
            border-radius: 2px;
        }

        .qibla-tick-label {
            position: absolute;
            left: 50%;
            top: 50%;
            font-family: var(--font-title);
            font-size: clamp(0.52rem, 1.8vw, 0.66rem);
            color: rgba(224, 238, 210, 0.72);
            letter-spacing: 0.7px;
            transform-origin: center calc(-1 * (min(46vw, 160px) - 30px));
        }

        .qibla-direction-label {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1.05;
            color: rgba(224,238,210,0.7);
            z-index: 5;
        }

        .qibla-direction-label span {
            font-family: var(--font-title);
            font-size: clamp(0.72rem, 2.6vw, 0.92rem);
            font-weight: 700;
            letter-spacing: 1px;
            color: rgba(244, 247, 238, 0.94);
        }

        .qibla-direction-label small {
            font-family: var(--font-text);
            font-size: clamp(0.5rem, 1.7vw, 0.62rem);
            opacity: 0.86;
        }

        .qibla-compass .compass-n { top: 18px; left: 50%; transform: translateX(-50%); }
        .qibla-compass .compass-s { bottom: 18px; left: 50%; transform: translateX(-50%); }
        .qibla-compass .compass-e { right: 20px; top: 50%; transform: translateY(-50%); }
        .qibla-compass .compass-w { left: 20px; top: 50%; transform: translateY(-50%); }
        .qibla-marker {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 4px;
            height: calc(min(46vw, 160px) - 30px);
            margin-left: -2px;
            margin-top: calc((min(46vw, 160px) - 30px) * -1);
            transform-origin: 50% calc(min(46vw, 160px) - 30px);
            pointer-events: none;
            z-index: 5;
        }
        .qibla-marker span {
            position: absolute;
            top: -9px;
            left: 50%;
            transform: translateX(-50%);
            font-size: clamp(0.82rem, 2.8vw, 1.05rem);
            opacity: 0.9;
            filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.42));
        }
        .qibla-arrow {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 10px;
            height: calc(min(46vw, 160px) - 100px);
            margin-left: -5px;
            margin-top: calc((min(46vw, 160px) - 100px) * -1);
            transform-origin: center calc(min(46vw, 160px) - 100px);
            transition: transform 500ms ease-out;
            will-change: transform;
            z-index: 7;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
        }
        .qibla-arrow-head {
            position: absolute;
            top: -7px;
            left: 50%;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 10px solid #e6c270;
            transform: translateX(-50%);
            filter: drop-shadow(0 0 7px rgba(201, 168, 76, 0.46));
        }
        .qibla-arrow-shaft {
            position: absolute;
            top: 4px;
            bottom: 0;
            left: 50%;
            width: 3px;
            transform: translateX(-50%);
            border-radius: 999px;
            background:
                linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 35%),
                linear-gradient(to top, rgba(98, 116, 136, 0.95) 0 52%, rgba(229, 196, 116, 0.98) 52% 100%);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 10px rgba(0, 0, 0, 0.24);
        }

        .qibla-center-dot {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 14px;
            height: 14px;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            border: 1.5px solid rgba(201, 168, 76, 0.62);
            background: radial-gradient(circle, rgba(246, 248, 241, 0.95) 0 35%, rgba(46, 196, 122, 0.52) 100%);
            box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.12), 0 0 10px rgba(0, 0, 0, 0.28);
            z-index: 9;
        }
        .qibla-degree {
            font-family: var(--font-title); font-size: 0.8rem;
            color: rgba(224, 238, 210, 0.8); letter-spacing: 1px;
        }
        .qibla-location {
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 0.45px;
            color: var(--gold-light);
            margin-bottom: 6px;
        }
        .qibla-status {
            font-family: var(--font-text); font-size: 0.78rem;
            color: rgba(224, 238, 210, 0.75); margin-top: 6px;
        }
        .qibla-instruction {
            margin-top: 8px;
            font-family: var(--font-text);
            font-size: 0.72rem;
            color: var(--text-subtle);
            line-height: 1.55;
        }
        .qibla-calibrate-hint {
            margin-top: 6px;
            padding: 5px 12px;
            border-radius: var(--radius-sm, 6px);
            background: rgba(255, 255, 255, 0.04);
            font-family: var(--font-text);
            font-size: 0.68rem;
            color: var(--text-subtle);
            letter-spacing: 0.3px;
        }
        .qibla-section.aligned {
            border-color: rgba(201, 168, 76, 0.45);
            box-shadow: 0 0 22px rgba(201, 168, 76, 0.2), inset 0 0 0 1px rgba(201, 168, 76, 0.18);
        }
        .qibla-section.aligned .qibla-compass {
            box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.28), inset 0 20px 40px rgba(255,255,255,0.05), 0 0 22px rgba(201, 168, 76, 0.34), 0 14px 34px rgba(0,0,0,0.35);
        }
        .qibla-section.aligned .qibla-status { color: rgba(255, 229, 158, 0.96); }
        /* Notification toggle */
        .prayer-notify-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px; margin-top: 1rem;
            background: rgba(46, 196, 122, 0.14);
            border: 1px solid rgba(46, 196, 122, 0.28);
            border-radius: var(--radius-md);
        }
        .prayer-reminder-settings {
            margin-top: 0;
            padding: 6px 8px;
            background: rgba(46, 196, 122, 0.05);
            border: 1px solid rgba(46, 196, 122, 0.12);
            border-radius: var(--radius-md);
            flex: 1;
            min-height: 0;
            box-shadow: var(--shadow-soft);
        }
        .prayer-reminder-status {
            margin-top: 0;
            margin-bottom: 8px;
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid rgba(46, 196, 122, 0.16);
            background: rgba(46, 196, 122, 0.07);
            color: var(--text-subtle);
            font-family: var(--font-title);
            font-size: 0.68rem;
            letter-spacing: 0.3px;
            text-align: center;
        }
        .prayer-reminder-status.active {
            color: var(--emerald-light);
            border-color: rgba(46, 196, 122, 0.3);
            background: rgba(46, 196, 122, 0.12);
        }
        .foreground-reminder-banner {
            display: none;
            margin-top: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(224, 160, 72, 0.38);
            background: rgba(224, 160, 72, 0.14);
            color: rgba(255, 236, 196, 0.96);
            font-family: var(--font-text);
            font-size: 0.73rem;
            line-height: 1.45;
            letter-spacing: 0.01em;
        }
        .foreground-reminder-banner.active {
            display: block;
        }
        .prayer-reminder-title {
            font-family: var(--font-title); font-size: 0.6rem;
            letter-spacing: 0.4px;
            color: rgba(46, 196, 122, 0.7);
            margin-bottom: 4px;
        }
        .prayer-reminder-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2px;
            margin-top: 4px;
        }
        .prayer-reminder-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 4px 8px;
            border-radius: 0;
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 0.3px;
            min-height: 36px;
            max-height: 40px;
        }
        .reminder-prayer-label-wrap {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .reminder-bell {
            font-size: 0.72rem;
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.2s ease, transform 0.2s ease;
            filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.35));
        }
        .prayer-reminder-item.active .reminder-bell {
            opacity: 1;
            transform: scale(1);
        }
        .prayer-reminder-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--emerald-light);
            cursor: pointer;
        }
        .prayer-reminder-controls {
            display: grid;
            grid-template-columns: 1fr;
            gap: 4px;
            margin-top: 4px;
        }
        .prayer-reminder-controls label {
            font-family: var(--font-title); font-size: 0.58rem;
            letter-spacing: 0.3px;
            color: var(--text-subtle);
            margin-top: 1px;
        }
        .reminder-sound-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 34px;
            align-items: center;
            gap: 6px;
        }
        .prayer-reminder-select {
            width: 100%;
            min-height: 34px;
            border-radius: 8px;
            border: 1px solid rgba(46, 196, 122, 0.18);
            background: var(--bg-surface);
            color: var(--text-primary);
            padding: 4px 8px;
            font-family: var(--font-text);
            font-size: 0.76rem;
            outline: none;
        }
        .reminder-sound-preview-btn {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            border: 1px solid rgba(46, 196, 122, 0.24);
            background: rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            font-size: 0.85rem;
            line-height: 1;
            padding: 0;
            touch-action: manipulation;
            transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .reminder-sound-preview-btn:active,
        .reminder-sound-preview-btn.is-playing {
            transform: scale(0.96);
            background: rgba(201, 168, 76, 0.18);
            border-color: rgba(201, 168, 76, 0.28);
        }
        .reminder-sound-preview-btn:disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .reminder-compact-toggle {
            min-height: 32px;
            max-height: 36px;
            margin-top: 2px;
        }
        .prayer-reminder-select:focus {
            border-color: rgba(46, 196, 122, 0.35);
            box-shadow: 0 0 0 3px rgba(46, 196, 122, 0.12);
        }
        .prayer-notify-label {
            font-family: var(--font-title); font-size: 0.85rem;
            letter-spacing: 0.4px; color: rgba(235, 245, 220, 0.95);
        }
        .toggle-switch {
            position: relative; width: 44px; height: 24px; cursor: pointer;
        }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .toggle-slider {
            position: absolute; inset: 0;
            background: rgba(46, 196, 122, 0.22);
            border-radius: 24px; transition: 0.3s;
        }
        .toggle-slider::before {
            content: ''; position: absolute; height: 18px; width: 18px;
            left: 3px; bottom: 3px; background: rgba(224,238,210,0.75);
            border-radius: 50%; transition: 0.3s;
        }
        .toggle-switch input:checked + .toggle-slider {
            background: rgba(46, 196, 122, 0.5);
        }
        .toggle-switch input:checked + .toggle-slider::before {
            transform: translateX(20px);
            background: var(--emerald-light);
        }
        /* Prayer grid dynamic classes */
        .prayer-time-icon { font-size: 1rem; width: 28px; }
        .prayer-time-name {
            font-family: var(--font-title); font-size: 0.75rem;
            letter-spacing: 0.4px;
            color: rgba(224, 238, 210, 0.8); flex: 1;
        }
        .prayer-time-value {
            font-family: var(--font-title); font-size: 0.85rem;
            color: var(--gold-light); letter-spacing: 1px;
        }
        .prayer-time-row.current-prayer {
            background: rgba(46, 196, 122, 0.12);
            border-color: rgba(46, 196, 122, 0.3);
            box-shadow: 0 0 16px rgba(46, 196, 122, 0.1);
        }
        .prayer-time-row.current-prayer .prayer-time-name { color: var(--emerald-light); font-weight: 600; }
        .prayer-time-row.next-prayer {
            background: rgba(46, 196, 122, 0.06);
            border-color: rgba(46, 196, 122, 0.15);
        }
        .prayer-now-badge, .prayer-next-badge {
            font-family: var(--font-title); font-size: 0.65rem;
            letter-spacing: 1px; padding: 3px 10px;
            border-radius: 20px; margin-left: 8px;
        }
        .prayer-now-badge {
            background: rgba(46, 196, 122, 0.25); color: var(--emerald-light);
            border: 1px solid rgba(46, 196, 122, 0.3);
        }
        .prayer-next-badge {
            background: rgba(212, 175, 55, 0.18); color: var(--gold-light);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        /* ============================================ */
        /* ===== QURAN PANEL ===== */
        /* ============================================ */
        .quran-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2100; overflow-y: auto;
            padding: calc(var(--safe-top) + 20px) 16px calc(var(--safe-bottom) + 18px);
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; visibility: hidden; transform: translateY(24px);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .quran-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

        .more-panel {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-dark);
            z-index: 2100;
            overflow-y: auto;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }
        .more-panel.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .quran-panel-content {
            max-width: 740px; margin: 0 auto;
            position: relative;
        }

        .quran-top-progress {
            position: static;
            display: block;
            height: 2px;
            border-radius: 2px;
            overflow: hidden;
            padding: 0;
            border: none;
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            margin-bottom: 4px;
        }
        .quran-top-progress::before { display: none; }
        .quran-top-progress-copy { display: none; }
        .quran-top-progress span {
            display: block;
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--gold-mid), var(--emerald-light));
            transition: width 0.2s ease-out;
        }

        .quran-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
        }
        .quran-header-row h2 {
            font-family: inherit;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.2px;
            text-transform: none;
            color: var(--text-primary);
        }

        .quran-reading-mode-btn {
            border: 1px solid rgba(201, 168, 76, 0.3);
            background: rgba(201, 168, 76, 0.08);
            color: var(--gold-light);
            min-height: 32px;
            border-radius: 999px;
            padding: 0 12px;
            font-family: var(--font-title);
            font-size: 0.64rem;
            letter-spacing: 0.8px;
            cursor: pointer;
        }

        .quran-continue-card,
        .quran-recent-wrap {
            border-radius: var(--radius-md);
            border: 1px solid rgba(46, 196, 122, 0.18);
            background: var(--bg-card);
            padding: 12px;
            margin-bottom: 12px;
        }

        .quran-continue-card:empty,
        .quran-recent-wrap:empty {
            display: none;
        }


        .in-app-swipe-indicator {
            position: fixed;
            left: 6px;
            top: 50%;
            transform: translate(-20px, -50%);
            width: 32px;
            height: 56px;
            border-radius: 0 10px 10px 0;
            border: 1px solid rgba(46, 196, 122, 0.24);
            background: rgba(12, 26, 19, 0.8);
            color: var(--emerald-light);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            z-index: 2210;
            pointer-events: none;
            transition: opacity 0.16s ease, transform 0.16s ease;
        }
        .in-app-swipe-indicator.visible {
            opacity: 1;
            transform: translate(0, -50%);
        }

        /* Tasbeeh Panel */
        .tasbeeh-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2000;
            display: flex; flex-direction: column;
            align-items: center; justify-content: flex-start;
            padding: calc(var(--safe-top) + 10px) 14px calc(var(--safe-bottom) + 30px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; visibility: hidden; transform: scale(0.97);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .tasbeeh-panel.active { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; }
        .tasbeeh-title {
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 3px; text-transform: none;
            color: rgba(46, 196, 122, 0.7); margin: 8px 0 0.9rem;
        }
        .tasbeeh-arabic {
            font-family: var(--font-arabic);
            font-size: calc(1.45rem * var(--font-scale));
            color: var(--gold-light); direction: rtl;
            text-align: center; line-height: 1.8;
            margin-bottom: 0.7rem; max-width: 90%;
        }
        .tasbeeh-count-display {
            font-family: var(--font-title);
            font-size: 4.05rem; font-weight: 800;
            color: var(--emerald-light); line-height: 1;
            margin-bottom: 0.2rem;
            text-shadow: 0 0 40px rgba(46, 196, 122, 0.25);
        }
        .tasbeeh-target {
            font-family: var(--font-title); font-size: 0.66rem;
            letter-spacing: 1.3px; text-transform: none;
            color: rgba(46, 196, 122, 0.7); margin-bottom: 0.7rem;
        }
        .tasbeeh-tap-btn {
            --tap-size: min(28vw, 85px);
            width: var(--tap-size);
            height: var(--tap-size);
            min-width: 76px;
            min-height: 76px;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
            margin: 8px auto 8px;
            display: grid;
            place-items: center;
            position: relative;
            isolation: isolate;
            overflow: hidden;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            border: 1px solid rgba(138, 247, 214, 0.34);
            background:
                radial-gradient(circle at 32% 25%, rgba(154, 255, 222, 0.24), rgba(154, 255, 222, 0.05) 38%, rgba(5, 15, 24, 0.95) 74%),
                linear-gradient(170deg, rgba(9, 34, 50, 0.98), rgba(6, 20, 34, 0.98));
            box-shadow:
                inset 0 1px 0 rgba(220, 255, 242, 0.18),
                0 10px 22px rgba(0, 0, 0, 0.34),
                0 0 14px rgba(84, 226, 177, 0.18);
            -webkit-user-select: none;
            user-select: none;
            color: var(--emerald-light);
            font-family: var(--font-title);
            cursor: pointer;
            transition: transform 0.15s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth), background 0.2s var(--transition-smooth);
        }
        .tasbeeh-tap-btn::before {
            content: '';
            position: absolute;
            inset: -16px;
            border-radius: 50%;
        }
        .tasbeeh-tap-btn > * {
            pointer-events: none;
        }
        .tasbeeh-tap-btn .tap-gloss {
            display: none;
        }
        .tasbeeh-tap-btn .tap-ring {
            display: none;
        }
        .tasbeeh-tap-btn .tap-bead-ring {
            display: none;
        }
        .tasbeeh-tap-btn .tap-bead-ring .bead {
            display: none;
        }
        .tasbeeh-tap-btn .b1  { transform: rotate(0deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b2  { transform: rotate(30deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b3  { transform: rotate(60deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b4  { transform: rotate(90deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b5  { transform: rotate(120deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b6  { transform: rotate(150deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b7  { transform: rotate(180deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b8  { transform: rotate(210deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b9  { transform: rotate(240deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b10 { transform: rotate(270deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b11 { transform: rotate(300deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .b12 { transform: rotate(330deg) translateY(calc(var(--tap-size) / -2 + 24px)); }
        .tasbeeh-tap-btn .tap-center {
            display: none;
        }
        .tasbeeh-tap-btn .tap-text {
            position: relative;
            z-index: 2;
            font-weight: 600;
            letter-spacing: 0.05em;
            font-size: clamp(0.52rem, 1.9vw, 0.62rem);
            color: rgba(223, 255, 243, 0.95);
            text-shadow: 0 1px 4px rgba(57, 199, 150, 0.3);
            text-transform: none;
        }
        .tasbeeh-tap-btn:active {
            transform: scale(0.96);
            box-shadow: inset 0 1px 0 rgba(220, 255, 242, 0.2), 0 7px 16px rgba(0, 0, 0, 0.38), 0 0 16px rgba(70, 217, 166, 0.24);
        }
        .prayer-reminder-helper {
            margin: 6px 0 10px;
            font-family: var(--font-text);
            font-size: 0.82rem;
            line-height: 1.5;
            color: var(--text-subtle);
            opacity: 0.9;
        }
        .tasbeeh-controls {
            display: flex; gap: 8px; margin-top: 0.7rem;
        }
        .tasbeeh-ctrl-btn {
            padding: 8px 14px; border-radius: 20px;
            background: rgba(46, 196, 122, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: var(--text-subtle);
            font-family: var(--font-title); font-size: 0.6rem;
            letter-spacing: 0.5px; text-transform: none;
            cursor: pointer; transition: all 0.3s var(--transition-smooth);
        }
        .tasbeeh-ctrl-btn:hover {
            background: rgba(46, 196, 122, 0.1); color: var(--emerald-light);
        }
        .tasbeeh-presets {
            display: flex; gap: 6px; margin-top: 0.55rem;
        }
        .tasbeeh-preset {
            padding: 10px 18px; border-radius: 50px;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.08);
            color: var(--text-subtle);
            font-family: var(--font-title); font-size: 0.65rem;
            cursor: pointer; transition: all 0.25s var(--transition-smooth);
        }
        .tasbeeh-preset:hover, .tasbeeh-preset.active {
            border-color: rgba(46, 196, 122, 0.3); color: var(--emerald-light);
            background: rgba(46, 196, 122, 0.08);
        }

        /* Dhikr Selector */
        .dhikr-selector {
            display: flex; gap: 8px; overflow-x: auto;
            width: 100%; max-width: 400px;
            min-height: 56px;
            overflow-y: visible;
            padding: 6px 2px 8px; margin-bottom: 0.55rem;
            scrollbar-width: none; -ms-overflow-style: none;
            scroll-snap-type: x mandatory;
        }
        .dhikr-selector::-webkit-scrollbar { display: none; }
        .dhikr-option {
            flex-shrink: 0; scroll-snap-align: center;
            display: flex; flex-direction: column; align-items: center;
            justify-content: center;
            gap: 3px; padding: 10px 14px; border-radius: var(--radius-lg);
            background: rgba(46, 196, 122, 0.03);
            border: 1px solid rgba(46, 196, 122, 0.08);
            cursor: pointer; transition: all 0.3s var(--transition-smooth);
            min-width: 72px; min-height: 56px; text-align: center;
            -webkit-user-select: none; user-select: none;
        }
        .dhikr-option:active { transform: scale(0.96); }
        .dhikr-option.active {
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.12), rgba(46, 196, 122, 0.05));
            border-color: rgba(46, 196, 122, 0.35);
            box-shadow: 0 0 20px rgba(46, 196, 122, 0.08);
        }
        .dhikr-option-ar {
            font-family: var(--font-arabic); font-size: 0.85rem;
            color: var(--gold-light); direction: rtl; line-height: 1.8;
            white-space: nowrap;
        }
        .dhikr-option.active .dhikr-option-ar { color: var(--emerald-light); }
        .dhikr-option-en {
            font-family: var(--font-title); font-size: 0.52rem;
            letter-spacing: 0.5px; text-transform: none;
            color: var(--text-faint); white-space: nowrap;
        }
        .dhikr-option.active .dhikr-option-en { color: rgba(46, 196, 122, 0.55); }
        .dhikr-option.dhikr-add-btn { opacity: 0.65; border-style: dashed; }
        .dhikr-option.dhikr-add-btn:hover { opacity: 1; }
        .dhikr-option.dhikr-custom { position: relative; padding-bottom: 22px; }
        .dhikr-delete-btn {
            position: absolute; bottom: 4px; right: 6px;
            background: none; border: none; cursor: pointer;
            font-size: 0.7rem; opacity: 0.45; padding: 2px 4px;
            color: inherit; line-height: 1;
        }
        .dhikr-delete-btn:hover { opacity: 1; }

        /* Dhikr virtue hint */
        .tasbeeh-virtue {
            font-family: var(--font-text); font-size: 0.7rem;
            color: var(--text-subtle); font-style: italic;
            text-align: center; max-width: 300px;
            margin-bottom: 0.9rem; line-height: 1.35;
            transition: opacity 0.3s ease;
        }

        /* Lifetime total */
        .tasbeeh-lifetime {
            font-family: var(--font-title); font-size: 0.5rem;
            letter-spacing: 1.5px; text-transform: none;
            color: var(--text-subtle); margin-top: 0.55rem;
        }
        .tasbeeh-lifetime span { color: var(--gold-mid); }
        .tasbeeh-session {
            font-family: var(--font-title); font-size: 0.5rem;
            letter-spacing: 1.5px; color: var(--text-subtle);
            margin-top: 0.3rem;
        }
        .tasbeeh-session span { color: var(--emerald-light); }
        .tasbeeh-round {
            font-family: var(--font-title); font-size: 0.55rem;
            letter-spacing: 1px; color: var(--gold-mid);
            margin-top: 0.2rem; font-style: italic;
        }

        [data-theme="light"] .dhikr-option { background: rgba(13, 123, 80, 0.04); border-color: rgba(13, 123, 80, 0.1); }
        [data-theme="light"] .dhikr-option.active { background: rgba(13, 123, 80, 0.08); border-color: rgba(13, 123, 80, 0.25); }
        [data-theme="light"] .dhikr-option-ar { color: #2d2d1a; }
        [data-theme="light"] .dhikr-option.active .dhikr-option-ar { color: #1b5e20; }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(46, 196, 122, 0.25); }
            70% { box-shadow: 0 0 0 20px rgba(46, 196, 122, 0); }
            100% { box-shadow: 0 0 0 0 rgba(46, 196, 122, 0); }
        }
        .tasbeeh-tap-btn.pulse { animation: pulse 0.6s ease-out; }
        .tasbeeh-ripple {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: rgba(255, 220, 138, 0.45);
            animation: tasbeehRipple 0.65s ease-out forwards;
            pointer-events: none;
        }
        @keyframes tasbeehRipple {
            to {
                transform: translate(-50%, -50%) scale(18);
                opacity: 0;
            }
        }
        .tasbeeh-count-display.bump {
            animation: tasbeehCountBump 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes tasbeehCountBump {
            0% { transform: scale(1); }
            45% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }
        .tasbeeh-panel.celebrate::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: radial-gradient(circle at 50% 50%, rgba(255, 219, 125, 0.22), transparent 55%);
            animation: tasbeehShimmer 0.75s ease-out;
        }
        @keyframes tasbeehShimmer {
            0% { opacity: 0; }
            30% { opacity: 1; }
            100% { opacity: 0; }
        }

        /* ============================================ */
        /* ===== BACK TO TOP ===== */
        /* ============================================ */
        .back-to-top {
            position: fixed;
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
            right: 16px; width: 40px; height: 40px;
            background: rgba(12, 26, 19, 0.8);
            border: 1px solid rgba(46, 196, 122, 0.12);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            color: var(--emerald-light); font-size: 1rem;
            cursor: pointer; z-index: 500;
            opacity: 0; transform: translateY(20px);
            transition: all 0.35s var(--transition-smooth); backdrop-filter: blur(16px);
        }
        .back-to-top.visible { opacity: 1; transform: translateY(0); }
        .prayer-panel.active ~ .back-to-top {
            opacity: 0 !important;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(12px);
        }
        .back-to-top:hover {
            background: rgba(46, 196, 122, 0.1);
            border-color: rgba(46, 196, 122, 0.3);
            transform: translateY(-2px);
        }

        /* ============================================ */
        /* ===== TOAST NOTIFICATION ===== */
        /* ============================================ */
        .toast {
            position: fixed;
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 24px);
            left: 50%; transform: translateX(-50%) translateY(100px);
            background: rgba(12, 26, 19, 0.88);
            border: 1px solid rgba(46, 196, 122, 0.12);
            padding: 12px 26px; border-radius: 50px;
            color: var(--gold-light); font-family: var(--font-text);
            font-size: 0.84rem; z-index: 3000;
            backdrop-filter: blur(24px) saturate(180%);
            opacity: 0; transition: all 0.4s var(--transition-smooth);
            white-space: nowrap; box-shadow: var(--shadow-elevated);
        }
        .toast.show {
            transform: translateX(-50%) translateY(0); opacity: 1;
        }

        /* ============================================ */
        /* ===== OVERLAY & SIDE PANEL ===== */
        /* ============================================ */
        .overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark); z-index: 1500;
            opacity: 0; visibility: hidden;
            pointer-events: none;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        .overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

        .side-panel {
            position: fixed; top: 0; right: 0; bottom: 0;
            width: 300px; max-width: 85vw;
            background: var(--bg-card);
            border-left: 1px solid rgba(46, 196, 122, 0.15);
            z-index: 1600; padding: 24px 16px;
            overflow-y: auto;
            transform: translateX(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .side-panel.active { transform: translateX(0); }

        .panel-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 20px; padding-bottom: 12px;
            border-bottom: 1px solid rgba(46, 196, 122, 0.12);
        }
        .panel-title {
            font-family: var(--font-title); font-size: 0.75rem;
            letter-spacing: 2px; text-transform: none;
            color: var(--emerald-light);
        }
        .panel-close {
            background: none; border: none; color: var(--emerald-light);
            font-size: 1.2rem; cursor: pointer; padding: 4px;
        }
        .panel-empty {
            text-align: center; padding: 3rem 1rem;
            color: rgba(224, 238, 210, 0.45);
            font-style: italic; font-size: 0.9rem;
        }
        .panel-item {
            padding: 12px; border-radius: var(--radius-md);
            border: 1px solid rgba(46, 196, 122, 0.1);
            margin-bottom: 8px; cursor: pointer;
            transition: all 0.3s ease;
        }
        .panel-item:hover {
            background: rgba(46, 196, 122, 0.06);
            border-color: rgba(46, 196, 122, 0.2);
        }
        .panel-item-title {
            font-family: var(--font-title); font-size: 0.65rem;
            letter-spacing: 1px; text-transform: none;
            color: var(--gold-light); margin-bottom: 4px;
        }
        .panel-item-arabic {
            font-family: var(--font-arabic); font-size: 1rem;
            color: var(--gold-lightest); direction: rtl; text-align: right;
            line-height: 1.8; white-space: nowrap; overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ============================================ */
        /* ===== FOOTER ===== */
        /* ============================================ */
        .footer {
            text-align: center; padding: 1rem 1rem 1rem;
            margin-top: 0.75rem;
        }
        .footer-ornament {
            display: flex; align-items: center; justify-content: center; gap: 12px;
            margin-bottom: 0.5rem; opacity: 0.3;
        }
        .footer-ornament .line {
            width: 50px; height: 1px;
            background: linear-gradient(to right, transparent, var(--emerald-light));
        }
        .footer-ornament .line:last-child {
            background: linear-gradient(to left, transparent, var(--emerald-light));
        }
        .footer-text {
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 1.5px; text-transform: none;
            color: rgba(224, 238, 210, 0.4); line-height: 2;
        }
        .footer-arabic {
            font-family: var(--font-arabic); font-size: 1.2rem;
            color: rgba(46, 196, 122, 0.3); margin-top: 12px;
            direction: rtl;
        }
        [data-theme="light"] .footer-arabic { color: rgba(78, 96, 69, 0.74); }

        .app-footer {
            text-align: center;
            padding: 32px 16px 80px 16px;
            opacity: 0.5;
            font-size: 12px;
        }
        .app-footer p {
            margin: 4px 0;
        }
        .app-footer .footer-brand,
        .app-footer .footer-info,
        .app-footer .footer-copyright {
            font-family: var(--font-title);
            letter-spacing: 0.3px;
            color: var(--text-subtle);
        }

        /* ===== NO RESULTS ===== */
        .no-results {
            text-align: center; padding: 3rem 1rem; display: none;
        }
        .no-results.visible { display: block; }
        .no-results-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.3; }
        .no-results-text {
            font-family: var(--font-text); font-size: 0.95rem;
            color: rgba(224, 238, 210, 0.55); font-style: italic;
        }

                /* ============================================ */
        /* ===== RANDOM DUA BUTTON ===== */
        /* ============================================ */
        .random-glow {
            animation: randomGlow 1.5s ease;
        }
        @keyframes randomGlow {
            0% { box-shadow: 0 0 0 0 rgba(46, 196, 122, 0.4); }
            30% { box-shadow: 0 0 30px 5px rgba(46, 196, 122, 0.2); }
            100% { box-shadow: none; }
        }

        /* ============================================ */
        /* ===== COLLAPSIBLE SECTIONS ===== */
        /* ============================================ */
        .section-header {
            cursor: pointer;
            user-select: none;
            transition: opacity 0.3s ease;
        }
        .section-header:hover {
            opacity: 0.85;
        }
        .section-header:active {
            opacity: 0.7;
        }

        .section-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px; height: 32px;
            border-radius: 50%;
            background: rgba(46, 196, 122, 0.1);
            border: 1px solid rgba(46, 196, 122, 0.2);
            color: var(--emerald-light);
            font-size: 0.6rem;
            margin-top: 8px;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .section-header.collapsed .section-toggle {
            transform: rotate(-90deg);
            background: rgba(46, 196, 122, 0.05);
        }

        .section-collapse-hint {
            font-family: var(--font-title);
            font-size: 0.58rem;
            letter-spacing: 1px;
            text-transform: none;
            color: var(--text-subtle);
            margin-top: 4px;
        }
        .section-header:hover .section-collapse-hint {
            color: rgba(46, 196, 122, 0.6);
        }

        /* ============================================ */
        /* ===== KEYBOARD & ACCESSIBILITY ===== */
        /* ============================================ */
        .card-header:focus-visible {
            outline: 2px solid rgba(46, 196, 122, 0.5);
            outline-offset: -2px;
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        }
        .card-action-btn:focus-visible,
        .nav-btn:focus-visible,
        .font-btn:focus-visible,
        .toolbar-btn:focus-visible,
        .pill:focus-visible,
        .action-btn:focus-visible,
        .bottom-nav-item:focus-visible,
        .tasbeeh-tap-btn:focus-visible,
        .tasbeeh-preset:focus-visible,
        .tasbeeh-ctrl-btn:focus-visible {
            outline: 2px solid rgba(46, 196, 122, 0.5);
            outline-offset: 2px;
        }

        .skip-link {
            position: absolute; top: -100px; left: 16px;
            background: var(--emerald-light); color: var(--bg-dark);
            padding: 8px 16px; border-radius: var(--radius-md);
            font-family: var(--font-title); font-size: 0.75rem;
            letter-spacing: 1px; text-transform: none;
            z-index: 9999; transition: top 0.3s ease;
            text-decoration: none;
        }
        .skip-link:focus { top: calc(var(--safe-top) + 8px); }

        /* ============================================ */
        /* ===== MEMORIZATION MODE ===== */
        /* ============================================ */
        .memorize-btn {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 6px 14px; border-radius: 50px;
            background: rgba(74, 26, 122, 0.08);
            border: 1px solid rgba(74, 26, 122, 0.2);
            color: #b388ff;
            font-family: var(--font-title); font-size: 0.62rem;
            letter-spacing: 1px; text-transform: none;
            cursor: pointer; transition: all 0.3s ease;
        }
        .memorize-btn:hover {
            background: rgba(74, 26, 122, 0.1);
            border-color: rgba(74, 26, 122, 0.3);
        }
        .memorize-btn.active {
            background: rgba(74, 26, 122, 0.2);
            border-color: #b388ff;
            color: #ce93d8;
        }
        .dua-card.memorize-mode .arabic-text {
            filter: blur(12px);
            transition: filter 0.4s ease;
            cursor: pointer;
        }
        .dua-card.memorize-mode .arabic-text:hover,
        .dua-card.memorize-mode .arabic-text.revealed {
            filter: blur(0);
        }
        .dua-card.memorize-mode .arabic-container::after {
            content: 'Tap to reveal';
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            font-family: var(--font-title); font-size: 0.6rem;
            letter-spacing: 2px; text-transform: none;
            color: rgba(179, 136, 255, 0.7);
            pointer-events: none;
            transition: opacity 0.3s ease;
            z-index: 2;
        }
        .dua-card.memorize-mode .arabic-text.revealed ~ .arabic-container::after,
        .dua-card.memorize-mode .arabic-container:hover::after {
            opacity: 0;
        }
        .dua-card.memorize-mode .arabic-text.revealed + * {
            opacity: 1; /* sibling hint removed once revealed */
        }
        /* Spaced Repetition */
        .sr-rating-row {
            display: flex; gap: 8px; justify-content: center;
            margin-top: 8px; padding: 8px 0;
            opacity: 0; max-height: 0; overflow: hidden;
            transition: opacity 0.3s ease, max-height 0.3s ease;
        }
        .sr-rating-row.visible { opacity: 1; max-height: 60px; }
        .sr-rating-btn {
            font-family: var(--font-title); font-size: 0.6rem;
            letter-spacing: 1px; text-transform: none;
            padding: 6px 20px; border-radius: 20px;
            border: 1px solid rgba(46, 196, 122, 0.25);
            background: rgba(46, 196, 122, 0.1);
            color: rgba(224, 238, 210, 0.85);
            cursor: pointer; transition: all 0.3s;
        }
        .sr-rating-btn:hover { background: rgba(46, 196, 122, 0.12); color: var(--emerald-light); }
        .sr-rating-btn.sr-easy { border-color: rgba(46, 196, 122, 0.2); }
        .sr-rating-btn.sr-hard { border-color: rgba(212, 175, 55, 0.2); }
        .sr-review-badge {
            font-family: var(--font-title); font-size: 0.62rem;
            letter-spacing: 1px; text-transform: none;
            padding: 3px 10px; border-radius: 20px;
            background: rgba(212, 175, 55, 0.12); color: var(--gold-light);
            border: 1px solid rgba(212, 175, 55, 0.2);
            margin-left: 8px; vertical-align: middle;
        }

        .memorize-panel {
            position: fixed;
            inset: 0;
            z-index: 2600;
            background: rgba(16, 29, 41, 0.94);
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(5, 12, 23, 0.82);
            backdrop-filter: blur(7px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 220ms ease;
        }
        .first-launch-language-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .first-launch-language-overlay.closing {
            opacity: 0;
        }
        .first-launch-language-card {
            width: min(92vw, 430px);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
            border: 1px solid rgba(201, 168, 76, 0.28);
            border-radius: 20px;
            box-shadow: var(--shadow-elevated), 0 0 36px rgba(201, 168, 76, 0.12);
            padding: 24px 18px 18px;
            text-align: center;
        }
        .first-launch-language-logo img {
            width: 72px;
            height: 72px;
            border-radius: 18px;
            margin: 0 auto 12px;
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
        }
        .first-launch-language-title {
            font: var(--text-h1);
            margin: 0;
            color: var(--text-primary);
        }
        .first-launch-language-subtitle {
            margin: 6px 0 16px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            backdrop-filter: blur(22px) saturate(150%);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.35s ease, visibility 0.35s ease;
            padding: calc(var(--safe-top) + 14px) 16px calc(var(--safe-bottom) + 20px);
        }
        .memorize-panel.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .memorize-close {
            font-size: 18px;
        }
        .memorize-panel-content {
            max-width: 540px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 12px;
        }
        .memorize-progress-text {
            text-align: center;
            font-family: var(--font-title);
            font-size: 0.72rem;
            letter-spacing: 1.4px;
            text-transform: none;
            color: var(--text-muted);
        }
        .memorize-progress-bar {
            width: min(100%, 420px);
            margin: 0 auto;
            height: 6px;
            border-radius: 999px;
            background: rgba(46, 196, 122, 0.12);
            overflow: hidden;
        }
        #memorizeProgressFill {
            height: 100%;
            width: 0%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--emerald-light), var(--gold-mid));
            transition: width 0.3s ease;
        }
        .flashcard-wrap {
            perspective: 1200px;
            width: min(100%, 520px);
            margin: 0 auto;
        }
        .flashcard {
            width: 100%;
            min-height: 370px;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.4s ease;
            border-radius: 20px;
        }
        .flashcard.flipped { transform: rotateY(180deg); }
        .flashcard-face {
            position: absolute;
            inset: 0;
            backface-visibility: hidden;
            border-radius: 20px;
            border: 1px solid rgba(46, 196, 122, 0.18);
            background: linear-gradient(160deg, rgba(34, 52, 71, 0.9), rgba(24, 39, 52, 0.92));
            padding: 22px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            box-shadow: var(--shadow-card);
        }
        .flashcard-back { transform: rotateY(180deg); }
        .flashcard-arabic {
            font-family: var(--font-arabic);
            font-size: calc(2rem * var(--font-scale));
            line-height: 2.1;
            text-align: center;
            direction: rtl;
            color: var(--gold-lightest);
        }
        .flashcard-translation {
            font-family: var(--font-text);
            font-size: calc(1rem * var(--font-scale));
            color: var(--text-primary);
            line-height: 1.9;
            margin-bottom: 10px;
            text-align: center;
        }
        .flashcard-transliteration {
            font-family: var(--font-amiri);
            font-size: calc(0.9rem * var(--font-scale));
            color: var(--text-muted);
            font-style: italic;
            line-height: 1.8;
            margin-bottom: 10px;
            text-align: center;
        }
        .flashcard-reference {
            font-family: var(--font-title);
            font-size: 0.65rem;
            letter-spacing: 1px;
            color: var(--text-subtle);
            text-align: center;
        }
        .flashcard-actions {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .flash-btn {
            padding: 9px 14px;
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.2);
            background: rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 0.66rem;
            letter-spacing: 1px;
            text-transform: none;
        }
        .flashcard-rating-row {
            display: none;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .flashcard-rating-row.visible { display: flex; }
        .flash-rate {
            padding: 9px 14px;
            border-radius: 999px;
            border: 1px solid rgba(201, 168, 76, 0.22);
            background: rgba(201, 168, 76, 0.1);
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 0.66rem;
        }

        .share-image-template {
            position: fixed;
            left: -200vw;
            top: 0;
            width: 1080px;
            pointer-events: none;
            opacity: 0;
            z-index: -1;
        }
        .share-image-frame {
            width: 1080px;
            min-height: 1350px;
            position: relative;
            border-radius: 42px;
            overflow: hidden;
            padding: 56px;
        }
        .share-image-border {
            position: absolute;
            inset: 20px;
            border-radius: 30px;
            border: 2px solid rgba(255, 230, 170, 0.42);
            background:
                repeating-linear-gradient(45deg, rgba(255, 230, 170, 0.08) 0 10px, transparent 10px 20px),
                repeating-linear-gradient(-45deg, rgba(46, 196, 122, 0.08) 0 10px, transparent 10px 20px);
            pointer-events: none;
        }
        .share-image-content {
            position: relative;
            z-index: 1;
            min-height: 1238px;
            border-radius: 26px;
            border: 1px solid rgba(255, 230, 170, 0.25);
            background: rgba(9, 21, 33, 0.35);
            padding: 70px 74px 54px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            text-align: center;
        }
        .share-auth-tag {
            align-self: center;
            padding: 10px 20px;
            border-radius: 999px;
            border: 1px solid rgba(255, 222, 146, 0.5);
            background: rgba(255, 215, 128, 0.18);
            color: #fff2c6;
            font-family: var(--font-title);
            letter-spacing: 2px;
            font-size: 0.95rem;
            margin-bottom: 28px;
        }
        .share-arabic {
            font-family: var(--font-amiri);
            font-size: 3.2rem;
            line-height: 2.05;
            color: #f6f8ef;
            direction: rtl;
            margin-bottom: 34px;
        }
        .share-translation {
            font-family: var(--font-title);
            font-size: 1.38rem;
            line-height: 1.8;
            color: rgba(243, 249, 237, 0.96);
            margin-bottom: auto;
        }
        .share-reference {
            font-family: var(--font-title);
            font-size: 0.84rem;
            letter-spacing: 1.2px;
            color: rgba(225, 238, 221, 0.84);
            margin-top: 24px;
            margin-bottom: 24px;
        }
        .share-branding {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: center;
            font-family: var(--font-title);
            font-size: 1rem;
            letter-spacing: 1.5px;
            color: rgba(225, 238, 221, 0.95);
        }
        .share-brand-icon {
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.24);
        }

        [data-theme="light"] .memorize-panel { background: rgba(250, 247, 242, 0.95); }
        [data-theme="light"] .flashcard-face {
            background: linear-gradient(160deg, rgba(255, 252, 246, 0.96), rgba(247, 239, 226, 0.94));
            border-color: rgba(13, 123, 80, 0.18);
        }
        [data-theme="light"] .flashcard-arabic { color: #2f2a18; }
        [data-theme="light"] .flashcard-translation { color: rgba(31, 43, 31, 0.9); }
        [data-theme="light"] .flashcard-transliteration { color: rgba(35, 62, 45, 0.8); }
        [data-theme="light"] .share-image-content {
            background: rgba(255, 250, 243, 0.94);
            border-color: rgba(116, 89, 33, 0.22);
        }
        [data-theme="light"] .share-auth-tag {
            background: rgba(116, 89, 33, 0.12);
            color: #5e4620;
            border-color: rgba(116, 89, 33, 0.35);
        }
        [data-theme="light"] .share-arabic { color: #2f2a18; }
        [data-theme="light"] .share-translation { color: rgba(31, 43, 31, 0.94); }
        [data-theme="light"] .share-reference,
        [data-theme="light"] .share-branding { color: rgba(57, 66, 49, 0.9); }

        /* ============================================ */
        /* ===== CARD ENTRANCE ANIMATIONS ===== */
        /* ============================================ */
        .dua-card {
            opacity: 0;
            transform: translateY(20px);
        }
        .dua-card.visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                        border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .dua-card:nth-child(odd).visible { transition-delay: 0.05s; }
        .dua-card:nth-child(even).visible { transition-delay: 0.12s; }

        /* Expand body with spring-like easing */
        .card-body {
            max-height: 0; overflow: hidden;
            transition: max-height 0.45s cubic-bezier(0.33, 1, 0.68, 1);
        }
        .dua-card.expanded .card-body { max-height: 5000px; }
        .dua-card.expanded { border-color: rgba(46, 196, 122, 0.15); box-shadow: var(--shadow-card); }

        /* ===== PROGRESS PANEL ===== */
        .progress-panel {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            z-index: 2000; overflow-y: auto;
            padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
            backdrop-filter: blur(24px) saturate(150%);
            opacity: 0; visibility: hidden; transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s var(--transition-smooth);
        }
        .progress-panel.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
        [data-theme="light"] .progress-panel { background: rgba(247, 245, 239, 0.97); }
        .progress-panel-content {
            max-width: 500px; margin: 0 auto; padding-top: 20px;
        }
        .progress-panel-content h2 {
            font-family: var(--font-title); font-size: 1rem;
            letter-spacing: 3px; text-transform: none;
            color: var(--emerald-light); text-align: center; margin-bottom: 1.5rem;
        }
        .progress-stat-card {
            background: var(--bg-glass);
            border: 1px solid rgba(46, 196, 122, 0.08);
            border-radius: var(--radius-lg);
            padding: 18px; margin-bottom: 10px;
            display: flex; align-items: center; gap: 14px;
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow-soft);
        }
        .progress-stat-icon { font-size: 1.8rem; flex-shrink: 0; }
        .progress-stat-info { flex: 1; }
        .progress-stat-label {
            font-family: var(--font-title); font-size: 0.7rem;
            letter-spacing: 1.5px; text-transform: none;
            color: var(--text-subtle); margin-bottom: 2px;
        }
        .progress-stat-value {
            font-family: var(--font-title); font-size: 1.4rem;
            color: var(--emerald-light); font-weight: 700;
        }
        .progress-stat-sub {
            font-family: var(--font-text); font-size: 0.75rem;
            color: var(--text-subtle); margin-top: 2px;
        }
        .progress-bar-visual {
            width: 100%; height: 6px; border-radius: 3px;
            background: rgba(46, 196, 122, 0.1); margin-top: 8px; overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%; border-radius: 3px;
            background: linear-gradient(90deg, var(--green-dark), var(--emerald-light), var(--green-light));
            transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .progress-reset-btn {
            display: block; margin: 24px auto 0; padding: 10px 24px;
            border-radius: 50px; background: rgba(122, 46, 59, 0.06);
            border: 1px solid rgba(122, 46, 59, 0.12);
            color: #ef9a9a; font-family: var(--font-title);
            font-size: 0.62rem; letter-spacing: 1.5px; text-transform: none;
            cursor: pointer; transition: all 0.3s var(--transition-smooth);
        }
        .progress-reset-btn:hover {
            background: rgba(122, 46, 59, 0.12);
            border-color: rgba(122, 46, 59, 0.25);
        }
        .progress-share-btn {
            display: block; margin: 12px auto 0; padding: 10px 24px;
            border-radius: 50px; background: rgba(46, 196, 122, 0.12);
            border: 1px solid rgba(46, 196, 122, 0.25);
            color: var(--emerald-light); font-family: var(--font-title);
            font-size: 0.7rem; letter-spacing: 1.5px; text-transform: none;
            cursor: pointer; transition: all 0.3s var(--transition-smooth);
        }
        .progress-share-btn:hover {
            background: rgba(46, 196, 122, 0.18);
            border-color: rgba(46, 196, 122, 0.35);
        }

        /* ===== AUDIO RECITATION BUTTON ===== */
        .audio-player {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 0 1 auto;
        }
        .audio-player[data-state="idle"] .audio-progress,
        .audio-player[data-state="paused"] .audio-progress {
            display: none;
        }

        .audio-progress {
            flex: 1;
            height: 6px;
            border-radius: 999px;
            background: rgba(46, 196, 122, 0.14);
            border: 1px solid rgba(46, 196, 122, 0.12);
            overflow: hidden;
        }

        .audio-progress-fill {
            display: block;
            width: 0%;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(46, 196, 122, 0.35), rgba(46, 196, 122, 0.9));
            transition: width 0.2s linear;
        }

        .audio-btn {
            position: relative; overflow: hidden;
            white-space: nowrap;
        }
        .audio-btn.loading {
            opacity: 0.85;
            pointer-events: none;
        }
        .audio-btn.playing {
            background: rgba(46, 196, 122, 0.12) !important;
            border-color: rgba(46, 196, 122, 0.3) !important;
            color: var(--emerald-light) !important;
        }
        .audio-btn.playing::after {
            content: ''; position: absolute; top: 50%; left: 50%;
            width: 120%; height: 120%; border-radius: 50%;
            background: rgba(46, 196, 122, 0.08);
            transform: translate(-50%, -50%) scale(0);
            animation: audioPulse 1.5s ease-in-out infinite;
        }
        @keyframes audioPulse {
            0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
            100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
        }

        /* ===== TIME-BASED SUGGESTION BANNER ===== */
        .time-banner {
            background: var(--bg-glass);
            border: 1px solid rgba(46, 196, 122, 0.08);
            border-radius: var(--radius-lg); padding: 16px 18px;
            margin: 0 0 14px; cursor: pointer;
            transition: all 0.35s var(--transition-smooth);
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow-soft);
        }
        .time-banner:hover { border-color: rgba(46, 196, 122, 0.2); transform: translateY(-2px); box-shadow: var(--shadow-card); }
        .time-banner-header {
            display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
        }
        .time-banner-icon { font-size: 1.5rem; }
        .time-banner-title {
            font-family: var(--font-title); font-size: 0.72rem;
            letter-spacing: 1.5px; text-transform: none;
            color: var(--emerald-light);
        }
        .time-banner-period {
            font-family: var(--font-text); font-size: 0.85rem;
            color: var(--gold-light); font-style: italic; margin-bottom: 10px;
        }
        .time-banner-duas {
            display: flex; flex-wrap: wrap; gap: 6px;
        }
        .time-dua-chip {
            display: inline-flex; align-items: center; gap: 4px;
            padding: 5px 12px; border-radius: 50px;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.08);
            font-family: var(--font-text); font-size: 0.72rem;
            color: var(--text-faint); cursor: pointer;
            transition: all 0.25s var(--transition-smooth);
        }
        .time-dua-chip:hover {
            background: rgba(46, 196, 122, 0.1);
            border-color: rgba(46, 196, 122, 0.25); color: var(--emerald-light);
        }
        [data-theme="light"] .time-banner {
            background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px);
        }

        /* ===== ENHANCED DASHBOARD ===== */
        .progress-week-grid {
            display: grid; grid-template-columns: repeat(7, 1fr);
            gap: 4px; margin-top: 10px;
        }
        .progress-day-cell {
            aspect-ratio: 1; border-radius: 6px;
            background: rgba(46, 196, 122, 0.03);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            font-family: var(--font-title); font-size: 0.52rem;
            letter-spacing: 0.5px; color: var(--text-faint);
            transition: all 0.3s var(--transition-smooth);
        }
        .progress-day-cell.active {
            background: rgba(46, 196, 122, 0.12);
            border: 1px solid rgba(46, 196, 122, 0.2);
            color: var(--emerald-light);
        }
        .progress-day-cell.today {
            border: 1px solid var(--emerald-light);
            box-shadow: 0 0 10px rgba(46, 196, 122, 0.15);
        }
        .progress-achievements {
            display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
            margin-top: 12px;
        }
        .achievement-badge {
            background: rgba(46, 196, 122, 0.03);
            border: 1px solid rgba(46, 196, 122, 0.06);
            border-radius: var(--radius-md); padding: 12px;
            text-align: center; transition: all 0.3s var(--transition-smooth);
        }
        .achievement-badge.earned {
            background: rgba(46, 196, 122, 0.08);
            border-color: rgba(46, 196, 122, 0.18);
        }
        .achievement-badge.locked {
            opacity: 0.4; filter: grayscale(0.8);
        }
        .achievement-icon { font-size: 1.5rem; margin-bottom: 4px; }
        .achievement-name {
            font-family: var(--font-title); font-size: 0.6rem;
            letter-spacing: 1px; text-transform: none;
            color: var(--text-muted);
        }
        .progress-category-bar {
            display: flex; align-items: center; gap: 8px;
            margin-bottom: 6px;
        }
        .progress-cat-label {
            font-family: var(--font-title); font-size: 0.55rem;
            letter-spacing: 0.5px; text-transform: none;
            color: var(--text-subtle); width: 70px; flex-shrink: 0;
            text-align: right;
        }
        .progress-cat-bar {
            flex: 1; height: 4px; border-radius: 2px;
            background: rgba(46, 196, 122, 0.05); overflow: hidden;
        }
        .progress-cat-fill {
            height: 100%; border-radius: 3px;
            background: var(--emerald-light);
            transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
        }
        .progress-cat-count {
            font-family: var(--font-title); font-size: 0.55rem;
            color: var(--text-faint); width: 28px;
        }

        /* ===== THEME TOGGLE IN NAV ===== */
        .theme-toggle {
            background: rgba(46, 196, 122, 0.04); border: 1px solid rgba(46, 196, 122, 0.12);
            color: var(--text-muted); width: 34px; height: 34px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.35s var(--transition-smooth); font-size: 0.95rem;
        }
        .theme-toggle:hover {
            background: rgba(46, 196, 122, 0.1);
            border-color: rgba(46, 196, 122, 0.3); color: var(--emerald-light); transform: scale(1.08);
        }
        /* ===== NAV OVERFLOW MENU (MOBILE) ===== */
        .nav-overflow-toggle {
            display: flex;
            background: rgba(46, 196, 122, 0.04);
            border: 1px solid rgba(46, 196, 122, 0.12);
            color: var(--text-muted); width: 34px; height: 34px;
            border-radius: 50%; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.3s var(--transition-smooth); font-size: 1rem;
        }
        .nav-overflow-toggle:hover {
            background: rgba(46, 196, 122, 0.1);
            border-color: rgba(46, 196, 122, 0.3); color: var(--emerald-light);
        }
        .nav-overflow-menu {
            display: none; position: absolute; top: calc(100% + 4px); right: 0;
            background: rgba(12, 26, 19, 0.95);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(46, 196, 122, 0.12);
            border-radius: var(--radius-md); padding: 8px;
            min-width: 210px;
            width: min(210px, calc(100vw - 12px));
            max-width: calc(100vw - 12px);
            z-index: 1001;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
            flex-direction: column; gap: 2px;
        }
        .nav-overflow-menu.open { display: flex; }
        .overflow-control-row {
            padding: 6px;
        }
        .overflow-control-row .lang-toggle,
        .overflow-control-row .font-controls {
            width: 100%;
            margin-right: 0;
            justify-content: center;
        }
        .nav-overflow-menu .nav-btn {
            width: 100%; border-radius: 8px; justify-content: flex-start;
            height: auto;
            min-height: 44px;
            gap: 10px; padding: 10px 12px; font-size: 0.78rem;
            font-family: var(--font-title); letter-spacing: 0.5px;
        }
        .nav-overflow-menu .nav-btn .overflow-label {
            font-size: 0.72rem; letter-spacing: 0.5px;
        }
        [data-theme="light"] .nav-overflow-menu {
            background: rgba(247, 245, 239, 0.96);
            border-color: rgba(13, 123, 80, 0.12);
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        }

        /* ===== UX ENHANCEMENTS (300ms TRANSITIONS + NEW UI) ===== */
        body,
        .top-nav,
        .bottom-nav,
        .dua-card,
        .cat-card,
        .search-input,
        .pill,
        .toolbar-btn,
        .progress-panel,
        .etiquette-panel {
            transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
        }

        .etiquette-panel,
        .routine-panel,
        .prayer-panel,
        .progress-panel,
        .tasbeeh-panel {
            transform: translateY(16px);
            transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease;
        }
        .etiquette-panel.active,
        .routine-panel.active,
        .prayer-panel.active,
        .progress-panel.active,
        .tasbeeh-panel.active {
            transform: translateY(0);
        }

        .card-body {
            transition: max-height 300ms ease;
        }

        .overlay {
            transition: opacity 300ms ease, visibility 300ms ease;
        }
        .side-panel {
            transition: transform 300ms ease;
        }

        .tab-fade-target {
            opacity: 1;
            transition: opacity 180ms ease;
        }
        .tab-fade-target.is-fading {
            opacity: 0.94;
        }

        #mainContainer.home-panel,
        .routine-panel,
        .quran-panel,
        .tasbeeh-panel,
        .prayer-panel {
            position: fixed !important;
            top: 0;
            left: 0;
            right: 0;
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
            background: var(--bg-dark) !important;
            overflow-y: auto;
            visibility: hidden;
            opacity: 0;
            z-index: 1;
            pointer-events: none;
            transform: none !important;
            transition: opacity 0.15s ease, visibility 0.15s ease;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            will-change: opacity;
            backface-visibility: hidden;
        }

        #mainContainer.home-panel.active {
            visibility: visible;
            opacity: 1;
            z-index: 10;
            pointer-events: auto;
        }

        .pull-refresh-indicator {
            position: absolute;
            top: calc(var(--safe-top) + 8px);
            left: 50%;
            transform: translate(-50%, -12px);
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.22);
            background: rgba(12, 26, 19, 0.88);
            color: var(--text-subtle);
            font-family: var(--font-title);
            font-size: 0.64rem;
            letter-spacing: 0.4px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
            z-index: 30;
        }
        .pull-refresh-indicator.visible { opacity: 1; }
        .pull-refresh-indicator.armed { color: var(--emerald-light); }
        .pull-refresh-indicator.refreshing { color: var(--gold-light); }

        [data-theme="light"] .pull-refresh-indicator {
            background: rgba(255, 255, 255, 0.94);
            border-color: rgba(15, 80, 50, 0.2);
            color: var(--text-primary);
        }

        .native-android-app .pull-refresh-indicator {
            display: none !important;
        }

        .routine-panel.active,
        .quran-panel.active,
        .tasbeeh-panel.active,
        .prayer-panel.active {
            visibility: visible;
            opacity: 1;
            z-index: 2100;
            pointer-events: auto;
        }

        .quran-panel,
        .prayer-panel {
            will-change: opacity;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        .tasbeeh-panel {
            bottom: 0 !important;
            padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 8px) !important;
            -webkit-transform: none !important;
            transform: none !important;
            will-change: auto !important;
            backface-visibility: visible !important;
        }

        .tasbeeh-panel.active {
            transform: none !important;
        }

        .panel-loading-overlay {
            position: absolute;
            inset: 0;
            z-index: 10;
            display: none;
            align-items: center;
            justify-content: center;
            background: var(--bg-dark);
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 0.76rem;
            letter-spacing: 0.45px;
            pointer-events: none;
        }
        .panel-loading-overlay.visible {
            display: flex;
        }

        .home-panel,
        .routine-panel,
        .quran-panel,
        .tasbeeh-panel,
        .prayer-panel {
            transition: opacity 0.15s ease, visibility 0.15s ease;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            will-change: opacity;
            backface-visibility: hidden;
        }

        .dua-card,
        .quran-continue-card,
        .quran-recent-wrap,
        .quran-surah-row,
        .quran-popular-card,
        .quran-ayah-card,
        .prayer-time-row,
        .prayer-countdown-card,
        .prayer-location-bar,
        .qibla-section,
        .prayer-reminder-settings,
        .prayer-notify-row,
        .side-panel {
            background: var(--bg-surface);
        }

        [data-theme="light"] .dua-card,
        [data-theme="light"] .quran-continue-card,
        [data-theme="light"] .quran-recent-wrap,
        [data-theme="light"] .quran-surah-row,
        [data-theme="light"] .quran-popular-card,
        [data-theme="light"] .quran-ayah-card,
        [data-theme="light"] .prayer-time-row,
        [data-theme="light"] .prayer-countdown-card,
        [data-theme="light"] .prayer-location-bar,
        [data-theme="light"] .qibla-section,
        [data-theme="light"] .prayer-reminder-settings,
        [data-theme="light"] .prayer-notify-row,
        [data-theme="light"] .side-panel {
            background: var(--bg-card);
        }

        .progress-category-bar {
            margin-bottom: 8px;
        }
        .progress-cat-label {
            font-size: 0.58rem;
            letter-spacing: 0.3px;
            text-transform: none;
        }
        .progress-cat-bar {
            height: 8px;
            border-radius: 999px;
            background: rgba(46, 196, 122, 0.08);
        }
        .progress-cat-fill {
            border-radius: 999px;
            background: linear-gradient(90deg, var(--emerald-light), var(--gold-mid));
        }
        .progress-cat-count {
            width: 42px;
            text-align: right;
            font-size: 0.58rem;
        }

        .achievement-badge {
            position: relative;
        }
        .achievement-badge.earned {
            background: rgba(46, 196, 122, 0.12);
            border-color: rgba(46, 196, 122, 0.28);
            box-shadow: 0 0 18px rgba(46, 196, 122, 0.18);
        }
        .achievement-badge.locked {
            opacity: 0.82;
            filter: grayscale(0.6);
            border-color: rgba(255, 255, 255, 0.10);
            background: rgba(255, 255, 255, 0.04);
        }
        .achievement-lock {
            position: absolute;
            top: 6px;
            right: 7px;
            font-size: 0.72rem;
            opacity: 0.85;
        }
        .achievement-name {
            letter-spacing: 0.5px;
            text-transform: none;
        }

        .skeleton {
            position: relative;
            overflow: hidden;
            background: rgba(46, 196, 122, 0.08);
            border-radius: 8px;
        }
        .skeleton::after {
            content: '';
            position: absolute;
            inset: 0;
            transform: translateX(-100%);
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
            animation: skeletonShimmer 1.2s ease-in-out infinite;
        }
        @keyframes skeletonShimmer {
            100% { transform: translateX(100%); }
        }
        .prayer-skeleton-row {
            height: 48px;
            border-radius: 12px;
            margin-bottom: 8px;
            border: 1px solid rgba(46, 196, 122, 0.08);
        }

        .daily-reminder-prompt {
            margin: 16px auto 0;
            max-width: 460px;
            background: rgba(46, 196, 122, 0.06);
            border: 1px solid rgba(46, 196, 122, 0.14);
            border-radius: var(--radius-lg);
            padding: 12px 14px;
            text-align: left;
            backdrop-filter: blur(10px);
            display: none;
        }
        .daily-reminder-prompt.visible { display: block; }
        .daily-reminder-title {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--emerald-light);
            font-size: 0.86rem;
            font-weight: 600;
        }
        .daily-reminder-sub {
            margin-top: 4px;
            color: var(--text-muted);
            font-size: 0.8rem;
        }
        .daily-reminder-actions {
            margin-top: 10px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .daily-reminder-btn {
            border: 1px solid rgba(46, 196, 122, 0.22);
            background: rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            border-radius: 999px;
            padding: 8px 12px;
            font-size: 0.74rem;
            cursor: pointer;
            min-height: 36px;
            transition: all 300ms ease;
        }
        .daily-reminder-btn.primary {
            background: rgba(46, 196, 122, 0.18);
            color: var(--emerald-light);
        }

        .home-progress-summary {
            margin: 12px auto 0;
            max-width: 520px;
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.18);
            background: rgba(46, 196, 122, 0.06);
            color: var(--text-muted);
            font-family: var(--font-title);
            font-size: 0.68rem;
            letter-spacing: 0.28px;
            text-align: center;
            box-shadow: var(--shadow-soft);
        }

        [data-theme="light"] .home-progress-summary {
            border-color: rgba(15, 80, 50, 0.18);
            background: rgba(255, 255, 255, 0.62);
            color: var(--text-primary);
        }

        .onboarding-overlay {
            position: fixed;
            inset: 0;
            z-index: 4000;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(4px);
            opacity: 0;
            pointer-events: none;
            transition: opacity 300ms ease;
        }
        .onboarding-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
        .onboarding-card {
            width: min(92vw, 420px);
            background: var(--bg-card);
            border: 1px solid rgba(46, 196, 122, 0.16);
            border-radius: var(--radius-lg);
            padding: 18px;
            box-shadow: var(--shadow-elevated);
            touch-action: pan-y;
            -webkit-user-select: none;
            user-select: none;
        }
        .onboarding-card.slide-in-next {
            animation: onboardingSlideNext 300ms ease;
        }
        .onboarding-card.slide-in-prev {
            animation: onboardingSlidePrev 300ms ease;
        }
        @keyframes onboardingSlideNext {
            from { opacity: 0; transform: translateX(20px) scale(0.98); }
            to { opacity: 1; transform: translateX(0) scale(1); }
        }
        @keyframes onboardingSlidePrev {
            from { opacity: 0; transform: translateX(-20px) scale(0.98); }
            to { opacity: 1; transform: translateX(0) scale(1); }
        }
        .onboarding-step {
            font-size: 0.68rem;
            color: var(--text-subtle);
            margin-bottom: 10px;
            letter-spacing: 0.4px;
        }
        .onboarding-title {
            color: var(--emerald-light);
            font-size: 1.02rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .onboarding-body {
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.75;
            min-height: 86px;
        }
        .onboarding-dots {
            display: flex;
            gap: 6px;
            margin: 12px 0;
        }
        .onboarding-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(46, 196, 122, 0.25);
        }
        .onboarding-dot.active {
            background: var(--emerald-light);
        }
        .onboarding-actions {
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }
        .onboarding-btn {
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.22);
            background: rgba(46, 196, 122, 0.08);
            color: var(--text-primary);
            padding: 10px 14px;
            min-height: 44px;
            font-size: 0.76rem;
            cursor: pointer;
            transition: all 300ms ease;
        }
        .onboarding-btn.primary {
            background: rgba(46, 196, 122, 0.18);
            color: var(--emerald-light);
        }

        .app-update-open {
            overflow: hidden;
        }
        .language-picker-open {
            overflow: hidden;
        }
        .startup-blocked #appContent {
            visibility: hidden;
        }
        .startup-blocked .app-content .panel,
        .startup-blocked #mainContainer {
            visibility: hidden !important;
        }
        .startup-blocked .first-launch-language-overlay,
        .startup-blocked .app-update-overlay.active {
            visibility: visible;
        }
        .first-launch-language-overlay {
            position: fixed;
            inset: 0;
            z-index: 13000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(5, 12, 23, 0.82);
            backdrop-filter: blur(7px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 220ms ease;
        }
        .first-launch-language-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .first-launch-language-overlay.closing {
            opacity: 0;
        }
        .first-launch-language-card {
            width: min(92vw, 430px);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
            border: 1px solid rgba(201, 168, 76, 0.28);
            border-radius: 20px;
            box-shadow: var(--shadow-elevated), 0 0 36px rgba(201, 168, 76, 0.12);
            padding: 24px 18px 18px;
            text-align: center;
        }
        .first-launch-language-logo img {
            width: 72px;
            height: 72px;
            border-radius: 18px;
            margin: 0 auto 12px;
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
        }
        .first-launch-language-title {
            font: var(--text-h1);
            margin: 0;
            color: var(--text-primary);
        }
        .first-launch-language-subtitle {
            margin: 6px 0 16px;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        .first-launch-language-actions {
            display: grid;
            gap: 10px;
        }
        .first-launch-language-btn {
            width: 100%;
            min-height: 52px;
            border-radius: 14px;
            border: 1px solid rgba(201, 168, 76, 0.26);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-primary);
            font-family: var(--font-title);
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.2px;
            cursor: pointer;
            transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
        }
        .first-launch-language-btn:active {
            transform: scale(0.98);
        }
        .first-launch-language-btn:hover,
        .first-launch-language-btn:focus-visible {
            background: rgba(201, 168, 76, 0.18);
            border-color: rgba(201, 168, 76, 0.5);
            outline: none;
        }
        .first-launch-language-hint {
            margin: 14px 0 0;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.45;
        }
        .app-update-overlay {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(5, 12, 23, 0.78);
            backdrop-filter: blur(6px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 220ms ease;
        }
        .app-update-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .app-update-card {
            width: min(92vw, 420px);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
            border: 1px solid rgba(201, 168, 76, 0.28);
            border-radius: 18px;
            box-shadow: var(--shadow-elevated), 0 0 40px rgba(201, 168, 76, 0.12);
            padding: 22px 18px 18px;
            text-align: center;
        }
        .app-update-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            margin: 0 auto 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        }
        .app-update-title {
            font: var(--text-h1);
            color: var(--text-primary);
            margin-bottom: 10px;
        }
        .app-update-message {
            color: var(--text-secondary);
            line-height: 1.65;
            font-size: 0.95rem;
            margin-bottom: 16px;
        }
        .app-update-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .app-update-btn {
            min-width: 120px;
            min-height: 44px;
            border-radius: 999px;
            border: 1px solid rgba(201, 168, 76, 0.28);
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            padding: 10px 16px;
            transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
        }
        .app-update-btn:active {
            transform: scale(0.98);
        }
        .app-update-btn.primary {
            background: rgba(201, 168, 76, 0.24);
            border-color: rgba(201, 168, 76, 0.58);
            color: #fff8e0;
        }
        .app-update-overlay.force .app-update-card {
            border-color: rgba(229, 103, 103, 0.45);
            box-shadow: var(--shadow-elevated), 0 0 36px rgba(229, 103, 103, 0.16);
        }
        [data-theme="light"] .app-update-overlay {
            background: rgba(34, 28, 17, 0.42);
        }
        [data-theme="light"] .first-launch-language-overlay {
            background: rgba(34, 28, 17, 0.46);
        }
        [data-theme="light"] .first-launch-language-card {
            background: linear-gradient(180deg, #ffffff, #f6f2ea);
            border-color: rgba(116, 89, 33, 0.3);
        }
        [data-theme="light"] .first-launch-language-subtitle {
            color: rgba(26, 26, 46, 0.76);
        }
        [data-theme="light"] .app-update-card {
            background: linear-gradient(180deg, #ffffff, #f6f2ea);
            border-color: rgba(116, 89, 33, 0.3);
        }
        [data-theme="light"] .app-update-message {
            color: rgba(26, 26, 46, 0.76);
        }
        /* ============================================ */
        @media (max-width: 420px) {
            h1 { font-size: 1.5rem; }
            .bismillah { font-size: calc(1.8rem * var(--font-scale)); }
            .arabic-text { font-size: calc(1.35rem * var(--font-scale)); }
            .dua-title { font-size: calc(0.72rem * var(--font-scale)); }
            .container { padding-left: 8px; padding-right: 8px; }
            .tasbeeh-panel {
                padding-top: calc(var(--safe-top) + 6px);
                padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 6px) !important;
            }
            .tasbeeh-panel .panel-back-btn {
                margin-top: 4px;
                margin-bottom: 4px;
            }
            .tasbeeh-title {
                margin: 4px 0 0.55rem;
            }
            .tasbeeh-count-display { font-size: 3.05rem; }
            .tasbeeh-tap-btn {
                --tap-size: min(26vw, 80px);
                width: var(--tap-size);
                height: var(--tap-size);
                min-width: 71px;
                min-height: 71px;
            }
            .tasbeeh-virtue { margin-bottom: 0.65rem; }
            .tasbeeh-controls { margin-top: 0.55rem; }
            .tasbeeh-presets { margin-top: 0.45rem; }

            /* Nav overflow */
            .nav-actions { position: relative; }

            /* Category pills: wrap instead of scroll on small screens */
            .category-pills { flex-wrap: wrap; overflow-x: visible; padding-bottom: 8px; }
            .pill { padding: 8px 14px; font-size: 0.65rem; letter-spacing: 1px; }
            .copy-row { flex-wrap: wrap; row-gap: 7px; }
        }

        @media (max-width: 380px) {
            .nav-overflow-menu {
                right: 0;
                width: min(196px, calc(100vw - 10px));
                max-width: calc(100vw - 10px);
                padding: 6px;
                gap: 1px;
            }
            .overflow-control-row {
                padding: 4px;
            }
            .nav-overflow-menu .nav-btn {
                min-height: 44px;
                padding: 8px 10px;
                font-size: 0.74rem;
            }
            .nav-overflow-menu .nav-btn .overflow-label {
                font-size: 0.69rem;
            }
        }

        @media (min-width: 768px) {
            h1 { font-size: 2.2rem; }
            .arabic-text { font-size: calc(1.75rem * var(--font-scale)); }
            .container { padding-left: 24px; padding-right: 24px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            .dua-card.visible { transition: none; }
            .gold-text { animation: none; }
        }

        /* ===== PRINT ===== */
        @media print {
            .top-nav, .bottom-nav, .progress-bar, .back-to-top,
            .search-container, .category-pills, .card-actions, .copy-row,
            .toolbar-row, .streak-banner, .tasbeeh-panel, .etiquette-panel,
            .routine-panel { display: none !important; }
            body { background: white; color: black; padding: 0; }
            .dua-card {
                break-inside: avoid; border: 1px solid #ddd;
                margin-bottom: 16px; opacity: 1 !important;
            }
            .dua-card .card-body { max-height: none !important; }
            .arabic-text { color: #1a1a1a; }
            .translation { color: #333; }
        }

        /* ============================================ */
        /* ===== FULL-SCREEN DUA SWIPE VIEWER ========= */
        /* ============================================ */
        .dua-swipe-viewer {
            position: fixed;
            inset: 0;
            z-index: 1200;
            background: var(--bg-dark);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        .dua-swipe-viewer.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .dua-swipe-viewer.is-closing {
            pointer-events: none;
        }
        [data-theme="light"] .dua-swipe-viewer {
            background: var(--bg-light);
        }
        .dua-swipe-viewer.active ~ .in-app-swipe-indicator {
            display: none !important;
        }

        .dua-swipe-progress {
            position: absolute;
            top: calc(var(--nav-height) + var(--safe-top));
            left: 0;
            right: 0;
            height: 2px;
            background: var(--bg-surface);
            z-index: 3;
        }
        .dua-swipe-progress-fill {
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--green-dark), var(--emerald-light), var(--gold-mid));
            transition: width 0.25s ease;
        }

        .dua-swipe-shell {
            position: absolute;
            top: calc(var(--nav-height) + var(--safe-top) + 8px);
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 28px);
            left: 0;
            right: 0;
            overflow: hidden;
            padding: 0 14px;
            background: var(--bg-dark);
        }
        .dua-swipe-track {
            display: flex;
            gap: 14px;
            height: 100%;
            will-change: transform;
            touch-action: pan-y;
            background: var(--bg-dark);
        }
        .dua-swipe-slide {
            flex: 0 0 calc(100% - 32px);
            height: 100%;
        }

        .dua-swipe-card {
            height: 100%;
            display: flex;
            flex-direction: column;
            border-radius: var(--radius-lg);
            background: var(--bg-surface);
            border: 1px solid var(--emerald-light);
            box-shadow: var(--shadow-card);
            overflow: hidden;
            position: relative;
        }
        .dua-swipe-card::before {
            content: '';
            position: absolute;
            inset: 8px;
            border-radius: calc(var(--radius-lg) - 4px);
            border: 1px solid var(--gold-dark);
            pointer-events: none;
            opacity: 1;
        }

        .dua-swipe-meta,
        .dua-swipe-title-row {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 12px 16px 0;
        }
        .dua-swipe-count {
            font-family: var(--font-title);
            font-size: 0.7rem;
            letter-spacing: 1.4px;
            color: var(--text-subtle);
        }
        .dua-swipe-read {
            font-family: var(--font-title);
            font-size: 0.62rem;
            color: var(--text-faint);
            border: 1px solid var(--emerald-light);
            border-radius: 999px;
            padding: 3px 8px;
            cursor: pointer;
            background: var(--bg-surface);
        }
        .dua-swipe-read.active {
            color: var(--emerald-light);
            border-color: var(--emerald-light);
            background: var(--bg-dark);
        }

        .dua-swipe-title {
            font-family: var(--font-title);
            font-size: 0.96rem;
            color: var(--text-primary);
            line-height: 1.35;
        }
        .dua-swipe-auth {
            font-size: 0.64rem;
            color: var(--text-subtle);
            border: 1px solid var(--gold-dark);
            border-radius: 999px;
            padding: 3px 8px;
            white-space: nowrap;
            background: var(--bg-surface);
        }

        .dua-swipe-content {
            flex: 1;
            overflow-y: auto;
            padding: 4px 0 6px;
            position: relative;
            z-index: 1;
            -webkit-overflow-scrolling: touch;
            background: var(--bg-surface);
        }
        .dua-swipe-content .card-body-inner { padding: 0 16px 8px; }
        .dua-swipe-content .translation,
        .dua-swipe-content .translation-ps,
        .dua-swipe-content .transliteration,
        .dua-swipe-content .reference,
        .dua-swipe-content .virtue-tag,
        .dua-swipe-content .virtue-tag-ps,
        .dua-swipe-content .how-to-box {
            overflow-wrap: anywhere;
        }
        .dua-swipe-content .arabic-container { background: var(--bg-dark); }
        .dua-swipe-content .virtue-tag,
        .dua-swipe-content .virtue-tag-ps,
        .dua-swipe-content .how-to-box { background: var(--bg-dark); }
        .dua-swipe-content .arabic-text {
            font-size: calc(2.05rem * var(--font-scale));
            line-height: 2.2;
            text-align: center;
            font-family: var(--font-amiri);
        }
        .dua-swipe-content .transliteration { font-size: calc(0.98rem * var(--font-scale)); }
        .dua-swipe-content .translation,
        .dua-swipe-content .translation-ps { font-size: calc(1.03rem * var(--font-scale)); }

        .dua-swipe-actions {
            position: relative;
            z-index: 1;
            display: flex;
            gap: 6px;
            padding: 10px 10px 12px;
            border-top: 1px solid var(--emerald-light);
            background: var(--bg-dark);
            flex-wrap: wrap;
            justify-content: center;
        }
        .dua-swipe-actions .action-btn,
        .dua-swipe-actions .audio-btn {
            font-size: 0.65rem;
            padding: 7px 10px;
            letter-spacing: 0.5px;
        }
        .dua-swipe-actions .audio-player {
            min-width: 110px;
            margin: 0;
        }
        .dua-swipe-actions .bookmarked-inline {
            color: var(--gold-mid);
            border-color: rgba(201, 168, 76, 0.35);
        }

        .dua-swipe-back,
        .dua-swipe-arrow {
            position: absolute;
            color: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            cursor: pointer;
            transition: opacity 0.35s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
            z-index: 4;
            width: 44px;
            height: 44px;
            padding: 8px 12px;
        }
        .dua-swipe-back:hover,
        .dua-swipe-arrow:hover {
            color: rgba(255, 255, 255, 1);
        }
        .dua-swipe-back:active,
        .dua-swipe-arrow:active {
            color: rgba(255, 255, 255, 1);
            background: rgba(255, 255, 255, 0.16);
            border-color: rgba(255, 255, 255, 0.22);
        }
        .dua-swipe-back {
            top: calc(var(--safe-top) + 16px);
            left: 16px;
            font-size: 20px;
        }
        .dua-swipe-arrow {
            top: 50%;
            font-size: 20px;
            transform: translateY(-50%);
        }
        .dua-swipe-arrow.left { left: 8px; }
        .dua-swipe-arrow.right { right: 8px; }
        .dua-swipe-viewer.show-swipe-hints .dua-swipe-arrow { opacity: 0.2; }
        .dua-swipe-viewer.show-swipe-hints.hint-left .dua-swipe-arrow.left,
        .dua-swipe-viewer.show-swipe-hints.hint-right .dua-swipe-arrow.right { opacity: 0.35; }
        .dua-swipe-viewer.show-swipe-hints .dua-swipe-back { opacity: 0.75; }

        .dua-swipe-dots {
            position: absolute;
            left: 0;
            right: 0;
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 6px);
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .dua-swipe-dots.visible { display: flex; }
        .dua-swipe-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text-subtle);
        }
        .dua-swipe-dot.active { background: var(--emerald-light); }

        .dua-swipe-empty {
            margin: auto;
            color: var(--text-subtle);
            font-family: var(--font-title);
            letter-spacing: 1px;
        }

        [data-theme="light"] .dua-swipe-viewer,
        [data-theme="light"] .dua-swipe-shell,
        [data-theme="light"] .dua-swipe-track {
            background: var(--bg-dark);
        }
        [data-theme="light"] .dua-swipe-card {
            border-color: var(--emerald-light);
            background: var(--bg-surface);
        }
        [data-theme="light"] .dua-swipe-card::before {
            border-color: var(--gold-dark);
            opacity: 1;
        }
        [data-theme="light"] .dua-swipe-back,
        [data-theme="light"] .dua-swipe-arrow {
            color: rgba(25, 60, 42, 0.7);
            border-color: rgba(15, 80, 50, 0.2);
            background: rgba(255, 255, 255, 0.7);
        }
        [data-theme="light"] .dua-swipe-back:hover,
        [data-theme="light"] .dua-swipe-arrow:hover,
        [data-theme="light"] .dua-swipe-back:focus-visible,
        [data-theme="light"] .dua-swipe-arrow:focus-visible { color: rgba(25, 60, 42, 0.95); }
        [data-theme="light"] .dua-swipe-actions {
            background: var(--bg-dark);
            border-top-color: var(--emerald-light);
        }

        @media (max-width: 640px) {
            .dua-swipe-shell {
                padding: 0 8px;
                bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 22px);
            }
            .dua-swipe-track { gap: 10px; }
            .dua-swipe-slide { flex-basis: calc(100% - 20px); }
            .dua-swipe-content .arabic-text { font-size: calc(1.8rem * var(--font-scale)); }
        }

        /* ============================================ */
        /* ===== PASHTO / LANGUAGE TOGGLE ===== */
        /* ============================================ */

        /* --- Language toggle button --- */
        .lang-toggle {
            display: flex; align-items: center; gap: 0;
            background: rgba(46, 196, 122, 0.08);
            border: 1px solid rgba(46, 196, 122, 0.18);
            border-radius: 20px; overflow: hidden;
            font-size: 0.68rem; cursor: pointer;
            margin-right: 4px;
        }
        .lang-toggle span {
            padding: 5px 10px; transition: all 0.3s ease;
            color: var(--text-muted); font-weight: 500;
            white-space: nowrap;
        }
        .lang-toggle span.active-lang {
            background: var(--emerald-light); color: #fff;
            border-radius: 20px;
        }
        [data-theme="light"] .lang-toggle {
            background: rgba(13, 123, 80, 0.06);
            border-color: rgba(13, 123, 80, 0.15);
        }
        [data-theme="light"] .lang-toggle span.active-lang {
            background: var(--emerald-light); color: #fff;
        }

        /* --- Pashto translation element --- */
        .translation-ps {
            font-family: var(--font-arabic);
            font-size: calc(1rem * var(--font-scale));
            line-height: 2;
            color: var(--text-primary);
            direction: rtl;
            text-align: right;
            padding: 12px 0 4px;
        }

        .virtue-tag-ps {
            font-family: var(--font-arabic);
            font-size: calc(0.82rem * var(--font-scale));
            line-height: 1.9;
            color: var(--gold-mid);
            direction: rtl;
            text-align: right;
            padding: 6px 0 2px;
            font-style: italic;
        }
        .virtue-tag-ps .gem { font-style: normal; }

        /* --- Default: English mode — hide Pashto elements --- */
        .translation-ps,
        .virtue-tag-ps { display: none; }

        /* --- Pashto mode --- */
        .lang-ps .transliteration { display: none !important; }
        .lang-ps .translation { display: none !important; }
        .lang-ps .translation-ps { display: block; }
        .lang-ps .virtue-tag { display: none !important; }
        .lang-ps .virtue-tag-ps { display: flex; }

        /* RTL adjustments for Pashto mode */
        .lang-ps .section-title,
        .lang-ps .section-subtitle,
        .lang-ps .section-collapse-hint,
        .lang-ps .dua-title,
        .lang-ps .dua-category-tag {
            font-family: var(--font-amiri);
        }

        /* ============================================ */
        /* ===== 2026 RESTRUCTURE OVERRIDES ===== */
        /* ============================================ */
        :root {
            --nav-height: 48px;
        }

        .top-nav {
            background: var(--bg-dark);
            border-bottom: 1px solid rgba(46, 196, 122, 0.1);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            box-shadow: none;
            min-height: calc(var(--nav-height) + var(--safe-top));
            justify-content: flex-start;
        }
        [data-theme='light'] .top-nav {
            background: var(--bg-light);
            border-bottom-color: rgba(13, 123, 80, 0.12);
        }
        .fallah-logo {
            min-height: var(--nav-height);
            display: flex;
            align-items: center;
        }
        .fallah-brand {
            font-size: 0.8rem;
            letter-spacing: 0.3px;
            text-transform: none;
        }
        .fallah-sub {
            display: block;
            font-size: 0.58rem;
            line-height: 1;
            opacity: 0.78;
        }
        .nav-actions { display: none; }

        .app-content {
            position: fixed;
            left: 0;
            right: 0;
            top: calc(var(--nav-height) + var(--safe-top) + 2px);
            bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
            height: auto;
            min-height: 0;
            overflow: hidden;
            background: var(--bg-dark);
            isolation: isolate;
        }

        [data-theme='light'] .app-content {
            background: var(--bg-light);
        }

        .app-content .panel {
            position: absolute !important;
            inset: 0;
            background: var(--bg-dark) !important;
            overflow-y: auto;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            -webkit-overflow-scrolling: touch;
            visibility: hidden;
            transform: none !important;
            z-index: 1;
        }

        .app-content > #mainContainer.home-panel,
        .app-content > .routine-panel,
        .app-content > .quran-panel,
        .app-content > .tasbeeh-panel,
        .app-content > .prayer-panel,
        .app-content > .more-panel,
        .app-content > .about-panel,
        .app-content > .etiquette-panel,
        .app-content > .progress-panel {
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            left: 0 !important;
        }

        .app-content .panel.active {
            opacity: 1;
            pointer-events: auto;
            visibility: visible;
            z-index: 10;
        }

        .app-content .prayer-panel .prayer-panel-content {
            height: auto;
            min-height: 100%;
        }

        #mainContainer.container {
            max-width: 660px;
            margin: 0 auto;
            width: 100%;
            padding: 12px 16px calc(var(--safe-bottom) + 28px);
        }

        .home-dashboard {
            display: grid;
            grid-template-rows: auto;
            gap: 0;
            align-content: start;
            min-height: auto;
        }

        .dashboard-greeting {
            display: none;
        }
        .home-greeting-tile {
            background: none;
            border: none;
            padding: 0;
        }
        .home-greeting-tile::before {
            display: none;
        }
        .dashboard-date {
            margin-top: 0;
            font-size: 0.73rem;
            color: var(--text-subtle);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .date-display {
            direction: inherit;
            unicode-bidi: plaintext;
            text-align: center;
            white-space: nowrap;
        }
        .dashboard-date-secondary {
            margin-top: 0;
            font-size: 0.74rem;
            color: var(--text-faint);
        }

        .dashboard-prayer-card,
        .dashboard-suggestion-card,
        .dashboard-progress-ring-card,
        .dashboard-tip-card,
        .dashboard-quick-tile,
        .duas-tab-search,
        .duas-bookmark-chip,
        .more-row,
        .more-about {
            border: 1px solid rgba(46, 196, 122, 0.12);
            background: var(--bg-surface);
            box-shadow: var(--shadow-soft);
        }

        .dashboard-prayer-card {
            border-radius: var(--radius-lg);
            width: 100%;
            margin-top: 12px;
            padding: 14px 14px;
            text-align: left;
            background: var(--bg-surface);
        }
        .dashboard-prayer-card.is-now {
            animation: pulse-now 1.6s ease-in-out infinite;
        }
        @keyframes pulse-now {
            0%, 100% { box-shadow: 0 0 0 0 rgba(46,196,122,0.16); }
            50% { box-shadow: 0 0 0 6px rgba(46,196,122,0.04); }
        }
        .dashboard-prayer-label { font-size: 0.72rem; color: var(--text-subtle); letter-spacing: 0.4px; }
        .dashboard-prayer-name { font-family: var(--font-title); font-size: 1.34rem; font-weight: 700; color: var(--text-primary); margin-top: 3px; }
        .dashboard-prayer-time { font-size: 1.14rem; color: var(--gold-light); line-height: 1.2; margin-top: 1px; }
        .dashboard-prayer-countdown { font-size: 0.9rem; color: var(--emerald-light); margin-top: 4px; }
        .dashboard-prayer-location { font-size: 0.76rem; color: var(--text-faint); margin-top: 4px; }
        .dashboard-reminder-debug { display: none; }

        .dashboard-prayer-strip-card {
            width: 100%;
            margin-top: 8px;
            padding: 8px 10px;
            border-radius: 12px;
            border: 1px solid rgba(201, 168, 76, 0.22);
            background: linear-gradient(135deg, rgba(15, 35, 56, 0.96), rgba(11, 26, 42, 0.95));
            text-align: left;
        }

        .dashboard-prayer-strip-head {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: rgba(255, 255, 255, 0.62);
            margin-bottom: 6px;
        }

        .dashboard-prayer-strip {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 6px;
        }

        .dashboard-prayer-strip-item {
            border-radius: 9px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            padding: 5px 4px;
            display: grid;
            justify-items: center;
            gap: 1px;
            min-width: 0;
        }

        .dashboard-prayer-strip-item.is-current {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.15));
            border: 1px solid rgba(201, 168, 76, 0.3);
            border-radius: 8px;
            box-shadow: none;
        }

        .dashboard-prayer-strip-item.is-next {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
        }

        .dashboard-prayer-strip-item.is-past {
            opacity: 0.62;
        }

        .dashboard-prayer-strip-name,
        .dashboard-prayer-strip-time {
            display: block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 1.1;
            font-size: 11px;
        }

        .dashboard-prayer-strip-name {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
        }

        .dashboard-prayer-strip-time {
            color: rgba(255, 255, 255, 0.72);
            font-size: 10px;
        }

        .dashboard-suggestion-card {
            border-radius: var(--radius-md);
            width: 100%;
            margin-top: 12px;
            padding: 10px 12px;
            text-align: left;
            cursor: pointer;
            touch-action: pan-y;
            transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
        }
        .dashboard-suggestion-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .continue-card {
            width: 100%;
            margin: 12px 0 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
        }
        .continue-card .continue-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 14px;
        }
        .continue-card .continue-btn {
            flex-shrink: 0;
            padding: 6px 14px;
            font-size: 13px;
            white-space: nowrap;
        }
        .dashboard-suggestion-card:active { transform: scale(0.985); opacity: 0.92; }
        .dashboard-suggestion-card.touch-feedback { opacity: 0.76; }
        .dashboard-suggestion-title { font-size: 1rem; color: var(--text-primary); }
        .dashboard-suggestion-sub {
            font-size: 0.8rem;
            color: var(--text-subtle);
            margin-top: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }
        .dashboard-suggestion-cta {
            margin-top: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            border-radius: 999px;
            padding: 0 10px;
            border: 1px solid rgba(46, 196, 122, 0.28);
            background: rgba(46, 196, 122, 0.14);
            color: var(--emerald-light);
            font-size: 0.68rem;
            white-space: nowrap;
        }

        .dashboard-quran-streak-card {
            width: 100%;
            margin-top: 10px;
            border-radius: 12px;
            border: 1px solid rgba(255, 140, 66, 0.34);
            background: linear-gradient(135deg, rgba(60, 30, 16, 0.96), rgba(37, 20, 10, 0.94));
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-align: left;
            touch-action: pan-y;
        }

        .dashboard-streak-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 140, 66, 0.18);
            color: #ff8c42;
            flex-shrink: 0;
        }

        .dashboard-streak-copy {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .dashboard-streak-title {
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            line-height: 1.2;
        }

        .dashboard-streak-sub {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.25;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #dashboardDuaSuggestionCard {
            margin-top: 10px;
            border: 1px solid rgba(74, 208, 196, 0.25);
            background: linear-gradient(135deg, rgba(19, 52, 56, 0.94), rgba(12, 33, 36, 0.95));
        }

        #dashboardDuaSuggestionCard .dashboard-continue-icon {
            color: #8de8db;
        }

        .dashboard-progress-ring-card {
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
        }
        .dashboard-ring-wrap { position: relative; width: 42px; height: 42px; }
        .dashboard-ring-svg { width: 42px; height: 42px; transform: rotate(-90deg); }
        .dashboard-ring-bg { fill: none; stroke: rgba(46,196,122,0.2); stroke-width: 4; }
        .dashboard-ring-fill { fill: none; stroke: var(--emerald-light); stroke-width: 4; transition: stroke-dashoffset 0.25s ease; }
        .dashboard-ring-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: var(--text-primary); }
        .dashboard-progress-title { font-size: 0.74rem; color: var(--text-primary); }
        .dashboard-progress-sub { font-size: 0.63rem; color: var(--text-subtle); }

        .dashboard-quick-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-top: 16px;
            gap: 12px;
            width: 100%;
        }
        .dashboard-quick-tile {
            border-radius: var(--radius-md);
            min-height: 110px;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 8px;
            transition: transform 0.15s ease, opacity 0.15s ease;
            touch-action: manipulation;
        }
        .tile-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
        }
        .dashboard-quick-tile:active { transform: scale(0.98); opacity: 0.92; }
        .dashboard-quick-icon {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .dashboard-quick-icon svg {
            width: 40px;
            height: 40px;
            display: block;
        }
        .dashboard-quick-label { font-size: 15px; color: var(--text-primary); }

        .dashboard-tip-card {
            border-radius: var(--radius-md);
            margin-top: 12px;
            padding: 12px 14px;
            font-size: 0.8rem;
            color: var(--text-subtle);
            border-color: rgba(46, 196, 122, 0.12);
            background: var(--bg-surface);
        }

        .duas-tab-shell { display: none; }
        .duas-tab-search-wrap {
            margin-bottom: 8px;
            position: relative;
        }
        #mainContainer[data-main-mode="duas"] .duas-tab-search-wrap {
            position: sticky;
            top: 0;
            z-index: 40;
            padding: 2px 0 8px;
            background: var(--bg-dark);
        }
        [data-theme='light'] #mainContainer[data-main-mode="duas"] .duas-tab-search-wrap {
            background: var(--bg-light);
        }
        .duas-tab-search {
            width: 100%;
            border-radius: 12px;
            padding: 10px 42px 10px 12px;
            border: 1px solid rgba(46, 196, 122, 0.14);
            color: var(--text-primary);
            outline: none;
        }
        .duas-tab-search-clear {
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            width: 26px;
            height: 26px;
            border-radius: 999px;
            border: 1px solid rgba(46, 196, 122, 0.22);
            background: rgba(46, 196, 122, 0.1);
            color: var(--text-subtle);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
            line-height: 1;
            padding: 0;
        }
        .duas-tab-search-clear.visible {
            display: inline-flex;
        }
        .duas-bookmarks { margin-bottom: 10px; }
        .duas-bookmarks-title { font-size: 0.68rem; color: var(--text-subtle); margin-bottom: 6px; }
        .duas-bookmarks-list { display: flex; gap: 6px; overflow-x: auto; }
        .duas-bookmark-chip {
            border-radius: 10px;
            padding: 8px 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(235, 245, 220, 0.88);
            white-space: nowrap;
            font-size: 0.6rem;
            letter-spacing: 0.2px;
            font-weight: 500;
            transition: filter 0.15s ease, transform 0.12s ease;
        }
        .duas-bookmark-chip:active {
            filter: brightness(1.18);
            transform: scale(0.97);
        }
        /* Muted jewel-tone palette — cycles every 6 chips */
        .duas-bookmark-chip:nth-child(6n+1) { background: linear-gradient(135deg, #0d3535 0%, #0a2828 100%); border-color: rgba(46,168,148,0.28); }
        .duas-bookmark-chip:nth-child(6n+2) { background: linear-gradient(135deg, #38162a 0%, #2a0f1e 100%); border-color: rgba(196,80,120,0.24); }
        .duas-bookmark-chip:nth-child(6n+3) { background: linear-gradient(135deg, #243618 0%, #1a2810 100%); border-color: rgba(100,180,60,0.22); }
        .duas-bookmark-chip:nth-child(6n+4) { background: linear-gradient(135deg, #261838 0%, #1a1028 100%); border-color: rgba(140,80,210,0.22); }
        .duas-bookmark-chip:nth-child(6n+5) { background: linear-gradient(135deg, #38260e 0%, #281a08 100%); border-color: rgba(201,148,46,0.28); }
        .duas-bookmark-chip:nth-child(6n+6) { background: linear-gradient(135deg, #0e2638 0%, #081824 100%); border-color: rgba(46,120,196,0.26); }

        #mainContainer[data-main-mode="home"] .home-dashboard { display: grid !important; }
        #mainContainer[data-main-mode="home"] .duas-tab-shell { display: none !important; }
        #mainContainer[data-main-mode="duas"] .home-dashboard { display: none !important; }
        #mainContainer[data-main-mode="duas"] .duas-tab-shell { display: block !important; }

        .bottom-nav {
            min-height: calc(var(--bottom-nav-height) + var(--safe-bottom));
        }

        @media (min-width: 768px) {
            #mainContainer.container {
                max-width: 920px;
                padding-left: 20px;
                padding-right: 20px;
            }

            #mainContainer[data-main-mode="duas"] .category-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            #mainContainer[data-main-mode="duas"] .cat-card.featured {
                grid-column: 1 / -1;
            }
        }

        .more-panel-content {
            max-width: 620px;
            margin: 0 auto;
            padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 56px);
            min-height: 100%;
        }
        .more-section-title {
            margin: 14px 2px 8px;
            font-size: 0.62rem;
            letter-spacing: 0.5px;
            text-transform: none;
            color: var(--text-subtle);
        }
        .more-panel-content > .more-section-title:first-child {
            margin-top: 0;
        }
        .more-list { display: grid; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(46,196,122,0.1); }
        .more-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-height: 48px;
            padding: 10px 16px;
            border: none;
            border-bottom: 1px solid rgba(46,196,122,0.08);
            background: var(--bg-surface);
        }
        .more-row:last-child { border-bottom: none; }
        .more-icon {
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-subtle);
            opacity: 0.9;
            flex-shrink: 0;
        }
        .more-icon svg {
            width: 20px;
            height: 20px;
            display: block;
        }
        .more-label { flex: 1; text-align: left; font-size: 0.78rem; color: var(--text-primary); }
        .more-arrow { color: var(--text-subtle); font-size: 0.94rem; }
        .more-inline-btn {
            border: 1px solid rgba(46,196,122,0.22);
            background: rgba(46,196,122,0.08);
            color: var(--text-primary);
            border-radius: 999px;
            min-height: 30px;
            padding: 5px 11px;
            font-size: 0.62rem;
        }
        .more-inline-font { display: flex; gap: 6px; }
        .more-switch-wrap {
            display: inline-flex;
            align-items: center;
            height: 24px;
        }
        .more-switch-input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .more-switch {
            position: relative;
            width: 38px;
            height: 22px;
            border-radius: 999px;
            background: rgba(160, 182, 170, 0.42);
            transition: background 0.2s ease;
        }
        .more-switch::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(0,0,0,0.24);
            transition: transform 0.2s ease;
        }
        .more-switch-input:checked + .more-switch {
            background: rgba(46, 196, 122, 0.7);
        }
        .more-switch-input:checked + .more-switch::after {
            transform: translateX(16px);
        }

        .about-panel-content {
            max-width: 620px;
            margin: 0 auto;
            min-height: 100%;
            padding: calc(var(--safe-top) + 20px) 24px calc(var(--safe-bottom) + 56px);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 12px;
        }
        .about-logo-mark {
            margin-top: 24px;
            margin-bottom: 10px;
            transform: scale(1.15);
        }
        .about-panel-content h2 {
            font-size: 1.02rem;
            color: var(--text-primary);
            letter-spacing: 0.2px;
        }
        .about-panel-content p {
            max-width: 460px;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.65;
        }
        .about-meta {
            width: 100%;
            margin-top: 8px;
            border-radius: 14px;
            border: 1px solid rgba(46,196,122,0.1);
            background: var(--bg-surface);
            padding: 14px;
            display: grid;
            gap: 10px;
            font-size: 0.74rem;
            color: var(--text-primary);
        }
        .about-meta a {
            color: var(--emerald-light);
            text-decoration: none;
        }

        .bottom-nav {
            height: 60px;
        }
        .bottom-nav-item {
            min-height: 60px;
            font-size: 0.65rem;
            gap: 3px;
        }
        .bottom-nav-item .icon {
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .bottom-nav-item .icon svg {
            width: 20px;
            height: 20px;
        }

        [data-theme='light'] .bottom-nav button,
        [data-theme='light'] .bottom-nav .bottom-nav-item {
            color: rgba(0, 0, 0, 0.35);
        }
        [data-theme='light'] .bottom-nav button.active,
        [data-theme='light'] .bottom-nav .bottom-nav-item.active {
            color: var(--tab-accent, #1a5c3a);
        }

        .progress-bar { display: none; }

        /* ============================================ */
        /* ===== FINAL VISUAL OVERRIDES V3 ===== */
        /* ============================================ */

        :root {
            --fx-blue-1: #1a3a5c;
            --fx-blue-2: #0d2137;
            --fx-green-1: #1a5c3a;
            --fx-green-2: #0d3721;
            --fx-gold-1: #6a5320;
            --fx-gold-2: #3a2f0f;
            --fx-teal-1: #1a5c5c;
            --fx-teal-2: #0d3737;
            --fx-night-1: #1a1a4e;
            --fx-night-2: #0d1b2e;
            --fx-sunrise-1: #5c3f1a;
            --fx-sunrise-2: #2f200d;
            --fx-afternoon-1: #1a4e3a;
            --fx-afternoon-2: #0d2e1b;
            --fx-evening-1: #3a1a4e;
            --fx-evening-2: #1b0d2e;
            --fx-gold-line: #c9a84c;
            --fx-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.24' stroke-width='1.4'%3E%3Cpath d='M60 16l10 20 22 2-16 14 4 22-20-10-20 10 4-22-16-14 22-2z'/%3E%3Cpath d='M60 30l7 14 15 1-11 10 3 15-14-7-14 7 3-15-11-10 15-1z'/%3E%3C/g%3E%3C/svg%3E");
        }

        .tab-fade-target {
            transition: opacity 200ms ease-out, transform 200ms ease-out;
        }

        .tab-fade-target.is-fading:not(.panel) {
            opacity: 0;
            transform: translateY(8px);
        }

        .app-content .panel.tab-fade-target.is-fading {
            opacity: 1;
            transform: none;
        }

        /* ── Scrollbar styling: applies to all scroll containers ─────────── */
        /* Firefox */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }
        /* Chrome / Edge / WebView */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.28);
        }

        .dashboard-quick-tile {
            min-height: 100px !important;
            border-radius: 16px !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 12px !important;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .dashboard-quick-grid .quick-quran {
            background: linear-gradient(135deg, #2a5a8a 0%, #1a4068 50%, #102a48 100%) !important;
        }

        .dashboard-quick-grid .quick-duas {
            background: linear-gradient(135deg, #2a7a5a 0%, #1a5d40 50%, #10402a 100%) !important;
        }

        .dashboard-quick-grid .quick-tasbeeh {
            background: linear-gradient(135deg, #7a6a2a 0%, #5d501a 50%, #403810 100%) !important;
        }

        .dashboard-quick-grid .quick-qibla {
            background: linear-gradient(135deg, #2a6a7a 0%, #1a505d 50%, #103840 100%) !important;
        }

        .dashboard-quick-label {
            color: #fff;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
        }

        .dashboard-quick-icon svg {
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
        }

        .dashboard-quick-icon svg [stroke] {
            stroke-width: 2.5;
        }

        .dashboard-prayer-card {
            position: relative;
            border-radius: 20px !important;
            overflow: hidden;
            box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 3px 10px rgba(0, 0, 0, 0.2) !important;
            background: linear-gradient(135deg, var(--fx-night-1), var(--fx-night-2)) !important;
        }

        .dashboard-prayer-card::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0.08;
            background-image: var(--fx-pattern);
            background-size: 120px 120px;
            pointer-events: none;
        }

        .prayer-watermark {
            position: absolute;
            right: 18px;
            bottom: 14px;
            font-family: 'Amiri', 'Noto Naskh Arabic', serif;
            font-size: 1.35rem;
            line-height: 1;
            color: rgba(255, 255, 255, 0.1);
            letter-spacing: 0;
            pointer-events: none;
            z-index: 0;
            white-space: nowrap;
        }

        .dashboard-prayer-label,
        .dashboard-prayer-name,
        .dashboard-prayer-time,
        .dashboard-prayer-countdown,
        .dashboard-prayer-location {
            position: relative;
            z-index: 1;
        }

        body[data-day-phase='morning'] .dashboard-prayer-card {
            background: linear-gradient(135deg, var(--fx-sunrise-1), var(--fx-sunrise-2)) !important;
        }

        body[data-day-phase='afternoon'] .dashboard-prayer-card {
            background: linear-gradient(135deg, var(--fx-afternoon-1), var(--fx-afternoon-2)) !important;
        }

        body[data-day-phase='evening'] .dashboard-prayer-card {
            background: linear-gradient(135deg, var(--fx-evening-1), var(--fx-evening-2)) !important;
        }

        body[data-day-phase='night'] .dashboard-prayer-card {
            background: linear-gradient(135deg, var(--fx-night-1), var(--fx-night-2)) !important;
        }

        .cat-card,
        .dua-category-card {
            min-height: 104px !important;
            border-radius: 16px !important;
            padding: 16px !important;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            border-left: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .cat-card .category-watermark,
        .dua-category-card .category-watermark {
            position: absolute;
            bottom: -10px;
            right: -18px;
            font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
            font-size: 2.45rem;
            line-height: 0.88;
            color: rgba(255, 255, 255, 0.1);
            direction: rtl;
            pointer-events: none;
            user-select: none;
            z-index: 0;
            max-width: none;
            white-space: nowrap;
            text-align: right;
            letter-spacing: 0.02em;
            transform: rotate(-8deg);
            filter: none;
            text-shadow: none;
            opacity: 0.7;
        }

        .cat-card.featured .category-watermark,
        .dua-category-card.featured .category-watermark {
            font-size: 2.9rem;
            color: rgba(255, 255, 255, 0.11);
            bottom: -12px;
            right: -12px;
        }

        .cat-card-icon,
        .cat-card-name,
        .cat-card-count,
        .dua-category-card .dua-category-icon,
        .dua-category-card .dua-category-name,
        .dua-category-card .dua-category-count {
            position: relative;
            z-index: 2;
        }

        .cat-card[data-cat='all'] {
            background: linear-gradient(135deg, #2ec47a 0%, #1a9d5c 50%, #0d7b50 100%) !important;
        }

        .cat-card[data-cat='quran'] {
            background: linear-gradient(135deg, #1b6b4f 0%, #2d9e6e 50%, #3db87d 100%) !important;
        }

        .cat-card[data-cat='morning-evening'] { background: linear-gradient(135deg, #d48a3a 0%, #e8a44e 50%, #f0be6a 100%) !important; }
        .cat-card[data-cat='protection'] { background: linear-gradient(135deg, #2d5aa0 0%, #4478c4 50%, #5a8fd4 100%) !important; }
        .cat-card[data-cat='forgiveness'] { background: linear-gradient(135deg, #b85a7a 0%, #d4738e 50%, #e89ab0 100%) !important; }
        .cat-card[data-cat='guidance'] { background: linear-gradient(135deg, #7b4fa0 0%, #9b6cc0 50%, #b088d4 100%) !important; }
        .cat-card[data-cat='wellbeing'] { background: linear-gradient(135deg, #2a8f6a 0%, #48b88a 50%, #6dd4a8 100%) !important; }
        .cat-card[data-cat='prophets'] { background: linear-gradient(135deg, #c4883a 0%, #d4a04e 50%, #e4b86a 100%) !important; }
        .cat-card[data-cat='prayer'] { background: linear-gradient(135deg, #2a7a8a 0%, #3a98a8 50%, #50b4c4 100%) !important; }
        .cat-card[data-cat='provision'] { background: linear-gradient(135deg, #c07040 0%, #d48858 50%, #e4a070 100%) !important; }
        .cat-card[data-cat='family'] { background: linear-gradient(135deg, #c45a6a 0%, #d47888 50%, #e494a0 100%) !important; }
        .cat-card[data-cat='travel'] { background: linear-gradient(135deg, #4a8ab0 0%, #64a4c8 50%, #7ebed8 100%) !important; }
        .cat-card[data-cat='scholars'] { background: linear-gradient(135deg, #5a4a8a 0%, #7a68a8 50%, #9480c0 100%) !important; }
        .cat-card[data-cat='ramadan'] { background: linear-gradient(135deg, #1a5c6a 0%, #2a8a7a 50%, #3ab89a 100%) !important; }
        .cat-card[data-cat='evil-eye'] { background: linear-gradient(135deg, #6a3a8a 0%, #8a50b0 50%, #a870c8 100%) !important; }

        .prayer-countdown-card {
            position: relative;
            border-radius: 20px !important;
            overflow: hidden;
            background: linear-gradient(135deg, #1a2f4d, #173b2f) !important;
        }

        .prayer-countdown-card::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0.06;
            background-image: var(--fx-pattern);
            background-size: 120px 120px;
            pointer-events: none;
        }

        #bottomNav,
        .bottom-nav {
            height: 64px !important;
            border-top: none !important;
            background: rgba(12, 20, 35, 0.84) !important;
            backdrop-filter: blur(16px) saturate(170%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(170%) !important;
            position: fixed;
            overflow: hidden;
            box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.32) !important;
        }

        #bottomNav::before,
        .bottom-nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 8%, var(--fx-gold-line) 50%, transparent 92%);
        }

        .bottom-nav-item {
            min-height: 64px !important;
            color: rgba(255, 255, 255, 0.42) !important;
        }

        .bottom-nav-item.active {
            color: #f2dba0 !important;
            border-radius: 20px !important;
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08)) !important;
            box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.24);
        }

        .tasbeeh-panel {
            --tasbeeh-progress: 0%;
            position: relative;
        }

        .tasbeeh-count-display {
            position: relative;
        }

        .tasbeeh-count-display::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 126px;
            height: 126px;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            background: conic-gradient(from -90deg, #c9a84c var(--tasbeeh-progress), rgba(255, 255, 255, 0.08) 0);
            -webkit-mask: radial-gradient(circle, transparent 58px, #000 60px);
            mask: radial-gradient(circle, transparent 58px, #000 60px);
            pointer-events: none;
            opacity: 0.88;
        }

        .tasbeeh-tap-btn {
            width: 120px !important;
            height: 120px !important;
            min-width: 120px !important;
            min-height: 120px !important;
            border: 3px solid rgba(201, 168, 76, 0.32) !important;
            background: linear-gradient(145deg, #1e6b46, #135d68) !important;
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 28px rgba(26, 92, 92, 0.24) !important;
        }

        .dua-swipe-content,
        .dua-swipe-slide {
            overflow-x: hidden;
            box-sizing: border-box;
        }

        .dua-swipe-actions {
            justify-content: center !important;
            gap: 10px !important;
            flex-wrap: wrap;
        }

        .dua-swipe-actions .action-btn {
            width: 54px !important;
            min-width: 54px !important;
            min-height: 64px !important;
            border-radius: 14px !important;
            display: inline-flex !important;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 4px;
        }

        .dua-swipe-actions .action-btn-label {
            font-size: 10px;
            max-width: 52px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .quran-surah-row {
            border-left: 3px solid transparent !important;
        }

        .quran-surah-row.is-makki {
            border-left-color: #c9a84c !important;
        }

        .quran-surah-row.is-madani {
            border-left-color: #2ecc71 !important;
        }

        .prayer-reminder-item input[type='checkbox'] {
            appearance: none;
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.24);
            background: transparent;
            position: relative;
            transition: all 170ms ease;
        }

        .prayer-reminder-item input[type='checkbox']:checked {
            background: linear-gradient(135deg, #c9a84c, #2ecc71);
            border-color: transparent;
        }

        .prayer-reminder-item input[type='checkbox']:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -56%);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
        }

        .more-section-title {
            position: relative;
            color: var(--fx-gold-line) !important;
            letter-spacing: 1.5px !important;
            text-transform: uppercase;
            font-size: 12px !important;
            font-weight: 700 !important;
            padding-left: 14px;
        }

        .more-section-title::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--fx-gold-line);
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -4px;
        }

        .more-list .more-row .more-icon {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            color: #fff !important;
            background: linear-gradient(135deg, #335a8a, #1a3a5c) !important;
        }

        .more-list .more-row:nth-child(2) .more-icon { background: linear-gradient(135deg, #1a7a5d, #1a5c3a) !important; }
        .more-list .more-row:nth-child(3) .more-icon { background: linear-gradient(135deg, #8a6a28, #5c4a1a) !important; }
        .more-list .more-row:nth-child(4) .more-icon { background: linear-gradient(135deg, #267a7a, #1a5c5c) !important; }
        .more-list .more-row:nth-child(5) .more-icon { background: linear-gradient(135deg, #6b4a8a, #4a2d6b) !important; }

        @keyframes nowBadgePulse {
            0%, 100% { box-shadow: 0 0 0 rgba(46, 204, 113, 0.25); }
            50% { box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); }
        }

        .prayer-now-badge {
            animation: nowBadgePulse 3s ease-in-out infinite;
        }

        @media (max-width: 700px) {
            .dashboard-quick-tile {
                min-height: 86px !important;
            }

            .cat-card,
            .dua-category-card {
                min-height: 88px !important;
                padding: 12px !important;
            }

            .tasbeeh-tap-btn {
                width: 110px !important;
                height: 110px !important;
                min-width: 110px !important;
                min-height: 110px !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .tab-fade-target,
            .tab-fade-target.is-fading {
                transition: none !important;
                transform: none !important;
                opacity: 1 !important;
            }

            .prayer-now-badge {
                animation: none !important;
            }
        }

        /* ============================================ */
        /* ===== PHASE 2 PREMIUM DEPTH LAYER ===== */
        /* ============================================ */

        :root {
            --premium-surface-border-top: rgba(255, 255, 255, 0.12);
            --premium-surface-border-left: rgba(255, 255, 255, 0.08);
            --premium-surface-border-right: rgba(255, 255, 255, 0.05);
            --premium-surface-border-bottom: rgba(255, 255, 255, 0.03);
            --premium-contact-shadow: 0 2px 4px rgba(0, 0, 0, 0.14);
            --premium-mid-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
            --premium-ambient-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
            --premium-inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .cat-card,
        .dashboard-quick-tile,
        .dashboard-prayer-card,
        #dashboardSuggestionCard,
        #quranContinueCard .quran-continue-inner,
        .dua-card,
        .prayer-countdown-card,
        .more-row,
        .quran-recent-item {
            position: relative;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
        }

        .cat-card::after,
        .dashboard-quick-tile::after,
        .dashboard-prayer-card::after,
        #dashboardSuggestionCard::after,
        #quranContinueCard .quran-continue-inner::after,
        .dua-card::after,
        .prayer-countdown-card::after,
        .more-row::after,
        .quran-recent-item::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
            opacity: 0.5;
        }

        .cat-card:hover,
        .dashboard-quick-tile:hover,
        .dashboard-prayer-card:hover,
        #dashboardSuggestionCard:hover,
        #quranContinueCard .quran-continue-inner:hover,
        .dua-card:hover,
        .prayer-countdown-card:hover,
        .more-row:hover,
        .quran-recent-item:hover {
            transform: translateY(-2px);
        }

        .cat-card:active,
        .dashboard-quick-tile:active,
        .dashboard-prayer-card:active,
        #dashboardSuggestionCard:active,
        #quranContinueCard .quran-continue-inner:active,
        .dua-card:active,
        .prayer-countdown-card:active,
        .more-row:active,
        .quran-recent-item:active {
            transform: translateY(0) scale(0.98);
            transition-duration: 0.1s;
        }

        .dashboard-quick-tile {
            border-top: 1px solid var(--premium-surface-border-top) !important;
            border-left: 1px solid var(--premium-surface-border-left) !important;
            border-right: 1px solid var(--premium-surface-border-right) !important;
            border-bottom: 1px solid var(--premium-surface-border-bottom) !important;
            box-shadow:
                var(--premium-contact-shadow),
                var(--premium-mid-shadow),
                var(--premium-ambient-shadow),
                var(--premium-inner-highlight) !important;
            padding: 20px 16px !important;
            gap: 10px !important;
            border-radius: 18px !important;
        }

        .dashboard-quick-grid .dashboard-quick-tile:nth-child(1) {
            background: linear-gradient(135deg, #1a3f6e 0%, #14325a 40%, #0e2444 100%) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.14),
                0 10px 24px rgba(26, 63, 110, 0.32),
                0 20px 40px rgba(0, 0, 0, 0.26),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        .dashboard-quick-grid .dashboard-quick-tile:nth-child(2) {
            background: linear-gradient(135deg, #1a6b4a 0%, #14553b 40%, #0e3f2c 100%) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.14),
                0 10px 24px rgba(26, 107, 74, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.26),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        .dashboard-quick-grid .dashboard-quick-tile:nth-child(3) {
            background: linear-gradient(135deg, #6b4a1a 0%, #554014 40%, #3f300e 100%) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.14),
                0 10px 24px rgba(107, 74, 26, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.26),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        .dashboard-quick-grid .dashboard-quick-tile:nth-child(4) {
            background: linear-gradient(135deg, #1a5c6b 0%, #144a55 40%, #0e363f 100%) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.14),
                0 10px 24px rgba(26, 92, 107, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.26),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        .dashboard-prayer-card {
            border-radius: 22px !important;
            border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.12),
                0 10px 20px rgba(0, 0, 0, 0.18),
                0 24px 50px rgba(0, 0, 0, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
            background: linear-gradient(135deg, #1a3a5c 0%, #0f2a45 50%, #0a1e35 100%) !important;
            padding: 24px !important;
        }

        .dashboard-prayer-card::before {
            opacity: 0.045 !important;
        }

        .dashboard-prayer-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.42), transparent);
            pointer-events: none;
        }

        #dashboardSuggestionCard {
            border-top: 1px solid var(--premium-surface-border-top) !important;
            border-left: 1px solid var(--premium-surface-border-left) !important;
            border-right: 1px solid var(--premium-surface-border-right) !important;
            border-bottom: 1px solid var(--premium-surface-border-bottom) !important;
            box-shadow:
                var(--premium-contact-shadow),
                var(--premium-mid-shadow),
                0 18px 34px rgba(0, 0, 0, 0.24),
                var(--premium-inner-highlight) !important;
            border-radius: 18px !important;
            padding: 20px !important;
        }

        .cat-card,
        .dua-card,
        .prayer-countdown-card,
        .more-row,
        .quran-recent-item {
            border-top: 1px solid var(--premium-surface-border-top) !important;
            border-left: 1px solid var(--premium-surface-border-left) !important;
            border-right: 1px solid var(--premium-surface-border-right) !important;
            border-bottom: 1px solid var(--premium-surface-border-bottom) !important;
            box-shadow:
                var(--premium-contact-shadow),
                var(--premium-mid-shadow),
                var(--premium-ambient-shadow),
                var(--premium-inner-highlight) !important;
            border-radius: 18px !important;
        }

        .quran-recent-item {
            padding: 16px !important;
        }

        .more-row {
            min-height: 58px;
            padding: 0 14px;
            margin-bottom: 10px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(19, 42, 58, 0.92), rgba(12, 29, 43, 0.96));
        }

        .more-row .more-label {
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .quran-continue-card,
        #quranContinueCard .quran-continue-inner {
            border-radius: 18px !important;
            background: linear-gradient(135deg, rgba(25, 60, 92, 0.92), rgba(14, 34, 52, 0.96)) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.14),
                0 10px 20px rgba(20, 49, 74, 0.3),
                0 20px 40px rgba(0, 0, 0, 0.26),
                inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
        }

        .dua-swipe-card {
            border-top: 1px solid rgba(255, 255, 255, 0.11);
            border-left: 1px solid rgba(255, 255, 255, 0.07);
            border-right: 1px solid rgba(255, 255, 255, 0.04);
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.12),
                0 12px 24px rgba(0, 0, 0, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .dua-swipe-content .arabic-container,
        .dua-card .arabic-container {
            border: none !important;
            border-radius: 24px !important;
            background: radial-gradient(ellipse at center, rgba(26, 58, 92, 0.44) 0%, rgba(26, 58, 92, 0.2) 58%, rgba(26, 58, 92, 0.02) 100%) !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
            padding: 34px 24px !important;
        }

        .ornament-divider {
            color: rgba(201, 168, 76, 0.45) !important;
            letter-spacing: 6px;
        }

        .ornament-divider .diamond {
            width: 6px;
            height: 6px;
            background: rgba(201, 168, 76, 0.58);
            box-shadow: 0 0 10px rgba(201, 168, 76, 0.22);
        }

        .prayer-countdown-card {
            padding: 20px 16px !important;
            border-radius: 18px !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.14),
                0 10px 24px rgba(25, 58, 92, 0.28),
                0 20px 42px rgba(0, 0, 0, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        }

        .dua-card {
            padding: 2px;
        }

        .dua-card .card-body-inner {
            padding: 0 20px 22px;
        }

        @media (max-width: 700px) {
            .dashboard-quick-tile,
            #dashboardSuggestionCard,
            .prayer-countdown-card,
            .more-row,
            .dua-card {
                border-radius: 16px !important;
            }

            .dashboard-prayer-card {
                border-radius: 20px !important;
                padding: 20px !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .cat-card,
            .dashboard-quick-tile,
            .dashboard-prayer-card,
            #dashboardSuggestionCard,
            #quranContinueCard .quran-continue-inner,
            .dua-card,
            .prayer-countdown-card,
            .more-row,
            .quran-recent-item {
                transition: none !important;
                transform: none !important;
            }
        }

        /* ============================================ */
        /* ===== FINAL PREMIUM HOME + QURAN ===== */
        /* ============================================ */

        .dashboard-greeting {
            display: block !important;
            margin-top: 4px;
            font-size: clamp(1.24rem, 2.7vw, 1.38rem);
            font-weight: 300;
            letter-spacing: 0.3px;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.2;
            text-align: center;
        }

        /* Always show salam on every screen size and platform */
        .home-greeting-salam {
            display: block;
        }

        .dashboard-date {
            margin-top: 2px;
            margin-bottom: 6px;
        }

        .dashboard-prayer-card {
            background: linear-gradient(135deg, #1a3a5c 0%, #0f2a45 40%, #0a1e35 100%) !important;
        }

        body[data-day-phase='predawn'] .dashboard-prayer-card {
            background: linear-gradient(135deg, #2a1a5c 0%, #1a0f45 40%, #0e0a35 100%) !important;
        }

        body[data-day-phase='daytime'] .dashboard-prayer-card {
            background: linear-gradient(135deg, #1a3a5c 0%, #0f2a45 40%, #0a1e35 100%) !important;
        }

        body[data-day-phase='evening'] .dashboard-prayer-card {
            background: linear-gradient(135deg, #3a1a5c 0%, #250f45 40%, #180a35 100%) !important;
        }

        body[data-day-phase='night'] .dashboard-prayer-card {
            background: linear-gradient(135deg, #0f1a3a 0%, #0a1228 40%, #060e20 100%) !important;
        }

        #dashboardSuggestionCard {
            min-height: 72px;
            padding: 16px 20px !important;
            border-radius: 16px !important;
            background: linear-gradient(135deg, rgba(28, 60, 94, 0.92), rgba(15, 35, 56, 0.95)) !important;
        }

        #dashboardSuggestionCard .dashboard-suggestion-row {
            align-items: center;
            gap: 16px;
            min-width: 0;
        }

        .dashboard-continue-left {
            min-width: 0;
            flex: 1;
            display: grid;
            gap: 3px;
        }

        .dashboard-continue-kicker {
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.58);
        }

        .dashboard-continue-main {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            max-width: 100%;
            min-width: 0;
        }

        .dashboard-continue-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            flex-shrink: 0;
        }

        .dashboard-continue-icon svg {
            width: 16px;
            height: 16px;
            display: block;
        }

        .dashboard-continue-surah {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dashboard-continue-ayah {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.62);
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #dashboardSuggestionCard .continue-btn,
        #dashboardSuggestionCard .dashboard-suggestion-cta {
            background: linear-gradient(135deg, #c9a84c, #a8873a) !important;
            color: #fff !important;
            border: none !important;
            border-radius: 20px !important;
            padding: 8px 20px !important;
            min-height: 36px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

            #dashboardSuggestionCard .continue-btn:hover,
            #dashboardSuggestionCard .dashboard-suggestion-cta:hover {
                box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
            }

        .dashboard-quick-grid {
            margin-top: 14px;
            gap: 12px;
        }

        .dashboard-quick-tile {
            position: relative;
            isolation: isolate;
            min-height: 110px !important;
            border-radius: 18px !important;
            border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
            box-shadow:
                0 8px 20px rgba(0, 0, 0, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            overflow: hidden;
        }

        .dashboard-quick-tile:hover {
            transform: translateY(-2px);
        }

        .dashboard-quick-tile:active {
            transform: scale(0.97);
        }

        .dashboard-quick-wave {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .dashboard-quick-wave::before {
            content: '';
            position: absolute;
            top: -52%;
            right: -30%;
            width: 210%;
            height: 210%;
            background: radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
        }

        .dashboard-quick-icon,
        .dashboard-quick-label {
            position: relative;
            z-index: 1;
        }

        .dashboard-quick-tile .tile-content {
            position: relative;
            z-index: 1;
        }

        .dashboard-quick-tile .tile-watermark {
            position: absolute;
            bottom: -10px;
            right: -16px;
            font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
            font-size: 2.4rem;
            line-height: 0.86;
            color: rgba(255, 255, 255, 0.1);
            direction: rtl;
            pointer-events: none;
            user-select: none;
            z-index: 0;
            white-space: nowrap;
            letter-spacing: 0.02em;
            transform: rotate(-8deg);
            filter: none;
            text-shadow: none;
            opacity: 0.72;
        }

        .tile-arabic-label {
            display: none;
        }

        .dashboard-quick-icon {
            width: auto;
            height: auto;
            font-size: 38px;
            line-height: 1;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.24));
        }

        .dashboard-quick-label {
            font-size: 15px;
            font-weight: 600;
            color: #fff !important;
            letter-spacing: 0.2px;
        }

        .dashboard-quick-tile.quick-quran {
            background: linear-gradient(135deg, #2c5f8a 0%, #1a3a6b 100%) !important;
            box-shadow: 0 8px 20px rgba(20, 54, 102, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        }

        .dashboard-quick-tile.quick-duas {
            background: linear-gradient(135deg, #1a6b4a 0%, #0f4a32 100%) !important;
            box-shadow: 0 8px 20px rgba(18, 92, 62, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        }

        .dashboard-quick-tile.quick-tasbeeh {
            background: linear-gradient(135deg, #8a6a2a 0%, #5c4a1a 100%) !important;
            box-shadow: 0 8px 20px rgba(118, 90, 28, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        }

        .dashboard-quick-tile.quick-qibla {
            background: linear-gradient(135deg, #1a5c6b 0%, #0f3a45 100%) !important;
            box-shadow: 0 8px 20px rgba(21, 84, 98, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        }

        .dashboard-quick-tile.quick-quran:hover {
            box-shadow: 0 10px 26px rgba(20, 54, 102, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        }

        .dashboard-quick-tile.quick-duas:hover {
            box-shadow: 0 10px 26px rgba(18, 92, 62, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        }

        .dashboard-quick-tile.quick-tasbeeh:hover {
            box-shadow: 0 10px 26px rgba(118, 90, 28, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        }

        .dashboard-quick-tile.quick-qibla:hover {
            box-shadow: 0 10px 26px rgba(21, 84, 98, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        }

        #dashboardTipCard {
            margin-top: 14px;
            border-radius: 12px !important;
            padding: 14px 18px !important;
            background: rgba(201, 168, 76, 0.06) !important;
            border: 1px solid rgba(201, 168, 76, 0.16) !important;
            border-left: 3px solid rgba(201, 168, 76, 0.3) !important;
        }

        .dashboard-tip-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #c9a84c;
            margin-bottom: 5px;
        }

        .dashboard-tip-text {
            font-size: 14px;
            line-height: 1.55;
            color: rgba(255, 255, 255, 0.82);
            font-style: italic;
        }

        .dashboard-tip-card.tip-fade-out {
            opacity: 0.4;
            transform: translateY(3px);
            transition: opacity 0.16s ease, transform 0.16s ease;
        }

        .dashboard-tip-card.tip-fade-in {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.24s ease, transform 0.24s ease;
        }

        .dashboard-hadith-card,
        .dashboard-progress-summary {
            margin-top: 12px;
            border-radius: 16px;
            padding: 14px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 1px solid rgba(255, 255, 255, 0.07);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .dashboard-hadith-card {
            background: linear-gradient(135deg, rgba(29, 53, 76, 0.92), rgba(15, 29, 45, 0.95));
        }

        .dashboard-hadith-label {
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #c9a84c;
            margin-bottom: 7px;
        }

        .dashboard-hadith-text {
            font-size: 14px;
            line-height: 1.55;
            font-style: italic;
            color: rgba(255, 255, 255, 0.86);
        }

        .dashboard-hadith-source {
            margin-top: 8px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.58);
        }

        /* ===== HADITH CARD RICH ELEMENTS ===== */
        .hadith-card-top-ornament {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .hadith-ornament-line {
            flex: 1;
            height: 1px;
            background: #d4a847;
            opacity: 0.3;
        }
        .hadith-ornament-diamond {
            color: #d4a847;
            font-size: 0.55rem;
            opacity: 0.55;
        }
        .dashboard-hadith-arabic {
            font-family: 'Amiri', 'Scheherazade New', serif;
            font-size: 1.2rem;
            line-height: 1.9;
            text-align: right;
            direction: rtl;
            color: rgba(255, 255, 255, 0.93);
            margin: 8px 0 6px;
        }
        .dashboard-hadith-narrator {
            font-size: 0.72rem;
            color: rgba(201, 168, 76, 0.75);
            margin-top: 5px;
            font-style: italic;
        }
        .hadith-card-actions {
            display: flex;
            gap: 8px;
            margin-top: 13px;
        }
        .hadith-action-btn {
            flex: 1;
            padding: 8px 10px;
            border-radius: 10px;
            background: rgba(212, 168, 71, 0.08);
            border: 1px solid rgba(212, 168, 71, 0.22);
            color: #d4a847;
            font-size: 0.78rem;
            cursor: pointer;
            transition: transform 0.12s ease, background 0.15s ease;
            white-space: nowrap;
            text-align: center;
        }
        .hadith-action-btn:active {
            transform: scale(0.95);
            background: rgba(212, 168, 71, 0.16);
        }
        .hadith-see-all-btn {
            flex: 0.75;
        }

        /* ===== ALL-HADITHS OVERLAY ===== */
        .all-hadiths-overlay {
            position: fixed;
            inset: 0;
            z-index: 9000;
            background: rgba(0, 0, 0, 0.65);
            display: flex;
            align-items: flex-end;
        }
        .all-hadiths-overlay[hidden] {
            display: none;
        }
        .all-hadiths-panel {
            background: var(--card-bg, #1a1a1a);
            border-radius: 20px 20px 0 0;
            width: 100%;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
        }
        .all-hadiths-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            flex-shrink: 0;
        }
        .all-hadiths-title {
            margin: 0;
            font-size: 1rem;
            color: #d4a847;
            font-weight: 600;
        }
        .all-hadiths-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            padding: 2px 8px;
            line-height: 1;
        }
        .all-hadiths-list {
            overflow-y: auto;
            padding: 12px 16px 40px;
            flex: 1;
        }
        .hadith-list-item {
            padding: 16px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
        .hadith-list-item:last-child {
            border-bottom: none;
        }
        .hadith-list-arabic {
            font-family: 'Amiri', 'Scheherazade New', serif;
            font-size: 1.1rem;
            text-align: right;
            direction: rtl;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.8;
            margin-bottom: 8px;
        }
        .hadith-list-trans {
            font-size: 0.86rem;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.6;
            margin-bottom: 5px;
        }
        .hadith-list-source {
            font-size: 0.72rem;
            color: #d4a847;
            margin-bottom: 3px;
        }
        .hadith-list-narrator {
            font-size: 0.7rem;
            color: rgba(201, 168, 76, 0.65);
            font-style: italic;
            margin-bottom: 8px;
        }
        .hadith-list-actions {
            display: flex;
            gap: 8px;
        }

        .dashboard-progress-summary {
            background: linear-gradient(135deg, rgba(21, 44, 64, 0.9), rgba(10, 24, 37, 0.95));
            display: grid;
            gap: 8px;
        }

        .dashboard-progress-heading {
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.72);
        }

        .dashboard-progress-row {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.82);
        }

        .dashboard-progress-bar {
            width: 100%;
            height: 5px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.14);
            overflow: hidden;
        }

        .dashboard-progress-bar > span {
            display: block;
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #c9a84c, #2ec47a);
            transition: width 0.35s ease;
        }

        .quran-surah-row {
            border-left: 3px solid transparent !important;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06)) !important;
            padding: 10px 12px !important;
            min-height: 60px !important;
            align-items: center;
        }

        .quran-surah-row.is-makki {
            border-left-color: rgba(201, 168, 76, 0.5) !important;
        }

        .quran-surah-row.is-madani {
            border-left-color: rgba(46, 204, 113, 0.5) !important;
        }

        .quran-surah-row:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.09)) !important;
        }

        .quran-surah-num {
            width: 28px !important;
            height: 28px !important;
            font-size: 11px !important;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            background: rgba(255, 255, 255, 0.06) !important;
            color: rgba(255, 255, 255, 0.86) !important;
        }

        .quran-surah-main {
            display: grid;
            gap: 3px;
        }

        .quran-surah-top-line {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .quran-surah-bottom-line {
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .quran-surah-name-secondary {
            font-size: 13px !important;
            font-weight: 500;
            color: #fff !important;
            line-height: 1.35;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .quran-surah-ayahs {
            font-size: 12px !important;
            color: rgba(255, 255, 255, 0.5) !important;
        }

        .quran-surah-name-primary {
            font-family: var(--font-arabic) !important;
            font-size: 1rem !important;
            line-height: 1.2 !important;
            color: rgba(255, 255, 255, 0.96) !important;
            text-align: right;
            white-space: nowrap;
            overflow: visible !important;
            margin-left: auto;
            flex-shrink: 0;
        }

        .quran-surah-inline-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-left: 4px;
            flex-shrink: 0;
        }

        .quran-revelation-text {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            padding: 2px 6px;
            font-size: 8px !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            border: none;
            white-space: nowrap;
        }

        .quran-revelation-text.is-makki {
            background: rgba(201, 168, 76, 0.15) !important;
            color: #c9a84c !important;
        }

        .quran-revelation-text.is-madani {
            background: rgba(46, 204, 113, 0.15) !important;
            color: #2ecc71 !important;
        }

        .tasbeeh-tap-btn {
            width: 140px !important;
            height: 140px !important;
            min-width: 140px !important;
            min-height: 140px !important;
            border-radius: 50% !important;
            background: linear-gradient(145deg, #1a6b4a 0%, #0f4a32 100%) !important;
            border: 2px solid rgba(201, 168, 76, 0.25) !important;
            box-shadow:
                0 4px 15px rgba(26, 107, 74, 0.4),
                0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.1),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
            cursor: pointer;
            transition: all 0.15s ease !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tasbeeh-tap-btn:hover {
            box-shadow:
                0 6px 20px rgba(26, 107, 74, 0.5),
                0 15px 40px rgba(0, 0, 0, 0.35),
                inset 0 2px 4px rgba(255, 255, 255, 0.12),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
            transform: scale(1.03);
        }

        .tasbeeh-tap-btn:active {
            transform: scale(0.95) !important;
            box-shadow:
                0 2px 8px rgba(26, 107, 74, 0.3),
                0 5px 15px rgba(0, 0, 0, 0.25),
                inset 0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 -1px 2px rgba(255, 255, 255, 0.05) !important;
            transition-duration: 0.08s !important;
        }

        .tasbeeh-tap-btn .tap-text {
            color: #fff !important;
            font-size: 20px !important;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        #bottomNav,
        .bottom-nav {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            z-index: 12000 !important;
            width: 100% !important;
            max-width: 100% !important;
            display: grid !important;
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            overflow: visible !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .bottom-nav-item {
            min-width: 0 !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 6px 2px 10px !important;
            gap: 4px !important;
            overflow: visible;
        }

        .bottom-nav-item.active {
            margin: 4px 4px 6px !important;
            padding: 6px 6px 10px !important;
            border-radius: 14px !important;
        }

        .bottom-nav-item > span:last-child {
            display: block !important;
            white-space: nowrap;
            font-size: 0.63rem;
        }

        body.quran-reading-mode .bottom-nav {
            display: grid !important;
        }

        @media (max-width: 700px) {
            .dashboard-quick-tile {
                min-height: 110px !important;
            }

            .dashboard-quick-icon {
                font-size: 36px;
            }

            .bottom-nav-item > span:last-child {
                font-size: 0.6rem;
            }

            .tasbeeh-tap-btn {
                width: 130px !important;
                height: 130px !important;
                min-width: 130px !important;
                min-height: 130px !important;
            }
        }

        /* ============================================ */
        /* ===== CRITICAL BUGFIX OVERRIDES ===== */
        /* ============================================ */

        /* FIX 1 + FIX 6: stable premium prayer gradient (no phase switching) */
        .dashboard-prayer-card,
        body[data-day-phase='morning'] .dashboard-prayer-card,
        body[data-day-phase='afternoon'] .dashboard-prayer-card,
        body[data-day-phase='evening'] .dashboard-prayer-card,
        body[data-day-phase='night'] .dashboard-prayer-card,
        body[data-day-phase='predawn'] .dashboard-prayer-card,
        body[data-day-phase='daytime'] .dashboard-prayer-card {
            background: linear-gradient(135deg, #1a3a5c 0%, #0f2a45 40%, #0a1e35 100%) !important;
        }

        /* FIX 5: standardized professional category icon treatment */
        .cat-card-icon {
            display: inline-flex !important;
        }

        .cat-card-icon svg {
            display: block;
        }

        /* FIX 5: ensure inline svg home icons size consistently */
        .dashboard-quick-icon svg {
            width: 36px;
            height: 36px;
            display: block;
        }

        /* FIX 2: remove broken numeric rail and harden dropdown layout */
        /* FIX 3: mobile dua detail scale and controls */
        @media (max-width: 480px) {
            .dua-swipe-card {
                padding: 16px !important;
            }

            .dua-swipe-content .arabic-text {
                font-size: 24px !important;
                line-height: 1.8 !important;
            }

            .dua-swipe-actions {
                gap: 8px !important;
                flex-wrap: nowrap !important;
                justify-content: space-around !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .dua-swipe-actions .action-btn,
            .dua-swipe-actions .audio-btn {
                min-height: 44px !important;
                padding: 6px 10px !important;
                font-size: 10px !important;
                border-radius: 12px !important;
                flex: 1 1 auto;
                min-width: 0;
            }

            .dua-swipe-actions .action-btn-icon,
            .dua-swipe-actions .audio-btn .action-btn-icon {
                font-size: 18px !important;
                width: 18px !important;
                height: 18px !important;
            }

            .dua-swipe-actions .action-btn-label {
                font-size: 10px !important;
                letter-spacing: 0 !important;
                white-space: nowrap;
            }
        }

        /* FIX 1: full light theme readability and surface audit */
        [data-theme="light"] {
            --bg-dark: #F5F1EB;
            --bg-light: #F5F1EB;
            --bg-card: #FFFFFF;
            --bg-surface: #FFFFFF;
            --bg-glass: #FFFFFF;
            --text-primary: #1a1a2e;
            --text-muted: #5a5a7a;
            --text-subtle: #5a5a7a;
            --text-faint: #8a8aa0;
            --gold-mid: #C9A84C;
            --emerald-light: #2ECC71;
        }

        [data-theme="light"] body,
        [data-theme="light"] body::before {
            background: #F5F1EB !important;
            color: #1a1a2e !important;
        }

        [data-theme="light"] .dashboard-greeting,
        [data-theme="light"] .dashboard-date {
            color: #1a1a2e !important;
        }

        [data-theme="light"] .dashboard-prayer-card,
        [data-theme="light"] .dashboard-prayer-card .dashboard-prayer-label,
        [data-theme="light"] .dashboard-prayer-card .dashboard-prayer-name,
        [data-theme="light"] .dashboard-prayer-card .dashboard-prayer-time,
        [data-theme="light"] .dashboard-prayer-card .dashboard-prayer-countdown,
        [data-theme="light"] .dashboard-prayer-card .dashboard-prayer-location {
            color: #fff !important;
        }

        [data-theme="light"] #dashboardSuggestionCard {
            background: #FFFFFF !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 8px 20px rgba(26, 26, 46, 0.08) !important;
        }

        [data-theme="light"] #dashboardSuggestionCard .dashboard-continue-kicker,
        [data-theme="light"] #dashboardSuggestionCard .dashboard-continue-surah,
        [data-theme="light"] #dashboardSuggestionCard .dashboard-continue-ayah {
            color: #1a1a2e !important;
        }

        [data-theme="light"] #dashboardTipCard,
        [data-theme="light"] .dashboard-hadith-card,
        [data-theme="light"] .dashboard-progress-summary {
            background: #FFFFFF !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 8px 20px rgba(26, 26, 46, 0.08) !important;
        }

        [data-theme="light"] #dashboardTipCard {
            background: linear-gradient(135deg, rgba(201, 168, 76, 0.16), rgba(201, 168, 76, 0.06)) !important;
            border-left: 3px solid #C9A84C !important;
        }

        [data-theme="light"] .dashboard-hadith-card {
            background: linear-gradient(135deg, rgba(27, 82, 126, 0.12), rgba(15, 52, 82, 0.05)) !important;
            border-left: 3px solid #1b527e !important;
        }

        [data-theme="light"] .dashboard-hadith-arabic {
            color: #1a1a2e !important;
        }
        [data-theme="light"] .dashboard-hadith-narrator {
            color: rgba(120, 90, 20, 0.8) !important;
        }
        [data-theme="light"] .hadith-action-btn {
            background: rgba(160, 120, 32, 0.06) !important;
            border-color: rgba(160, 120, 32, 0.25) !important;
            color: #7a5c10 !important;
        }
        [data-theme="light"] .cat-card[data-cat="favorites"] {
            background: linear-gradient(135deg, #a07820 0%, #c9930f 35%, #e8b84b 65%, #a07820 100%);
        }
        [data-theme="light"] .all-hadiths-panel {
            background: #f8f6f0 !important;
        }
        [data-theme="light"] .all-hadiths-header {
            border-bottom-color: rgba(0, 0, 0, 0.08) !important;
        }
        [data-theme="light"] .all-hadiths-close {
            color: rgba(0, 0, 0, 0.4) !important;
        }
        [data-theme="light"] .hadith-list-item {
            border-bottom-color: rgba(0, 0, 0, 0.06) !important;
        }
        [data-theme="light"] .hadith-list-arabic {
            color: #1a1a2e !important;
        }
        [data-theme="light"] .hadith-list-trans {
            color: #333 !important;
        }
        [data-theme="light"] .hadith-list-narrator {
            color: rgba(120, 90, 20, 0.7) !important;
        }

        [data-theme="light"] .dashboard-progress-summary {
            background: linear-gradient(135deg, rgba(46, 196, 122, 0.12), rgba(46, 196, 122, 0.05)) !important;
            border-left: 3px solid #2ec47a !important;
        }

        [data-theme="light"] .dashboard-tip-text,
        [data-theme="light"] .dashboard-hadith-text,
        [data-theme="light"] .dashboard-hadith-source,
        [data-theme="light"] .dashboard-progress-heading,
        [data-theme="light"] .dashboard-progress-row {
            color: #1a1a2e !important;
        }

        [data-theme="light"] .more-section-title {
            color: #C9A84C !important;
        }

        [data-theme="light"] .more-row,
        [data-theme="light"] .settings-row,
        [data-theme="light"] .dua-card,
        [data-theme="light"] .prayer-row,
        [data-theme="light"] .prayer-time-row,
        [data-theme="light"] .quran-recent-item {
            background: #FFFFFF !important;
            color: #1a1a2e !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 6px 16px rgba(26, 26, 46, 0.06) !important;
        }

        [data-theme="light"] .more-label,
        [data-theme="light"] .more-arrow,
        [data-theme="light"] .prayer-name,
        [data-theme="light"] .prayer-time-name,
        [data-theme="light"] .prayer-time-val,
        [data-theme="light"] .prayer-time-value {
            color: #1a1a2e !important;
        }

        [data-theme="light"] .prayer-row.next-prayer {
            background: rgba(201, 168, 76, 0.22) !important;
            border-color: rgba(154, 122, 47, 0.42) !important;
            box-shadow: 0 8px 18px rgba(154, 122, 47, 0.1) !important;
        }

        [data-theme="light"] .prayer-row .prayer-time {
            color: #2b2340 !important;
        }

        [data-theme="light"] .prayer-row.next-prayer .prayer-name,
        [data-theme="light"] .prayer-row.next-prayer .prayer-time {
            color: #5f4613 !important;
            font-weight: 700 !important;
        }

        [data-theme="light"] .prayer-row .prayer-badge {
            background: rgba(201, 168, 76, 0.16) !important;
            color: #6f5518 !important;
            border-color: rgba(154, 122, 47, 0.34) !important;
            font-weight: 700 !important;
        }

        [data-theme="light"] .prayer-row.current-prayer .prayer-badge {
            background: rgba(22, 152, 90, 0.16) !important;
            color: #0f6d43 !important;
            border-color: rgba(22, 152, 90, 0.32) !important;
        }

        [data-theme="light"] .quran-revelation-text.is-makki {
            background: rgba(201, 168, 76, 0.08) !important;
            border: 1px solid rgba(201, 168, 76, 0.55) !important;
            color: #9f7f2d !important;
        }

        [data-theme="light"] .quran-revelation-text.is-madani {
            background: rgba(46, 204, 113, 0.08) !important;
            border: 1px solid rgba(46, 204, 113, 0.55) !important;
            color: #228f4f !important;
        }

        [data-theme="light"] .quran-view-tab {
            background: #F5F1EB !important;
            color: #5a5a7a !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .quran-view-tab.active {
            background: rgba(201, 168, 76, 0.16) !important;
            color: #1a1a2e !important;
            border-color: rgba(201, 168, 76, 0.45) !important;
        }

        [data-theme="light"] .quran-continue-card,
        [data-theme="light"] #quranContinueCard .quran-continue-inner {
            background: linear-gradient(135deg, #1a3a5c 0%, #0f2a45 40%, #0a1e35 100%) !important;
            color: #fff !important;
        }

        [data-theme="light"] #quranContinueCard .quran-continue-title,
        [data-theme="light"] #quranContinueCard .quran-continue-meta,
        [data-theme="light"] #quranContinueCard .quran-continue-sub {
            color: #fff !important;
        }

        [data-theme="light"] .search-input,
        [data-theme="light"] #duasSearchInput {
            background: #FFFFFF !important;
            color: #1a1a2e !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .search-input::placeholder,
        [data-theme="light"] #duasSearchInput::placeholder {
            color: #8a8aa0 !important;
        }

        [data-theme="light"] .duas-bookmark-chip {
            color: #1a1a2e !important;
        }
        [data-theme="light"] .duas-bookmark-chip:nth-child(6n+1) { background: linear-gradient(135deg, #ceeae5, #b8dbd4) !important; border-color: rgba(20,120,100,0.2) !important; }
        [data-theme="light"] .duas-bookmark-chip:nth-child(6n+2) { background: linear-gradient(135deg, #f0d4e0, #e4bed0) !important; border-color: rgba(160,50,90,0.18) !important; }
        [data-theme="light"] .duas-bookmark-chip:nth-child(6n+3) { background: linear-gradient(135deg, #d8e8c4, #c8dab0) !important; border-color: rgba(70,130,40,0.18) !important; }
        [data-theme="light"] .duas-bookmark-chip:nth-child(6n+4) { background: linear-gradient(135deg, #ddd0ee, #cfc0e4) !important; border-color: rgba(100,60,160,0.18) !important; }
        [data-theme="light"] .duas-bookmark-chip:nth-child(6n+5) { background: linear-gradient(135deg, #f0e2c4, #e8d4a8) !important; border-color: rgba(160,110,20,0.2) !important; }
        [data-theme="light"] .duas-bookmark-chip:nth-child(6n+6) { background: linear-gradient(135deg, #c8dff0, #b0ccde) !important; border-color: rgba(30,90,150,0.2) !important; }

        [data-theme="light"] .dua-swipe-content .arabic-container {
            background: linear-gradient(135deg, rgba(215, 227, 241, 0.42), rgba(255, 249, 238, 0.94)) !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .dua-swipe-content .arabic-text,
        [data-theme="light"] .dua-swipe-content .translation,
        [data-theme="light"] .dua-swipe-content .translation-ps,
        [data-theme="light"] .dua-swipe-content .transliteration,
        [data-theme="light"] .dua-swipe-content .reference,
        [data-theme="light"] .dua-swipe-content .how-to-box,
        [data-theme="light"] .dua-swipe-content .virtue-tag {
            color: #1a1a2e !important;
        }

        [data-theme="light"] .dua-swipe-actions .action-btn,
        [data-theme="light"] .dua-swipe-actions .audio-btn {
            background: rgba(26, 26, 46, 0.04) !important;
            color: #1a1a2e !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .prayer-countdown-card {
            background: linear-gradient(135deg, #1a3a5c 0%, #0f2a45 40%, #0a1e35 100%) !important;
            color: #fff !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
        }

        [data-theme="light"] .prayer-countdown-card .prayer-countdown-label,
        [data-theme="light"] .prayer-countdown-card .prayer-countdown-name,
        [data-theme="light"] .prayer-countdown-card .prayer-countdown-time {
            color: #fff !important;
        }

        [data-theme="light"] .more-switch {
            background: #d1d1d6 !important;
        }

        [data-theme="light"] .more-switch-input:checked + .more-switch {
            background: #2ECC71 !important;
        }

        [data-theme="light"] .bottom-nav {
            background: rgba(255, 255, 255, 0.96) !important;
            border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .bottom-nav-item {
            color: #5a5a7a !important;
        }

        [data-theme="light"] .bottom-nav-item.active {
            color: #1a1a2e !important;
            background: rgba(201, 168, 76, 0.16) !important;
        }

        /* FIX 2 mobile hardening at 375px */
        @media (max-width: 375px) {
            .quran-surah-row {
                min-height: 56px !important;
                padding: 8px 10px !important;
                gap: 8px !important;
            }

            .quran-surah-num {
                width: 24px !important;
                height: 24px !important;
                font-size: 10px !important;
            }

            .quran-surah-name-primary {
                font-size: 1rem !important;
            }

            .quran-surah-name-secondary {
                font-size: 12px !important;
            }

            .quran-surah-ayahs {
                font-size: 11px !important;
            }

            .quran-surah-meta {
                max-width: 44%;
            }

            .quran-revelation-text {
                font-size: 8px !important;
                padding: 2px 6px !important;
            }
        }

        /* ============================================ */
        /* ===== STRICT FIXES 2026-03-06 ===== */
        /* ============================================ */

        .fallah-sub { display: none !important; }

        .top-nav {
            min-height: 42px !important;
            height: calc(42px + var(--safe-top)) !important;
            padding-left: 12px !important;
            padding-right: 12px !important;
        }

        .top-nav .fallah-mark {
            width: 24px !important;
            height: 24px !important;
        }

        .top-nav .fallah-crescent-svg {
            width: 24px !important;
            height: 24px !important;
            display: block;
        }

        .top-nav .fallah-fa { display: none !important; }

        .top-nav .fallah-brand {
            font-size: 0.95rem !important;
            letter-spacing: 0.2px !important;
            background: none !important;
            -webkit-text-fill-color: unset !important;
            color: var(--text-primary) !important;
        }

        .home-falah-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 20px 20px 8px 20px;
            background: transparent;
            border: 0;
            box-shadow: none;
            color: inherit;
            cursor: pointer;
        }

        .home-falah-crescent-svg {
            width: 24px;
            height: 24px;
            display: block;
            flex-shrink: 0;
        }

        .home-falah-text {
            font-size: 22px;
            font-weight: 700;
            color: #ffffff;
            line-height: 1;
            font-family: var(--font-title);
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        [data-theme="light"] .home-falah-text {
            color: #1a1a2e;
        }

        body[data-active-tab="home"] .top-nav {
            display: none !important;
        }

        body[data-active-tab="home"] .app-content {
            top: 0 !important;
        }

        body[data-active-tab="home"] #mainContainer.container {
            padding-top: 0 !important;
        }

        .duas-tab-search {
            padding: 10px 12px !important;
        }

        .duas-tab-search-clear,
        #duasSearchClearBtn {
            display: none !important;
        }

        .dashboard-greeting {
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            font-size: clamp(1.05rem, 2.2vw, 1.2rem) !important;
        }

        .dashboard-date {
            margin-top: 2px !important;
            margin-bottom: 6px !important;
        }

        .dashboard-prayer-card {
            min-height: 160px !important;
            padding: 28px !important;
            margin-top: 8px !important;
            background: linear-gradient(145deg, #102b49 0%, #0b2138 46%, #061a2f 100%) !important;
        }

        .dashboard-prayer-name {
            font-size: 28px !important;
            font-weight: 700 !important;
        }

        .dashboard-prayer-time {
            font-size: 22px !important;
            font-weight: 600 !important;
        }

        .dashboard-suggestion-card {
            padding: 10px 12px !important;
        }

        .dashboard-tip-card {
            padding: 14px 16px !important;
            position: relative !important;
            overflow: hidden !important;
            background: linear-gradient(135deg, rgba(8, 28, 18, 0.98), rgba(5, 18, 12, 0.99)) !important;
            border-top: 1px solid rgba(46, 196, 122, 0.22) !important;
            border-left: 1px solid rgba(46, 196, 122, 0.12) !important;
            border-right: 1px solid rgba(46, 196, 122, 0.05) !important;
            border-bottom: 1px solid rgba(46, 196, 122, 0.03) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 8px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
        }

        .dashboard-hadith-card {
            padding: 14px 16px !important;
            position: relative !important;
            overflow: hidden !important;
            background: linear-gradient(135deg, rgba(16, 32, 56, 0.98), rgba(8, 18, 36, 0.99)) !important;
            border-top: 1px solid rgba(201, 168, 76, 0.22) !important;
            border-left: 1px solid rgba(201, 168, 76, 0.12) !important;
            border-right: 1px solid rgba(201, 168, 76, 0.05) !important;
            border-bottom: 1px solid rgba(201, 168, 76, 0.03) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 8px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
        }

        .dashboard-progress-summary {
            padding: 14px 16px !important;
            position: relative !important;
            overflow: hidden !important;
            background: linear-gradient(135deg, rgba(10, 24, 42, 0.98), rgba(6, 14, 26, 0.99)) !important;
            border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
            border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 8px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
        }

        .dashboard-tip-label,
        .dashboard-hadith-label,
        .dashboard-progress-heading {
            font-size: 11px !important;
            display: flex !important;
            align-items: center !important;
            gap: 5px !important;
        }

        .dashboard-tip-text,
        .dashboard-hadith-text,
        .dashboard-hadith-source,
        .dashboard-progress-row {
            font-size: 13px !important;
        }

        @media (max-width: 375px) {
            .home-falah-brand {
                padding: 20px 20px 6px 20px;
            }

            .dashboard-prayer-card {
                min-height: 140px !important;
                padding: 20px !important;
                margin-top: 6px !important;
            }

            .dashboard-prayer-name {
                font-size: 26px !important;
            }

            .dashboard-prayer-time {
                font-size: 20px !important;
            }
        }

        /* ============================================ */
        /* ===== SUBTLE PREMIUM POLISH LAYER ===== */
        /* ============================================ */

        @keyframes gentle-pulse {
            0%, 100% {
                text-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
            }
            50% {
                text-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
            }
        }

        @keyframes tap-ripple {
            0% {
                box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.26);
            }
            100% {
                box-shadow: 0 0 0 20px rgba(201, 168, 76, 0);
            }
        }

        @keyframes celebrate-glow {
            0% {
                box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.28),
                            0 0 0 0 rgba(46, 204, 113, 0.2);
            }
            50% {
                box-shadow: 0 0 14px 8px rgba(201, 168, 76, 0.16),
                            0 0 28px 14px rgba(46, 204, 113, 0.08);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(201, 168, 76, 0),
                            0 0 0 0 rgba(46, 204, 113, 0);
            }
        }

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

        .dashboard-prayer-card,
        .prayer-countdown-card {
            position: relative;
            overflow: hidden;
        }

        .dua-card .arabic-container,
        .dua-swipe-content .arabic-container {
            position: relative;
            overflow: hidden;
        }

        .dashboard-prayer-card::before,
        .prayer-countdown-card::before,
        .dua-card .arabic-container::after,
        .dua-swipe-content .arabic-container::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            opacity: 0.012;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5'%3E%3Cpath d='M30 0L35 15L50 10L40 25L55 30L40 35L50 50L35 45L30 60L25 45L10 50L20 35L5 30L20 25L10 10L25 15Z'/%3E%3C/g%3E%3C/svg%3E");
            background-size: 60px 60px;
            z-index: 1;
        }

        [data-theme="light"] .dashboard-prayer-card::before,
        [data-theme="light"] .prayer-countdown-card::before,
        [data-theme="light"] .dua-card .arabic-container::after,
        [data-theme="light"] .dua-swipe-content .arabic-container::after {
            opacity: 0.018;
        }

        .dashboard-prayer-card > *,
        .prayer-countdown-card > *,
        .dua-card .arabic-container > *,
        .dua-swipe-content .arabic-container > * {
            position: relative;
            z-index: 2;
        }

        .prayer-countdown-time,
        .prayer-countdown-value,
        .dashboard-prayer-countdown,
        .dashboard-prayer-time-left {
            animation: gentle-pulse 3s ease-in-out infinite;
        }

        .dashboard-quick-tile[onclick*="quran"]::after,
        .dashboard-quick-tile[onclick*="duas"]::after,
        .dashboard-quick-tile[onclick*="tasbeeh"]::after,
        .dashboard-quick-tile[onclick*="qibla"]::after {
            content: '';
            position: absolute;
            inset: 10%;
            border-radius: 50%;
            filter: blur(20px);
            opacity: 0.08;
            z-index: 0;
            pointer-events: none;
        }

        .dashboard-quick-tile[onclick*="quran"]::after {
            background: #1a3f6e;
        }
        .dashboard-quick-tile[onclick*="duas"]::after {
            background: #1a6b4a;
        }
        .dashboard-quick-tile[onclick*="tasbeeh"]::after {
            background: #6b4a1a;
        }
        .dashboard-quick-tile[onclick*="qibla"]::after {
            background: #1a5c6b;
        }

        .dashboard-quick-tile {
            position: relative;
            overflow: hidden;
        }

        .dashboard-quick-tile > * {
            position: relative;
            z-index: 1;
        }

        .ornamental-divider {
            text-align: center;
            padding: 8px 0;
            color: rgba(201, 168, 76, 0.2);
            font-size: 14px;
            letter-spacing: 12px;
            user-select: none;
            pointer-events: none;
        }

        .ornamental-line {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 6px 28px 4px;
            color: rgba(201, 168, 76, 0.22);
            font-size: 11px;
            letter-spacing: 0;
            user-select: none;
            pointer-events: none;
        }

        .ornamental-line::before,
        .ornamental-line::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.16), transparent);
        }

        .ornamental-line::before {
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.16));
        }

        .ornamental-line::after {
            background: linear-gradient(90deg, rgba(201, 168, 76, 0.16), transparent);
        }

        .mushaf-bismillah {
            text-align: center;
            padding: 20px;
            position: relative;
            font-family: 'Amiri', 'Noto Naskh Arabic', serif;
            font-size: clamp(1.75rem, 4vw, 2.4rem);
            color: rgba(201, 168, 76, 0.92);
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
        }

        .mushaf-bismillah::before,
        .mushaf-bismillah::after {
            content: '';
            display: block;
            width: 60%;
            height: 1px;
            margin: 12px auto;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.24), transparent);
        }

        .dua-bismillah {
            margin: 0 0 18px;
            text-align: center;
            font-family: 'Amiri', 'Noto Naskh Arabic', serif;
            font-size: clamp(1.55rem, 4.2vw, 2.1rem);
            line-height: 1.35;
            color: rgba(201, 168, 76, 0.9);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
        }

        .dua-bismillah::before,
        .dua-bismillah::after {
            content: '';
            display: block;
            width: min(220px, 62%);
            height: 1px;
            margin: 10px auto;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
        }

        .quran-reader-content,
        .quran-scroll-content {
            background: linear-gradient(180deg,
                rgba(201, 168, 76, 0.02) 0%,
                transparent 30%,
                transparent 70%,
                rgba(201, 168, 76, 0.02) 100%
            );
        }

        .tasbeeh-tap-btn.tapped {
            animation: tap-ripple 0.4s ease-out;
        }

        .tasbeeh-counter.target-reached,
        .tasbeeh-count-display.target-reached {
            animation: celebrate-glow 1s ease-out;
            color: #c9a84c;
        }

        #bottomNav::before {
            left: 10%;
            right: 10%;
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
        }

        .skeleton-loading,
        .skeleton,
        .quran-skeleton-item {
            background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.03) 25%,
                rgba(255, 255, 255, 0.08) 50%,
                rgba(255, 255, 255, 0.03) 75%
            ) !important;
            background-size: 200% 100% !important;
            animation: premium-shimmer 1.8s ease-in-out infinite !important;
            border-radius: 8px;
        }

        [data-theme="light"] .skeleton-loading,
        [data-theme="light"] .skeleton,
        [data-theme="light"] .quran-skeleton-item {
            background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.04) 25%,
                rgba(0, 0, 0, 0.08) 50%,
                rgba(0, 0, 0, 0.04) 75%
            ) !important;
            background-size: 200% 100% !important;
        }

        @media (prefers-reduced-motion: reduce) {
            .prayer-countdown-time,
            .prayer-countdown-value,
            .dashboard-prayer-countdown,
            .dashboard-prayer-time-left,
            .tasbeeh-tap-btn.tapped,
            .tasbeeh-counter.target-reached,
            .tasbeeh-count-display.target-reached,
            .skeleton-loading,
            .skeleton,
            .quran-skeleton-item {
                animation: none !important;
            }

            .prayer-countdown-time,
            .prayer-countdown-value,
            .dashboard-prayer-countdown,
            .dashboard-prayer-time-left {
                text-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
            }
        }

        /* ============================================ */
        /* ===== DESIGN SYSTEM ENFORCEMENT ===== */
        /* ============================================ */

        body {
            font: var(--text-body);
            color: var(--text-secondary);
            padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-24));
        }

        .top-nav,
        .bottom-nav,
        .toast,
        .word-popup,
        .quran-panel,
        .prayer-panel,
        .search-input,
        .duas-tab-search {
            backdrop-filter: blur(16px) saturate(160%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
        }

        .dashboard-quick-tile[onclick*="quran"]::after,
        .dashboard-quick-tile[onclick*="duas"]::after,
        .dashboard-quick-tile[onclick*="tasbeeh"]::after,
        .dashboard-quick-tile[onclick*="qibla"]::after {
            inset: 15% !important;
            filter: blur(20px) !important;
            opacity: 0.1 !important;
        }

        .dashboard-prayer-card,
        .dashboard-prayer-strip-card,
        .dashboard-suggestion-card,
        #dashboardSuggestionCard,
        .dashboard-quran-streak-card,
        .dashboard-tip-card,
        .dashboard-hadith-card,
        .dashboard-progress-summary,
        .quran-continue-card,
        #quranContinueCard .quran-continue-inner,
        .quran-surah-row,
        .quran-ayah-card,
        .cat-card,
        .dua-card,
        .duas-bookmarks,
        .prayer-countdown-card,
        .prayer-row,
        .prayer-time-row,
        .qibla-section,
        .prayer-reminder-settings,
        .more-row,
        .settings-row,
        .selected-city-chip,
        .city-search-shell,
        .city-dropdown,
        .quran-recent-item {
            background: var(--surface-card) !important;
            border: 1px solid var(--border-medium) !important;
            box-shadow: var(--shadow-md) !important;
        }

        .dashboard-prayer-card,
        .prayer-countdown-card,
        .quran-continue-card,
        #quranContinueCard .quran-continue-inner,
        .dashboard-suggestion-card,
        #dashboardSuggestionCard {
            border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
            box-shadow:
                0 1px 3px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.12),
                0 12px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
        }

        .cat-card,
        .dua-category-card,
        .dashboard-quick-tile,
        .dashboard-tip-card,
        .dashboard-hadith-card,
        .dashboard-quran-streak-card,
        .dashboard-progress-summary,
        .duas-bookmarks {
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
            box-shadow:
                0 1px 3px rgba(0, 0, 0, 0.08),
                0 6px 16px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
        }

        .quran-surah-row,
        .prayer-row,
        .prayer-time-row,
        .more-row,
        .settings-row,
        .city-option,
        .prayer-reminder-item {
            box-shadow: none !important;
            border-bottom: 1px solid var(--border-subtle) !important;
        }

        .cat-card,
        .dua-category-card,
        .dashboard-quick-tile,
        .dashboard-suggestion-card,
        #dashboardSuggestionCard,
        .dashboard-quran-streak-card,
        .quran-continue-card,
        #quranContinueCard .quran-continue-inner,
        .quran-surah-row,
        .more-row,
        .settings-row {
            cursor: pointer;
            transition:
                transform var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
        }

        .cat-card:hover,
        .dua-category-card:hover,
        .dashboard-quick-tile:hover,
        .dashboard-suggestion-card:hover,
        #dashboardSuggestionCard:hover,
        .dashboard-quran-streak-card:hover,
        .quran-continue-card:hover,
        #quranContinueCard .quran-continue-inner:hover,
        .quran-surah-row:hover,
        .more-row:hover,
        .settings-row:hover {
            transform: translateY(-3px) !important;
            box-shadow:
                var(--shadow-lg),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        .cat-card:active,
        .dua-category-card:active,
        .dashboard-quick-tile:active,
        .dashboard-suggestion-card:active,
        #dashboardSuggestionCard:active,
        .dashboard-quran-streak-card:active,
        .quran-continue-card:active,
        #quranContinueCard .quran-continue-inner:active,
        .quran-surah-row:active,
        .more-row:active,
        .settings-row:active {
            transform: translateY(0) scale(0.98) !important;
            transition-duration: 100ms !important;
        }

        .bottom-nav {
            height: var(--space-64) !important;
            background: rgba(10, 22, 40, 0.88) !important;
            box-shadow: var(--shadow-lg) !important;
        }

        .bottom-nav-item {
            min-height: var(--height-nav-item) !important;
            color: var(--text-muted) !important;
            font: var(--text-caption);
        }

        .bottom-nav-item.active {
            color: var(--text-primary) !important;
            background: var(--accent-gold-subtle) !important;
            border-radius: var(--radius-lg) !important;
        }

        #mainContainer[data-main-mode="home"] .home-dashboard {
            gap: var(--space-16) !important;
            padding-top: var(--space-8);
        }

        .dashboard-greeting {
            font: var(--text-h2) !important;
            color: var(--text-secondary) !important;
            margin-top: var(--space-4) !important;
        }

        .dashboard-date {
            font: var(--text-caption) !important;
            color: var(--text-muted) !important;
        }

        .dashboard-prayer-card {
            padding: var(--space-24) !important;
            border-radius: var(--radius-xl) !important;
            background: var(--surface-accent) !important;
            min-height: 0 !important;
            margin-top: 0 !important;
        }

        .dashboard-prayer-label,
        .dashboard-prayer-strip-head,
        .dashboard-continue-kicker,
        .dashboard-tip-label,
        .dashboard-hadith-label,
        .dashboard-progress-heading,
        .dashboard-streak-title {
            font: var(--text-caption) !important;
            color: var(--text-accent) !important;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .dashboard-prayer-name {
            font: var(--text-h1) !important;
            color: var(--text-primary) !important;
        }

        .dashboard-prayer-time {
            font: var(--text-h2) !important;
            color: var(--text-primary) !important;
        }

        .dashboard-prayer-countdown {
            font: var(--text-h2) !important;
            color: var(--text-accent) !important;
        }

        .dashboard-prayer-location,
        .dashboard-streak-sub,
        .dashboard-hadith-source,
        .dashboard-progress-row,
        .dashboard-continue-ayah {
            font: var(--text-caption) !important;
            color: var(--text-secondary) !important;
        }

        .dashboard-prayer-strip-card,
        .dashboard-suggestion-card,
        .dashboard-quran-streak-card,
        .dashboard-tip-card,
        .dashboard-hadith-card,
        .dashboard-progress-summary {
            padding: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
        }

        .dashboard-prayer-strip-head {
            color: var(--text-accent) !important;
        }

        .dashboard-prayer-strip-name {
            color: var(--text-primary) !important;
        }

        .dashboard-prayer-strip-time {
            color: var(--text-secondary) !important;
        }

        .dashboard-continue-surah,
        .dashboard-tip-text,
        .dashboard-hadith-text {
            font: var(--text-body) !important;
            color: var(--text-primary) !important;
        }

        .dashboard-suggestion-cta {
            font: var(--text-micro) !important;
            color: var(--text-primary) !important;
        }

        .dashboard-quick-grid {
            gap: var(--space-16) !important;
        }

        .dashboard-quick-tile {
            min-height: var(--size-quick-tile) !important;
            padding: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
            background: var(--surface-card) !important;
            gap: var(--space-12) !important;
        }

        .dashboard-quick-label {
            font: var(--text-h2) !important;
            color: var(--text-primary) !important;
            text-shadow: none !important;
        }

        .dashboard-quick-icon,
        .dashboard-quick-icon svg {
            color: var(--text-accent) !important;
            stroke: currentColor !important;
            filter: none !important;
        }

        .prayer-subtabs {
            gap: var(--space-8) !important;
        }

        .quran-view-tab,
        .prayer-subtab,
        .selected-city-change,
        .prayer-reminder-select,
        .quran-reading-mode-btn,
        .quran-player-btn,
        .quran-ayah-btn,
        .tasbeeh-ctrl-btn,
        .tasbeeh-preset,
        .action-btn,
        .back-to-grid {
            min-height: var(--height-button) !important;
            border-radius: var(--radius-md) !important;
        }

        .quran-view-tab,
        .prayer-subtab {
            font: var(--text-body) !important;
            padding: 0 var(--space-16) !important;
            background: var(--bg-card) !important;
            color: var(--text-secondary) !important;
            border: 1px solid var(--border-medium) !important;
        }

        .quran-view-tab.active,
        .prayer-subtab.active {
            background: var(--accent-gold-subtle) !important;
            color: var(--text-primary) !important;
            border-color: var(--border-accent) !important;
            box-shadow: none !important;
        }

        .quran-continue-card,
        #quranContinueCard .quran-continue-inner {
            padding: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
        }

        .quran-surah-row {
            min-height: var(--height-list-row) !important;
            padding: var(--space-12) !important;
            border-radius: var(--radius-lg) !important;
            gap: var(--space-12) !important;
            border-left-width: 1px !important;
        }

        .quran-surah-num,
        .quran-ayah-num,
        .dua-number {
            width: var(--space-32) !important;
            height: var(--space-32) !important;
            border-radius: 50% !important;
            font: var(--text-caption) !important;
        }

        .quran-surah-name-secondary {
            font: var(--text-body) !important;
            color: var(--text-primary) !important;
        }

        .quran-surah-name-primary,
        .quran-surah-ar {
            font-family: var(--arabic-font) !important;
            font-size: var(--text-arabic-heading) !important;
            line-height: 1.45 !important;
            color: var(--text-primary) !important;
        }

        .quran-surah-ayahs,
        .quran-playback-progress-label,
        .quran-inline-reciter label,
        .quran-recent-meta,
        .quran-bookmark-meta,
        .quran-juz-meta {
            font: var(--text-caption) !important;
            color: var(--text-muted) !important;
        }

        .quran-revelation-text,
        .auth-badge,
        .prayer-now-badge,
        .prayer-next-badge {
            font: var(--text-micro) !important;
            border-radius: var(--radius-sm) !important;
            padding: var(--space-2) var(--space-6) !important;
            letter-spacing: 0.08em !important;
        }

        .quran-ayah-card {
            padding: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
            gap: var(--space-12) !important;
        }

        .quran-ayah-ar,
        .dua-swipe-content .arabic-text,
        .dua-card .arabic-text {
            font-family: var(--arabic-font) !important;
            font-size: var(--text-arabic-display) !important;
            line-height: var(--arabic-line-height) !important;
            color: var(--text-primary) !important;
            word-spacing: normal !important;
        }

        .quran-ayah-en,
        .quran-ayah-ps,
        .translation,
        .transliteration,
        .how-to-box,
        .prayer-reminder-helper,
        .more-label,
        .selected-city-text,
        .city-name,
        .city-search-input,
        .qibla-status {
            font: var(--text-body) !important;
        }

        .transliteration {
            color: var(--text-secondary) !important;
            font-style: italic;
        }

        .translation,
        .quran-ayah-en,
        .quran-ayah-ps,
        .how-to-box,
        .city-name,
        .selected-city-text,
        .qibla-status,
        .more-label {
            color: var(--text-primary) !important;
        }

        .reference,
        .ref-text,
        .dua-category-tag,
        .category-detail-header .cdh-subtitle,
        .cat-card-count,
        .qibla-distance,
        .qibla-instruction,
        .prayer-reminder-title,
        .prayer-reminder-status,
        .more-arrow,
        .city-subline,
        .city-coords {
            font: var(--text-caption) !important;
            color: var(--text-muted) !important;
            opacity: 1 !important;
        }

        .duas-tab-search-wrap {
            margin: 0 0 var(--space-16) !important;
        }

        .duas-tab-search,
        .search-input {
            min-height: var(--height-input) !important;
            border-radius: var(--radius-md) !important;
            padding: 0 var(--space-16) !important;
            font: var(--text-body) !important;
            color: var(--text-primary) !important;
            border: 1px solid var(--border-medium) !important;
            background: var(--bg-card) !important;
        }

        .category-grid {
            gap: var(--space-16) !important;
            padding: var(--space-4) 0 var(--space-12) !important;
        }

        .cat-card,
        .dua-category-card {
            min-height: 120px !important;
            padding: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
            justify-content: flex-end !important;
            transform: translateY(0) scale(1) !important;
        }

        .cat-card::before,
        .cat-card::after {
            opacity: 0.04 !important;
        }

        .cat-card-icon,
        .dua-category-card .category-icon-circle {
            width: var(--space-40) !important;
            height: var(--space-40) !important;
            border-radius: var(--radius-md) !important;
            margin-bottom: var(--space-8) !important;
            background: var(--accent-gold-subtle) !important;
            border: 1px solid var(--border-accent) !important;
            box-shadow: none !important;
        }

        .cat-card-name,
        .dua-title,
        .cdh-title {
            font: var(--text-h2) !important;
            color: var(--text-primary) !important;
            letter-spacing: normal !important;
            text-transform: none !important;
            text-shadow: none !important;
        }

        .category-detail-header,
        .duas-bookmarks {
            padding: var(--space-20) !important;
            border-radius: var(--radius-lg) !important;
        }

        .dua-card {
            margin-bottom: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
            padding: 0 !important;
        }

        .card-header {
            min-height: var(--height-list-row) !important;
            padding: var(--space-16) !important;
        }

        .card-header-left,
        .card-actions,
        .copy-row,
        .dua-swipe-actions,
        .tasbeeh-controls,
        .tasbeeh-presets {
            gap: var(--space-8) !important;
        }

        .card-body-inner,
        .dua-card .card-body-inner {
            padding: 0 var(--space-16) var(--space-16) !important;
        }

        .arabic-container,
        .dua-swipe-content .arabic-container {
            padding: var(--space-24) !important;
            border-radius: var(--radius-lg) !important;
            margin-bottom: var(--space-16) !important;
        }

        .copy-row .action-btn,
        .dua-swipe-actions .action-btn,
        .dua-swipe-actions .audio-btn {
            min-height: var(--height-button) !important;
            padding: 0 var(--space-16) !important;
            border-radius: var(--radius-md) !important;
            font: var(--text-micro) !important;
            letter-spacing: 0.08em !important;
            text-transform: uppercase;
        }

        .tasbeeh-title,
        .tasbeeh-target {
            font: var(--text-caption) !important;
            color: var(--text-accent) !important;
            letter-spacing: 0.08em !important;
            text-transform: uppercase;
        }

        .tasbeeh-arabic {
            font-family: var(--arabic-font) !important;
            font-size: var(--text-arabic-heading) !important;
            line-height: var(--arabic-line-height) !important;
            color: var(--text-primary) !important;
            max-width: 100% !important;
        }

        .tasbeeh-count-display {
            font: var(--text-display) !important;
            color: var(--text-primary) !important;
            text-shadow: none !important;
        }

        .tasbeeh-tap-btn {
            width: var(--size-tasbeeh-tap) !important;
            height: var(--size-tasbeeh-tap) !important;
            min-width: var(--size-tasbeeh-tap) !important;
            min-height: var(--size-tasbeeh-tap) !important;
            border-radius: 50% !important;
            border: 1px solid var(--border-accent) !important;
            background: var(--surface-success) !important;
            box-shadow: var(--shadow-lg) !important;
        }

        .tasbeeh-tap-btn .tap-text {
            font: var(--text-caption) !important;
            color: var(--text-primary) !important;
            text-transform: uppercase;
            letter-spacing: 0.08em !important;
        }

        .tasbeeh-ctrl-btn,
        .tasbeeh-preset {
            padding: 0 var(--space-16) !important;
            font: var(--text-caption) !important;
        }

        .prayer-panel {
            padding: calc(var(--safe-top) + var(--space-8)) var(--space-12) calc(var(--safe-bottom) + var(--space-12)) !important;
        }

        .prayer-location-bar,
        .prayer-countdown-card,
        .prayer-reminder-status,
        .prayer-notify-row {
            margin-bottom: var(--space-12) !important;
        }

        .selected-city-chip,
        .city-search-shell {
            min-height: var(--height-input) !important;
            border-radius: var(--radius-md) !important;
            padding: 0 var(--space-12) !important;
        }

        .city-option,
        .prayer-row,
        .prayer-time-row,
        .prayer-reminder-item,
        .more-row,
        .settings-row {
            min-height: var(--height-list-row) !important;
            padding: 0 var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
        }

        .prayer-countdown-card {
            padding: var(--space-24) !important;
            border-radius: var(--radius-xl) !important;
        }

        .prayer-countdown-name {
            font: var(--text-h1) !important;
            color: var(--text-primary) !important;
        }

        .prayer-countdown-time {
            font: var(--text-h2) !important;
            color: var(--text-accent) !important;
        }

        .prayer-name,
        .prayer-time-name,
        .prayer-time-val,
        .prayer-time-value,
        .prayer-notify-label {
            font: var(--text-body) !important;
            color: var(--text-primary) !important;
        }

        .qibla-section {
            padding: var(--space-24) !important;
            border-radius: var(--radius-xl) !important;
            gap: var(--space-12) !important;
            justify-content: flex-start !important;
        }

        .qibla-title,
        .more-section-title {
            font: var(--text-micro) !important;
            color: var(--text-accent) !important;
            text-transform: uppercase !important;
            letter-spacing: 0.12em !important;
        }

        .more-section-title {
            padding-left: var(--space-16) !important;
        }

        .qibla-compass {
            width: var(--size-qibla-compass) !important;
            height: var(--size-qibla-compass) !important;
            min-width: var(--size-qibla-compass) !important;
            min-height: var(--size-qibla-compass) !important;
            margin: 0 auto var(--space-16) !important;
        }

        .qibla-location {
            font: var(--text-body) !important;
            color: var(--text-primary) !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-8);
            width: 100%;
        }

        .qibla-location::before {
            content: '📍';
            font-size: 1em;
        }

        .qibla-degree {
            font: var(--text-display) !important;
            color: var(--text-primary) !important;
            letter-spacing: -0.03em !important;
        }

        .qibla-distance {
            margin-top: calc(var(--space-4) * -1);
        }

        .qibla-status {
            margin-top: var(--space-8) !important;
        }

        .qibla-instruction {
            max-width: 28ch;
            margin: 0 auto;
        }

        .prayer-reminder-settings {
            padding: var(--space-16) !important;
            border-radius: var(--radius-lg) !important;
        }

        .prayer-reminder-grid,
        .prayer-reminder-controls {
            gap: var(--space-8) !important;
        }

        .prayer-reminder-helper {
            color: var(--text-muted) !important;
            opacity: 1 !important;
            margin: 0 0 var(--space-12) !important;
        }

        .foreground-reminder-banner {
            margin-bottom: var(--space-8);
        }

        .prayer-reminder-status,
        .prayer-reminder-title {
            color: var(--text-muted) !important;
        }

        .more-panel-content {
            gap: var(--space-12);
        }

        .more-label {
            color: var(--text-primary) !important;
        }

        .more-arrow {
            color: var(--text-muted) !important;
            font: var(--text-caption) !important;
        }

        .ornament-divider,
        .ornamental-divider,
        .ornamental-line {
            color: rgba(201, 168, 76, 0.15) !important;
        }

        [data-theme="light"] .bottom-nav {
            background: rgba(255, 255, 255, 0.96) !important;
        }

        [data-theme="light"] .quran-continue-card,
        [data-theme="light"] #quranContinueCard .quran-continue-inner,
        [data-theme="light"] .dashboard-prayer-strip-card,
        [data-theme="light"] .dashboard-prayer-card,
        [data-theme="light"] .prayer-countdown-card {
            background: #ffffff !important;
            color: var(--text-primary) !important;
        }

        [data-theme="light"] .dashboard-prayer-strip-name,
        [data-theme="light"] .dashboard-prayer-name,
        [data-theme="light"] .dashboard-prayer-time,
        [data-theme="light"] .dashboard-prayer-location,
        [data-theme="light"] .prayer-countdown-label,
        [data-theme="light"] .prayer-countdown-name {
            color: var(--text-primary) !important;
        }

        [data-theme="light"] .dashboard-prayer-strip-head,
        [data-theme="light"] .dashboard-prayer-countdown,
        [data-theme="light"] .prayer-countdown-time,
        [data-theme="light"] .dashboard-prayer-label,
        [data-theme="light"] .dashboard-continue-kicker,
        [data-theme="light"] .dashboard-tip-label,
        [data-theme="light"] .dashboard-hadith-label,
        [data-theme="light"] .dashboard-progress-heading,
        [data-theme="light"] .qibla-title,
        [data-theme="light"] .more-section-title {
            color: var(--text-accent) !important;
        }

        [data-theme="light"] .dashboard-prayer-strip-time {
            color: var(--text-secondary) !important;
        }

        [data-theme="light"] .dashboard-quick-tile .tile-watermark,
        [data-theme="light"] .cat-card .category-watermark,
        [data-theme="light"] .dua-category-card .category-watermark {
            color: rgba(255, 255, 255, 0.12);
        }

        [data-theme="light"] .dua-swipe-content .arabic-container {
            background: linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(247, 240, 228, 0.94)) !important;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.82),
                0 1px 0 rgba(154, 122, 47, 0.08) !important;
        }

        [data-theme="light"] .dua-swipe-card {
            border-top-color: rgba(154, 122, 47, 0.22) !important;
            border-left-color: rgba(154, 122, 47, 0.16) !important;
            border-right-color: rgba(154, 122, 47, 0.1) !important;
            border-bottom-color: rgba(154, 122, 47, 0.08) !important;
            box-shadow:
                0 2px 4px rgba(0, 0, 0, 0.1),
                0 10px 22px rgba(112, 83, 24, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
        }

        [data-theme="light"] .dua-swipe-card::before {
            border-color: rgba(154, 122, 47, 0.3) !important;
            opacity: 0.55 !important;
        }

        [data-theme="light"] .tasbeeh-tap-btn {
            border-color: rgba(154, 122, 47, 0.36) !important;
            background: radial-gradient(circle at 30% 24%, rgba(255, 248, 228, 0.98) 0%, rgba(233, 219, 187, 0.96) 24%, rgba(173, 132, 43, 0.92) 58%, rgba(107, 76, 18, 0.98) 100%) !important;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 16px 30px rgba(122, 88, 24, 0.2),
                0 0 0 1px rgba(154, 122, 47, 0.08) !important;
        }

        [data-theme="light"] .tasbeeh-tap-btn .tap-text {
            color: rgba(53, 36, 10, 0.96) !important;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) !important;
        }

        [data-theme="light"] .tasbeeh-tap-btn:active {
            background: radial-gradient(circle at 30% 24%, rgba(255, 246, 216, 0.98) 0%, rgba(228, 208, 164, 0.96) 22%, rgba(161, 119, 31, 0.94) 56%, rgba(96, 66, 14, 0.98) 100%) !important;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.7),
                0 10px 18px rgba(122, 88, 24, 0.18) !important;
        }

        [data-theme="light"] .quran-top-progress {
            height: 1px;
            background: rgba(154, 122, 47, 0.08);
        }

        [data-theme="light"] .quran-top-progress span {
            background: linear-gradient(90deg, rgba(154, 122, 47, 0.22), rgba(154, 122, 47, 0.46));
        }

        #quranContinueCard .quran-continue-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.1rem;
            height: 1.1rem;
            color: currentColor;
            vertical-align: middle;
            margin-right: 0.35rem;
        }

        #quranContinueCard .quran-continue-icon svg {
            width: 100%;
            height: 100%;
            display: block;
            stroke: currentColor;
        }

        [data-theme="light"] .prayer-watermark {
            color: rgba(22, 43, 74, 0.09);
        }

        [data-theme="light"] .tile-arabic-label {
            color: rgba(255, 255, 255, 0.92);
        }

        [data-theme="light"] .dua-bismillah,
        [data-theme="light"] .mushaf-bismillah {
            color: rgba(160, 122, 28, 0.96);
            text-shadow: none;
        }

        @media (max-width: 480px) {
            .qibla-compass {
                width: var(--size-qibla-compass-mobile) !important;
                height: var(--size-qibla-compass-mobile) !important;
                min-width: var(--size-qibla-compass-mobile) !important;
                min-height: var(--size-qibla-compass-mobile) !important;
            }

            .dua-swipe-content .arabic-text,
            .dua-card .arabic-text,
            .quran-ayah-ar {
                font-size: 28px !important;
            }
        }

        @media (max-width: 375px) {
            .cat-card .category-watermark,
            .dua-category-card .category-watermark {
                font-size: 2.05rem;
                right: -16px;
            }

            .dashboard-quick-tile .tile-watermark {
                font-size: 1.95rem;
                right: -14px;
            }
        }

        @media (max-width: 375px) {
            .dashboard-prayer-card {
                padding: var(--space-20) !important;
            }

            .dashboard-quick-grid,
            .category-grid {
                gap: var(--space-12) !important;
            }

            .quran-surah-row,
            .prayer-row,
            .prayer-time-row,
            .prayer-reminder-item,
            .more-row,
            .settings-row {
                min-height: var(--height-list-row) !important;
            }
        }

        .quran-player-btn {
            width: var(--height-button) !important;
            height: var(--height-button) !important;
            min-width: var(--height-button) !important;
            min-height: var(--height-button) !important;
            border-radius: var(--radius-md) !important;
            background: var(--bg-card) !important;
            color: var(--text-primary) !important;
        }

        .quran-player-btn-main {
            width: calc(var(--height-button) + var(--space-8)) !important;
            height: calc(var(--height-button) + var(--space-8)) !important;
            min-width: calc(var(--height-button) + var(--space-8)) !important;
            min-height: calc(var(--height-button) + var(--space-8)) !important;
            background: var(--accent-gold-subtle) !important;
            color: var(--text-accent) !important;
            border-color: var(--border-accent) !important;
        }

        [data-theme="light"] .dashboard-prayer-card .dashboard-prayer-countdown,
        [data-theme="light"] .dashboard-prayer-countdown,
        [data-theme="light"] .prayer-countdown-time {
            color: var(--text-accent) !important;
        }

        [data-theme="light"] .prayer-countdown-card {
            background: linear-gradient(180deg, #fffdf9 0%, #f6f0e6 100%) !important;
            border: 1px solid rgba(154, 122, 47, 0.18) !important;
            box-shadow: 0 10px 24px rgba(42, 33, 18, 0.08) !important;
        }

        [data-theme="light"] .prayer-countdown-card .prayer-countdown-label {
            color: #75684f !important;
        }

        [data-theme="light"] .prayer-countdown-card .prayer-countdown-name {
            color: #1f2940 !important;
        }

        [data-theme="light"] .prayer-countdown-card .prayer-countdown-time {
            color: #7b5a17 !important;
            text-shadow: none !important;
        }

        /* ===== HOME GREETING TILE ===== */
        .home-greeting-tile {
            position: relative;
            margin: 0 0 2px;
            padding: 18px 22px 16px;
            border-radius: 16px;
            background: linear-gradient(
                160deg,
                #0e2040 0%,
                #0b1a34 55%,
                #091426 100%
            );
            border: 1px solid rgba(201, 168, 76, 0.18);
            text-align: center;
            overflow: hidden;
        }
        .home-greeting-tile::before {
            content: '';
            position: absolute;
            top: 0;
            left: 12%; right: 12%;
            height: 1px;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(201, 168, 76, 0.42),
                rgba(201, 168, 76, 0.68),
                rgba(201, 168, 76, 0.42),
                transparent
            );
        }
        .home-greeting-salam {
            font-family: 'Amiri', 'Noto Naskh Arabic', serif;
            font-size: clamp(1.32rem, 3.6vw, 1.55rem);
            font-weight: 400;
            color: rgba(201, 168, 76, 0.9);
            letter-spacing: 0.03em;
            line-height: 1.4;
            direction: rtl;
            margin: 0 0 6px;
        }
        .home-greeting-tile .dashboard-greeting {
            font-size: clamp(0.72rem, 1.85vw, 0.82rem) !important;
            color: rgba(235, 245, 220, 0.46) !important;
            font-weight: 400 !important;
            letter-spacing: 0.65px !important;
            text-transform: uppercase !important;
            margin: 0 !important;
            line-height: 1.3 !important;
            min-height: 1em;
        }
        .home-greeting-tile .dashboard-date {
            margin-top: 7px !important;
            margin-bottom: 0 !important;
            font-size: 0.72rem !important;
            color: rgba(220, 215, 200, 0.38) !important;
            letter-spacing: 0.15px;
        }
        [data-theme="light"] .home-greeting-tile {
            background: linear-gradient(
                160deg,
                rgba(201, 168, 76, 0.07) 0%,
                rgba(255, 255, 255, 0.55) 100%
            );
            border-color: rgba(154, 122, 47, 0.22);
        }
        [data-theme="light"] .home-greeting-tile::before {
            background: linear-gradient(
                90deg,
                transparent,
                rgba(154, 122, 47, 0.38),
                rgba(154, 122, 47, 0.6),
                rgba(154, 122, 47, 0.38),
                transparent
            );
        }
        [data-theme="light"] .home-greeting-salam {
            color: rgba(130, 95, 20, 0.88);
        }
        [data-theme="light"] .home-greeting-tile .dashboard-greeting {
            color: rgba(40, 50, 60, 0.5) !important;
        }
        [data-theme="light"] .home-greeting-tile .dashboard-date {
            color: rgba(40, 50, 60, 0.42) !important;
        }

        /* ===== CARD LABEL ICON ===== */
        .card-lbl-icon {
            display: inline-flex;
            align-items: center;
            flex-shrink: 0;
            opacity: 0.82;
        }

        .card-lbl-icon svg {
            width: 11px;
            height: 11px;
            display: block;
        }

        /* ===== ARABIC BACKGROUND WATERMARK (tip / hadith / progress) ===== */
        .card-bg-watermark {
            position: absolute;
            bottom: -10px;
            right: -6px;
            font-family: 'Amiri', 'Noto Naskh Arabic', serif;
            font-size: 2.6rem;
            line-height: 1;
            pointer-events: none;
            z-index: 0;
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.05);
            letter-spacing: 0.02em;
        }

        .hadith-watermark {
            color: rgba(201, 168, 76, 0.07);
            font-size: 1.55rem;
            bottom: 8px;
            right: 8px;
        }

        /* Keep all card text above the watermark */
        .dashboard-tip-card > *:not(.card-bg-watermark),
        .dashboard-hadith-card > *:not(.card-bg-watermark),
        .dashboard-progress-summary > *:not(.card-bg-watermark) {
            position: relative;
            z-index: 1;
        }

        /* Top shimmer highlight for Tip, Hadith, Progress cards */
        .dashboard-tip-card::after,
        .dashboard-hadith-card::after,
        .dashboard-progress-summary::after {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            pointer-events: none;
            z-index: 2;
        }

        .dashboard-tip-card::after {
            background: linear-gradient(90deg, transparent, rgba(46, 196, 122, 0.35), transparent);
        }

        .dashboard-hadith-card::after {
            background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.40), transparent);
        }

        .dashboard-progress-summary::after {
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
        }
