        body {
            padding-bottom: 0;
        }

        @media (max-width: 768px) {
            body {
                padding-bottom: 60px;
            }
        }

        .app-content {
            max-width: 1200px;
            margin: 0 auto;
            padding-bottom: 20px;
        }

        @media (max-width: 768px) {
            .app-content {
                padding-bottom: 180px;
            }
        }

        .surah-list-view,
        .surah-reader-view {
            display: none;
        }

        .surah-list-view.active,
        .surah-reader-view.active {
            display: block;
        }

        .bookmarks-section {
            margin-bottom: 24px;
            padding: 20px;
            background: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .bookmarks-title {
            font-size: 20px;
            color: var(--primary-color);
            margin-bottom: 16px;
            font-weight: 600;
        }

        .bookmarks-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .bookmark-item {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.2s;
        }

        .bookmark-item:active {
            transform: scale(0.98);
        }

        .bookmark-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .bookmark-name {
            font-size: 18px;
            color: var(--primary-color);
            font-weight: 600;
        }

        .bookmark-details {
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .bookmark-actions {
            display: flex;
            gap: 8px;
        }

        .bookmark-delete-btn {
            background: rgba(244, 67, 54, 0.1);
            border: none;
            color: #f44336;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
        }

        .search-container {
            margin-bottom: 20px;
        }

        .search-container input {
            width: 100%;
            padding: 14px 18px;
            font-size: 16px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--card-bg);
            color: var(--text-color);
            font-family: 'Amiri', serif;
            transition: all 0.15s;
        }

        .search-container input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .instant-search-results {
            margin-top: 10px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
            display: none;
        }

        .instant-search-results.active {
            display: block;
        }

        .instant-search-section {
            padding: 10px 12px 0;
        }

        .instant-search-section-title {
            font-size: 13px;
            color: var(--text-color);
            opacity: 0.75;
            margin-bottom: 8px;
            font-family: 'Inter', sans-serif;
        }

        .instant-result-item {
            width: 100%;
            border: none;
            border-top: 1px solid var(--border-color);
            background: transparent;
            color: var(--text-color);
            padding: 11px 12px;
            text-align: right;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 4px;
            font-family: 'Amiri', serif;
        }

        .instant-result-item:hover {
            background: rgba(255, 255, 255, 0.04);
        }

        .instant-result-item strong {
            font-size: 17px;
            font-weight: 700;
            color: var(--primary-color);
        }

        .instant-result-item small {
            font-size: 13px;
            opacity: 0.8;
            font-family: 'Inter', sans-serif;
        }

        .instant-result-empty {
            padding: 12px;
            font-size: 14px;
            opacity: 0.8;
        }

        .ayah-search-highlight {
            background: rgba(76, 175, 80, 0.16);
            border-radius: 10px;
            padding: 2px 4px;
            animation: ayahResultPulse 1.8s ease;
        }

        @keyframes ayahResultPulse {
            0% {
                background: rgba(76, 175, 80, 0.34);
            }

            100% {
                background: rgba(76, 175, 80, 0.1);
            }
        }

        .reader-header {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 10px 12px;
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            border: 1px solid var(--border-color);
        }

        .reader-header-top {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
        }

        .reader-header-actions {
            display: flex;
            gap: 6px;
            width: 100%;
            justify-content: space-between;
            border-top: 1px solid var(--border-color);
            padding-top: 10px;
        }

        @media (min-width: 769px) {
            .reader-header {
                flex-direction: row;
                align-items: center;
                padding: 12px 14px;
            }

            .reader-header-top {
                width: auto;
                flex: 1;
            }

            .reader-header-actions {
                width: auto;
                border-top: none;
                padding-top: 0;
            }
        }

        .reader-header .icon-btn {
            background: rgba(27, 94, 32, 0.05);
            border: none;
            color: var(--primary-color);
            padding: 6px;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            gap: 2px;
            flex: 1;
            min-width: 0;
        }

        .reader-header .icon-btn-back {
            background: rgba(27, 94, 32, 0.05);
            border: none;
            color: var(--primary-color);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            flex-shrink: 0;
        }

        .reader-header .icon-btn i {
            font-size: 16px;
        }

        .reader-header .icon-btn span {
            font-size: 9px;
            font-weight: 600;
            font-family: 'Cairo', sans-serif;
            opacity: 0.9;
        }

        .reader-header .icon-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        .reader-progress-strip {
            position: sticky;
            top: 82px;
            z-index: 95;
            margin: -6px 0 14px;
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            border-radius: 12px;
            padding: 10px 12px;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .reader-progress-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        #readerProgressPercent {
            color: var(--primary-color);
            font-weight: 800;
        }

        .reader-progress-track {
            width: 100%;
            height: 7px;
            border-radius: 999px;
            background: rgba(var(--primary-rgb), 0.15);
            overflow: hidden;
        }

        .reader-progress-fill {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
            transition: width 0.25s ease;
        }

        .memorization-coach {
            margin: 0 0 12px;
            border: 1px solid rgba(var(--primary-rgb), 0.24);
            border-radius: 14px;
            padding: 12px;
            background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.03) 52%, var(--card-bg));
        }

        .memorization-coach-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }

        .memorization-coach-title {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 800;
            color: var(--primary-color);
            font-family: 'Cairo', sans-serif;
        }

        .memorization-progress-text {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary, #666);
            font-family: 'Cairo', sans-serif;
        }

        .memorization-progress-track {
            width: 100%;
            height: 6px;
            border-radius: 999px;
            background: rgba(var(--primary-rgb), 0.18);
            overflow: hidden;
            margin-bottom: 10px;
        }

        .memorization-progress-fill {
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            transition: width 0.2s ease;
        }

        .memorization-ayah-card {
            border-radius: 12px;
            border: 1px dashed rgba(var(--primary-rgb), 0.3);
            background: var(--card-bg);
            padding: 12px;
            margin-bottom: 10px;
        }

        .memorization-ayah-card.hidden .memorization-ayah-text {
            filter: blur(8px);
            user-select: none;
        }

        .memorization-ayah-text {
            font-family: 'Amiri', serif;
            font-size: 31px;
            line-height: 2.1;
            text-align: center;
            color: var(--text-color);
            transition: filter 0.2s ease;
        }

        .memorization-ayah-ref {
            margin-top: 8px;
            text-align: center;
            font-size: 12px;
            font-family: 'Cairo', sans-serif;
            color: var(--text-secondary, #666);
            font-weight: 700;
        }

        .memorization-controls {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
        }

        .memorization-btn {
            border: 1px solid rgba(var(--primary-rgb), 0.26);
            border-radius: 10px;
            background: rgba(var(--primary-rgb), 0.08);
            color: var(--text-color);
            font-family: 'Cairo', sans-serif;
            font-size: 12px;
            font-weight: 700;
            min-height: 38px;
            padding: 7px 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .memorization-btn.primary {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: #fff;
        }

        .memorization-btn.done {
            background: rgba(46, 125, 50, 0.2);
            border-color: rgba(46, 125, 50, 0.45);
            color: #2e7d32;
        }

        .memorization-btn.active {
            background: rgba(var(--primary-rgb), 0.18);
            border-color: rgba(var(--primary-rgb), 0.45);
            color: var(--primary-color);
        }

        .memorization-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
        }

        .memorization-btn:hover {
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .memorization-controls {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        body.memorization-coach-active #quranContent .ayahs-container {
            opacity: 0.65;
        }

        .reader-info {
            flex: 1;
            min-width: 0;
        }

        .reader-info h2 {
            margin: 0;
            color: var(--primary-color);
            font-size: 17px;
            font-weight: 700;
        }

        .reader-info p {
            margin: 0;
            color: var(--text-color);
            opacity: 0.6;
            font-size: 11px;
        }

        .surah-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
        }

        .surah-item {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.15s;
        }

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

        .surah-item:active {
            transform: scale(0.99);
        }

        .surah-item-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .surah-number {
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            color: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
        }

        .surah-item-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .surah-item-name {
            font-size: 20px;
            color: var(--primary-color);
            font-weight: 600;
        }

        .surah-item-details {
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .surah-item-left {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }

        .surah-item-arabic {
            font-size: 22px;
            color: var(--primary-color);
        }

        .surah-item-verses {
            font-size: 13px;
            color: var(--text-color);
            opacity: 0.5;
        }

        /* Reader Styles */
        .surah-header-info {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 20px;
        }

        .surah-header-title {
            font-size: 20px;
            color: var(--primary-color);
            font-weight: 600;
        }

        .surah-header-meta {
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
            margin-top: 4px;
        }

        .page-content {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 30px 20px;
            border: 1px solid var(--border-color);
            margin-bottom: 20px;
            animation: pageReveal 0.22s ease;
        }

        @keyframes pageReveal {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            .page-content {
                padding: 20px 16px;
                margin-bottom: 15px;
            }
        }

        .page-content.mushaf-page-content {
            padding: 18px 16px 20px;
        }

        .mushaf-page-header {
            margin-bottom: 16px;
        }

        .mushaf-stage {
            position: relative;
            min-height: 460px;
            border-radius: 14px;
            border: 1px solid rgba(var(--primary-rgb, 27, 94, 32), 0.2);
            background: linear-gradient(180deg, rgba(var(--primary-rgb, 27, 94, 32), 0.08), rgba(255, 247, 230, 0.7));
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        [data-theme="dark"] .mushaf-stage {
            background: linear-gradient(180deg, #f8f3e8, #efe5cf);
            border-color: rgba(141, 117, 71, 0.4);
        }

        .mushaf-stage-status {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-align: center;
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: var(--text-color);
            background: rgba(255, 255, 255, 0.72);
            z-index: 2;
            padding: 16px;
        }

        [data-theme="dark"] .mushaf-stage-status {
            background: rgba(248, 243, 232, 0.82);
        }

        .mushaf-stage-status.hidden {
            display: none;
        }

        .mushaf-stage-status.error {
            background: transparent;
            color: #c62828;
        }

        .mushaf-page-image {
            width: auto;
            max-width: 100%;
            max-height: min(1100px, 78vh);
            height: auto;
            border-radius: 10px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
            display: block;
            transition: opacity 0.2s ease;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        .mushaf-page-image.is-loading {
            opacity: 0.05;
        }

        .mushaf-page-image.is-error {
            display: none;
        }

        .mushaf-page-meta {
            margin-top: 14px;
            text-align: center;
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-secondary, #666);
        }

        @media (max-width: 768px) {
            .page-content.mushaf-page-content {
                padding: 14px 10px 14px;
            }

            .mushaf-stage {
                min-height: 300px;
                padding: 8px;
                border-radius: 12px;
            }

            .mushaf-page-image {
                border-radius: 8px;
            }

            .mushaf-page-meta {
                margin-top: 10px;
                font-size: 12px;
            }
        }

        .mushaf-exit-btn {
            display: none;
            border: none;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.74);
            color: #fff;
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 700;
            padding: 10px 14px;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            z-index: 1301;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
        }

        .mushaf-exit-btn i {
            font-size: 13px;
        }

        .mushaf-exit-btn:hover {
            background: rgba(0, 0, 0, 0.9);
        }

        .mushaf-bookmark-btn {
            display: none;
            border: none;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary-color);
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 800;
            padding: 10px 14px;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            z-index: 1301;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(var(--primary-rgb, 27, 94, 32), 0.3);
        }

        .mushaf-bookmark-btn.saved {
            background: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }

        body.mushaf-focus-mode {
            overflow: hidden;
        }

        body.mushaf-focus-mode app-sidebar,
        body.mushaf-focus-mode app-bottom-nav,
        body.mushaf-focus-mode .sidebar-overlay,
        body.mushaf-focus-mode .bottom-nav,
        body.mushaf-focus-mode .app-header,
        body.mushaf-focus-mode .reader-header,
        body.mushaf-focus-mode .reader-progress-strip,
        body.mushaf-focus-mode .memorization-coach,
        body.mushaf-focus-mode .swipe-hint,
        body.mushaf-focus-mode .ayah-quick-actions,
        body.mushaf-focus-mode .scroll-top-btn,
        body.mushaf-focus-mode .audio-player-container,
        body.mushaf-focus-mode .radio-fab,
        body.mushaf-focus-mode .radio-panel,
        body.mushaf-focus-mode #bookmarksSection {
            display: none !important;
        }

        body.mushaf-focus-mode .app-content {
            max-width: none;
            width: 100%;
            height: 100vh;
            margin: 0;
            padding: 0;
        }

        body.mushaf-focus-mode #surahReaderView.active {
            display: block;
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100vh;
            z-index: 1200;
            background: #10151c;
            overflow: hidden;
            margin: 0;
            padding: 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        body.mushaf-focus-mode #surahReaderView.active::-webkit-scrollbar {
            display: none;
        }

        body.mushaf-focus-mode #quranContent {
            margin: 0;
            min-height: 100vh;
            height: 100vh;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        body.mushaf-focus-mode .page-content.mushaf-page-content {
            width: 100%;
            min-height: 100vh;
            margin: 0;
            border: none;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
            padding: 56px 8px 8px;
            animation: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        body.mushaf-focus-mode .mushaf-page-header,
        body.mushaf-focus-mode .mushaf-page-meta {
            display: none;
        }

        body.mushaf-focus-mode .mushaf-stage {
            width: 100%;
            min-height: calc(100vh - 72px);
            border: none;
            border-radius: 0;
            background: #f9f4e8;
            padding: 8px;
        }

        [data-theme="dark"] body.mushaf-focus-mode .mushaf-stage {
            background: #f9f4e8;
        }

        body.mushaf-focus-mode .mushaf-stage-status {
            background: rgba(249, 244, 232, 0.84);
            color: #3a2e1e;
        }

        body.mushaf-focus-mode .mushaf-page-image {
            max-width: 100%;
            max-height: calc(100vh - 92px);
            width: auto;
            height: auto;
            border-radius: 0;
            box-shadow: none;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        body.mushaf-focus-mode .mushaf-exit-btn {
            position: fixed;
            top: 12px;
            left: 12px;
            display: inline-flex;
        }

        body.mushaf-focus-mode .mushaf-bookmark-btn {
            position: fixed;
            top: 12px;
            right: 12px;
            display: inline-flex;
        }

        body.mushaf-focus-mode .floating-nav-btn {
            display: inline-flex !important;
            z-index: 1301;
            width: 42px;
            height: 42px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.65);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.35);
        }

        body.mushaf-focus-mode .floating-nav-btn:hover:not(:disabled) {
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            transform: translateY(-50%) scale(1.04);
        }

        body.mushaf-focus-mode .floating-nav-right {
            right: 10px;
        }

        body.mushaf-focus-mode .floating-nav-left {
            left: 10px;
        }

        @media (max-width: 768px) {
            body.mushaf-focus-mode #quranContent {
                padding: 4px;
            }

            body.mushaf-focus-mode .page-content.mushaf-page-content {
                padding: 52px 2px 2px;
            }

            body.mushaf-focus-mode .mushaf-stage {
                min-height: calc(100vh - 64px);
                padding: 3px;
            }

            body.mushaf-focus-mode .mushaf-page-image {
                max-height: calc(100vh - 76px);
            }

            body.mushaf-focus-mode .mushaf-exit-btn {
                top: 10px;
                left: 10px;
                padding: 8px 10px;
                font-size: 12px;
                gap: 6px;
            }

            body.mushaf-focus-mode .mushaf-bookmark-btn {
                top: 10px;
                right: 10px;
                padding: 8px 10px;
                font-size: 12px;
                gap: 6px;
            }

            body.mushaf-focus-mode .floating-nav-btn {
                display: inline-flex !important;
                width: 40px;
                height: 40px;
            }

            body.mushaf-focus-mode .floating-nav-right {
                right: 6px;
            }

            body.mushaf-focus-mode .floating-nav-left {
                left: 6px;
            }
        }

        .page-header {
            text-align: center;
            padding: 20px;
            margin-bottom: 30px;
            background: var(--bg-color);
            border-radius: 10px;
        }

        .surah-name {
            font-size: 26px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .surah-info {
            color: var(--text-color);
            opacity: 0.7;
            font-size: 15px;
        }

        .bismillah {
            text-align: center;
            font-size: 28px;
            color: var(--primary-color);
            margin: 30px 0;
            padding: 20px;
            background: var(--bg-color);
            border-radius: 10px;
        }

        .ayahs-container {
            line-height: 2.5;
            font-family: 'Amiri', serif;
        }

        .ayah {
            display: inline;
            font-size: var(--quran-reader-font-size, var(--font-size-ayah));
            color: var(--text-color);
            transition: background-color 0.3s ease;
            padding: 2px 4px;
            border-radius: 4px;
            font-family: 'Amiri', serif;
        }

        .ayah.quick-actions-target {
            background: rgba(var(--primary-rgb), 0.14);
        }

        .ayah-quick-actions {
            position: fixed;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px;
            border-radius: 999px;
            border: 1px solid rgba(var(--primary-rgb), 0.28);
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 1200;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -6px) scale(0.97);
            transition: opacity 0.14s ease, transform 0.14s ease;
        }

        .ayah-quick-actions.active {
            opacity: 1;
            pointer-events: auto;
            transform: translate(-50%, 0) scale(1);
        }

        [data-theme="dark"] .ayah-quick-actions {
            background: rgba(20, 20, 20, 0.93);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .ayah-quick-btn {
            border: none;
            border-radius: 999px;
            padding: 8px 12px;
            background: rgba(var(--primary-rgb), 0.1);
            color: var(--text-color);
            font-family: 'Cairo', sans-serif;
            font-size: 12px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            min-height: 34px;
        }

        .ayah-quick-btn:hover {
            background: rgba(var(--primary-rgb), 0.2);
        }

        .ayah-quick-btn.active {
            background: var(--primary-color);
            color: #fff;
        }

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

        .ayah.playing {
            background-color: rgba(27, 94, 32, 0.12);
        }

        .ayah-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            font-size: 14px;
            font-weight: 600;
            margin: 0 8px;
            vertical-align: middle;
        }

        .ayah-separator {
            display: inline-block;
            margin: 0 8px;
            color: #ddd;
            font-size: 18px;
            vertical-align: middle;
            display: none;
        }

        .page-number {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: #999;
        }

        .floating-controls {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100;
            align-items: flex-end;
        }

        .nav-controls {
            display: flex;
            gap: 15px;
        }

        .swipe-hint {
            position: fixed;
            bottom: 180px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            z-index: 99;
            opacity: 0;
            pointer-events: none;
            white-space: nowrap;
        }

        .swipe-hint.visible {
            opacity: 1;
            animation: fadeOut 4s forwards;
        }

        @media (max-width: 768px) {
            .reader-progress-strip {
                position: static;
                margin: 0 0 10px;
                padding: 7px 9px;
                border-radius: 10px;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }

            .reader-progress-meta {
                font-size: 11px;
                margin-bottom: 5px;
            }

            .reader-progress-track {
                height: 5px;
            }

            .reader-header {
                padding: 8px 10px;
                gap: 8px;
            }

            .reader-header-actions {
                gap: 4px;
                padding-top: 8px;
            }

            .reader-header .icon-btn {
                min-height: 40px;
                padding: 7px 4px;
                border-radius: 10px;
            }

            .reader-header .icon-btn i {
                font-size: 17px;
            }

            .reader-header .icon-btn span {
                display: none;
            }

            .reader-info h2 {
                font-size: 16px;
            }

            .reader-info p {
                font-size: 10px;
            }

            .memorization-coach {
                padding: 10px;
                border-radius: 12px;
            }

            .memorization-ayah-text {
                font-size: 26px;
                line-height: 2;
            }

            .memorization-controls {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .memorization-btn {
                min-height: 36px;
                font-size: 11px;
            }

            .swipe-hint {
                display: block;
                bottom: 150px;
                max-width: calc(100vw - 24px);
                text-align: center;
                white-space: normal;
            }
        }

        @media (min-width: 769px) {
            .swipe-hint {
                display: none;
            }
        }

        @media (max-width: 768px) {
            body.quran-reader-active .bottom-nav {
                display: none;
            }

            body.quran-reader-active .app-content {
                padding-bottom: 120px;
            }

            body.quran-reader-active .radio-fab,
            body.quran-reader-active .radio-panel {
                display: none !important;
            }

            .ayah {
                font-size: var(--quran-reader-font-size, clamp(20px, 6vw, 28px));
            }
        }

        @keyframes fadeOut {

            0%,
            70% {
                opacity: 1;
            }

            100% {
                opacity: 0;
                visibility: hidden;
            }
        }

        .floating-bookmark {
            background: white;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .floating-bookmark.saved {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        @media (max-width: 768px) {
            .surah-list {
                grid-template-columns: 1fr;
            }

            .floating-controls {
                bottom: 80px;
                right: 15px;
                gap: 12px;
            }

            .nav-controls {
                display: none;
            }

            .floating-bookmark {
                padding: 10px 20px;
                font-size: 15px;
            }
        }

        @media (min-width: 769px) {
            .floating-controls {
                flex-direction: row;
                align-items: center;
                gap: 20px;
                bottom: 30px;
                right: 30px;
            }

            .nav-controls {
                order: -1;
            }
        }



        .floating-nav-btn {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            color: var(--primary-color);
            border: 1px solid rgba(0, 0, 0, 0.08);
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            z-index: 98;
        }

        [data-theme="dark"] .floating-nav-btn {
            background: rgba(26, 26, 26, 0.95);
            border-color: rgba(255, 255, 255, 0.1);
            color: var(--primary-color);
        }

        .floating-nav-right {
            right: 20px;
        }

        .floating-nav-left {
            left: 20px;
        }

        @media (max-width: 768px) {
            .floating-nav-btn {
                display: none;
            }
        }

        .floating-nav-btn:hover:not(:disabled) {
            background: var(--primary-color);
            color: white;
            transform: translateY(-50%) scale(1.08);
        }

        .floating-nav-btn:active:not(:disabled) {
            transform: translateY(-50%) scale(0.92);
        }

        .floating-nav-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            background: var(--border-color);
            color: var(--text-color);
        }

        .scroll-top-btn {
            position: fixed;
            right: 18px;
            bottom: 92px;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid rgba(var(--primary-rgb), 0.28);
            background: var(--card-bg);
            color: var(--primary-color);
            font-size: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transform: translateY(8px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .scroll-top-btn.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-top-btn:hover {
            background: var(--primary-color);
            color: #fff;
        }

        @media (min-width: 769px) {
            .scroll-top-btn {
                right: 28px;
                bottom: 28px;
            }
        }

        .quran-content {
            margin-bottom: 120px;
        }

        @media (max-width: 768px) {
            .quran-content {
                margin-bottom: 140px;
            }
        }


        .audio-player-container {
            position: fixed;
            bottom: 200px;
            left: 20px;
            width: 300px;
            background: var(--card-bg, #fff);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
            border: 1px solid var(--border-color, #e8e8e8);
            padding: 16px;
            z-index: 1099;
            display: none;
            flex-direction: column;
            gap: 12px;
            direction: rtl;
            animation: modalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        [data-theme="dark"] .audio-player-container {
            background: rgba(26, 26, 26, 0.98);
            border-top-color: rgba(255, 255, 255, 0.1);
        }

        .audio-player-container.active {
            display: flex;
        }

        .audio-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            direction: rtl;
            flex-direction: row-reverse;
        }

        .audio-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
            direction: rtl;
            text-align: right;
        }

        #currentAyahNum {
            font-size: 11px;
            color: var(--text-color);
            opacity: 0.7;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: 'Cairo', sans-serif;
        }

        .audio-btn {
            background: var(--primary-color);
            border: none;
            color: white;
            font-size: 14px;
            cursor: pointer;
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.15s;
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }

        .audio-btn:hover {
            background: var(--primary-light);
            transform: scale(1.05);
        }

        .audio-btn:active {
            transform: scale(0.92);
        }

        .audio-progress {
            width: 100%;
            height: 4px;
            background: var(--border-color);
            border-radius: 2px;
            position: relative;
            cursor: pointer;
            overflow: visible;
            direction: ltr;
        }

        .audio-progress:hover {
            height: 6px;
        }

        .audio-progress-bar {
            height: 100%;
            background: var(--primary-color);
            border-radius: 2px;
            width: 0%;
            transition: width 0.2s ease;
            position: absolute;
            right: 0;
        }

        .audio-progress-bar::after {
            content: '';
            position: absolute;
            left: -5px;
            top: 50%;
            transform: translateY(-50%);
            width: 10px;
            height: 10px;
            background: var(--primary-color);
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .audio-progress:hover .audio-progress-bar::after {
            opacity: 1;
        }

        .reciter-modal-content {
            background: var(--card-bg);
            border-radius: 20px;
            width: 90%;
            max-width: 420px;
            max-height: 70vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-color);
            animation: modalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

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

        .reciter-modal-content h3 {
            margin: 0;
            font-size: 17px;
            font-family: 'Cairo', sans-serif;
            font-weight: 600;
            color: var(--text-color);
        }

        .modal-close-btn {
            background: var(--bg-color);
            border: none;
            color: var(--text-color);
            font-size: 18px;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            border-radius: 50%;
        }

        .modal-close-btn:hover {
            background: var(--border-color);
        }

        .modal-close-btn:active {
            transform: scale(0.92);
        }

        .reciter-list {
            overflow-y: auto;
            padding: 8px;
        }

        .reciter-item {
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            border-radius: 12px;
            margin-bottom: 4px;
            transition: all 0.15s;
            background: transparent;
            font-family: 'Cairo', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        .reciter-item:hover {
            background: var(--bg-color);
        }

        .reciter-item:active {
            transform: scale(0.98);
        }

        .reciter-item i.bi-person-circle {
            font-size: 20px;
            color: var(--primary-color);
        }

        .reciter-item span {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
        }

        .reciter-item .reciter-check {
            color: var(--primary-color);
            font-size: 18px;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .reciter-item.active .reciter-check {
            opacity: 1;
        }

        .reciter-item.active {
            background: rgba(var(--primary-rgb, 27, 94, 32), 0.1);
        }

        .bookmark-save-modal {
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: right;
            margin-top: 6px;
        }

        .bookmark-save-label {
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-secondary, #666);
        }

        .bookmark-save-select,
        .bookmark-save-input {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--card-bg);
            color: var(--text-color);
            padding: 10px 12px;
            font-size: 14px;
            font-family: 'Cairo', sans-serif;
        }

        @media (min-width: 769px) {
            .audio-player-container {
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                right: auto;
                width: calc(100% - 120px);
                max-width: 640px;
                border-radius: 20px 20px 0 0;
                padding: 14px 24px;
            }
        }

        @media (max-width: 768px) {
            .audio-player-container {
                bottom: 78px;
                padding: 10px 14px;
                gap: 8px;
            }

            .audio-btn {
                width: 30px;
                height: 30px;
                font-size: 18px;
            }

            .reciter-select {
                font-size: 11px;
                padding: 5px 8px;
            }
        }

        .audio-toggle-btn {
            position: fixed;
            bottom: 140px;
            left: 20px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            border: none;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 97;
            transition: all 0.15s;

            display: none;
        }

        .audio-toggle-btn:hover {
            background: var(--primary-light);
            transform: scale(1.1);
        }

        @media (max-width: 768px) {
            .audio-toggle-btn {
                bottom: 145px;
                left: 15px;
                width: 36px;
                height: 36px;
                font-size: 16px;
            }
        }

        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }

            20% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }

            80% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }

            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
        }

        /* تفسير Styles */
        .tafsir-mode .ayahs-container {
            display: none;
        }

        .tafsir-mode .tafsir-container {
            display: block;
        }

        .tafsir-container {
            display: none;
            line-height: 2.2;
            font-family: 'Cairo', sans-serif;
            direction: rtl;
        }

        .ayah-tafsir {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.15s ease;
        }

        .ayah-tafsir:hover {
            border-color: var(--primary-color);
            box-shadow: 0 2px 8px var(--shadow);
        }

        .tafsir-ayah-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .tafsir-text {
            font-size: 16px;
            line-height: 1.8;
            color: var(--text-color);
            text-align: justify;
            margin-top: 12px;
        }

        .tafsir-loading {
            text-align: center;
            padding: 40px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .tafsir-error {
            text-align: center;
            padding: 40px;
            color: #f44336;
            background: rgba(244, 67, 54, 0.1);
            border-radius: 12px;
            margin: 20px;
        }

        .quick-tafsir-ayah {
            font-family: 'Amiri', serif;
            font-size: 24px;
            line-height: 2;
            color: var(--primary-color);
            text-align: center;
            background: rgba(var(--primary-rgb), 0.08);
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .quick-tafsir-text {
            font-family: 'Cairo', sans-serif;
            font-size: 15px;
            line-height: 1.9;
            color: var(--text-color);
            text-align: right;
        }

        @media (max-width: 768px) {
            .ayah-tafsir {
                padding: 16px;
                margin-bottom: 12px;
            }

            .tafsir-text {
                font-size: 15px;
            }

            .ayah-quick-actions {
                max-width: calc(100vw - 20px);
            }

            .ayah-quick-btn {
                padding: 7px 10px;
                font-size: 11px;
                min-height: 32px;
            }

            .quick-tafsir-ayah {
                font-size: 21px;
            }
        }

        /* Active button states */
        .icon-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

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

        .share-modal-content {
            background: var(--card-bg);
            border-radius: 22px;
            width: 92%;
            max-width: 560px;
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-color);
            box-shadow: 0 28px 56px rgba(0, 0, 0, 0.2);
            animation: modalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        }

        .share-modal-content .modal-header {
            padding: 16px 18px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, rgba(var(--primary-rgb, 27, 94, 32), 0.16), rgba(var(--primary-rgb, 27, 94, 32), 0.04));
            position: relative;
        }

        .share-modal-header {
            align-items: flex-start;
            gap: 12px;
        }

        .share-title-wrap {
            display: flex;
            flex-direction: column;
            gap: 2px;
            position: relative;
            z-index: 1;
        }

        .share-modal-content .modal-header::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 92% 0%, rgba(var(--primary-rgb, 27, 94, 32), 0.2), transparent 45%);
            pointer-events: none;
        }

        .share-modal-content .modal-header h3 {
            margin: 0;
            font-family: 'Cairo', sans-serif;
            font-size: 19px;
            font-weight: 800;
            color: var(--primary-color);
            letter-spacing: 0.2px;
        }

        .share-modal-subtitle {
            margin: 0;
            font-family: 'Cairo', sans-serif;
            font-size: 12px;
            color: var(--text-color);
            opacity: 0.78;
        }

        .share-modal-content .modal-close-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.62);
            border: 1px solid rgba(var(--primary-rgb, 27, 94, 32), 0.22);
            color: var(--primary-color);
            position: relative;
            z-index: 1;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .share-modal-content .modal-close-btn:hover {
            background: white;
            transform: rotate(90deg);
        }

        .share-modal-content .modal-close-btn:active {
            transform: rotate(90deg) scale(0.9);
        }

        .share-modal-body {
            padding: 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: linear-gradient(180deg, rgba(var(--primary-rgb, 27, 94, 32), 0.03), transparent 36%);
        }

        .share-field,
        .share-toggle,
        .share-style-picker {
            border: 1px solid rgba(var(--primary-rgb, 27, 94, 32), 0.16);
            border-radius: 14px;
            padding: 10px 12px;
            background: linear-gradient(135deg, rgba(var(--primary-rgb, 27, 94, 32), 0.08), rgba(var(--primary-rgb, 27, 94, 32), 0.02));
        }

        .share-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .share-field label,
        .share-style-label {
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-color);
            opacity: 0.95;
        }

        .share-field select,
        .share-field textarea {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--card-bg);
            color: var(--text-color);
            font-family: 'Cairo', sans-serif;
            padding: 10px 12px;
            font-size: 14px;
            outline: none;
        }

        .share-field textarea {
            min-height: 90px;
            resize: vertical;
            line-height: 1.7;
        }

        .share-field select:focus,
        .share-field textarea:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 27, 94, 32), 0.12);
        }

        .share-field-meta {
            font-family: 'Cairo', sans-serif;
            font-size: 12px;
            color: var(--text-color);
            opacity: 0.7;
            direction: ltr;
            text-align: left;
        }

        .share-field-meta.warn {
            color: #8f4b00;
            opacity: 0.95;
        }

        .share-style-options {
            margin-top: 8px;
            display: flex;
            gap: 8px;
        }

        .share-style-btn {
            flex: 1;
            border: 1px solid rgba(var(--primary-rgb, 27, 94, 32), 0.28);
            border-radius: 10px;
            background: var(--card-bg);
            color: var(--text-color);
            font-family: 'Cairo', sans-serif;
            font-size: 13px;
            font-weight: 700;
            padding: 8px 10px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .share-style-btn:hover {
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .share-style-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            box-shadow: 0 10px 18px rgba(var(--primary-rgb, 27, 94, 32), 0.28);
        }

        .share-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            cursor: pointer;
            user-select: none;
        }

        .share-toggle span {
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: var(--text-color);
        }

        .share-toggle input {
            width: 19px;
            height: 19px;
            accent-color: var(--primary-color);
            flex-shrink: 0;
        }

        .share-preview {
            --share-preview-border: rgba(var(--primary-rgb, 27, 94, 32), 0.2);
            --share-preview-bg: radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb, 27, 94, 32), 0.18), transparent 45%),
                linear-gradient(135deg, rgba(var(--primary-rgb, 27, 94, 32), 0.1), var(--bg-color));
            --share-preview-ayah-color: #243125;
            --share-preview-tafsir-color: #2f4a31;
            --share-preview-ref-color: #1b5e20;
            --share-preview-divider: rgba(27, 94, 32, 0.28);
            --share-preview-chip-bg: rgba(255, 255, 255, 0.7);
            --share-preview-chip-color: var(--share-preview-ref-color);
            border: 1px solid var(--share-preview-border);
            border-radius: 14px;
            padding: 14px;
            background: var(--share-preview-bg);
        }

        .share-preview.style-classic {
            --share-preview-border: rgba(var(--primary-rgb, 27, 94, 32), 0.2);
            --share-preview-bg: radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb, 27, 94, 32), 0.18), transparent 45%),
                linear-gradient(135deg, rgba(var(--primary-rgb, 27, 94, 32), 0.1), var(--bg-color));
            --share-preview-ayah-color: #243125;
            --share-preview-tafsir-color: #2f4a31;
            --share-preview-ref-color: #1b5e20;
            --share-preview-divider: rgba(27, 94, 32, 0.28);
            --share-preview-chip-bg: rgba(255, 255, 255, 0.7);
            --share-preview-chip-color: #1b5e20;
        }

        .share-preview.style-warm {
            --share-preview-border: rgba(167, 114, 32, 0.28);
            --share-preview-bg: radial-gradient(circle at 100% 0%, rgba(248, 215, 163, 0.66), transparent 48%),
                linear-gradient(135deg, rgba(255, 239, 214, 0.94), rgba(255, 250, 241, 0.96));
            --share-preview-ayah-color: #5a3d17;
            --share-preview-tafsir-color: #714a1c;
            --share-preview-ref-color: #8a5a1e;
            --share-preview-divider: rgba(138, 90, 30, 0.34);
            --share-preview-chip-bg: rgba(255, 246, 231, 0.95);
            --share-preview-chip-color: #8a5a1e;
        }

        .share-preview.style-night {
            --share-preview-border: rgba(80, 127, 180, 0.45);
            --share-preview-bg: radial-gradient(circle at 0% 0%, rgba(83, 139, 211, 0.36), transparent 52%),
                linear-gradient(135deg, rgba(15, 32, 56, 0.98), rgba(8, 18, 32, 0.98));
            --share-preview-ayah-color: #f3f8ff;
            --share-preview-tafsir-color: #d8e9ff;
            --share-preview-ref-color: #9ec7ff;
            --share-preview-divider: rgba(158, 199, 255, 0.4);
            --share-preview-chip-bg: rgba(8, 23, 42, 0.7);
            --share-preview-chip-color: #d5ebff;
        }

        .share-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .share-preview-badge,
        .share-preview-live {
            font-family: 'Cairo', sans-serif;
            font-size: 11px;
            font-weight: 700;
            border-radius: 999px;
            padding: 4px 10px;
            color: var(--share-preview-chip-color);
            background: var(--share-preview-chip-bg);
        }

        .share-preview-live {
            opacity: 0.9;
        }

        .share-preview-ayah {
            font-size: 24px;
            line-height: 2;
            color: var(--share-preview-ayah-color);
            font-family: 'Amiri', serif;
        }

        .share-preview-tafsir {
            margin-top: 10px;
            font-size: 14px;
            line-height: 1.85;
            font-family: 'Cairo', sans-serif;
            color: var(--share-preview-tafsir-color);
            opacity: 0.95;
            border-top: 1px dashed var(--share-preview-divider);
            padding-top: 10px;
        }

        .share-preview-reference {
            margin-top: 12px;
            font-family: 'Cairo', sans-serif;
            font-size: 12px;
            color: var(--share-preview-ref-color);
            font-weight: 700;
        }

        .share-actions {
            display: flex;
            gap: 8px;
            margin-top: 4px;
        }

        .share-action-btn {
            flex: 1;
            border: none;
            border-radius: 10px;
            padding: 11px 12px;
            font-family: 'Cairo', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .share-action-btn i {
            font-size: 15px;
        }

        .share-action-btn.primary {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 12px 20px rgba(var(--primary-rgb, 27, 94, 32), 0.25);
        }

        .share-action-btn.secondary {
            background: rgba(var(--primary-rgb, 27, 94, 32), 0.1);
            color: var(--primary-color);
            border: 1px solid rgba(var(--primary-rgb, 27, 94, 32), 0.25);
        }

        .share-action-btn:hover:not(:disabled) {
            transform: translateY(-1px);
        }

        .share-action-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        @media (max-width: 768px) {
            .share-modal-content {
                width: 94%;
                border-radius: 18px;
            }

            .share-modal-content .modal-header {
                padding: 14px 14px;
            }

            .share-modal-content .modal-header h3 {
                font-size: 17px;
            }

            .share-modal-subtitle {
                font-size: 11px;
            }

            .share-modal-body {
                padding: 12px;
            }

            .share-style-options {
                gap: 6px;
            }

            .share-style-btn {
                font-size: 12px;
                padding: 7px 8px;
            }

            .share-preview {
                padding: 12px;
            }

            .share-preview-ayah {
                font-size: 21px;
            }

            .share-actions {
                flex-direction: column;
            }
        }

        @media (max-width: 420px) {
            .share-style-options {
                flex-wrap: wrap;
            }

            .share-style-btn {
                flex: 1 1 calc(50% - 6px);
            }
        }
    
