@font-face {
    font-family: 'QuranArabic';
    src: url('../fonts/me_quran_volt_newmet.ttf') format('truetype');
    font-display: swap;
}

@media (prefers-color-scheme: dark) {
    body[class*="page-admin"] {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, .10), transparent 28%),
            radial-gradient(circle at top left, rgba(244, 199, 107, .06), transparent 24%),
            var(--page-bg) !important;
        color: var(--text-main) !important;
    }

    body[class*="page-admin"] .section-card,
    body[class*="page-admin"] .hero-card,
    body[class*="page-admin"] .info-card,
    body[class*="page-admin"] .auth-card,
    body[class*="page-admin"] .profile-card,
    body[class*="page-admin"] .stat-card,
    body[class*="page-admin"] .bank-card,
    body[class*="page-admin"] .ayah-card,
    body[class*="page-admin"] .notice-soft,
    body[class*="page-admin"] .empty-state,
    body[class*="page-admin"] .admin-dashboard-hero,
    body[class*="page-admin"] .admin-module-page,
    body[class*="page-admin"] .admin-module-toolbar,
    body[class*="page-admin"] .admin-module-panel,
    body[class*="page-admin"] .admin-icon-tile,
    body[class*="page-admin"] .admin-teachers-page,
    body[class*="page-admin"] .admin-teachers-toolbar,
    body[class*="page-admin"] .admin-teacher-card,
    body[class*="page-admin"] .admin-teacher-card__grid > div,
    body[class*="page-admin"] .admin-teacher-card__text > div,
    body[class*="page-admin"] .admin-teacher-card__head,
    body[class*="page-admin"] .admin-teacher-review,
    body[class*="page-admin"] .admin-donations-page,
    body[class*="page-admin"] .admin-donations-panel,
    body[class*="page-admin"] .admin-bank-form,
    body[class*="page-admin"] .admin-bank-card,
    body[class*="page-admin"] .admin-donation-card,
    body[class*="page-admin"] .admin-dictionary-page,
    body[class*="page-admin"] .admin-dictionary-hero,
    body[class*="page-admin"] .admin-dictionary-searchbar,
    body[class*="page-admin"] .admin-dictionary-card,
    body[class*="page-admin"] .admin-dictionary-row,
    body[class*="page-admin"] .admin-recitation-row,
    body[class*="page-admin"] .admin-recitation-panel-head,
    body[class*="page-admin"] .admin-recitation-searchbar,
    body[class*="page-admin"] .admin-recitation-toolbar,
    body[class*="page-admin"] .admin-recitation-side-card,
    body[class*="page-admin"] .admin-recitation-row__text-stack,
    body[class*="page-admin"] .admin-recitation-row__meaning,
    body[class*="page-admin"] .admin-application-card,
    body[class*="page-admin"] .admin-application-card__message,
    body[class*="page-admin"] .admin-application-filter,
    body[class*="page-admin"] .admin-translation-filter,
    body[class*="page-admin"] .translator-reference-card,
    body[class*="page-admin"] .admin-audio-combiner,
    body[class*="page-admin"] .admin-audio-combiner__drop-label,
    body[class*="page-admin"] .admin-audio-combiner__file,
    body[class*="page-admin"] .admin-audio-combiner__result,
    body[class*="page-admin"] .admin-audio-combiner__result-player,
    body[class*="page-admin"] .admin-short-video__stage-card,
    body[class*="page-admin"] .admin-short-video__control-card,
    body[class*="page-admin"] .admin-short-video__controls .recording-card,
    body[class*="page-admin"] .admin-short-video__controls .ayah-card,
    body[class*="page-admin"] .admin-short-video__ayah-chip,
    body[class*="page-admin"] .recording-card,
    body[class*="page-admin"] .surah-print-content-page,
    body[class*="page-admin"] .surah-print-ayah {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body[class*="page-admin"] .table,
    body[class*="page-admin"] .modern-table,
    body[class*="page-admin"] .table-responsive,
    body[class*="page-admin"] .modern-table thead th,
    body[class*="page-admin"] .modern-table > :not(caption) > * > *,
    body[class*="page-admin"] .table > :not(caption) > * > * {
        --bs-table-bg: transparent;
        --bs-table-color: var(--text-main);
        --bs-table-border-color: rgba(51, 65, 85, .9);
        background-color: transparent !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body[class*="page-admin"] .form-control,
    body[class*="page-admin"] .form-select,
    body[class*="page-admin"] .input-group-text,
    body[class*="page-admin"] textarea,
    body[class*="page-admin"] select,
    body[class*="page-admin"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]) {
        background-color: rgba(19, 32, 48, .96) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
        box-shadow: none !important;
    }

    body[class*="page-admin"] input[type="file"].form-control {
        background-color: rgba(19, 32, 48, .96) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
    }

    body[class*="page-admin"] .form-control::placeholder,
    body[class*="page-admin"] textarea::placeholder,
    body[class*="page-admin"] .text-muted,
    body[class*="page-admin"] .small.text-muted,
    body[class*="page-admin"] .form-text,
    body[class*="page-admin"] .stat-card .label,
    body[class*="page-admin"] .admin-teacher-card__grid span,
    body[class*="page-admin"] .admin-teacher-card__text p,
    body[class*="page-admin"] .translator-reference-card__meaning,
    body[class*="page-admin"] .admin-audio-combiner__file-size,
    body[class*="page-admin"] .admin-short-video__server-link,
    body[class*="page-admin"] .admin-teacher-card__meta,
    body[class*="page-admin"] .surah-print-meta,
    body[class*="page-admin"] .surah-print-page-footer {
        color: var(--text-muted) !important;
    }

    body[class*="page-admin"] h1,
    body[class*="page-admin"] h2,
    body[class*="page-admin"] h3,
    body[class*="page-admin"] h4,
    body[class*="page-admin"] h5,
    body[class*="page-admin"] h6,
    body[class*="page-admin"] label,
    body[class*="page-admin"] .form-label,
    body[class*="page-admin"] .stat-card .value,
    body[class*="page-admin"] .admin-icon-tile i,
    body[class*="page-admin"] .admin-teacher-card__text h3,
    body[class*="page-admin"] .translator-reference-card__ayah,
    body[class*="page-admin"] .ayah-arabic,
    body[class*="page-admin"] .arabic-text,
    body[class*="page-admin"] .dhivehi-text {
        color: var(--text-main) !important;
    }

    body[class*="page-admin"] .meta-badge,
    body[class*="page-admin"] .badge-soft,
    body[class*="page-admin"] .badge,
    body[class*="page-admin"] .alert,
    body[class*="page-admin"] .pagination .page-link,
    body[class*="page-admin"] .nav-tabs .nav-link,
    body[class*="page-admin"] .nav-pills .nav-link,
    body[class*="page-admin"] .toolbar-toggle-btn__visual {
        background: rgba(19, 32, 48, .88) !important;
        border-color: rgba(71, 85, 105, .7) !important;
        color: var(--carousel-text-muted) !important;
    }

    body[class*="page-admin"] .nav-tabs .nav-link.active,
    body[class*="page-admin"] .nav-pills .nav-link.active,
    body[class*="page-admin"] .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        border-color: rgba(45, 212, 191, .45) !important;
        color: #fff !important;
    }

    body[class*="page-admin"] .modal-content,
    body[class*="page-admin"] .dropdown-menu,
    body[class*="page-admin"] .offcanvas,
    body[class*="page-admin"] .list-group-item {
        background-color: var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body[class*="page-admin"] .btn-outline-secondary,
    body[class*="page-admin"] .btn-outline-dark,
    body[class*="page-admin"] .btn-outline-primary,
    body[class*="page-admin"] .btn-light {
        background: rgba(19, 32, 48, .72) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
    }

    body[class*="page-admin"] .btn-close {
        filter: invert(1) grayscale(100%);
    }

    body[class*="page-admin"] hr,
    body[class*="page-admin"] .border,
    body[class*="page-admin"] .border-top,
    body[class*="page-admin"] .border-bottom {
        border-color: rgba(51, 65, 85, .9) !important;
    }

    body[class^="page-admin"] {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, .10), transparent 28%),
            radial-gradient(circle at top left, rgba(244, 199, 107, .06), transparent 24%),
            var(--page-bg) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .section-card,
    body[class^="page-admin"] .hero-card,
    body[class^="page-admin"] .info-card,
    body[class^="page-admin"] .auth-card,
    body[class^="page-admin"] .profile-card,
    body[class^="page-admin"] .stat-card,
    body[class^="page-admin"] .bank-card,
    body[class^="page-admin"] .admin-icon-tile,
    body[class^="page-admin"] .admin-teacher-card,
    body[class^="page-admin"] .admin-teacher-card__grid > div,
    body[class^="page-admin"] .admin-teacher-card__text > div,
    body[class^="page-admin"] .admin-teacher-card__head,
    body[class^="page-admin"] .admin-teacher-review,
    body[class^="page-admin"] .admin-teacher-filter,
    body[class^="page-admin"] .admin-translation-filter,
    body[class^="page-admin"] .translator-reference-card,
    body[class^="page-admin"] .admin-audio-combiner__drop-label,
    body[class^="page-admin"] .admin-audio-combiner__file,
    body[class^="page-admin"] .admin-audio-combiner__result,
    body[class^="page-admin"] .admin-audio-combiner__result-player,
    body[class^="page-admin"] .admin-short-video__stage-card,
    body[class^="page-admin"] .admin-short-video__controls .recording-card,
    body[class^="page-admin"] .admin-short-video__controls .ayah-card,
    body[class^="page-admin"] .admin-short-video__ayah-chip,
    body[class^="page-admin"] .recording-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body[class^="page-admin"] .table,
    body[class^="page-admin"] .modern-table,
    body[class^="page-admin"] .modern-table thead th,
    body[class^="page-admin"] .modern-table > :not(caption) > * > *,
    body[class^="page-admin"] .table > :not(caption) > * > * {
        --bs-table-bg: transparent;
        --bs-table-color: var(--text-main);
        --bs-table-border-color: rgba(51, 65, 85, .9);
        background-color: transparent !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .form-control,
    body[class^="page-admin"] .form-select,
    body[class^="page-admin"] .input-group-text,
    body[class^="page-admin"] textarea,
    body[class^="page-admin"] select,
    body[class^="page-admin"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
        background-color: rgba(19, 32, 48, .96) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
        box-shadow: none !important;
    }

    body[class^="page-admin"] .form-control::placeholder,
    body[class^="page-admin"] textarea::placeholder,
    body[class^="page-admin"] .text-muted,
    body[class^="page-admin"] .small.text-muted,
    body[class^="page-admin"] .form-text,
    body[class^="page-admin"] .stat-card .label,
    body[class^="page-admin"] .admin-teacher-card__grid span,
    body[class^="page-admin"] .admin-teacher-card__text p,
    body[class^="page-admin"] .translator-reference-card__meaning,
    body[class^="page-admin"] .admin-audio-combiner__file-size,
    body[class^="page-admin"] .admin-short-video__server-link {
        color: var(--text-muted) !important;
    }

    body[class^="page-admin"] h1,
    body[class^="page-admin"] h2,
    body[class^="page-admin"] h3,
    body[class^="page-admin"] h4,
    body[class^="page-admin"] h5,
    body[class^="page-admin"] h6,
    body[class^="page-admin"] label,
    body[class^="page-admin"] .form-label,
    body[class^="page-admin"] .stat-card .value,
    body[class^="page-admin"] .admin-icon-tile i,
    body[class^="page-admin"] .admin-teacher-card__text h3,
    body[class^="page-admin"] .translator-reference-card__ayah {
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .admin-icon-tile:hover,
    body[class^="page-admin"] .admin-icon-tile:focus {
        background:
            linear-gradient(180deg, rgba(19, 54, 50, .98), rgba(12, 36, 34, .96)),
            var(--brand-2) !important;
        color: var(--brand) !important;
        border-color: rgba(45, 212, 191, .38) !important;
    }

    body[class^="page-admin"] .meta-badge,
    body[class^="page-admin"] .badge-soft,
    body[class^="page-admin"] .badge,
    body[class^="page-admin"] .alert,
    body[class^="page-admin"] .pagination .page-link {
        background: rgba(19, 32, 48, .88) !important;
        border-color: rgba(71, 85, 105, .7) !important;
        color: var(--carousel-text-muted) !important;
    }

    body[class^="page-admin"] .modal-content,
    body[class^="page-admin"] .dropdown-menu,
    body[class^="page-admin"] .offcanvas,
    body[class^="page-admin"] .list-group-item {
        background-color: var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .btn-outline-secondary,
    body[class^="page-admin"] .btn-outline-dark,
    body[class^="page-admin"] .btn-light {
        background: rgba(19, 32, 48, .72) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .btn-close {
        filter: invert(1) grayscale(100%);
    }
}

@font-face {
    font-family: 'Faruma';
    src: url('../fonts/Faruma.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('../fonts/Figtree.ttf') format('truetype');
    font-display: swap;
}

:root {
    color-scheme: light;
    --mobile-bottom-nav-height: calc(76px + env(safe-area-inset-bottom));
    --page-bg: #f6f7fb;
    --card-bg: #ffffff;
    --soft-bg: #f1f4f9;
    --line: #e8edf5;
    --text-main: #111827;
    --text-muted: #6b7280;
    --brand: #0f766e;
    --brand-2: #e6fffa;
    --brand-3: #164e63;
    --gold: #a16207;
    --gold-soft: #fff7d6;
    --danger-soft: #fff1f2;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --header-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, .96);
    --control-bg: #ffffff;
    --control-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    --carousel-text-strong: #0f172a;
    --carousel-text-muted: #334155;
    --carousel-surface: rgba(255, 255, 255, 0.78);
    --carousel-control-bg: rgba(51, 65, 85, .88);
    --carousel-indicator: rgba(148, 163, 184, .38);
    --carousel-indicator-active: #d1fae5;
    --playing-ayah-bg: linear-gradient(180deg, rgba(255,255,255,1), rgba(241,245,249,.96));
    --playing-ayah-text: #334155;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    background: var(--page-bg);
    color: var(--text-main);
    min-height: 100%;
}

body {
    font-family: 'Figtree', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 95px;
}

.dhivehi-text, [lang="dv"], .dv-ui {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

html[lang="dv"] body :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    small,
    label,
    legend,
    span,
    div,
    a,
    button,
    th,
    td,
    .form-label,
    .form-text,
    .form-check-label,
    .form-control,
    .form-select,
    .form-control::placeholder,
    .form-select option,
    .btn,
    .alert,
    .notice-soft,
    .empty-state,
    .meta-badge,
    .status-pill,
    .modal-title,
    .toast-body,
    .dhivehi-text,
    .dv-ui
) {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

html[lang="dv"] body :is(
    .arabic-text,
    .arabic-text *,
    .ayah-arabic,
    .ayah-arabic *,
    .home-surah-card__title,
    .home-surah-card__title *,
    .surah-page-title.arabic-text,
    .surah-page-title.arabic-text *,
    .reciter-current-ayah .ayah-arabic,
    .reciter-current-ayah .ayah-arabic *,
    .arabic-admin-text,
    .arabic-admin-text *
) {
    font-family: 'QuranArabic', 'Amiri', serif !important;
}

.tooltip.dv-tooltip {
    --bs-tooltip-font-family: 'Faruma', 'MV Faseyha', sans-serif;
}

.tooltip.dv-tooltip .tooltip-inner {
    font-family: 'Faruma', 'MV Faseyha', sans-serif;
    direction: rtl;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
}

label,
.form-label,
.form-text,
.form-check-label,
select.dv-ui,
select.dv-ui option,
.meta-badge.dv-ui,
.status-pill.dv-ui {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.arabic-text {
    font-family: 'QuranArabic', 'Amiri', serif !important;
}

.ayah-arabic,
.home-ayah-carousel__arabic,
.surah-page-title.arabic-text,
.home-surah-card__title,
.reciter-current-ayah .ayah-arabic,
.ayah-card .arabic-text,
.search-result-card .arabic-text,
.playlist-item .arabic-text,
.reports-ayah-preview .arabic-text {
    font-family: 'QuranArabic', 'Amiri', serif !important;
}

.site-header,
.mobile-topbar,
.site-footer {
    background: var(--header-bg);
}

.site-page-loader {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 2200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.site-page-loader.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.site-page-loader.is-hiding {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.92);
}

.site-page-loader__logo {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    animation: siteLogoLoaderSpin 1.05s linear infinite;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.18));
}

.site-page-loader__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 22px;
}

.site-page-loader__logo::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 26px;
    border: 3px solid rgba(148, 163, 184, 0.18);
    border-top-color: rgba(15, 23, 42, 0.9);
    border-right-color: rgba(100, 116, 139, 0.55);
    animation: siteLogoLoaderSpin .95s linear infinite reverse;
}

@keyframes siteLogoLoaderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.top-icon-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--text-main);
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

.admin-site-logo-preview {
    width: 92px;
    height: 92px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--control-bg);
}

.admin-site-title-image-preview {
    width: min(100%, 280px);
    height: 72px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: transparent;
    padding: 0;
}

.brand-name {
    font-size: 1.3rem;
}

.brand-title-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(46vw, 260px);
    height: 46px;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
}

.brand-title-image picture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brand-title-image img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 46px;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
}

.icon-nav-list,
.mobile-bottom-nav-list {
    list-style: none;
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.icon-nav-link,
.topbar-icon,
.mobile-nav-link,
.icon-action-btn,
.quick-icon-card {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--control-bg);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--control-shadow);
    transition: all .18s ease;
    font-size: 1.15rem;
}

.icon-action-btn:disabled,
.icon-action-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.icon-nav-link.active,
.icon-nav-link:hover,
.topbar-icon:hover,
.mobile-nav-link.active,
.mobile-nav-link:hover,
.icon-action-btn:hover:not(:disabled),
.quick-icon-card:hover {
    background: var(--brand-2);
    color: var(--brand);
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, .18);
}

.icon-action-filled {
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff;
    border-color: transparent;
}

.icon-action-btn.active-state {
    background: linear-gradient(135deg, var(--brand-2), rgba(15, 118, 110, .14));
    color: var(--brand);
    border-color: rgba(15, 118, 110, .24);
}

.icon-action-filled:hover {
    color: #fff;
    opacity: .96;
}

.mobile-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    min-height: var(--mobile-bottom-nav-height);
    background: var(--glass-bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.08);
    z-index: 1050;
}

.mobile-topbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.mobile-topbar .brand-mark {
    justify-self: center;
}

.mobile-chapters-trigger {
    justify-self: start;
}

.mobile-chapters-drawer {
    width: min(86vw, 360px) !important;
    top: 0;
    bottom: var(--mobile-bottom-nav-height);
    height: auto !important;
    border-inline-end: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,251,.96)),
        var(--card-bg);
    box-shadow: 20px 0 40px rgba(15, 23, 42, 0.12);
    z-index: 1065;
}

.mobile-chapters-drawer .offcanvas-header {
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.mobile-chapters-drawer .offcanvas-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-chapters-drawer__quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.mobile-chapters-drawer__quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255,255,255,.84);
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--control-shadow);
}

.mobile-chapters-drawer__quick-link.active,
.mobile-chapters-drawer__quick-link:hover {
    background: var(--brand-2);
    color: var(--brand);
    border-color: rgba(15, 118, 110, .18);
}

.mobile-chapters-drawer__list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    overflow-y: auto;
    padding-inline-end: .2rem;
    padding-bottom: .9rem;
}

.mobile-chapter-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    color: var(--text-main);
    padding: .85rem .9rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .2);
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.96)),
        var(--card-bg);
    box-shadow: 0 12px 24px rgba(15,23,42,.05);
}

.mobile-chapter-link.active,
.mobile-chapter-link:hover {
    border-color: rgba(15, 118, 110, .22);
    background:
        linear-gradient(180deg, rgba(236,253,245,.98), rgba(240,253,250,.96)),
        var(--card-bg);
}

.mobile-chapter-link__number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.04);
    color: var(--brand);
    font-weight: 700;
}

.mobile-chapter-link__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.mobile-chapter-link__title {
    font-size: 1.18rem;
    line-height: 1.45;
    color: var(--text-main);
}

.mobile-chapter-link__meta {
    overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --page-bg: #09111b;
        --card-bg: #101a27;
        --soft-bg: #162231;
        --line: #233244;
        --text-main: #e8eef6;
        --text-muted: #9aaabd;
        --brand: #2dd4bf;
        --brand-2: #123632;
        --brand-3: #164e63;
        --gold: #f4c76b;
        --gold-soft: #3b2c09;
        --danger-soft: #33181f;
        --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        --header-bg: #0c1420;
        --glass-bg: rgba(12, 20, 32, 0.92);
        --control-bg: #132030;
        --control-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
        --carousel-text-strong: #f3f7fb;
        --carousel-text-muted: #c5d2df;
        --carousel-surface: rgba(10, 18, 30, 0.72);
        --carousel-control-bg: rgba(232, 238, 246, .18);
        --carousel-indicator: rgba(148, 163, 184, .28);
        --carousel-indicator-active: #2dd4bf;
        --playing-ayah-bg: linear-gradient(180deg, rgba(19,32,48,.96), rgba(15,25,38,.98));
        --playing-ayah-text: #e8eef6;
    }

    body {
        background:
            radial-gradient(circle at top, rgba(45, 212, 191, 0.10), transparent 28%),
            linear-gradient(180deg, rgba(9, 17, 27, 0.98), rgba(9, 17, 27, 1));
    }

    .top-icon-nav,
    .mobile-bottom-nav {
        backdrop-filter: blur(14px);
    }

    .form-control,
    .form-select,
    .input-group-text,
    .modal-content,
    .dropdown-menu,
    .table,
    .list-group-item,
    .offcanvas,
    .offcanvas-header,
    .offcanvas-body,
    .toast,
    .accordion-item,
    .accordion-button,
    .pagination .page-link {
        background-color: var(--control-bg);
        color: var(--text-main);
        border-color: var(--line);
    }

    .accordion-button:not(.collapsed) {
        background-color: var(--soft-bg);
        color: var(--text-main);
    }

    .form-control::placeholder,
    .form-select,
    .dropdown-item,
    .text-muted,
    .small.text-muted {
        color: var(--text-muted) !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus,
    .pagination .page-link:hover,
    .pagination .page-link:focus {
        background: var(--soft-bg);
        color: var(--text-main);
    }

    .btn-close {
        filter: invert(1) grayscale(1);
    }

    .table {
        --bs-table-bg: transparent;
        --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
        --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
        --bs-table-border-color: var(--line);
        color: var(--text-main);
    }

    .alert {
        border-color: var(--line);
    }

    .site-footer,
    .site-header,
    .mobile-topbar {
        border-color: var(--line) !important;
    }

    .mobile-chapters-drawer {
        background:
            linear-gradient(180deg, rgba(12, 20, 32, 0.98), rgba(10, 18, 30, 0.96)),
            var(--card-bg);
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.34);
    }

    .mobile-chapters-drawer__quick-link,
    .mobile-chapter-link {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.96)),
            var(--card-bg);
        border-color: rgba(51, 65, 85, 0.8);
        color: var(--text-main);
    }

    .mobile-chapters-drawer__quick-link.active,
    .mobile-chapters-drawer__quick-link:hover,
    .mobile-chapter-link.active,
    .mobile-chapter-link:hover {
        background:
            linear-gradient(180deg, rgba(18, 36, 51, .98), rgba(12, 24, 36, .98)),
            var(--card-bg);
        border-color: rgba(45, 212, 191, .28);
    }

    .mobile-chapter-link__number {
        background: rgba(255, 255, 255, 0.06);
        color: var(--brand);
    }

    .hero-card,
    .section-card,
    .ayah-card,
    .playlist-item,
    .bank-card,
    .playlist-user-card,
    .home-hero-card,
    .home-banner-card,
    .home-surah-card,
    .search-result-card {
        color: var(--text-main);
    }

    .ayah-arabic,
    .ayah-card .ayah-arabic,
    .search-result-card .ayah-arabic,
    .playlist-item .ayah-arabic,
    .home-surah-card__title {
        color: var(--text-main);
    }

    .home-hero-card::before {
        background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%);
    }

    .home-hero-card::after {
        background: radial-gradient(circle, rgba(148, 163, 184, 0.12), transparent 70%);
    }

    .home-ayah-carousel__frame {
        background: linear-gradient(180deg, rgba(16,26,39,.78), rgba(11,19,31,.74));
        border-color: rgba(148, 163, 184, 0.18);
    }

    .home-ayah-carousel__frame::before,
    .home-ayah-carousel__frame::after {
        border-color: rgba(148, 163, 184, 0.14);
    }

    .ayah-card-active {
        border-color: rgba(45, 212, 191, .42) !important;
        background: linear-gradient(180deg, rgba(18, 36, 51, .96), rgba(12, 24, 36, .98)) !important;
    }

    .ayah-card-active .ayah-arabic,
    .ayah-card-active .ayah-translation {
        color: var(--text-main) !important;
    }
}

.mobile-bottom-nav-list {
    justify-content: space-around;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    gap: .35rem;
}

.mobile-nav-link {
    width: auto;
    height: auto;
    border-radius: 18px;
    padding: .55rem .65rem;
    flex-direction: column;
    gap: .22rem;
    min-width: 54px;
    box-shadow: none;
}

.mobile-nav-link span {
    font-size: .7rem;
    line-height: 1;
}

.site-main {
    flex: 1 0 auto;
    min-height: auto;
}

.pwa-install-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 1.25rem;
    z-index: 1095;
    padding-inline: 1rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .2s ease, transform .2s ease;
}

.pwa-install-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pwa-install-banner__card {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,244,249,.98));
    border: 1px solid rgba(232, 237, 245, .95);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: auto;
    backdrop-filter: blur(12px);
}

.pwa-install-banner__content {
    min-width: 0;
}

.pwa-install-banner__eyebrow {
    color: var(--brand);
    font-size: .85rem;
    margin-bottom: .2rem;
}

.pwa-install-banner__title {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: .2rem;
}

.pwa-install-banner__text {
    color: var(--text-muted);
    line-height: 1.5;
}

.pwa-install-banner__actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

.pwa-install-banner__dismiss,
.pwa-install-banner__install {
    border-radius: 16px;
    min-width: 96px;
    padding: .7rem 1rem;
}

.pwa-install-banner[hidden] {
    display: block !important;
    visibility: hidden;
}

.hero-card,
.section-card,
.ayah-card,
.stat-card,
.playlist-item,
.auth-card,
.profile-card,
.info-card,
.surah-card,
.bank-card,
.playlist-user-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.hero-card,
.section-card,
.auth-card,
.profile-card,
.info-card {
    overflow: hidden;
}

.hero-card {
    position: relative;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset-inline-end: -100px;
    inset-block-start: -75px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,118,110,.15), transparent 65%);
}

.hero-chip,
.meta-badge,
.badge-soft,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .45rem .85rem;
    font-size: .9rem;
}

.hero-chip,
.meta-badge,
.badge-soft {
    background: var(--soft-bg);
    color: var(--text-muted);
}

.status-pill {
    text-transform: capitalize;
}

.status-pending { background: #fff8e1; color: #8a6100; }
.status-mixed { background: #eff6ff; color: #1d4ed8; }
.status-reviewed,
.status-verified,
.status-approved,
.status-fixed { background: #ecfdf5; color: #047857; }
.status-rejected { background: #fef2f2; color: #b91c1c; }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.25;
}

.hero-text {
    max-width: 56rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.quick-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.quick-icon-card {
    width: 62px;
    height: 62px;
    font-size: 1.25rem;
}

.stat-card,
.surah-card,
.playlist-item,
.ayah-card,
.bank-card,
.playlist-user-card {
    padding: 1.2rem;
}

.stat-card .label {
    color: var(--text-muted);
    margin-bottom: .45rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.surah-card:hover,
.playlist-item:hover,
.ayah-card:hover,
.bank-card:hover,
.playlist-user-card:hover {
    transform: translateY(-2px);
}

.surah-icon,
.order-pill {
    min-width: 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--soft-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.arabic-title {
    font-size: 1.85rem;
    line-height: 1.7;
    text-align: right;
}

.surah-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.6;
    text-align: right;
}

.ayah-arabic {
    direction: rtl;
    text-align: right;
    unicode-bidi: isolate;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    line-height: 2.15;
    color: #111827;
}

.ayah-translation {
    color: var(--text-main);
    line-height: 1.9;
    font-size: 1.03rem;
}

.ayah-divider {
    margin: 1rem 0;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--line), transparent);
}

.ayah-number-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-inline-start: .42rem;
    vertical-align: middle;
    background: url('../images/ayahnumber.png') center/contain no-repeat;
    color: var(--gold);
    font-family: 'Figtree', Arial, sans-serif;
    font-size: .82rem;
    line-height: 1;
    transform: none;
}

.ayah-number-text {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 700;
}

.ayah-card.is-playing,
.playlist-item.is-playing {
    border-color: rgba(148, 163, 184, .34);
    background: var(--playing-ayah-bg);
}

.ayah-card.is-playing .ayah-arabic,
.playlist-item.is-playing .ayah-arabic {
    color: var(--playing-ayah-text);
}

.icon-actions-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.notice-soft,
.empty-state,
.soft-alert {
    background: var(--soft-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
}

.bank-card {
    background: #fbfdff;
}

.playlist-user-card.active {
    border-color: rgba(15, 118, 110, .35);
    background: var(--brand-2);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.admin-icon-tile {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--soft-bg);
    position: relative;
    min-height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: .5rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-main);
}

.admin-icon-tile i {
    font-size: 1.4rem;
}

.admin-tile-pending-count {
    position: absolute;
    top: .65rem;
    right: .65rem;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 .45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(239, 68, 68, .28);
    border: 2px solid var(--card-bg);
}

.admin-audio-combiner {
    display: grid;
    gap: 1rem;
}

.admin-audio-combiner__dropzone {
    position: relative;
}

.admin-audio-combiner__dropzone .form-control {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.admin-audio-combiner__drop-label,
.admin-audio-combiner__file,
.admin-audio-combiner__result {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--control-shadow);
}

.admin-audio-combiner__drop-label {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 1.25rem;
    text-align: center;
}

.admin-audio-combiner__drop-label i {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--brand-2);
    color: var(--brand);
    font-size: 1.55rem;
}

.admin-audio-combiner__files {
    display: grid;
    gap: .75rem;
}

.admin-audio-combiner__file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem;
}

.admin-audio-combiner__file-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.admin-audio-combiner__file-copy {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.admin-audio-combiner__file-index {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--brand-2);
    color: var(--brand);
    font-weight: 700;
}

.admin-audio-combiner__file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-audio-combiner__file-size {
    color: var(--text-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.admin-audio-combiner__file-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.admin-audio-combiner__source-player {
    grid-column: 1 / -1;
    width: 100%;
    height: 42px;
}

.admin-audio-combiner__result {
    padding: 1rem;
}

.admin-audio-combiner__result-player {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.68);
}

.admin-audio-combiner__result-player > i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--brand);
    background: var(--brand-2);
    font-size: 1.35rem;
}

.admin-short-video {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
    min-width: 0;
}

.admin-short-video__stage-card,
.admin-short-video__controls .recording-card,
.admin-short-video__controls .ayah-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    box-shadow: var(--control-shadow);
    min-width: 0;
    overflow: hidden;
}

.admin-short-video__stage-card {
    padding: .8rem;
    position: sticky;
    top: 1rem;
    justify-self: stretch;
}

.admin-short-video__canvas {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    max-height: calc(100vh - 2rem);
    border-radius: 20px;
    background: #eef2f7;
    object-fit: contain;
}

.admin-short-video__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
    align-items: start;
}

.admin-short-video-shell {
    overflow: hidden;
}

.admin-short-video-picker,
.admin-short-video-picker .form-select,
.admin-short-video__controls .form-select,
.admin-short-video__controls .form-control,
.admin-short-video__controls .form-range {
    min-width: 0;
}

.admin-short-video-picker .icon-action-btn {
    flex: 0 0 auto;
}

.admin-short-video__ayah-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.admin-short-video__ayah-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .26);
    background: rgba(255,255,255,.74);
    color: var(--text-main);
    padding: .45rem .75rem;
    font-size: .9rem;
    font-family: 'Faruma', 'MV Faseyha', sans-serif;
    white-space: normal;
    text-align: center;
}

.admin-short-video__preview {
    width: min(100%, 320px);
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    background: #0f172a;
    display: block;
    margin-inline: auto;
}

.admin-short-video__controls .form-control-color {
    height: 48px;
    padding: .25rem;
    border-radius: 14px;
}

.admin-short-video__controls audio {
    display: block;
    max-width: 100%;
}

.admin-short-video__controls .btn {
    border-radius: 999px;
}

.admin-short-video__controls [data-short-video-result] > .d-flex {
    align-items: center;
}

.admin-short-video__control-card {
    padding: 1rem;
}

.admin-short-video__control-card--audio,
.admin-short-video__control-card--design {
    align-self: stretch;
}

.admin-short-video__control-card--result {
    grid-column: 1 / -1;
}

.admin-short-video__audio-upload {
    display: grid;
    gap: .7rem;
}

.admin-short-video__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}

.admin-short-video__actions .btn {
    min-height: 46px;
    padding-inline: 1.35rem;
}

.admin-short-video__result-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-short-video__result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
}

.admin-short-video__result-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
}

.admin-short-video__server-link {
    overflow-wrap: anywhere;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: rgba(15, 23, 42, .04);
    padding: .65rem .8rem;
    margin-bottom: 1rem;
}

.admin-short-video__server-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.admin-short-video__controls .form-label {
    margin-bottom: .45rem;
    font-weight: 600;
}

.admin-short-video__controls .form-select,
.admin-short-video__controls .form-control:not(.form-control-color) {
    min-height: 48px;
    border-radius: 16px;
}

@media (min-width: 1400px) {
    .admin-short-video {
        grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    }

    .admin-short-video__control-card {
        padding: 1.15rem;
    }
}

.admin-icon-tile:hover {
    background: var(--brand-2);
    color: var(--brand);
}

.modern-table thead th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom-width: 1px;
    background: transparent;
}

.modern-table > :not(caption) > * > * {
    border-color: var(--line);
    background: transparent;
}

.suggestion-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.suggestion-pill {
    text-decoration: none;
    color: var(--brand);
    background: var(--brand-2);
    border: 1px solid rgba(15,118,110,.18);
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .88rem;
}

.form-control,
.form-select {
    border-radius: 18px;
    border-color: var(--line);
    min-height: 52px;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .12);
    border-color: rgba(15, 118, 110, .3);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    border: 0;
    border-radius: 999px;
    color: #fff;
    min-height: 52px;
    padding-inline: 1rem;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    opacity: .96;
}

.btn-close:focus {
    box-shadow: none;
}

.footer-text {
    color: var(--text-muted);
}

.modal-shell {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
}

.modal-shell .modal-header-shell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .9rem;
}

.modal-shell .modal-header-shell .btn-close {
    margin: 0;
    flex: 0 0 auto;
}

.modal-shell .modal-header-shell .modal-title,
.modal-shell .modal-header-shell h2 {
    margin: 0;
}

.pdf-shell {
    background: #fff;
}

.admin-print-controls .form-select,
.admin-print-controls .form-control {
    min-height: 3.1rem;
}

.surah-print-pdf-shell {
    background: #ffffff !important;
    border: 0;
    box-shadow: none;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    position: relative;
}

.surah-print-page {
    aspect-ratio: 190 / 277;
    margin: 0 auto;
    max-width: 794px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.surah-print-pdf-shell .arabic-text,
.surah-print-pdf-shell .ayah-arabic,
.surah-print-pdf-shell .ayah-arabic * {
    font-family: 'QuranArabic', 'Amiri', serif !important;
}

.surah-print-pdf-shell .dhivehi-text,
.surah-print-pdf-shell .ayah-translation,
.surah-print-pdf-shell .dv-ui {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.surah-print-cover-page {
    align-items: center;
    aspect-ratio: 190 / 277;
    background:
        radial-gradient(circle at 20% 16%, rgba(255,255,255,.48), transparent 18%),
        radial-gradient(circle at 80% 76%, rgba(255,255,255,.32), transparent 22%),
        linear-gradient(135deg, #0f766e, #0f3f56 56%, #d7b56d);
    border-radius: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
    min-height: 0;
    overflow: hidden;
    padding: 3rem;
    page-break-after: always;
    position: relative;
    width: 100%;
}

.surah-print-cover-page,
.surah-print-cover--minimal .surah-print-cover-page {
    border: 0 !important;
}

.surah-print-cover-page::before,
.surah-print-cover-page::after {
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 34px;
    content: "";
    inset: 28px;
    pointer-events: none;
    position: absolute;
}

.surah-print-cover-page::after {
    border-radius: 999px;
    inset: auto;
    width: 540px;
    height: 540px;
    background:
        repeating-conic-gradient(from 0deg, rgba(255,255,255,.12) 0 7deg, transparent 7deg 15deg);
    opacity: .38;
    transform: rotate(18deg);
}

.surah-print-cover-logo {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    height: 92px;
    margin-bottom: 1.1rem;
    object-fit: cover;
    padding: .35rem;
    position: relative;
    width: 92px;
    z-index: 1;
}

.surah-print-cover--minimal .surah-print-cover-logo,
.surah-print-cover--silver .surah-print-cover-logo,
.surah-print-cover--pearl .surah-print-cover-logo,
.surah-print-cover--marble .surah-print-cover-logo {
    background: rgba(255,255,255,.78);
    border-color: rgba(148, 163, 184, .34);
}

.surah-print-site {
    color: currentColor;
    font-size: 1.2rem;
    opacity: .86;
    position: relative;
    z-index: 1;
}

.surah-print-kicker {
    direction: rtl;
    font-size: 1.05rem;
    margin-top: 1.6rem;
    opacity: .76;
    position: relative;
    z-index: 1;
}

.surah-print-title {
    color: currentColor;
    font-family: 'QuranArabic', 'Amiri', serif !important;
    font-size: clamp(4rem, 10vw, 7.2rem);
    line-height: 1.5;
    margin: 1.2rem 0 .4rem;
    position: relative;
    text-shadow: 0 12px 28px rgba(0,0,0,.22);
    z-index: 1;
}

.surah-print-subtitle,
.surah-print-cover-meta {
    position: relative;
    z-index: 1;
}

.surah-print-subtitle {
    font-size: 1.25rem;
    opacity: .88;
}

.surah-print-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 2rem;
}

.surah-print-cover-meta span {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: .55rem 1rem;
}

.surah-print-cover-ornament {
    border: 2px solid rgba(255,255,255,.28);
    border-radius: 999px;
    height: 190px;
    margin-bottom: 1.5rem;
    position: relative;
    width: 190px;
    z-index: 1;
}

.surah-print-cover-ornament::before,
.surah-print-cover-ornament::after {
    content: "";
    inset: 22px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 40px;
    position: absolute;
    transform: rotate(45deg);
}

.surah-print-cover-ornament::after {
    inset: 52px;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    transform: none;
}

.surah-print-cover--ocean .surah-print-cover-page {
    background:
        radial-gradient(circle at 75% 18%, rgba(255,255,255,.38), transparent 18%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #082f49, #0369a1 58%, #67e8f9);
}

.surah-print-cover--silver .surah-print-cover-page {
    color: #172033;
    background:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,.8), transparent 22%),
        repeating-linear-gradient(90deg, rgba(71,85,105,.08) 0 1px, transparent 1px 18px),
        linear-gradient(135deg, #f8fafc, #dbe3ec 58%, #94a3b8);
}

.surah-print-cover--night .surah-print-cover-page {
    background:
        radial-gradient(circle at 50% 18%, rgba(250,204,21,.2), transparent 18%),
        repeating-conic-gradient(from 45deg, rgba(250,204,21,.08) 0 8deg, transparent 8deg 18deg),
        linear-gradient(135deg, #020617, #0f172a 54%, #b8872f);
}

.surah-print-cover--minimal .surah-print-cover-page {
    color: #0f172a;
    background:
        radial-gradient(circle at 50% 18%, rgba(15,118,110,.12), transparent 22%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148,163,184,.34);
}

.surah-print-cover--kaaba .surah-print-cover-page {
    background:
        linear-gradient(45deg, rgba(234,179,8,.18) 0 1px, transparent 1px 24px),
        radial-gradient(circle at 50% 28%, rgba(250,204,21,.28), transparent 22%),
        linear-gradient(135deg, #050505, #111827 56%, #b88932);
}

.surah-print-cover--desert .surah-print-cover-page {
    color: #3f240b;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.5), transparent 18%),
        repeating-linear-gradient(165deg, rgba(255,255,255,.16) 0 3px, transparent 3px 26px),
        linear-gradient(135deg, #fde68a, #f59e0b 54%, #92400e);
}

.surah-print-cover--rose .surah-print-cover-page {
    background:
        radial-gradient(circle at 75% 20%, rgba(255,255,255,.34), transparent 18%),
        repeating-conic-gradient(from 25deg, rgba(255,255,255,.12) 0 8deg, transparent 8deg 22deg),
        linear-gradient(135deg, #881337, #be185d 56%, #f9a8d4);
}

.surah-print-cover--teal .surah-print-cover-page {
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.13) 0 2px, transparent 2px 18px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.09) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #042f2e, #0f766e 58%, #5eead4);
}

.surah-print-cover--royal .surah-print-cover-page {
    background:
        radial-gradient(circle at 50% 18%, rgba(251,191,36,.32), transparent 18%),
        repeating-linear-gradient(90deg, rgba(251,191,36,.12) 0 1px, transparent 1px 20px),
        linear-gradient(135deg, #172554, #1d4ed8 58%, #fbbf24);
}

.surah-print-cover--pearl .surah-print-cover-page {
    color: #1e293b;
    background:
        radial-gradient(circle at 22% 20%, rgba(255,255,255,.9), transparent 20%),
        radial-gradient(circle at 80% 72%, rgba(20,184,166,.18), transparent 24%),
        linear-gradient(135deg, #ffffff, #e2e8f0 58%, #cbd5e1);
}

.surah-print-cover--forest .surah-print-cover-page {
    background:
        radial-gradient(circle at 75% 20%, rgba(187,247,208,.18), transparent 16%),
        repeating-conic-gradient(from 0deg, rgba(255,255,255,.08) 0 10deg, transparent 10deg 24deg),
        linear-gradient(135deg, #052e16, #166534 58%, #84cc16);
}

.surah-print-cover--marble .surah-print-cover-page {
    color: #0f172a;
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(148,163,184,.24) 43% 45%, transparent 46%),
        radial-gradient(circle at 70% 20%, rgba(15,118,110,.14), transparent 18%),
        linear-gradient(135deg, #ffffff, #f1f5f9);
}

.surah-print-cover--copper .surah-print-cover-page {
    background:
        radial-gradient(circle at 50% 22%, rgba(251,191,36,.28), transparent 18%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 2px, transparent 2px 22px),
        linear-gradient(135deg, #431407, #9a3412 56%, #fdba74);
}

.surah-print-cover--violet .surah-print-cover-page {
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.26), transparent 16%),
        repeating-conic-gradient(from 15deg, rgba(255,255,255,.08) 0 9deg, transparent 9deg 24deg),
        linear-gradient(135deg, #2e1065, #6d28d9 58%, #c4b5fd);
}

.surah-print-cover--generated .surah-print-cover-page {
    background: var(--print-cover-bg, linear-gradient(135deg, #0f766e, #0f3f56 56%, #d7b56d));
    color: var(--print-cover-text, #ffffff);
}

.surah-print-cover--generated .surah-print-cover-page::before,
.surah-print-cover--generated .surah-print-cover-page::after {
    border-color: var(--print-cover-accent, rgba(255,255,255,.26));
}

.surah-print-cover--generated .surah-print-cover-logo,
.surah-print-cover--generated .surah-print-cover-meta span {
    background: rgba(255,255,255,.18);
    border-color: var(--print-cover-accent, rgba(255,255,255,.28));
}

.surah-print-book-head {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, .28);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.45rem;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
}

.surah-print-content-page {
    background: #ffffff !important;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 2.15rem 3.1rem;
}

.surah-print-book-head .arabic-text {
    color: #06142a;
    font-size: 2.2rem;
    line-height: 1.5;
}

.surah-print-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .15rem;
    min-height: 0;
}

.surah-print-ayah {
    background: #ffffff !important;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    border-radius: 0;
    padding: .55rem 0 .7rem;
    page-break-inside: avoid;
}

.surah-print-ayah:last-child {
    border-bottom: 0;
}

.surah-print-ayah--continuation {
    padding-top: 1rem;
}

.surah-print-ayah--continuation .surah-print-meta {
    color: #475569;
}

.surah-print-ayah--compact {
    padding-block: .55rem .75rem;
}

.surah-print-ayah .ayah-arabic {
    color: #07111f;
    font-size: clamp(1.5rem, 3vw, 2.12rem);
    line-height: 1.58;
    text-align: right;
}

.surah-print-ayah--compact .ayah-arabic {
    font-size: clamp(1.45rem, 2.85vw, 2.05rem);
    line-height: 1.58;
}

.surah-print-ayah .ayah-translation {
    color: #1f2937;
    font-size: clamp(.9rem, 1.55vw, 1.02rem);
    line-height: 1.52;
    text-align: right;
}

.surah-print-ayah--compact .ayah-translation {
    font-size: clamp(.88rem, 1.55vw, 1rem);
    line-height: 1.55;
}

.surah-print-page-footer {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .24);
    bottom: 1.5rem;
    color: #64748b;
    display: flex;
    font-size: .9rem;
    justify-content: space-between;
    left: 2rem;
    position: absolute;
    right: 2rem;
}

.surah-print-meta {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: .75rem;
    text-align: right;
}

.arabic-admin-text {
    font-family: 'QuranArabic', 'Amiri', serif !important;
    direction: rtl;
    text-align: right;
    font-size: 1.35rem;
}

mark {
    background: #fff0b8;
    padding: 0 .1em;
    border-radius: .15em;
}

.disabled-state {
    opacity: .65;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 102px;
    }

    .site-footer {
        display: none;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .ayah-arabic {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
    }

    .surah-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .pwa-install-banner {
        bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    .pwa-install-banner__card {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        padding: .95rem;
    }

    .pwa-install-banner__actions {
        width: 100%;
    }

    .pwa-install-banner__dismiss,
    .pwa-install-banner__install {
        flex: 1 1 0;
    }
}

.banner-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scroll-snap-type: x proximity;
}

.home-banner-card {
    min-width: min(88vw, 420px);
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    scroll-snap-align: start;
}

.home-banner-image-wrap {
    aspect-ratio: 16 / 8;
    background: var(--soft-bg);
}

.home-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.home-banner-copy {
    padding: 1.1rem 1.15rem 1.2rem;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    color: var(--text-main);
    text-decoration: none;
    font-size: .86rem;
}

.suggestion-chip:hover {
    background: var(--brand-2);
    color: var(--brand);
}

.mobile-nav-link {
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
}

.mobile-nav-link i {
    font-size: 1.05rem;
}

.reciter-upload-form .form-check {
    padding-block: .2rem;
}

.reciter-upload-tabs {
    display: flex;
    gap: .75rem;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(203, 213, 225, .9);
    padding-inline: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.reciter-upload-tabs::-webkit-scrollbar {
    display: none;
}

.reciter-upload-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: transparent;
    color: var(--text-soft);
    padding: .85rem 1.3rem;
    margin-bottom: -1px;
    box-shadow: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.reciter-upload-tabs .nav-link.active,
.reciter-upload-tabs .nav-link:hover,
.reciter-upload-tabs .nav-link:focus {
    color: var(--text-strong);
    border-color: rgba(203, 213, 225, .9);
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.96)),
        var(--card-bg);
}

.reciter-upload-tab-content .tab-pane {
    outline: none;
}

.reciter-workspace,
.reciter-upload-tabs-shell,
.reciter-upload-tab-content {
    width: 100%;
    min-width: 0;
}

.reciter-workspace {
    display: grid;
    gap: 1.25rem;
}

.reciter-workspace-card,
.reciter-upload-panel {
    border-radius: 24px;
}

.reciter-upload-panel .small,
.reciter-workspace-card .small {
    line-height: 1.7;
}

.reciter-single-upload-form {
    display: grid;
    gap: 1rem;
}

body.page-reciter {
    background:
        radial-gradient(circle at top right, rgba(226,232,240,.72), transparent 34%),
        radial-gradient(circle at top left, rgba(241,245,249,.82), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.88)),
        var(--page-bg);
}

body.page-reciter .reciter-page-main,
body.page-reciter .reciter-upload-tab-content .section-card,
body.page-reciter .recording-card,
body.page-reciter .reciter-current-ayah {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .78);
    box-shadow:
        0 20px 40px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.8);
}

body.page-reciter .reciter-page-main {
    position: relative;
    overflow: hidden;
}

body.page-reciter .reciter-page-main::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 13rem;
    height: 13rem;
    background: radial-gradient(circle, rgba(255,255,255,.65), rgba(255,255,255,0));
    pointer-events: none;
}

body.page-reciter .reciter-page-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding-block: .5rem;
}

body.page-reciter .reciter-page-shell {
    display: block;
}

body.page-reciter .reciter-page-main {
    width: 100%;
}

body.page-reciter .reciter-page-main > .section-card {
    margin-bottom: 1rem;
}

body.page-reciter .reciter-status-strip {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(203, 213, 225, .72);
}

.reciter-submission-filter {
    display: grid;
    grid-template-columns: minmax(220px, 380px);
    gap: .75rem;
    align-items: end;
    width: 100%;
    max-width: none;
}

.reciter-submission-filter__field {
    min-width: 0;
}

.reciter-submission-shell__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(203, 213, 225, .72);
}

.reciter-submission-shell #reciterSubmissionList {
    margin-top: 1rem;
}

.reciter-submission-filter__actions {
    display: flex;
    justify-content: flex-end;
}

.reciter-submission-shell {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .78);
    box-shadow:
        0 20px 40px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.8);
}

body.page-reciter .reciter-upload-tabs .nav-link {
    min-width: 11rem;
    text-align: center;
}

body.page-reciter #reciterSurahSelect option,
body.page-reciter #reciterAyahSelect option,
body.page-reciter #reciterListSurahFilter option {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-reciter .reciter-context-panel .empty-state,
body.page-reciter .notice-soft,
body.page-reciter .status-pill {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.page-reciter .reciter-workspace-card,
body.page-reciter .reciter-upload-panel {
    position: relative;
    overflow: hidden;
}

body.page-reciter .reciter-workspace-card::after,
body.page-reciter .reciter-upload-panel::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem 1rem auto;
    width: 7rem;
    height: 7rem;
    background: radial-gradient(circle, rgba(226,232,240,.35), rgba(226,232,240,0));
    pointer-events: none;
}

.info-card,
.section-card,
.auth-card,
.profile-card {
    padding: 1.25rem;
}

@media (max-width: 767.98px) {
    .reciter-workspace {
        gap: 1rem;
    }
    .reciter-submission-filter {
        grid-template-columns: 1fr;
        max-width: none;
    }
    .reciter-submission-shell__header {
        padding: .9rem 1rem;
    }
    .reciter-submission-filter__actions {
        justify-content: flex-start;
    }
    .site-main > .container,
    .site-main > .container-lg,
    .site-main > .container-xl {
        padding-inline: .75rem;
    }

    .section-card,
    .hero-card,
    .auth-card,
    .profile-card,
    .info-card {
        border-radius: 20px;
    }

    .section-card,
    .hero-card,
    .auth-card,
    .profile-card,
    .info-card,
    .ayah-card,
    .surah-card,
    .bank-card {
        padding: 1rem;
    }

    .section-card > .row > [class*='col-'],
    .hero-card > .row > [class*='col-'],
    .auth-card > .row > [class*='col-'],
    .profile-card > .row > [class*='col-'],
    .info-card > .row > [class*='col-'] {
        min-width: 0;
    }

    .section-card > .row > [class*='col-'] > .info-card,
    .section-card > .row > [class*='col-'] > .auth-card,
    .section-card > .row > [class*='col-'] > .profile-card,
    .section-card > .row > [class*='col-'] > .hero-card,
    .hero-card > .row > [class*='col-'] > .info-card,
    .hero-card > .row > [class*='col-'] > .auth-card,
    .hero-card > .row > [class*='col-'] > .profile-card,
    .hero-card > .row > [class*='col-'] > .section-card,
    .auth-card > .row > [class*='col-'] > .info-card,
    .auth-card > .row > [class*='col-'] > .section-card,
    .info-card > .row > [class*='col-'] > .auth-card,
    .info-card > .row > [class*='col-'] > .section-card {
        padding: 0 !important;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .section-card > .row,
    .hero-card > .row,
    .auth-card > .row,
    .profile-card > .row,
    .info-card > .row {
        --bs-gutter-y: 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    body.page-index {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 28%),
            radial-gradient(circle at top left, rgba(244, 199, 107, 0.06), transparent 24%),
            var(--page-bg);
    }

    body.page-index .home-hero-card,
    body.page-index .home-featured-ayah,
    body.page-index .home-surah-card,
    body.page-index .home-info-card,
    body.page-index .home-banner-card,
    body.page-index .home-featured-ayah__card,
    body.page-index .home-short-videos,
    body.page-index .home-featured-ayah__aside .playback-controls-card,
    body.page-surah .ayah-card,
    body.page-search .search-result-card,
    body.page-playlist .playlist-item,
    body.page-surahs .home-surah-card,
    .section-card,
    .hero-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-index .home-hero-card .hero-chip,
    body.page-index .home-ayah-carousel__meta .meta-badge,
    body.page-index .home-carousel-link,
    body.page-index .home-secondary-link,
    body.page-index .home-section-link,
    .meta-badge,
    .hero-chip {
        background: rgba(19, 32, 48, 0.88) !important;
        color: var(--carousel-text-muted) !important;
        border-color: rgba(71, 85, 105, 0.7) !important;
    }

    body.page-index .home-surah-section > .home-section-head .home-section-link {
        background: rgba(19, 32, 48, 0.88) !important;
        color: var(--carousel-text-muted) !important;
        border-color: rgba(71, 85, 105, 0.7) !important;
    }

    body.page-playlist .playlist-repeat-control {
        background: rgba(15, 23, 42, .82) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    body.page-playlist .playlist-repeat-control .form-select {
        background-color: rgba(15, 23, 42, .9) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
    }

    body.page-index .home-ayah-carousel__frame {
        background: linear-gradient(180deg, rgba(16, 26, 39, 0.9), rgba(11, 19, 31, 0.86)) !important;
        border-color: rgba(71, 85, 105, 0.55) !important;
    }

    body.page-index .home-ayah-carousel__frame::before,
    body.page-index .home-ayah-carousel__frame::after {
        border-color: rgba(100, 116, 139, 0.2) !important;
    }

    body.page-index .home-ayah-carousel__arabic,
    body.page-index .home-featured-ayah .ayah-arabic,
    body.page-surah .ayah-card .ayah-arabic,
    body.page-search .search-result-card .ayah-arabic,
    body.page-playlist .playlist-item .ayah-arabic,
    .ayah-card .arabic-text,
    .search-result-card .arabic-text,
    .playlist-item .arabic-text {
        color: var(--carousel-text-strong) !important;
        text-shadow: none !important;
    }

    body.page-index .home-ayah-carousel__meaning,
    body.page-index .home-carousel-link span,
    body.page-index .home-featured-ayah .ayah-translation,
    body.page-surah .ayah-card .ayah-translation,
    body.page-search .search-result-card .ayah-translation,
    body.page-playlist .playlist-item .ayah-translation,
    .small.text-muted,
    .text-muted {
        color: var(--carousel-text-muted) !important;
    }

    body.page-index .home-ayah-carousel__control .carousel-control-prev-icon,
    body.page-index .home-ayah-carousel__control .carousel-control-next-icon {
        background-color: rgba(19, 32, 48, 0.96) !important;
        border-color: rgba(100, 116, 139, 0.52) !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32) !important;
    }

    body.page-index .home-ayah-carousel__indicators [data-bs-target] {
        background-color: rgba(100, 116, 139, 0.4) !important;
    }

    body.page-index .home-ayah-carousel__indicators .active {
        background-color: var(--brand) !important;
    }

    .ayah-card-active,
    .ayah-card.is-playing,
    .playlist-item.is-playing {
        background: linear-gradient(180deg, rgba(21, 37, 53, 0.98), rgba(14, 28, 41, 0.98)) !important;
        border-color: rgba(45, 212, 191, 0.36) !important;
    }

    .ayah-card-active .ayah-arabic,
    .ayah-card-active .ayah-translation,
    .ayah-card.is-playing .ayah-arabic,
    .playlist-item.is-playing .ayah-arabic {
        color: var(--text-main) !important;
    }

    .playback-controls-card,
    .font-control-card,
    body.page-index .home-featured-ayah__aside .playback-controls-card {
        background: linear-gradient(180deg, rgba(19, 32, 48, 0.94), rgba(13, 24, 36, 0.96)) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
        color: var(--text-main) !important;
    }

    .font-control-card .dhivehi-text,
    .font-control-card .form-label,
    .font-control-card .form-text,
    .font-control-card .small,
    .playback-controls-card .dhivehi-text,
    .playback-controls-card .form-label,
    .playback-controls-card .form-text,
    .playback-controls-card .small {
        color: var(--text-main) !important;
    }

    .font-control-card .text-muted,
    .playback-controls-card .text-muted {
        color: var(--text-muted) !important;
    }

    .font-control-card .form-range::-webkit-slider-runnable-track,
    .playback-controls-card .form-range::-webkit-slider-runnable-track {
        background: rgba(100, 116, 139, 0.42);
    }

    .font-control-card .form-range::-moz-range-track,
    .playback-controls-card .form-range::-moz-range-track {
        background: rgba(100, 116, 139, 0.42);
    }

    .font-control-card .form-range::-webkit-slider-thumb,
    .playback-controls-card .form-range::-webkit-slider-thumb {
        background: var(--brand);
        border: 0;
    }

    .font-control-card .form-range::-moz-range-thumb,
    .playback-controls-card .form-range::-moz-range-thumb {
        background: var(--brand);
        border: 0;
    }

    body.page-surahs .section-card,
    body.page-surahs .surah-card,
    body.page-surahs .home-surah-card,
    body.page-surahs #surahsPanel,
    body.page-surahs .surahs-search-form .form-control,
    body.page-surahs .surahs-search-form__submit,
    body.page-surahs .surah-pagination__link,
    body.page-surahs .surah-pagination__number,
    body.page-surahs .surah-pagination__ellipsis,
    body.page-surahs .pagination .page-link {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-surahs .surah-icon,
    body.page-surahs .order-pill {
        background: rgba(19, 32, 48, 0.92) !important;
        color: var(--text-main) !important;
        border: 1px solid rgba(71, 85, 105, 0.72);
    }

    body.page-surahs .home-surah-card__title {
        color: var(--text-main) !important;
    }

    body.page-surahs .small.text-muted,
    body.page-surahs .text-muted,
    body.page-surahs .home-surah-card .small.text-muted {
        color: var(--text-muted) !important;
    }

    body.page-surahs .surahs-search-form__submit:hover,
    body.page-surahs .pagination .page-link:hover,
    body.page-surahs .pagination .page-link:focus {
        background: rgba(19, 32, 48, 0.96) !important;
        color: var(--brand) !important;
        border-color: rgba(45, 212, 191, 0.28) !important;
    }

    body.page-surahs .surah-pagination .page-item.active .page-link {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        color: #081119 !important;
        border-color: transparent !important;
    }

    body.page-surahs .surah-pagination .page-item.disabled .page-link {
        color: #7b8ba0 !important;
        background: rgba(19, 32, 48, 0.68) !important;
        border-color: rgba(51, 65, 85, 0.7) !important;
    }

    body.page-search {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 26%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 22%),
            var(--page-bg) !important;
    }

    body.page-search .search-page-hero,
    body.page-search .search-page-playback-card,
    body.page-search .search-page-reciter-panel .playback-controls-card,
    body.page-search .search-page-results-section,
    body.page-search .search-page-result-card,
    body.page-search .search-page-submit,
    body.page-search .search-page-reset,
    body.page-search .search-page-filter-chip,
    body.page-search .search-page-suggestions .suggestion-chip,
    body.page-search .search-page-suggestions a,
    body.page-search .search-page-form__field .form-control,
    body.page-search .pagination .page-link,
    body.page-search .surah-pagination__link,
    body.page-search .surah-pagination__number,
    body.page-search .surah-pagination__ellipsis {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-search .search-page-hero::before {
        background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%) !important;
    }

    body.page-search .search-page-hero::after {
        background: radial-gradient(circle, rgba(148, 163, 184, 0.12), transparent 70%) !important;
    }

    body.page-search .search-page-suggestions-card {
        border-top-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-search .search-page-toolbar .dhivehi-text,
    body.page-search .search-page-results-head,
    body.page-search .search-page-results-head .small,
    body.page-search .search-page-suggestions,
    body.page-search .search-page-suggestions a,
    body.page-search .search-page-ayah-meta .small,
    body.page-search .search-page-ayah-meta,
    body.page-search .empty-state,
    body.page-search .text-muted,
    body.page-search .small.text-muted {
        color: var(--text-muted) !important;
    }

    body.page-search .search-page-form__field .form-control::placeholder {
        color: var(--text-muted) !important;
    }

    body.page-search .search-page-submit {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        color: #081119 !important;
        border-color: transparent !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24) !important;
    }

    body.page-search .search-page-submit:hover,
    body.page-search .search-page-submit:focus {
        color: #081119 !important;
    }

    body.page-search .search-page-audio-trigger {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24) !important;
    }

    body.page-search .search-page-audio-trigger.is-listening {
        background: linear-gradient(135deg, #f59e0b, #dc2626) !important;
        color: #fff !important;
        border-color: transparent !important;
    }

    body.page-search .search-page-audio-status {
        background: rgba(19, 32, 48, 0.88) !important;
        color: var(--text-muted) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    body.page-search .search-page-reset,
    body.page-search .search-page-filter-chip,
    body.page-search .search-page-suggestions .suggestion-chip,
    body.page-search .search-page-suggestions a {
        background: rgba(19, 32, 48, 0.88) !important;
        color: var(--text-muted) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    body.page-search .search-page-reset:hover,
    body.page-search .search-page-reset:focus,
    body.page-search .search-page-suggestions .suggestion-chip:hover,
    body.page-search .search-page-suggestions a:hover,
    body.page-search .pagination .page-link:hover,
    body.page-search .pagination .page-link:focus {
        background: rgba(19, 32, 48, 0.96) !important;
        color: var(--brand) !important;
        border-color: rgba(45, 212, 191, 0.28) !important;
    }

    body.page-search .search-result-card .ayah-arabic,
    body.page-search .search-result-card .ayah-translation,
    body.page-search .search-result-card .arabic-text {
        color: var(--text-main) !important;
        text-shadow: none !important;
    }

    body.page-search .surah-pagination .page-item.active .page-link {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        color: #081119 !important;
        border-color: transparent !important;
    }

    body.page-search .surah-pagination .page-item.disabled .page-link {
        color: #7b8ba0 !important;
        background: rgba(19, 32, 48, 0.68) !important;
        border-color: rgba(51, 65, 85, 0.7) !important;
    }

    body.page-donations {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 24%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 22%),
            var(--page-bg) !important;
    }

    body.page-donations .section-card,
    body.page-donations .donation-page-card,
    body.page-donations .donation-history-card,
    body.page-donations .donation-info-card,
    body.page-donations .donation-form-card,
    body.page-donations .donation-form,
    body.page-donations .bank-card,
    body.page-donations .donation-history-item,
    body.page-donations .form-control,
    body.page-donations .form-select,
    body.page-donations .btn-brand {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-donations .btn-brand {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        color: #081119 !important;
        border-color: transparent !important;
    }

    body.page-donations .donation-page-card .meta-badge,
    body.page-donations .donation-history-card .meta-badge,
    body.page-donations .status-pill,
    body.page-donations .empty-state,
    body.page-donations .notice-soft {
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    body.page-donations .form-label,
    body.page-donations .form-text,
    body.page-donations .text-muted,
    body.page-donations .empty-state,
    body.page-donations .donation-bank-card-body .text-muted,
    body.page-donations .donation-history-item__bank,
    body.page-donations .donation-history-item__meta,
    body.page-donations .donation-history-item__meta-row .text-muted {
        color: var(--text-muted) !important;
    }

    body.page-donations .form-control::placeholder {
        color: var(--text-muted) !important;
    }

    body.page-donations .donation-bank-card-head,
    body.page-donations .donation-bank-card-body,
    body.page-donations .donation-bank-card-body .fw-semibold,
    body.page-donations .donation-history-item__amount,
    body.page-donations .donation-history-item__link {
        color: var(--text-main) !important;
    }

    body.page-donations .donation-bank-logo-wrap {
        background: rgba(19, 32, 48, 0.88) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    body.page-donations .status-pending {
        background: rgba(122, 92, 16, 0.25) !important;
        color: #f4c76b !important;
    }

    body.page-donations .status-approved,
    body.page-donations .status-fixed,
    body.page-donations .status-reviewed,
    body.page-donations .status-verified {
        background: rgba(12, 59, 52, 0.6) !important;
        color: #7ce8d8 !important;
    }

    body.page-donations .status-rejected {
        background: rgba(90, 31, 41, 0.45) !important;
        color: #ffb3bf !important;
    }

    body.page-login,
    body.page-register {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 24%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 22%),
            var(--page-bg) !important;
    }

    body.page-login .auth-page-frame,
    body.page-login .auth-page-card,
    body.page-login .auth-card,
    body.page-login .form-control,
    body.page-login .btn-outline-dark,
    body.page-register .auth-page-frame,
    body.page-register .auth-page-card,
    body.page-register .auth-card,
    body.page-register .form-control,
    body.page-register .btn-outline-dark {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-login .auth-page-frame::after,
    body.page-register .auth-page-frame::after {
        background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 70%) !important;
    }

    body.page-login .text-muted,
    body.page-login .form-label,
    body.page-login .form-text,
    body.page-login .auth-page-intro .dhivehi-text,
    body.page-register .text-muted,
    body.page-register .form-label,
    body.page-register .form-text,
    body.page-register .auth-page-intro .dhivehi-text {
        color: var(--text-muted) !important;
    }

    body.page-login .form-control::placeholder,
    body.page-register .form-control::placeholder {
        color: var(--text-muted) !important;
    }

    body.page-login .btn-brand,
    body.page-register .btn-brand {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        color: #081119 !important;
        border-color: transparent !important;
    }

    body.page-login .btn-outline-dark,
    body.page-register .btn-outline-dark {
        color: var(--text-main) !important;
    }

    body.page-login .btn-outline-dark:hover,
    body.page-login .btn-outline-dark:focus,
    body.page-register .btn-outline-dark:hover,
    body.page-register .btn-outline-dark:focus {
        background: rgba(19, 32, 48, 0.96) !important;
        color: var(--brand) !important;
        border-color: rgba(45, 212, 191, 0.28) !important;
    }

    body.page-login .auth-page-divider span,
    body.page-register .auth-page-divider span,
    body.page-login .auth-page-switch__link,
    body.page-register .auth-page-switch__link {
        background: rgba(19, 32, 48, 0.88) !important;
        color: var(--text-main) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    body.page-login .auth-page-switch__link:hover,
    body.page-login .auth-page-switch__link:focus,
    body.page-register .auth-page-switch__link:hover,
    body.page-register .auth-page-switch__link:focus {
        color: var(--brand) !important;
        border-color: rgba(45, 212, 191, 0.28) !important;
    }

    body.page-profile {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 24%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 22%),
            var(--page-bg) !important;
    }

    body.page-profile .profile-dashboard-hero,
    body.page-profile .profile-summary-card,
    body.page-profile .profile-actions-panel,
    body.page-profile .profile-reciter-panel,
    body.page-profile .profile-danger-panel,
    body.page-profile .profile-kpi-card,
    body.page-profile .profile-action-card,
    body.page-profile .profile-apply-panel,
    body.page-profile .modal-shell,
    body.page-profile .form-control {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-profile .profile-dashboard-hero::before {
        background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%) !important;
    }

    body.page-profile .profile-dashboard-hero::after {
        background: radial-gradient(circle, rgba(148, 163, 184, 0.12), transparent 70%) !important;
    }

    body.page-profile .profile-kpi-card__label,
    body.page-profile .profile-summary-card__eyebrow,
    body.page-profile .profile-kpi-card__meta,
    body.page-profile .text-muted,
    body.page-profile .form-label,
    body.page-profile .form-text,
    body.page-profile .notice-soft,
    body.page-profile .empty-state {
        color: var(--text-muted) !important;
    }

    body.page-profile .profile-kpi-card__value,
    body.page-profile .profile-summary-card__title,
    body.page-profile .profile-action-card,
    body.page-profile .profile-summary-row strong,
    body.page-profile .dhivehi-text {
        color: var(--text-main) !important;
    }

    body.page-profile .status-pill {
        border: 1px solid rgba(148, 163, 184, 0.34) !important;
        background: rgba(30, 41, 59, 0.78) !important;
        color: #dbeafe !important;
    }

    body.page-profile .status-approved,
    body.page-profile .status-reviewed,
    body.page-profile .status-verified,
    body.page-profile .status-fixed {
        background: rgba(20, 83, 45, 0.76) !important;
        border-color: rgba(74, 222, 128, 0.36) !important;
        color: #bbf7d0 !important;
    }

    body.page-profile .status-pending {
        background: rgba(113, 63, 18, 0.76) !important;
        border-color: rgba(251, 191, 36, 0.36) !important;
        color: #fde68a !important;
    }

    body.page-profile .status-rejected {
        background: rgba(127, 29, 29, 0.76) !important;
        border-color: rgba(248, 113, 113, 0.36) !important;
        color: #fecaca !important;
    }

    body.page-profile .status-none {
        background: rgba(51, 65, 85, 0.78) !important;
        border-color: rgba(148, 163, 184, 0.32) !important;
        color: #cbd5e1 !important;
    }

    body.page-profile .profile-summary-row,
    body.page-profile .profile-action-card {
        border-color: rgba(51, 65, 85, 0.72) !important;
    }

    body.page-profile .profile-action-card:hover {
        background: rgba(19, 32, 48, 0.96) !important;
        border-color: rgba(45, 212, 191, 0.28) !important;
        color: var(--brand) !important;
    }

    body.page-profile .profile-action-card:hover .dhivehi-text,
    body.page-profile .profile-action-card:hover i {
        color: var(--brand) !important;
    }

    body.page-profile .modal-header,
    body.page-profile .modal-body {
        background: transparent !important;
        color: var(--text-main) !important;
    }

    body.page-profile .btn-close {
        filter: invert(1) grayscale(1);
    }

    body.page-reciter {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 34%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 32%),
            linear-gradient(180deg, rgba(9, 17, 27, 0.98), rgba(9, 17, 27, 1)),
            var(--page-bg) !important;
    }

    body.page-reciter .reciter-page-main,
    body.page-reciter .reciter-upload-tab-content .section-card,
    body.page-reciter .recording-card,
    body.page-reciter .reciter-current-ayah,
    body.page-reciter .reciter-submission-shell,
    body.page-reciter .reciter-workspace-card,
    body.page-reciter .reciter-upload-panel,
    body.page-reciter .reciter-submission-item,
    body.page-reciter .reciter-audio-card,
    body.page-reciter .reciter-status-strip,
    body.page-reciter .reciter-submission-shell__header,
    body.page-reciter .form-control,
    body.page-reciter .form-select {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-reciter .reciter-page-main::before {
        background: radial-gradient(circle, rgba(45, 212, 191, 0.12), rgba(45, 212, 191, 0)) !important;
    }

    body.page-reciter .reciter-workspace-card::after,
    body.page-reciter .reciter-upload-panel::after {
        background: radial-gradient(circle, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0)) !important;
    }

    body.page-reciter .reciter-upload-tabs {
        border-bottom-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-reciter .reciter-upload-tabs .nav-link {
        color: var(--text-muted) !important;
        border-color: transparent !important;
        background: transparent !important;
    }

    body.page-reciter .reciter-upload-tabs .nav-link.active,
    body.page-reciter .reciter-upload-tabs .nav-link:hover,
    body.page-reciter .reciter-upload-tabs .nav-link:focus {
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        background:
            linear-gradient(180deg, rgba(19, 32, 48, 0.96), rgba(13, 24, 36, 0.98)),
            var(--card-bg) !important;
    }

    body.page-reciter .dhivehi-text,
    body.page-reciter .form-label,
    body.page-reciter .form-text,
    body.page-reciter .text-muted,
    body.page-reciter .small.text-muted,
    body.page-reciter .notice-soft,
    body.page-reciter .empty-state,
    body.page-reciter .status-pill {
        color: var(--text-muted) !important;
    }

    body.page-reciter h1,
    body.page-reciter h2,
    body.page-reciter h3,
    body.page-reciter .recording-card strong,
    body.page-reciter .reciter-current-ayah .dhivehi-text,
    body.page-reciter .reciter-audio-card strong,
    body.page-reciter .reciter-submission-item .dhivehi-text {
        color: var(--text-main) !important;
    }

    body.page-reciter .reciter-current-ayah .ayah-arabic,
    body.page-reciter .ayah-card .ayah-arabic {
        color: var(--text-main) !important;
        text-shadow: none !important;
    }

    body.page-reciter .ayah-meaning,
    body.page-reciter .ayah-translation {
        color: var(--text-muted) !important;
    }

    body.page-reciter .icon-action-btn:hover,
    body.page-reciter .icon-action-btn:focus {
        border-color: rgba(45, 212, 191, 0.28) !important;
    }

    .recording-card,
    .reciter-audio-card,
    .reciter-submission-item,
    .reciter-current-ayah,
    body.page-reciter .reciter-status-strip,
    body.page-reciter .reciter-submission-shell__header {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    .recording-card strong,
    .recording-card .dhivehi-text,
    .reciter-current-ayah .dhivehi-text,
    .reciter-audio-card .dhivehi-text,
    .reciter-submission-item .dhivehi-text {
        color: var(--text-main) !important;
    }

    body.page-playlist-export-pdf {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 24%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 22%),
            var(--page-bg) !important;
    }

    body.page-playlist-export-pdf .section-card,
    body.page-playlist-export-pdf .pdf-shell,
    body.page-playlist-export-pdf .playlist-item,
    body.page-playlist-export-pdf .btn-brand {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-playlist-export-pdf .btn-brand {
        background: linear-gradient(135deg, var(--brand), var(--brand-3)) !important;
        color: #081119 !important;
        border-color: transparent !important;
    }

    body.page-playlist-export-pdf .text-muted,
    body.page-playlist-export-pdf .small.text-muted,
    body.page-playlist-export-pdf .ayah-translation {
        color: var(--text-muted) !important;
    }

    body.page-playlist-export-pdf .ayah-arabic,
    body.page-playlist-export-pdf .arabic-text,
    body.page-playlist-export-pdf .dhivehi-text {
        color: var(--text-main) !important;
        text-shadow: none !important;
    }

    body.page-reports {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 24%),
            radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), transparent 22%),
            var(--page-bg) !important;
    }

    body.page-reports .reports-page-card,
    body.page-reports .reports-page-table,
    body.page-reports .reports-page-table td,
    body.page-reports .reports-page-table th,
    body.page-reports .reports-page-item {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
    }

    body.page-reports .reports-page-card::before {
        background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%) !important;
    }

    body.page-reports .reports-page-card::after {
        background: radial-gradient(circle, rgba(148, 163, 184, 0.12), transparent 70%) !important;
    }

    body.page-reports .text-muted,
    body.page-reports .reports-page-table th,
    body.page-reports .small.text-muted,
    body.page-reports .reports-page-item__meta,
    body.page-reports .reports-page-item .text-muted {
        color: var(--text-muted) !important;
    }

    body.page-reports .reports-page-table td,
    body.page-reports .reports-page-item__ayah,
    body.page-reports .reports-page-item__issue,
    body.page-reports .reports-page-item__meta-row > span:last-child,
    body.page-reports .reports-page-item .dhivehi-text {
        color: var(--text-main) !important;
    }
}

.notice-soft {
    background: var(--soft-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .9rem 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.admin-icon-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    position: relative;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    box-shadow: var(--shadow);
}

.admin-icon-tile:hover {
    color: var(--brand);
    background: var(--brand-2);
}

.admin-icon-tile i {
    font-size: 1.4rem;
}

.table.modern-table {
    --bs-table-bg: transparent;
}

.table.modern-table th,
.table.modern-table td {
    border-color: var(--line);
    vertical-align: middle;
}

body.page-admin .admin-dashboard-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 9%, rgba(15, 118, 110, .12), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(244, 199, 107, .14), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .86);
}

.admin-dashboard-hero {
    position: relative;
    padding: 1.35rem 1.45rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(241,245,249,.88)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.admin-dashboard-hero::after {
    content: '';
    position: absolute;
    inset: auto 1.5rem -1px 1.5rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--brand), var(--gold), transparent);
    opacity: .75;
}

.admin-dashboard-hero h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.35rem);
}

.admin-dashboard-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-dashboard-hero--main {
    min-height: 150px;
}

.admin-dashboard-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.admin-dashboard-overview {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(170px, 1fr));
    gap: 1rem;
}

.admin-dashboard-visit-stats {
    --bs-gutter-y: 1rem;
}

.admin-dashboard-stat {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .9rem;
    padding: 1rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)),
        var(--card-bg);
}

.admin-dashboard-stat--featured {
    min-height: 148px;
    grid-row: span 2;
    align-items: flex-end;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, .16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)),
        var(--card-bg);
}

.admin-dashboard-stat > i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(22, 78, 99, .12));
    color: var(--brand);
    font-size: 1.25rem;
}

.admin-dashboard-stat--featured > i {
    width: 58px;
    height: 58px;
    border-radius: 20px;
}

.admin-dashboard-stat .label {
    margin-bottom: .25rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-dashboard-stat .value {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1;
}

.admin-dashboard-stat--featured .value {
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.admin-dashboard-visits {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)),
        var(--soft-bg);
    border-color: rgba(203, 213, 225, .82);
}

.admin-dashboard-table-card {
    border: 1px solid rgba(203, 213, 225, .75);
    border-radius: 22px;
    padding: .45rem;
    background: rgba(255,255,255,.72);
}

.admin-dashboard-table-card .modern-table thead th {
    font-size: .82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-dashboard-actions-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: .35rem 0 1rem;
    padding-inline: .25rem;
}

.admin-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-dashboard-grid .admin-icon-tile {
    min-height: 138px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)),
        var(--card-bg);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-dashboard-grid .admin-icon-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, .11);
}

.admin-dashboard-grid .admin-icon-tile i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(22, 78, 99, .12));
}

.admin-action-section {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.90), rgba(248,250,252,.78)),
        var(--soft-bg);
}

.admin-action-section:last-child {
    margin-bottom: 0;
}

.admin-action-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.admin-action-section__head h3 {
    margin: 0;
    font-size: .96rem;
    font-weight: 800;
}

.admin-action-section__head span {
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

body.page-admin-quran .admin-quran-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 6%, rgba(15, 118, 110, .11), transparent 32%),
        radial-gradient(circle at 96% 0%, rgba(244, 199, 107, .13), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .86);
}

.admin-quran-hero {
    min-height: 132px;
}

.admin-quran-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-quran-hero h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.35rem);
}

.admin-quran-subtitle {
    max-width: 760px;
}

.admin-quran-live-badge {
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, .08);
    color: var(--brand);
}

.admin-quran-filter-card,
.admin-quran-results-shell {
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.admin-quran-filter-card {
    padding: 1.1rem;
}

.admin-quran-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-quran-filter-head > i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(22, 78, 99, .12));
    color: var(--brand);
    font-size: 1.15rem;
}

.admin-quran-filter-grid,
.admin-quran-edit-grid {
    display: grid;
    gap: .9rem;
}

.admin-quran-filter-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, .36fr) minmax(150px, .36fr) auto;
    align-items: end;
}

.admin-quran-field .form-label {
    margin-bottom: .4rem;
    font-weight: 700;
}

.admin-quran-filter-actions,
.admin-quran-card-nav {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.admin-quran-results-shell {
    padding: 1rem;
}

.admin-quran-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-quran-results-count {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .92rem;
}

.admin-quran-results-count i {
    color: var(--brand);
}

.admin-quran-result-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-quran-card {
    padding: 1.1rem;
    border-radius: 26px;
    border: 1px solid rgba(203, 213, 225, .72);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.admin-quran-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-quran-card-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.admin-quran-card-number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(244, 199, 107, .14));
    color: var(--brand);
    font-weight: 800;
}

.admin-quran-edit-grid {
    grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) minmax(260px, 1fr);
    align-items: start;
}

.admin-quran-edit-field {
    min-width: 0;
}

.admin-quran-edit-field--small input {
    min-width: 0;
    width: 100%;
}

.admin-quran-edit-field--full {
    grid-column: 1 / -1;
}

.admin-quran-card textarea,
.admin-quran-card input,
.admin-quran-card select {
    background-color: rgba(255,255,255,.84);
}

.admin-quran-card .arabic-admin-text {
    min-height: 142px;
    font-size: 1.28rem;
}

.admin-quran-card textarea.dhivehi-text {
    min-height: 118px;
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Faruma', 'MV Boli', sans-serif !important;
}

.admin-quran-save-row {
    display: flex;
    justify-content: flex-end;
}

.admin-quran-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 140px;
    border-radius: 22px;
}

body.page-admin-reports .admin-reports-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 8%, rgba(15, 118, 110, .11), transparent 32%),
        radial-gradient(circle at 95% 0%, rgba(244, 199, 107, .13), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .86);
}

.admin-reports-hero {
    min-height: 132px;
}

.admin-reports-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-reports-hero h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.35rem);
}

.admin-reports-subtitle {
    max-width: 760px;
}

.admin-reports-count-badge {
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, .08);
    color: var(--brand);
}

.admin-reports-filter-card {
    padding: 1.1rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.admin-reports-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-reports-filter-head > i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(22, 78, 99, .12));
    color: var(--brand);
    font-size: 1.15rem;
}

.admin-reports-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, .36fr) auto;
    gap: .9rem;
    align-items: end;
}

.admin-reports-field .form-label {
    margin-bottom: .4rem;
    font-weight: 700;
}

.admin-reports-filter-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.admin-reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-report-card {
    padding: 1.1rem;
    border-radius: 26px;
    border: 1px solid rgba(203, 213, 225, .72);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.admin-report-card__head,
.admin-report-card__title,
.admin-report-card__form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-report-card__head {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-report-card__title {
    min-width: 0;
}

.admin-report-card__number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(244, 199, 107, .14));
    color: var(--brand);
    font-weight: 800;
}

.admin-report-card__body {
    display: grid;
    grid-template-columns: minmax(170px, .28fr) 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(203, 213, 225, .65);
    border-radius: 22px;
    background: rgba(248, 250, 252, .72);
}

.admin-report-card__issue {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.admin-report-card__issue span {
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.admin-report-card__message {
    color: var(--text-main);
    line-height: 1.7;
}

.admin-report-card__form {
    display: grid;
    grid-template-columns: minmax(170px, .3fr) minmax(240px, 1fr) auto;
    align-items: end;
}

.admin-report-card__status,
.admin-report-card__note {
    min-width: 0;
}

.admin-report-card__save {
    display: flex;
    align-items: end;
}

.admin-reports-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 160px;
    border-radius: 24px;
}

body.page-admin-donations .admin-donations-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 8%, rgba(15, 118, 110, .11), transparent 32%),
        radial-gradient(circle at 95% 0%, rgba(244, 199, 107, .13), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .86);
}

.admin-donations-hero {
    min-height: 132px;
}

.admin-donations-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-donations-hero h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.35rem);
}

.admin-donations-subtitle {
    max-width: 760px;
}

.admin-donations-hero-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.admin-donations-layout {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.35fr);
    gap: 1rem;
    align-items: start;
}

.admin-donations-panel {
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.admin-donations-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-donations-panel__head > i {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(22, 78, 99, .12));
    color: var(--brand);
    font-size: 1.15rem;
}

.admin-bank-form,
.admin-bank-card,
.admin-donation-card {
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.admin-bank-form {
    padding: 1rem;
}

.admin-bank-form__grid,
.admin-bank-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
}

.admin-bank-upload {
    display: grid;
    gap: .45rem;
}

.admin-bank-upload span,
.admin-bank-form__check {
    color: var(--text-muted);
    font-size: .86rem;
    font-weight: 700;
}

.admin-bank-form__check {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
}

.admin-bank-form__submit {
    width: 100%;
}

.admin-bank-list,
.admin-donation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-bank-card {
    padding: 1rem;
}

.admin-bank-card__head,
.admin-donation-card__head,
.admin-donation-card__title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.admin-bank-card__head,
.admin-donation-card__head {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-bank-card__logo,
.admin-donation-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(244, 199, 107, .14));
    color: var(--brand);
    font-size: 1.25rem;
}

.admin-bank-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .35rem;
}

.admin-bank-card__actions,
.admin-donations-filter__row {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.admin-donations-filter__row {
    align-items: stretch;
}

.admin-donations-filter__row .form-select {
    flex: 1 1 auto;
}

.admin-donation-card {
    padding: 1rem;
}

.admin-donation-card__title {
    min-width: 0;
}

.admin-donation-slip-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.admin-donation-slip-link:hover {
    text-decoration: underline;
}

.admin-slip-modal .modal-content {
    border-radius: 28px;
    overflow: hidden;
}

.admin-slip-modal .modal-header {
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 1rem;
}

.admin-slip-modal .modal-body {
    min-height: min(70vh, 720px);
    background:
        linear-gradient(180deg, rgba(248,250,252,.92), rgba(241,245,249,.88)),
        var(--soft-bg);
}

.admin-slip-modal__image,
.admin-slip-modal__frame {
    width: 100%;
    height: min(70vh, 720px);
    border: 0;
    border-radius: 18px;
    background: #fff;
}

.admin-slip-modal__image {
    object-fit: contain;
}

.admin-donation-card__form {
    display: grid;
    grid-template-columns: minmax(160px, .34fr) minmax(220px, 1fr) auto;
    gap: .85rem;
    align-items: end;
}

.admin-donations-empty {
    min-height: 140px;
    border-radius: 22px;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .admin-quran-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-quran-field--keyword,
    .admin-quran-filter-actions {
        grid-column: 1 / -1;
    }

    .admin-quran-filter-actions {
        justify-content: flex-start;
    }

    .admin-quran-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-quran-edit-field--audio,
    .admin-quran-edit-field--full {
        grid-column: 1 / -1;
    }

    .admin-reports-filter-grid,
    .admin-report-card__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-reports-field--search,
    .admin-reports-filter-actions,
    .admin-report-card__note {
        grid-column: 1 / -1;
    }

    .admin-reports-filter-actions {
        justify-content: flex-start;
    }

    .admin-report-card__save {
        justify-content: flex-start;
    }

    .admin-donations-layout,
    .admin-donation-card__form {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    body.page-admin .admin-dashboard-page,
    body.page-admin .admin-dashboard-hero,
    body.page-admin .admin-dashboard-visits,
    body.page-admin .admin-dashboard-table-card,
    body.page-admin .admin-dashboard-stat,
    body.page-admin .admin-action-section,
    body.page-admin .admin-dashboard-grid .admin-icon-tile {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body.page-admin .admin-dashboard-stat > i,
    body.page-admin .admin-dashboard-grid .admin-icon-tile i {
        background: rgba(45, 212, 191, .10);
        color: var(--brand) !important;
    }

    body.page-admin-quran .admin-quran-page,
    body.page-admin-quran .admin-quran-filter-card,
    body.page-admin-quran .admin-quran-results-shell,
    body.page-admin-quran .admin-quran-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-admin-quran .admin-quran-filter-head > i,
    body.page-admin-quran .admin-quran-card-number {
        background: rgba(45, 212, 191, .10);
        color: var(--brand) !important;
    }

    body.page-admin-quran .admin-quran-card textarea,
    body.page-admin-quran .admin-quran-card input,
    body.page-admin-quran .admin-quran-card select {
        background-color: rgba(19, 32, 48, .96) !important;
    }

    body.page-admin-reports .admin-reports-page,
    body.page-admin-reports .admin-reports-filter-card,
    body.page-admin-reports .admin-report-card,
    body.page-admin-reports .admin-report-card__body {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-admin-reports .admin-reports-filter-head > i,
    body.page-admin-reports .admin-report-card__number {
        background: rgba(45, 212, 191, .10);
        color: var(--brand) !important;
    }

    body.page-admin-reports .admin-report-card__message,
    body.page-admin-reports .admin-report-card__issue strong {
        color: var(--text-main) !important;
    }

    body.page-admin-donations .admin-donations-page,
    body.page-admin-donations .admin-donations-panel,
    body.page-admin-donations .admin-bank-form,
    body.page-admin-donations .admin-bank-card,
    body.page-admin-donations .admin-donation-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-admin-donations .admin-donations-panel__head > i,
    body.page-admin-donations .admin-bank-card__logo,
    body.page-admin-donations .admin-donation-card__icon {
        background: rgba(45, 212, 191, .10);
        color: var(--brand) !important;
    }

    body.page-admin-recitations .admin-recitations-page,
    body.page-admin-recitations .admin-recitations-panel,
    body.page-admin-recitations .admin-application-card,
    body.page-admin-recitations .admin-recitation-row,
    body.page-admin-recitations .admin-application-card__message,
    body.page-admin-recitations .admin-recitation-row__text-stack,
    body.page-admin-recitations .admin-recitation-row__meaning,
    body.page-admin-recitations .admin-recitation-side-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-admin-recitations .admin-application-card__icon {
        background: rgba(45, 212, 191, .10);
        color: var(--brand) !important;
    }
}

@media (max-width: 767.98px) {
    body.page-admin .admin-dashboard-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-dashboard-hero {
        justify-content: center !important;
        text-align: center;
        padding: 1.05rem;
        border-radius: 22px;
    }

    .admin-dashboard-hero-actions {
        justify-content: center;
    }

    .admin-dashboard-overview {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-stat {
        min-height: 96px;
        border-radius: 20px;
    }

    .admin-dashboard-stat--featured {
        min-height: 118px;
        grid-row: auto;
    }

    .admin-dashboard-actions-head {
        display: block;
        text-align: center;
    }

    .admin-action-section {
        padding: .85rem;
        border-radius: 22px;
    }

    .admin-action-section__head {
        align-items: flex-start;
    }

    .admin-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .admin-dashboard-grid .admin-icon-tile {
        min-height: 122px;
        border-radius: 20px;
        padding: .85rem;
    }

    body.page-admin-quran .admin-quran-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-quran-hero {
        min-height: 0;
        justify-content: center !important;
        text-align: center;
        padding: 1.05rem;
        border-radius: 22px;
    }

    .admin-quran-live-badge {
        margin-inline: auto;
    }

    .admin-quran-filter-card,
    .admin-quran-results-shell,
    .admin-quran-card {
        border-radius: 22px;
    }

    .admin-quran-filter-card,
    .admin-quran-results-shell {
        padding: .85rem;
    }

    .admin-quran-filter-head {
        align-items: flex-start;
    }

    .admin-quran-filter-grid,
    .admin-quran-edit-grid {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .admin-quran-field,
    .admin-quran-edit-field,
    .admin-quran-field--keyword,
    .admin-quran-edit-field--audio,
    .admin-quran-edit-field--full,
    .admin-quran-filter-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-quran-filter-actions {
        justify-content: flex-start;
    }

    .admin-quran-filter-actions .icon-action-btn {
        flex: 0 0 auto;
    }

    .admin-quran-results-head {
        justify-content: center;
        text-align: center;
    }

    .admin-quran-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-quran-card-title {
        align-items: flex-start;
    }

    .admin-quran-card-number {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .admin-quran-card-nav {
        margin-inline-start: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .admin-quran-save-row {
        justify-content: center;
    }

    .admin-quran-save-row .icon-action-btn {
        width: 100%;
        max-width: 220px;
    }

    .admin-quran-card .arabic-admin-text {
        min-height: 118px;
        font-size: 1.08rem;
        line-height: 2;
    }

    .admin-quran-card textarea.dhivehi-text {
        min-height: 108px;
    }

    .admin-quran-pagination .pagination {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: .25rem;
        scrollbar-width: none;
    }

    .admin-quran-pagination .pagination::-webkit-scrollbar {
        display: none;
    }

    body.page-admin-reports .admin-reports-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-reports-hero {
        min-height: 0;
        justify-content: center !important;
        text-align: center;
        padding: 1.05rem;
        border-radius: 22px;
    }

    .admin-reports-count-badge {
        margin-inline: auto;
    }

    .admin-reports-filter-card,
    .admin-report-card {
        padding: .85rem;
        border-radius: 22px;
    }

    .admin-reports-filter-head {
        align-items: flex-start;
    }

    .admin-reports-filter-grid,
    .admin-report-card__body,
    .admin-report-card__form {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .admin-reports-field,
    .admin-reports-filter-actions,
    .admin-report-card__status,
    .admin-report-card__note,
    .admin-report-card__save {
        width: 100%;
        grid-column: 1 / -1;
    }

    .admin-reports-filter-actions,
    .admin-report-card__save {
        justify-content: flex-start;
    }

    .admin-report-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-report-card__title {
        align-items: flex-start;
    }

    .admin-report-card__number {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .admin-report-card__save .icon-action-btn {
        width: 100%;
        max-width: 220px;
    }

    body.page-admin-donations .admin-donations-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-donations-hero {
        min-height: 0;
        justify-content: center !important;
        text-align: center;
        padding: 1.05rem;
        border-radius: 22px;
    }

    .admin-donations-hero-badges {
        justify-content: center;
    }

    .admin-donations-layout,
    .admin-donation-card__form {
        grid-template-columns: 1fr;
    }

    .admin-donations-panel,
    .admin-bank-form,
    .admin-bank-card,
    .admin-donation-card {
        padding: .85rem;
        border-radius: 22px;
    }

    .admin-donations-panel__head,
    .admin-donation-card__head {
        align-items: flex-start;
    }

    .admin-donation-card__head {
        flex-direction: column;
    }

    .admin-donation-card__form .icon-action-btn {
        width: 100%;
        max-width: 220px;
    }

    .admin-donations-filter__row {
        flex-wrap: wrap;
    }

    .admin-donations-filter__row .form-select {
        flex-basis: 100%;
    }

    body.page-admin-recitations .admin-recitations-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-recitations-hero {
        min-height: 0;
        justify-content: center !important;
        text-align: center;
        padding: 1.05rem;
        border-radius: 22px;
    }

    .admin-recitations-hero-badges {
        justify-content: center;
    }

    .admin-recitations-panel,
    .admin-application-card,
    .admin-recitation-row {
        padding: .85rem;
        border-radius: 22px;
    }

    .admin-recitation-panel-head,
    .admin-application-card__head {
        align-items: flex-start;
    }

    .admin-application-card__head {
        flex-direction: column;
    }

    .admin-application-card__form,
    .admin-recitation-row__form {
        grid-template-columns: 1fr;
    }

    .admin-application-card__form .icon-action-btn,
    .admin-recitation-row__form .icon-action-btn {
        width: 100%;
        max-width: 220px;
    }

    .admin-recitation-row__save {
        justify-content: flex-start;
    }

    body.page-admin-recitations .admin-recitation-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-admin-recitations .admin-application-filter,
    body.page-admin-recitations .admin-application-filter > div,
    body.page-admin-recitations .admin-recitation-searchbar__field,
    body.page-admin-recitations .admin-recitation-searchbar__actions,
    body.page-admin-recitations .toolbar-toggle-btn,
    body.page-admin-recitations .toolbar-note-group,
    body.page-admin-recitations .toolbar-note-group .input-group,
    body.page-admin-recitations .admin-recitation-row__save {
        width: 100%;
    }

    body.page-admin-recitations .admin-recitation-searchbar__actions,
    body.page-admin-recitations .admin-recitation-row__save {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body.page-admin-recitations .toolbar-note-group .input-group {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    body.page-admin-recitations .admin-recitation-row__header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .75rem;
    }

    body.page-admin-recitations .admin-recitation-row__header .status-pill {
        grid-column: auto;
        justify-self: flex-start;
        max-width: 125px;
    }

    body.page-admin-recitations .admin-recitation-row__meta .fw-semibold,
    body.page-admin-recitations .admin-recitation-row__meta .small,
    body.page-admin-recitations .admin-application-card__title .fw-semibold,
    body.page-admin-recitations .admin-application-card__title .small {
        overflow-wrap: anywhere;
    }

    body.page-admin-recitations .admin-recitation-row__text-stack,
    body.page-admin-recitations .admin-recitation-side-card,
    body.page-admin-recitations .admin-application-card__message {
        padding: .85rem;
        border-radius: 18px;
    }

    body.page-admin-recitations .admin-recitation-row__arabic {
        font-size: clamp(1.28rem, 7vw, 1.8rem) !important;
        line-height: 2;
    }

    body.page-admin-recitations .admin-recitation-row__meaning {
        font-size: .98rem;
        line-height: 1.8;
    }

    body.page-admin-recitations .inline-audio-player {
        width: 100%;
        min-width: 0;
    }

    body.page-admin-recitations .pagination {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: .25rem;
        scrollbar-width: none;
    }

    body.page-admin-recitations .pagination::-webkit-scrollbar {
        display: none;
    }
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 48px;
    border-color: var(--line);
}

textarea.form-control {
    min-height: 120px;
}

.btn.btn-brand {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff;
    border: 0;
    min-height: 48px;
    padding-inline: 1rem;
}

.btn.btn-brand:hover,
.btn.btn-brand:focus {
    color: #fff;
    opacity: .96;
}

body.page-login,
body.page-register {
    background:
        radial-gradient(circle at top right, rgba(226,232,240,.72), transparent 32%),
        radial-gradient(circle at top left, rgba(241,245,249,.82), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.88)),
        var(--page-bg);
}

.auth-page-shell {
    align-items: center;
}

.auth-page-frame {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .78);
    box-shadow:
        0 20px 40px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.auth-page-frame::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem 1rem auto;
    width: 8rem;
    height: 8rem;
    background: radial-gradient(circle, rgba(226,232,240,.34), rgba(226,232,240,0));
    pointer-events: none;
}

.auth-page-intro {
    position: relative;
    z-index: 1;
    padding: .75rem .75rem 0;
}

.auth-page-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: .7rem;
}

.auth-page-card {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .74);
    box-shadow:
        0 16px 36px rgba(15,23,42,.05),
        inset 0 1px 0 rgba(255,255,255,.72);
}

.auth-page-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
}

.auth-page-divider::before,
.auth-page-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.auth-page-divider span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: .15rem .65rem;
    border-radius: 999px;
    background: var(--soft-bg);
    color: var(--text-muted);
    font-family: 'Faruma', 'MV Faseyha', sans-serif;
}

.auth-social-btn {
    min-height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    border-color: rgba(148, 163, 184, .28);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    box-shadow: 0 14px 28px rgba(15,23,42,.06);
}

.auth-social-btn i {
    font-size: 1rem;
}

.auth-page-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex-wrap: wrap;
    width: 100%;
}

.auth-page-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    background: var(--soft-bg);
    color: var(--brand);
    border: 1px solid rgba(15, 118, 110, .12);
    transition: all .18s ease;
}

.auth-page-switch__link:hover,
.auth-page-switch__link:focus {
    background: var(--brand-2);
    color: var(--brand);
    border-color: rgba(15, 118, 110, .2);
}

body.page-login .auth-card .form-label,
body.page-login .auth-card .text-muted,
body.page-register .auth-card .form-label,
body.page-register .auth-card .text-muted,
body.page-login .auth-page-intro .dhivehi-text,
body.page-register .auth-page-intro .dhivehi-text {
    font-family: 'Faruma', 'MV Faseyha', sans-serif;
}

@media (max-width: 767.98px) {
    .auth-page-frame {
        padding: .9rem !important;
        border-radius: 20px;
    }

    .auth-page-card {
        padding: 1rem !important;
        border-radius: 18px;
    }

    .auth-page-intro {
        padding: .25rem .15rem 0;
    }
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}


.playback-controls-card {
    background: var(--soft-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
}

.playback-controls-card .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.playback-controls-card .form-label {
    display: block;
    width: 100%;
    margin-bottom: .5rem;
}

.playback-controls-card--compact {
    padding-bottom: .9rem;
}

.playback-controls-card--compact .icon-action-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.playback-controls-card--compact .icon-action-btn i {
    transition: transform .18s ease;
}

body.page-index .playback-controls-card .form-select,
body.page-index .playback-controls-card .form-select option {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-surah .playback-controls-card .form-select,
body.page-surah .playback-controls-card .form-select option {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-search .playback-controls-card .form-select,
body.page-search .playback-controls-card .form-select option {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-search .search-page-reciter-panel,
body.page-search .search-page-reciter-panel .form-label,
body.page-search .search-page-reciter-panel .form-text,
body.page-search .search-page-reciter-panel .dhivehi-text,
body.page-search .search-page-reciter-panel .dv-ui,
body.page-search .search-page-reciter-panel .form-select,
body.page-search .search-page-reciter-panel .form-select option,
body.page-search .search-page-reciter-panel [data-common-reciter-selector] {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-surah #surahReciterSelectorPanel,
body.page-surah #surahTranslatorSelectorPanel,
body.page-surah #surahReciterSelectorPanel [data-common-reciter-selector],
body.page-surah #surahReciterSelectorPanel .playback-controls-card,
body.page-surah #surahTranslatorSelectorPanel .playback-controls-card,
body.page-surah #surahReciterSelectorPanel .row,
body.page-surah #surahTranslatorSelectorPanel .row,
body.page-surah #surahReciterSelectorPanel [class*="col-"],
body.page-surah #surahTranslatorSelectorPanel [class*="col-"] {
    width: 100%;
    min-width: 0;
}

body.page-surah #surahReciterSelectorPanel .row,
body.page-surah #surahTranslatorSelectorPanel .row {
    row-gap: 1rem;
}

body.page-surah #surahReciterSelectorPanel .row > [class*="col-"],
body.page-surah #surahTranslatorSelectorPanel .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

body.page-surah #surahReciterSelectorPanel .form-label,
body.page-surah #surahReciterSelectorPanel .form-text,
body.page-surah #surahReciterSelectorPanel .dhivehi-text,
body.page-surah #surahReciterSelectorPanel .dv-ui,
body.page-surah #surahTranslatorSelectorPanel .form-label,
body.page-surah #surahTranslatorSelectorPanel .dhivehi-text,
body.page-surah #surahTranslatorSelectorPanel .form-select,
body.page-surah #surahTranslatorSelectorPanel .form-select option {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    direction: rtl;
    text-align: right;
}

body.page-surah #surahReciterSelectorPanel .form-label,
body.page-surah #surahTranslatorSelectorPanel .form-label {
    display: block;
    width: 100%;
    margin-inline-start: auto;
}

body.page-surah .surah-page-toolbar,
body.page-surah .surah-page-ayahs-head {
    min-width: 0;
}

body.page-surah .surah-page-shell {
    text-align: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.90)),
        var(--card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

body.page-surah .surah-page-shell::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.72), transparent 68%);
    pointer-events: none;
}

body.page-surah .surah-page-shell::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.28), transparent 70%);
    pointer-events: none;
}

body.page-surah .surah-page-shell > * {
    position: relative;
    z-index: 1;
}

body.page-surah .surah-page-meta,
body.page-surah .surah-page-control-actions {
    justify-content: center;
}

body.page-surah .surah-page-meta .meta-badge {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-surah .surah-title,
body.page-surah .surah-page-shell .text-secondary,
body.page-surah .surah-page-playback-card .dhivehi-text {
    text-align: center;
}

body.page-surah .surah-page-meta,
body.page-surah .surah-page-control-actions,
body.page-surah .surah-page-nav {
    row-gap: .65rem;
}

body.page-surah .surah-page-control-actions {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    gap: .38rem;
}

body.page-surah .surah-page-control-actions .icon-action-btn {
    flex: 0 0 auto;
}

body.page-surah .surah-page-playback-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.96)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .85);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

body.page-surah .surah-page-reciter-panel .playback-controls-card,
body.page-surah .surah-page-translator-panel .playback-controls-card {
    margin-bottom: 0 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .8);
}

body.page-surah .surah-translator-missing {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    direction: rtl;
    text-align: center;
}

body.page-surah .surah-translator-translation-list {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

body.page-surah .surah-translator-translation {
    padding: .95rem 1rem;
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, .95), rgba(241, 245, 249, .88)),
        var(--soft-bg);
}

body.page-surah .surah-translator-translation .ayah-translation {
    margin: 0;
}

body.page-surah .surah-translator-name {
    margin-top: .55rem;
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    direction: rtl;
    text-align: left;
}

body.page-surah #surahTranslatorSelectorPanel select[multiple] {
    min-height: 8.5rem;
}

@media (prefers-color-scheme: dark) {
    body.page-surah .surah-translator-translation {
        background:
            linear-gradient(180deg, rgba(19, 32, 48, .94), rgba(13, 24, 36, .96)),
            var(--card-bg) !important;
        border-color: rgba(71, 85, 105, .72) !important;
        color: var(--text-main) !important;
    }
}

body.page-surah .surah-page-ayahs-section {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.96)),
        var(--card-bg);
}

body.page-surah .ayah-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border-color: rgba(226, 232, 240, .95);
    box-shadow: 0 18px 36px rgba(15,23,42,.06);
}

body.page-surah .surah-page-ayah-meta {
    min-width: 0;
    text-align: right;
}

body.page-surah .surah-page-ayah-meta .small,
body.page-surah .surah-page-ayahs-head .meta-badge {
    overflow-wrap: anywhere;
}

body.page-surah .surah-page-ayah-actions {
    justify-content: flex-start;
    margin-inline-start: auto;
    margin-inline-end: 0;
    flex-wrap: nowrap;
    gap: .38rem;
}

body.page-surah .surah-bookmarks-modal {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96)),
        var(--card-bg);
}

body.page-surah .surah-bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

body.page-surah .surah-bookmark-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
}

body.page-surah .surah-bookmark-item__content {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

body.page-surah .surah-bookmark-item__meta {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: .35rem;
}

body.page-surah .surah-bookmark-item__arabic {
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 1.9;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-surah .surah-bookmark-item__meaning {
    color: var(--text-muted);
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-surah .surah-mini-player {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 1.5rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: .85rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .26);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.96)),
        var(--card-bg);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
    backdrop-filter: blur(10px);
    z-index: 1080;
}

body.page-surah .surah-mini-player__info {
    min-width: 0;
    flex: 1 1 auto;
}

body.page-surah .surah-mini-player__status,
body.page-surah .surah-mini-player__status-row {
    min-width: 0;
    color: #334155;
    direction: rtl;
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-surah .surah-mini-player__status {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-surah .surah-mini-player__status-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: .75rem;
    font-size: .98rem;
}

body.page-surah .surah-mini-player__surah {
    text-align: right;
}

body.page-surah .surah-mini-player__ayah {
    text-align: left;
    direction: rtl;
}

body.page-surah .surah-mini-player__surah,
body.page-surah .surah-mini-player__ayah {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-surah .surah-mini-player__progress-row {
    display: grid;
    grid-template-columns: auto minmax(110px, 1fr) auto;
    align-items: center;
    gap: .55rem;
    margin-top: .45rem;
}

body.page-surah .surah-mini-player__time {
    min-width: 2.4rem;
    font-size: .78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

body.page-surah .surah-mini-player__seek {
    width: 100%;
    accent-color: var(--brand);
}

body.page-surah .surah-mini-player__actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
}

.global-ayah-stopbar {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 1.5rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .82rem .95rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, 0.88);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    z-index: 1045;
}

.global-ayah-stopbar__status {
    min-width: 0;
    flex: 1 1 auto;
    color: #334155;
    text-align: right;
    direction: rtl;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-ayah-stopbar__actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
}

body.page-search .search-page-shell {
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    overflow: clip;
}

body.page-search {
    padding-bottom: 0;
    background:
        radial-gradient(circle at top right, rgba(226, 232, 240, 0.38), transparent 26%),
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), transparent 22%),
        var(--page-bg);
}

body.page-search .site-main {
    padding-bottom: 0 !important;
}

body.page-search .search-page-shell::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.34), transparent 68%);
    pointer-events: none;
}

body.page-search .search-page-shell::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.16), transparent 70%);
    pointer-events: none;
}

body.page-search .search-page-shell > * {
    position: relative;
    z-index: 1;
}

body.page-search .search-page-layout {
    display: grid;
    gap: 1.1rem;
}

body.page-search .search-page-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.90)),
        var(--card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

body.page-search .search-page-hero::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.72), transparent 68%);
    pointer-events: none;
}

body.page-search .search-page-hero::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.28), transparent 70%);
    pointer-events: none;
}

body.page-search .search-page-hero > * {
    position: relative;
    z-index: 1;
}

body.page-search .search-page-top-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.page-search .search-page-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 54px;
}

body.page-search .search-page-heading__eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    color: #64748b;
}

body.page-search .search-page-control-actions {
    flex-wrap: nowrap;
    width: auto;
    justify-content: flex-end;
    gap: .45rem;
}

body.page-search .search-page-control-actions .icon-action-btn {
    flex: 0 0 auto;
}

body.page-search .search-page-toolbar {
    justify-content: space-between !important;
}

body.page-search .search-page-toolbar > div,
body.page-search .search-page-results-head > div,
body.page-search .search-page-form__field,
body.page-search .search-page-form__actions {
    min-width: 0;
}

body.page-search .search-page-toolbar .dhivehi-text,
body.page-search .search-page-results-head .small {
    overflow-wrap: anywhere;
}

body.page-search .search-page-toolbar .dhivehi-text,
body.page-search .search-page-results-head,
body.page-search .search-page-results-head .small,
body.page-search .search-page-suggestions,
body.page-search .search-page-suggestions a,
body.page-search .search-page-ayah-meta .small,
body.page-search .empty-state {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-search .search-page-playback-card {
    margin-bottom: 0 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.96)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .85);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        0 18px 36px rgba(15,23,42,.06);
}

body.page-search .search-page-reciter-panel .playback-controls-card {
    margin-bottom: 0 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .8);
    box-shadow: 0 16px 32px rgba(15,23,42,.05);
}

body.page-search .search-page-form {
    margin-top: 0;
}

body.page-search .search-page-filter-card {
    margin-top: 1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.page-search .search-page-suggestions-card {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226,232,240,.92);
}

body.page-search .search-page-top-count {
    margin-top: .65rem;
    text-align: left;
}

body.page-search .search-page-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(150px, .7fr) minmax(150px, .7fr) 126px;
    gap: .85rem;
    align-items: stretch;
    direction: rtl;
}

body.page-search .search-page-form__field .form-control {
    min-height: 54px;
    border-radius: 20px;
    direction: rtl;
    text-align: right;
    background: rgba(255,255,255,.94);
    border-color: rgba(148,163,184,.24);
}

body.page-search .search-page-form__field .form-control::placeholder {
    direction: rtl;
    text-align: right;
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    color: #64748b;
    opacity: 1;
}

body.page-search .search-page-form__actions {
    display: flex;
    align-items: stretch;
}

body.page-search .search-page-form__action-group {
    display: grid;
    grid-template-columns: 60px 60px;
    gap: .4rem;
    width: 100%;
}

body.page-search #searchReciterSelectorPanel,
body.page-search #searchReciterSelectorPanel [data-common-reciter-selector],
body.page-search #searchReciterSelectorPanel .playback-controls-card,
body.page-search #searchReciterSelectorPanel .row,
body.page-search #searchReciterSelectorPanel [class*="col-"] {
    width: 100%;
    min-width: 0;
}

body.page-search #searchReciterSelectorPanel .row {
    row-gap: 1rem;
}

body.page-search #searchReciterSelectorPanel .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

body.page-search #searchReciterSelectorPanel .form-label,
body.page-search #searchReciterSelectorPanel .form-text,
body.page-search #searchReciterSelectorPanel .dhivehi-text,
body.page-search #searchReciterSelectorPanel .dv-ui {
    direction: rtl;
    text-align: right;
}

body.page-search #searchReciterSelectorPanel .form-label {
    display: block;
    width: 100%;
    margin-inline-start: auto;
}

body.page-search .search-page-submit {
    min-height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #64748b, #475569);
    border: 1px solid rgba(71,85,105,.18);
    box-shadow: 0 12px 24px rgba(51,65,85,.14);
}

body.page-search .search-page-submit:hover,
body.page-search .search-page-submit:focus {
    color: #fff;
    opacity: .98;
}

body.page-search .search-page-audio-trigger {
    min-height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.98), rgba(203, 213, 225, 0.94));
    border: 1px solid rgba(148,163,184,.24);
    box-shadow: 0 12px 24px rgba(51,65,85,.12);
}

body.page-search .search-page-audio-trigger:hover,
body.page-search .search-page-audio-trigger:focus {
    color: #0f172a;
}

body.page-search .search-page-audio-trigger.is-listening {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-color: transparent;
}

body.page-search .search-page-audio-trigger__spinner {
    width: 1rem;
    height: 1rem;
    border-width: .14em;
}

body.page-search .search-page-audio-trigger.is-listening .search-page-audio-trigger__icon {
    display: none;
}

body.page-search .search-page-audio-status {
    margin-top: .85rem;
    padding: .8rem 1rem;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.92);
    border: 1px solid rgba(203, 213, 225, 0.84);
    color: #475569;
    text-align: right;
    direction: rtl;
}

body.page-search .search-page-submit__spinner {
    width: 1rem;
    height: 1rem;
    border-width: .14em;
}

body.page-search .search-page-submit.is-busy .search-page-submit__icon {
    display: none;
}

body.page-search .search-page-reset {
    min-height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148,163,184,.24);
    color: #475569;
}

body.page-search .search-page-reset:hover,
body.page-search .search-page-reset:focus {
    color: #0f172a;
    background: rgba(248,250,252,.98);
}

body.page-search .search-page-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

body.page-search .search-page-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(148,163,184,.2);
    color: #475569;
}

body.page-search .search-page-results-section {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.96)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .72);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

body.page-search .search-page-results {
    display: grid;
    gap: 1rem;
}

body.page-search .search-page-results-head {
    min-width: 0;
}

body.page-search .search-page-suggestions {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    white-space: nowrap;
    cursor: grab;
}

body.page-search .search-page-suggestions::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

body.page-search .search-page-suggestions:active {
    cursor: grabbing;
}

body.page-search .search-page-suggestions.is-dragging {
    cursor: grabbing;
}

body.page-search .search-page-suggestions.is-dragging .suggestion-chip,
body.page-search .search-page-suggestions.is-dragging a {
    pointer-events: none;
}

body.page-search .search-page-result-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border-color: rgba(226, 232, 240, .95);
    box-shadow: 0 18px 36px rgba(15,23,42,.06);
}

body.page-search .search-page-ayah-meta {
    min-width: 0;
    text-align: right;
}

body.page-search .search-page-ayah-meta .small {
    overflow-wrap: anywhere;
}

body.page-search .search-page-ayah-actions {
    justify-content: flex-start;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

body.page-search .search-page-suggestions .suggestion-pill,
body.page-search .search-page-suggestions a {
    text-decoration: none;
    flex: 0 0 auto;
}

body.page-search .search-page-suggestions .suggestion-chip {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.92));
    border-color: rgba(203,213,225,.72);
    color: #334155;
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
}

body.page-search .search-page-suggestions .suggestion-chip:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.96));
    color: #0f172a;
}

body.page-profile {
    background:
        radial-gradient(circle at top right, rgba(226, 232, 240, 0.38), transparent 24%),
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), transparent 22%),
        var(--page-bg);
}

body.page-profile .profile-dashboard-shell {
    display: grid;
    gap: 1rem;
}

body.page-profile .profile-dashboard-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.90)),
        var(--card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

body.page-profile .profile-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.72), transparent 68%);
    pointer-events: none;
}

body.page-profile .profile-dashboard-hero::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.24), transparent 70%);
    pointer-events: none;
}

body.page-profile .profile-dashboard-hero > * {
    position: relative;
    z-index: 1;
}

body.page-profile .profile-dashboard-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr);
    gap: 1.25rem;
    align-items: stretch;
}

body.page-profile .profile-dashboard-quickstats,
body.page-profile .profile-reciter-grid,
body.page-profile .profile-action-grid {
    display: grid;
    gap: 1rem;
}

body.page-profile .profile-dashboard-quickstats,
body.page-profile .profile-reciter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-profile .profile-kpi-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .72);
    box-shadow: 0 16px 34px rgba(15,23,42,.05);
}

body.page-profile .profile-kpi-card--wide {
    grid-column: 1 / -1;
}

body.page-profile .profile-kpi-card__label,
body.page-profile .profile-summary-card__eyebrow {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    color: #64748b;
}

body.page-profile .profile-kpi-card__value {
    margin-top: .35rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

body.page-profile .profile-kpi-card__value--status {
    font-size: 1rem;
}

body.page-profile .profile-kpi-card__meta {
    margin-top: .6rem;
    color: #475569;
}

body.page-profile .profile-summary-card,
body.page-profile .profile-actions-panel,
body.page-profile .profile-reciter-panel,
body.page-profile .profile-danger-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.96)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .72);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

body.page-profile .profile-summary-card {
    height: 100%;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(203, 213, 225, .74);
}

body.page-profile .profile-summary-card__head,
body.page-profile .profile-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.page-profile .profile-summary-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

body.page-profile .profile-summary-list {
    display: grid;
    gap: .85rem;
}

body.page-profile .profile-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

body.page-profile .profile-summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

body.page-profile .profile-summary-row .dv-ui {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-profile .profile-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-profile .profile-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    color: #0f172a;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    border: 1px solid rgba(203,213,225,.72);
    box-shadow: 0 14px 30px rgba(15,23,42,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.page-profile .profile-action-card--button {
    width: 100%;
    min-height: 100%;
    text-align: inherit;
    cursor: pointer;
    font: inherit;
}

body.page-profile .profile-action-card--static {
    cursor: default;
}

body.page-profile .profile-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15,23,42,.07);
    color: #0f172a;
}

body.page-profile .profile-action-card--static:hover {
    transform: none;
}

body.page-profile #teacherProfileModal .modal-dialog,
body.page-profile #translatorProfileModal .modal-dialog {
    width: min(920px, calc(100vw - 1rem));
    margin-inline: auto;
}

body.page-profile #teacherProfileModal .modal-body,
body.page-profile #translatorProfileModal .modal-body {
    max-height: min(68vh, 700px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.teacher-profile-form {
    display: contents;
}

.teacher-profile-form__footer {
    position: sticky;
    bottom: 0;
    justify-content: flex-end;
    border-top: 1px solid rgba(203, 213, 225, .65);
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.98));
    z-index: 2;
}

.teacher-photo-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    border: 1px dashed rgba(100, 116, 139, .45);
    border-radius: 20px;
    background: rgba(248,250,252,.82);
    padding: 1rem;
    cursor: pointer;
}

.teacher-photo-upload--preview {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 126px;
}

.teacher-photo-upload input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.teacher-photo-upload__preview {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: rgba(20, 184, 166, .1);
    border: 1px solid rgba(20, 184, 166, .2);
}

.teacher-photo-upload__preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-photo-upload__preview img:not([src]),
.teacher-photo-upload__preview img[src=""] {
    display: none;
}

.teacher-photo-upload__placeholder {
    font-size: 1.8rem;
}

.teacher-photo-upload__content {
    min-width: 0;
    display: grid;
    gap: .25rem;
}

.teacher-photo-upload__text {
    min-width: 0;
    color: var(--text-muted);
}

body.page-profile .profile-action-card i {
    font-size: 1.15rem;
    color: #475569;
}

body.page-profile .profile-action-card .dhivehi-text,
body.page-profile .profile-danger-panel .dhivehi-text,
body.page-profile .profile-section-head .dhivehi-text,
body.page-profile #teacherProfileModal .dhivehi-text,
body.page-profile #translatorProfileModal .dhivehi-text,
body.page-translator .dhivehi-text,
body.page-admin-teachers .dhivehi-text,
body.page-admin-translators .dhivehi-text {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-translator .translator-page-shell {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--soft-shadow);
}

body.page-translator .translator-picker-card,
body.page-translator .translator-editor-card,
body.page-translator .translator-recent-card {
    padding: 1.35rem;
}

body.page-translator .form-select,
body.page-translator .form-control,
body.page-translator .translator-textarea {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-translator .translator-reference-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.78));
}

body.page-translator .translator-reference-card__meta {
    color: var(--muted-text);
    margin-bottom: 0.85rem;
}

body.page-translator .translator-reference-card__ayah {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 2.1;
    text-align: right;
}

body.page-translator .translator-reference-card__meaning {
    margin-top: 1rem;
    line-height: 2;
    color: var(--body-color);
}

body.page-translator .translator-recent-list {
    display: grid;
    gap: 0.85rem;
}

body.page-translator .translator-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 0.95rem;
    color: inherit;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.page-translator .translator-recent-item:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

body.page-translator .translator-recent-item__content {
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}

body.page-translator .translator-recent-item__delete {
    flex: 0 0 auto;
}

body.page-translator .translator-recent-item__meta,
body.page-translator .translator-recent-item__text {
    display: block;
}

body.page-translator .translator-recent-item__meta {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

body.page-translator .translator-recent-item__status {
    display: inline-flex;
    margin-bottom: 0.55rem;
}

body.page-translator .translator-recent-item__text {
    line-height: 1.9;
}

body.page-translator .translator-recent-item__note {
    display: block;
    margin-top: 0.65rem;
    color: var(--muted-text);
    font-size: 0.9rem;
    line-height: 1.8;
}

body.page-admin-translations .admin-translation-filter {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) minmax(220px, 1fr) minmax(150px, .75fr) auto;
    gap: .85rem;
    align-items: end;
    width: min(100%, 900px);
}

body.page-admin-translations .admin-translation-filter > div {
    min-width: 0;
}

body.page-admin-translations .admin-translation-filter .form-select {
    min-height: 54px;
}

.admin-translation-filter__actions {
    display: flex;
    gap: .55rem;
    align-items: center;
}

.admin-translation-card__text {
    grid-template-columns: 1fr;
}

body.page-admin-translations .translator-reference-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    padding: 1.15rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.84)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

body.page-admin-translations .translator-reference-card__ayah {
    font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    line-height: 2.1;
    text-align: right;
}

body.page-admin-translations .translator-reference-card__meaning {
    margin-top: 0.85rem;
    line-height: 1.9;
}

body.page-admin-translations .dhivehi-text,
body.page-admin-translations .form-select,
body.page-admin-translations .form-control {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

@media (max-width: 575.98px) {
    body.page-translator .translator-recent-item {
        align-items: flex-start;
        padding: 0.85rem;
    }
}

@media (max-width: 1199.98px) {
    body.page-admin-translations .admin-translations-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-admin-translations .admin-translation-filter {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    body.page-admin-translations .admin-translation-filter {
        grid-template-columns: 1fr 1fr;
    }

    body.page-admin-translations .admin-translation-filter__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    body.page-admin-translations .admin-translation-filter {
        grid-template-columns: 1fr;
    }

    body.page-admin-translations .admin-translation-filter__actions .icon-action-btn {
        flex: 1 1 0;
    }
}

@media (prefers-color-scheme: dark) {
    body.page-translator .translator-reference-card,
    body.page-translator .translator-recent-item,
    body.page-admin-translations .translator-reference-card {
        background: rgba(15, 23, 42, 0.78);
        border-color: rgba(148, 163, 184, 0.22);
    }

    body.page-translator .translator-reference-card__meaning,
    body.page-translator .translator-reference-card__ayah,
    body.page-translator .translator-recent-item__text,
    body.page-admin-translations .translator-reference-card__ayah,
    body.page-admin-translations .translator-reference-card__meaning {
        color: var(--body-color);
    }
}

.admin-teachers-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 8%, rgba(15, 118, 110, .11), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .85);
}

.admin-teachers-hero {
    min-height: 132px;
}

.admin-teachers-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-teachers-subtitle {
    max-width: 760px;
}

.admin-teachers-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.admin-teachers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(203,213,225,.78);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,245,249,.86)),
        var(--soft-bg);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .05);
}

.admin-teachers-toolbar__title {
    font-weight: 800;
    color: var(--text-main);
}

.admin-teacher-filter {
    display: flex;
    gap: .8rem;
    align-items: stretch;
    width: min(100%, 420px);
}

.admin-teacher-filter .form-select {
    min-height: 54px;
}

.admin-teacher-list {
    display: grid;
    gap: 1rem;
}

.admin-teacher-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203,213,225,.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 98% 0%, rgba(15, 118, 110, .08), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    box-shadow: 0 20px 46px rgba(15,23,42,.07);
    padding: clamp(1rem, 2vw, 1.45rem);
}

.admin-teacher-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block: 1.25rem;
    width: 5px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--brand), var(--accent));
}

.admin-teacher-card__head,
.admin-teacher-review {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.admin-teacher-card__head {
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.admin-teacher-card__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-teacher-card__photo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 26px;
    object-fit: cover;
    border: 1px solid rgba(203,213,225,.9);
    box-shadow: 0 12px 26px rgba(15,23,42,.12);
}

.admin-teacher-card__photo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: rgba(248,250,252,.88);
}

.admin-teacher-card__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: .9rem;
}

.admin-teacher-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-teacher-card__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.admin-teacher-card__grid > div,
.admin-teacher-card__text > div {
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 20px;
    background: rgba(248,250,252,.78);
    padding: .9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.admin-teacher-card__grid span,
.admin-teacher-card__text h3 {
    display: block;
    color: var(--text-muted);
    font-size: .84rem;
    margin: 0 0 .35rem;
}

.admin-teacher-card__grid strong {
    display: block;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.admin-teacher-card__text {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.admin-teacher-card__text p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-main);
}

.admin-teacher-review {
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.72);
}

.admin-teacher-review > div:first-child {
    flex: 1 1 auto;
}

.admin-teacher-review__actions {
    display: flex;
    gap: .6rem;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .admin-teachers-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-teacher-filter {
        width: 100%;
    }

    .admin-teacher-card__grid,
    .admin-teacher-card__text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.page-profile #teacherProfileModal .modal-dialog,
    body.page-profile #translatorProfileModal .modal-dialog {
        width: calc(100vw - .5rem);
        margin: .25rem auto;
        min-height: calc(100dvh - .5rem);
        align-items: stretch;
    }

    body.page-profile #teacherProfileModal .modal-content,
    body.page-profile #translatorProfileModal .modal-content {
        max-height: calc(100dvh - .5rem);
        border-radius: 22px;
    }

    body.page-profile #teacherProfileModal .modal-body,
    body.page-profile #translatorProfileModal .modal-body {
        max-height: calc(100dvh - 8.8rem);
        padding: 1rem;
    }

    .teacher-photo-upload {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: .9rem;
    }

    .teacher-photo-upload--preview {
        min-height: auto;
    }

    .teacher-photo-upload__preview {
        width: 112px;
        height: 112px;
    }

    .admin-teacher-filter,
    .admin-teachers-hero,
    .admin-teachers-hero-actions,
    .admin-teacher-card__head,
    .admin-teacher-review {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-teachers-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-teachers-hero {
        min-height: 0;
        justify-content: center !important;
        text-align: center;
    }

    .admin-teachers-hero-actions {
        justify-content: center;
    }

    .admin-teachers-toolbar,
    .admin-teacher-card {
        border-radius: 22px;
    }

    .admin-teacher-card__grid,
    .admin-teacher-card__text {
        grid-template-columns: 1fr;
    }

    .admin-teacher-review__actions {
        justify-content: center;
    }

    .admin-teacher-review__actions .icon-action-btn {
        flex: 1 1 0;
        max-width: 86px;
    }

    .admin-teacher-card__identity {
        align-items: flex-start;
    }

    .admin-teacher-card__photo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    body.page-admin-teachers .admin-teachers-page,
    body.page-admin-teachers .admin-teachers-toolbar,
    body.page-admin-teachers .admin-teacher-review,
    body.page-admin-teachers .admin-teacher-card,
    body.page-admin-teachers .admin-teacher-card__grid > div,
    body.page-admin-teachers .admin-teacher-card__text > div,
    body.page-admin-translators .admin-teachers-page,
    body.page-admin-translators .admin-teachers-toolbar,
    body.page-admin-translators .admin-teacher-review,
    body.page-admin-translators .admin-teacher-card,
    body.page-admin-translators .admin-teacher-card__grid > div,
    body.page-admin-translators .admin-teacher-card__text > div,
    body.page-profile .teacher-photo-upload {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }
}

@media (max-width: 991.98px) {
    body.page-profile .profile-dashboard-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    body.page-profile .profile-dashboard-hero,
    body.page-profile .profile-actions-panel,
    body.page-profile .profile-reciter-panel,
    body.page-profile .profile-danger-panel {
        padding: 1rem !important;
        border-radius: 20px;
    }

    body.page-profile .profile-dashboard-quickstats,
    body.page-profile .profile-reciter-grid,
    body.page-profile .profile-action-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-profile .profile-summary-card {
        border-radius: 20px;
    }

    body.page-profile .profile-summary-row,
    body.page-profile .profile-section-head,
    body.page-profile .profile-summary-card__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    body.page-search {
        padding-bottom: 88px;
    }

    body.page-search .search-page-shell,
    body.page-search .search-page-layout {
        gap: .85rem;
    }

    body.page-search .search-page-hero,
    body.page-search .search-page-results-section,
    body.page-search .search-page-result-card {
        border-radius: 20px;
    }

    body.page-search .search-page-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    body.page-search .search-page-form__field--query,
    body.page-search .search-page-form__actions {
        grid-column: 1 / -1;
    }

    body.page-search .search-page-form__action-group {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    body.page-search .search-page-toolbar {
        justify-content: space-between !important;
        align-items: flex-start !important;
    }

    body.page-search .search-page-top-card {
        padding: .85rem;
        border-radius: 20px;
    }

    body.page-search .search-page-results-head {
        align-items: flex-start !important;
    }

    body.page-search .search-page-ayah-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        margin-inline-start: 0;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.page-search .search-page-ayah-actions::-webkit-scrollbar {
        display: none;
    }

    body.page-search .search-page-ayah-actions .icon-action-btn {
        flex: 0 0 auto;
    }

    body.page-search .search-page-form {
        row-gap: .85rem;
    }

    body.page-search .search-page-hero,
    body.page-search .search-page-results-section {
        padding: 1rem !important;
    }
}

body.page-surah .ayah-card {
    overflow: hidden;
}

body.page-surah .ayah-translation {
    overflow-wrap: anywhere;
}

body.page-surah .inline-audio-player {
    width: 100%;
    max-width: none;
}

@media (max-width: 767.98px) {
    body.page-surah .surah-page-shell,
    body.page-surah .surah-page-playback-card,
    body.page-surah .surah-page-ayahs-section {
        padding: 1rem !important;
        border-radius: 20px;
    }

    body.page-surah .ayah-card {
        padding: 1rem;
        border-radius: 20px;
    }

    body.page-surah .surah-page-toolbar,
    body.page-surah .surah-page-ayahs-head {
        align-items: flex-start !important;
    }

    body.page-surah .surah-page-control-actions {
        overflow-x: visible;
        overflow-y: hidden;
        padding-bottom: .15rem;
        gap: .28rem;
    }

    body.page-surah .surah-page-control-actions .icon-action-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 13px;
        font-size: .92rem;
    }

    body.page-surah .surah-page-ayah-actions {
        justify-content: flex-start;
        width: auto;
        flex-wrap: nowrap;
        gap: .28rem;
        margin-inline-start: auto;
    }

    body.page-surah .surah-page-ayah-actions .icon-action-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
        font-size: .88rem;
    }

    body.page-surah .surah-bookmark-item {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    body.page-surah .surah-bookmark-item .icon-action-btn {
        justify-self: flex-start;
    }

    body.page-surah .surah-mini-player {
        width: calc(100vw - 1rem);
        bottom: calc(78px + env(safe-area-inset-bottom));
        padding: .75rem .85rem;
        gap: .7rem;
        align-items: stretch;
        flex-direction: column;
    }

    body.page-surah .surah-mini-player__status {
        font-size: .92rem;
    }

    body.page-surah .surah-mini-player__actions {
        justify-content: center;
        gap: .45rem;
    }

    body.page-surah .surah-mini-player__actions .icon-action-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px;
    }

    .global-ayah-stopbar {
        width: calc(100vw - 1rem);
        bottom: calc(78px + env(safe-area-inset-bottom));
        padding: .75rem .85rem;
        gap: .7rem;
    }

    .global-ayah-stopbar__status {
        font-size: .92rem;
    }
}

.donation-page-card .form-label,
.donation-page-card .form-text,
.donation-page-card .text-muted {
    letter-spacing: 0;
}

body.page-donations {
    background:
        radial-gradient(circle at top right, rgba(226, 232, 240, 0.22), transparent 24%),
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 20%),
        var(--page-bg);
}

body.page-donations .section-card,
body.page-donations .donation-page-card,
body.page-donations .donation-history-card,
body.page-donations .donation-info-card,
body.page-donations .donation-form-card,
body.page-donations .donation-form,
body.page-donations .bank-card,
body.page-donations .modern-table,
body.page-donations .empty-state {
    direction: rtl;
    text-align: right;
}

body.page-donations .form-label,
body.page-donations .form-text,
body.page-donations .form-control,
body.page-donations .form-select,
body.page-donations .form-control::placeholder,
body.page-donations .text-muted,
body.page-donations .empty-state {
    text-align: right;
}

body.page-donations .dhivehi-text,
body.page-donations .dv-ui,
body.page-donations .form-label,
body.page-donations .form-text,
body.page-donations .text-muted,
body.page-donations .empty-state,
body.page-donations .donation-bank-card-body,
body.page-donations .donation-bank-card-body div,
body.page-donations .donation-bank-card-body small {
    line-height: 1.85;
    overflow: visible;
}

body.page-donations .table.modern-table th,
body.page-donations .table.modern-table td {
    text-align: right;
}

body.page-playlist,
body.page-reports {
    background:
        radial-gradient(circle at top right, rgba(226, 232, 240, 0.22), transparent 24%),
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 20%),
        var(--page-bg);
}

.playlist-page-card,
.reports-page-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.90)),
        var(--card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.playlist-page-card::before,
.reports-page-card::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.72), transparent 68%);
    pointer-events: none;
}

.playlist-page-card::after,
.reports-page-card::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.28), transparent 70%);
    pointer-events: none;
}

.playlist-page-card > *,
.reports-page-card > * {
    position: relative;
    z-index: 1;
}

body.page-playlist .playback-controls-card,
body.page-playlist .playlist-item,
body.page-reports .reports-page-table {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.96)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .82);
    box-shadow: 0 18px 36px rgba(15,23,42,.06);
}

body.page-playlist .playlist-item {
    border-color: rgba(226, 232, 240, .95);
}

body.page-playlist #playlistReciterSelectorPanel,
body.page-playlist #playlistReciterSelectorPanel [data-common-reciter-selector],
body.page-playlist #playlistReciterSelectorPanel .playback-controls-card,
body.page-playlist #playlistReciterSelectorPanel .row,
body.page-playlist #playlistReciterSelectorPanel [class*="col-"] {
    width: 100%;
    min-width: 0;
}

body.page-playlist #playlistReciterSelectorPanel .row {
    row-gap: 1rem;
}

body.page-playlist #playlistReciterSelectorPanel .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.playlist-repeat-control {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 48px;
    padding: .35rem .45rem .35rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--control-bg);
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.playlist-repeat-control span {
    white-space: nowrap;
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    font-size: .88rem;
}

.playlist-repeat-control .form-select {
    width: auto;
    min-width: 74px;
    border-radius: 999px;
    padding-inline-start: .75rem;
    padding-inline-end: 1.8rem;
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.playlist-card-actions {
    align-items: center;
}

body.page-playlist #playlistReciterSelectorPanel .form-label,
body.page-playlist #playlistReciterSelectorPanel .form-text,
body.page-playlist #playlistReciterSelectorPanel .dhivehi-text,
body.page-playlist #playlistReciterSelectorPanel .dv-ui,
body.page-playlist #playlistReciterSelectorPanel .form-select,
body.page-playlist #playlistReciterSelectorPanel .form-select option,
body.page-playlist #playlistReciterSelectorPanel .form-control,
body.page-playlist #playlistReciterSelectorPanel .form-control::placeholder {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    direction: rtl;
    text-align: right;
}

body.page-playlist #playlistReciterSelectorPanel .form-label {
    display: block;
    width: 100%;
    margin-inline-start: auto;
}

body.page-playlist .playlist-page-reciter-panel .playback-controls-card {
    margin-bottom: 0 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .8);
}

body.page-playlist .playlist-page-card > .d-flex .icon-actions-group,
body.page-playlist .playlist-page-item .icon-actions-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.page-playlist .playlist-page-card > .d-flex .icon-actions-group::-webkit-scrollbar,
body.page-playlist .playlist-page-item .icon-actions-group::-webkit-scrollbar {
    display: none;
}

body.page-playlist .text-muted,
body.page-reports .text-muted,
body.page-reports .reports-page-table th {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-reports .reports-page-table {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

body.page-reports .reports-page-table td,
body.page-reports .reports-page-table th {
    background: transparent;
}

.reports-page-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reports-page-item {
    border-radius: var(--radius-lg);
}

.reports-page-item__ayah {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.reports-page-item__issue {
    color: var(--text-main);
    font-weight: 600;
}

.reports-page-item__meta {
    display: grid;
    gap: .75rem;
}

.reports-page-item__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.reports-page-item__meta-row > span:last-child {
    text-align: left;
}

.donation-page-card,
.donation-history-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.90)),
        var(--card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.donation-page-card::before,
.donation-history-card::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.72), transparent 68%);
    pointer-events: none;
}

.donation-page-card::after,
.donation-history-card::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.28), transparent 70%);
    pointer-events: none;
}

.donation-page-card > *,
.donation-history-card > * {
    position: relative;
    z-index: 1;
}

.donation-info-card,
.donation-form-card,
.donation-history-card {
    border-radius: var(--radius-xl);
}

.donation-info-card,
.donation-form-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.96)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .82);
    box-shadow: 0 18px 36px rgba(15,23,42,.06);
}

.donation-page-card .meta-badge,
.donation-history-card .meta-badge {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,163,184,.22);
}

.donation-page-card .bank-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.96)),
        var(--card-bg);
    border-color: rgba(226,232,240,.95);
    box-shadow: 0 14px 30px rgba(15,23,42,.05);
}

.donation-page-card .bank-card .fw-semibold {
    color: #0f172a;
}

.donation-history-list .donation-history-item {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.96)),
        var(--card-bg);
    border-color: rgba(226,232,240,.95);
    box-shadow: 0 14px 30px rgba(15,23,42,.05);
}

.donation-history-item__amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    font-family: Tahoma, 'Segoe UI', sans-serif !important;
}

.donation-history-item__bank {
    font-family: Tahoma, 'Segoe UI', sans-serif !important;
}

.donation-history-item__meta {
    display: grid;
    gap: .85rem;
}

.donation-history-item__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(226,232,240,.9);
}

.donation-history-item__link {
    text-decoration: none;
}

.donation-history-item__link:hover {
    text-decoration: underline;
}

.admin-bank-logo-preview {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: .5rem;
}

.donation-bank-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-direction: row-reverse;
    font-family: Tahoma, 'Segoe UI', sans-serif !important;
}

.donation-bank-logo-wrap {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.donation-bank-logo {
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    object-fit: contain;
}

.donation-bank-card-body {
    min-width: 0;
    flex: 1 1 auto;
    font-family: Tahoma, 'Segoe UI', sans-serif !important;
    text-align: right;
}

.donation-bank-card-body .fw-semibold,
.donation-bank-card-body .text-muted,
.donation-bank-card-body div,
.donation-bank-card-body small {
    font-family: Tahoma, 'Segoe UI', sans-serif !important;
}

.donation-bank-card-body .dhivehi-text,
.donation-bank-card-body .dhivehi-text.small,
.donation-bank-card-body .dhivehi-text.text-muted {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

body.page-donations .donation-page-card .bank-card,
body.page-donations .donation-page-card .bank-card .donation-bank-card-head,
body.page-donations .donation-page-card .bank-card .donation-bank-card-body,
body.page-donations .donation-page-card .bank-card .donation-bank-card-body .fw-semibold,
body.page-donations .donation-page-card .bank-card .donation-bank-card-body div,
body.page-donations .donation-page-card .bank-card .donation-bank-card-body .text-muted {
    font-family: Tahoma, 'Segoe UI', sans-serif !important;
}

body.page-donations .donation-page-card .bank-card .donation-bank-card-body .dhivehi-text,
body.page-donations .donation-page-card .bank-card .donation-bank-card-body .dhivehi-text.small,
body.page-donations .donation-page-card .bank-card .donation-bank-card-body .dhivehi-text.text-muted {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

@media (max-width: 767.98px) {
    .donation-page-card,
    .donation-history-card {
        padding: 1rem !important;
        border-radius: 20px;
    }

    .donation-info-card,
    .donation-form-card {
        padding: 0 !important;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .donation-page-card .row {
        --bs-gutter-y: 1rem;
    }

    .donation-bank-card-head {
        align-items: center;
    }

    body.page-donations .dhivehi-text,
    body.page-donations .dv-ui,
    body.page-donations .form-label,
    body.page-donations .form-text,
    body.page-donations .text-muted,
    body.page-donations .empty-state,
    body.page-donations .donation-bank-card-body,
    body.page-donations .donation-bank-card-body div,
    body.page-donations .donation-bank-card-body small {
        line-height: 1.95;
        padding-top: .08rem;
    }

    .donation-bank-logo-wrap,
    .admin-bank-logo-preview {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 16px;
    }
}

@media (max-width: 767.98px) {
    .playlist-page-card,
    .reports-page-card {
        padding: 1rem !important;
        border-radius: 20px;
    }

    body.page-playlist .playlist-item {
        padding: 1rem;
        border-radius: 20px;
    }

    body.page-playlist .playlist-card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.page-playlist .playlist-repeat-control {
        flex: 1 1 150px;
        justify-content: space-between;
        border-radius: 18px;
    }

    body.page-reports .reports-page-item {
        padding: .95rem;
        border-radius: 18px;
    }

    body.page-reports .reports-page-item__meta-row {
        flex-direction: column;
        gap: .35rem;
    }

    body.page-reports .reports-page-item__meta-row > span:last-child {
        text-align: right;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body.page-index .home-index-shell,
    body.page-index .home-content-grid {
        gap: 1rem;
    }

    body.page-index .home-hero-card,
    body.page-index .home-featured-ayah,
    body.page-index .home-short-videos,
    body.page-index .home-surah-section {
        border-radius: 20px;
    }

    body.page-index .home-hero-card,
    body.page-index .home-featured-ayah,
    body.page-index .home-short-videos,
    body.page-index .home-surah-section,
    body.page-index .home-surah-card {
        padding: 1rem;
    }

    .home-short-videos__head {
        align-items: flex-start;
    }

    .home-short-videos__hint,
    .home-short-videos__eyebrow {
        font-size: .78rem;
    }

    .home-short-videos__rail {
        grid-auto-columns: minmax(112px, 34vw);
        gap: .7rem;
        margin-inline: -.15rem;
    }

    .home-print-pdf-rail {
        grid-auto-columns: minmax(112px, 34vw);
        gap: .7rem;
        margin-inline: -.15rem;
    }

    .home-short-video-card {
        border-radius: 18px;
    }

    .home-short-video-card__play {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .short-video-modal__player-card {
        width: min(100%, 340px);
        height: min(84svh, 680px);
        margin-inline: auto;
    }

    .short-video-modal__comment-list {
        max-height: 220px;
    }
}

@media (max-width: 767.98px) {
    body.page-surahs .section-card,
    body.page-surahs .surah-card {
        padding: 1rem;
        border-radius: 20px;
    }
}

.ayah-arabic .ayah-number-badge {
    margin-inline-start: .48rem;
    vertical-align: middle;
}


.playback-controls-card {
    background: var(--soft-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
}

.ayah-card-active {
    border-color: rgba(100, 116, 139, .52) !important;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .22), 0 20px 40px rgba(15, 23, 42, .10);
    background: linear-gradient(180deg, #f8fafc 0%, #d6dde7 100%);
}

.ayah-card-active .ayah-arabic {
    color: #0f172a !important;
}

.ayah-card-active .ayah-translation {
    color: #1e293b;
}

.focus-ring-soft {
    box-shadow: 0 0 0 3px rgba(15,118,110,.16), var(--shadow) !important;
}

.inline-audio-player {
    width: min(280px, 100%);
    height: 42px;
}

.admin-quran-card textarea,
.admin-quran-card input,
.admin-quran-card select {
    direction: ltr;
}

.admin-quran-card textarea.dhivehi-text {
    direction: rtl;
}

.arabic-admin-text {
    font-family: 'QuranArabic', serif !important;
    font-size: 1.45rem;
    line-height: 2.1;
    direction: rtl;
    text-align: right;
}

.page-link.ajax-page-link {
    border-radius: 14px;
    min-width: 44px;
    text-align: center;
}

.surah-pagination {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    align-items: center;
}

.surah-pagination__summary {
    color: var(--text-muted);
    font-size: .95rem;
}

.surahs-search-form__group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

#surahsPanel {
    position: relative;
    transition: opacity .18s ease;
}

#surahsPanel.is-loading {
    opacity: .72;
    pointer-events: none;
}

#surahsPanel.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(246, 247, 251, .55);
    backdrop-filter: blur(1px);
}

#surahsPanel.is-loading::before {
    content: '';
    position: absolute;
    top: 2.2rem;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin-left: -1rem;
    border-radius: 50%;
    border: 3px solid rgba(100, 116, 139, .22);
    border-top-color: #475569;
    animation: surahs-panel-spin .8s linear infinite;
    z-index: 2;
}

@media (max-width: 767.98px) {
    #surahsPanel.is-loading {
        opacity: .96;
    }

    #surahsPanel.is-loading::after {
        background: transparent;
        backdrop-filter: none;
    }
}

.surahs-search-form .form-control {
    min-height: 48px;
    border-radius: 0 18px 18px 0;
    border-color: rgba(148,163,184,.24);
    background: rgba(255,255,255,.92);
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
    border-right: 0;
}

.surahs-search-form__submit {
    min-height: 48px;
    min-width: 56px;
    border-radius: 18px 0 0 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: linear-gradient(135deg, #64748b, #475569) !important;
    border: 1px solid rgba(71,85,105,.18) !important;
    box-shadow: 0 12px 24px rgba(51,65,85,.14);
}

.surahs-search-form__submit .btn-spinner {
    width: 1rem;
    height: 1rem;
    border-width: .14em;
}

.surahs-search-form__submit .btn-spinner:not(.d-none) + .surahs-search-form__icon {
    display: none;
}

.surahs-search-form__submit:hover {
    opacity: .98;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .surahs-search-form__group {
        width: 100%;
    }
}

.surah-pagination__list {
    gap: .45rem;
    flex-wrap: wrap;
}

.surah-pagination__link,
.surah-pagination__number,
.surah-pagination__ellipsis {
    border-radius: 999px;
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .7rem 1rem;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.92);
    color: #334155;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.surah-pagination__number {
    min-width: 46px;
    padding-inline: .85rem;
}

.surah-pagination .page-link:hover {
    color: #0f172a;
    background: rgba(241,245,249,.98);
    border-color: rgba(100,116,139,.26);
}

.surah-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #475569, #334155);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(51,65,85,.22);
}

.surah-pagination .page-item.disabled .page-link {
    background: rgba(248,250,252,.88);
    color: #94a3b8;
    border-color: rgba(203,213,225,.7);
    box-shadow: none;
}

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

@media (max-width: 767.98px) {
    body.page-surahs .home-surah-section,
    body.page-surahs #surahsPanel {
        min-width: 0;
        overflow-x: clip;
    }

    body.page-surahs .surahs-search-form,
    body.page-surahs .surah-pagination {
        min-width: 0;
    }

    .surah-pagination__list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: .25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .surah-pagination__list::-webkit-scrollbar {
        display: none;
    }

    .surah-pagination__link {
        padding-inline: .8rem;
        flex: 0 0 auto;
    }

    .surah-pagination__number,
    .surah-pagination__ellipsis,
    .surah-pagination__list .page-item {
        flex: 0 0 auto;
    }
}

.icon-actions-group {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.ayah-arabic {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: isolate;
    display: block;
    width: 100%;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 2.2;
}

.ayah-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-inline-start: .42rem;
    vertical-align: middle;
    background: url('../images/ayahnumber.png') center/contain no-repeat;
    position: relative;
}

.ayah-number-text {
    font-family: 'Figtree', Arial, sans-serif;
    font-size: .74rem;
    line-height: 1;
    color: #7c5b00;
    font-weight: 700;
}

.donation-form .form-label,
.donation-form .form-text,
.donation-form .form-control,
.donation-form .form-select,
.donation-form .form-control::placeholder,
.donation-form .form-select option,
.reciter-upload-form .form-label,
.reciter-upload-form .form-check-label,
.reciter-upload-form .text-muted {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.donation-file-upload {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .9rem;
    width: 100%;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .26);
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94)),
        var(--card-bg);
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.donation-file-upload:hover,
.donation-file-upload:focus-within {
    transform: translateY(-1px);
    border-color: rgba(100, 116, 139, .28);
    box-shadow: 0 16px 30px rgba(15,23,42,.08);
}

.donation-file-upload__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 10px 22px rgba(51,65,85,.18);
}

.donation-file-upload__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .18rem;
    width: 100%;
    flex: 1 1 auto;
}

.donation-file-upload__title {
    line-height: 1.25;
}

.donation-file-upload__status {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.donation-file-upload__status:empty {
    display: none;
}

.donation-file-upload__preview {
    flex: 0 0 96px;
    width: 96px;
    height: 152px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .24);
    background: rgba(255,255,255,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.donation-file-upload__preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.donation-file-upload__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.donation-file-upload__input::file-selector-button {
    margin-inline-end: .8rem;
    border: 0;
    border-radius: 14px;
    padding: .65rem .95rem;
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    box-shadow: 0 10px 22px rgba(51,65,85,.14);
}

@media (max-width: 767.98px) {
    .donation-file-upload__preview {
        flex-basis: 82px;
        width: 82px;
        height: 132px;
    }
}

@media (max-width: 991.98px) {
    .inline-audio-player { width: 100%; }

    body.page-admin-short-video .section-card {
        padding: 1.25rem !important;
    }

    .admin-short-video {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-short-video__controls {
        grid-template-columns: 1fr;
    }

    .admin-short-video__stage-card {
        position: static;
        max-width: min(420px, 100%);
        margin-inline: auto;
        width: 100%;
    }

    .admin-short-video__canvas {
        max-height: 62vh;
    }
}

@media (max-width: 767.98px) {
    body.page-admin-short-video .section-card {
        border-radius: 22px;
        padding: 1rem !important;
    }

    body.page-admin-short-video .section-card > .d-flex:first-child {
        align-items: flex-start !important;
        gap: .85rem !important;
        margin-bottom: 1rem !important;
    }

    body.page-admin-short-video h1 {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1.35;
    }

    .admin-short-video-picker {
        margin-bottom: 1rem !important;
    }

    .admin-short-video-picker > [class*="col-"] {
        width: 100%;
    }

    .admin-short-video-picker .col-lg-2 {
        justify-content: center;
    }

    .admin-short-video-picker .icon-action-btn {
        width: 48px;
        height: 48px;
    }

    .admin-short-video-picker select[multiple] {
        min-height: 180px;
    }

    .admin-short-video__stage-card,
    .admin-short-video__controls .recording-card,
    .admin-short-video__controls .ayah-card {
        border-radius: 18px;
        padding: .85rem;
        box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    }

    .admin-short-video__stage-card {
        max-width: min(300px, 100%);
        padding: .55rem;
    }

    .admin-short-video__canvas {
        border-radius: 16px;
        max-height: 54vh;
    }

    .admin-short-video__controls {
        gap: .85rem;
    }

    .admin-short-video__control-card {
        padding: .9rem;
    }

    .admin-short-video__controls .row {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .85rem;
    }

    .admin-short-video__controls .form-select,
    .admin-short-video__controls .form-control {
        width: 100%;
        font-size: 1rem;
        min-height: 46px;
    }

    .admin-short-video__controls .form-control-color {
        height: 44px;
    }

    .admin-short-video__controls .form-check {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding-left: 0;
    }

    .admin-short-video__controls .form-check-input {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .admin-short-video__ayah-list {
        gap: .4rem;
    }

    .admin-short-video__ayah-chip {
        flex: 1 1 calc(50% - .4rem);
        padding: .45rem .55rem;
        font-size: .85rem;
    }

    .admin-short-video__controls [data-short-video-generate],
    .admin-short-video__controls [data-short-video-download],
    .admin-short-video__controls [data-short-video-share] {
        width: 100%;
        justify-content: center;
    }

    .admin-short-video__actions,
    .admin-short-video__result-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-short-video__controls [data-short-video-status] {
        display: block;
        width: 100%;
        text-align: center;
    }

    .admin-short-video__result-head {
        grid-template-columns: 1fr;
        align-items: stretch;
        text-align: center;
    }

    .admin-short-video__preview {
        width: min(100%, 280px);
        border-radius: 16px;
    }

    .admin-audio-combiner__file {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-audio-combiner__file-main {
        align-items: flex-start;
    }

    .admin-audio-combiner__file-actions {
        justify-content: flex-start;
    }

    .admin-audio-combiner__result-player {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .admin-short-video {
        gap: .8rem;
    }

    .admin-short-video__ayah-chip {
        flex-basis: 100%;
    }

    .admin-short-video__controls .col-4 {
        width: 100%;
    }

    .admin-short-video__controls .form-control-color {
        height: 50px;
    }
}


:root {
    --ayah-font-size: clamp(1.8rem, 3vw, 2.5rem);
    --meaning-font-size: 1.18rem;
}

.dv-page-title,
.dhivehi-title,
.dhivehi-text.form-label,
.dhivehi-text.form-text,
.dhivehi-text.section-heading,
.dv-ui,
[lang="dv"] {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.ayah-arabic {
    font-size: var(--ayah-font-size) !important;
}

.ayah-translation,
.admin-recitation-row__meaning {
    font-size: var(--meaning-font-size);
}

.icon-action-sm {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: .95rem;
}

.font-control-card {
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(15,118,110,.08);
    border-radius: 16px;
    padding: .85rem .95rem;
    min-height: 100%;
}

.admin-recitation-searchbar {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(160px, .9fr)) auto;
    gap: 1rem;
    align-items: end;
}

body.page-admin-recitations .admin-recitations-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 8%, rgba(15, 118, 110, .11), transparent 32%),
        radial-gradient(circle at 95% 0%, rgba(244, 199, 107, .13), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .86);
}

.admin-recitations-hero {
    min-height: 132px;
}

.admin-recitations-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-recitations-hero h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.35rem);
}

.admin-recitations-subtitle {
    max-width: 760px;
}

.admin-recitations-hero-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.admin-recitations-layout {
    display: grid;
    gap: 1rem;
}

.admin-recitations-panel {
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.admin-recitation-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-recitation-panel-head h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.admin-application-filter {
    min-width: min(220px, 100%);
}

.admin-application-list,
.admin-recitation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-application-card,
.admin-recitation-row {
    padding: 1.1rem;
    border-radius: 26px;
    border: 1px solid rgba(203, 213, 225, .72);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.admin-application-card__head,
.admin-application-card__title {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.admin-application-card__head {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-application-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(15, 118, 110, .13), rgba(244, 199, 107, .14));
    color: var(--brand);
    font-size: 1.25rem;
}

.admin-application-card__message {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(203, 213, 225, .65);
    border-radius: 20px;
    background: rgba(248, 250, 252, .72);
    line-height: 1.7;
}

.admin-application-card__form,
.admin-recitation-row__form {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(360px, 1fr) 58px;
    gap: .85rem;
    align-items: end;
}

.admin-recitation-row__save {
    display: flex;
    justify-content: flex-end;
}

.admin-recitations-empty {
    min-height: 140px;
    border-radius: 22px;
}

.admin-recitation-searchbar__field,
.admin-recitation-searchbar__field--grow {
    min-width: 0;
}

.admin-recitation-searchbar__actions {
    display: flex;
    gap: .65rem;
    align-items: center;
    justify-content: flex-start;
}

.admin-recitation-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, auto) minmax(320px, 1fr) 58px 58px;
    gap: 1rem;
    align-items: end;
}

.toolbar-toggle-btn {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
}

.toolbar-toggle-btn__visual {
    min-height: 54px;
    min-width: 170px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1rem;
    cursor: pointer;
    transition: all .18s ease;
    color: var(--text-main);
}

.toolbar-toggle-btn__visual.is-active,
.toolbar-toggle-btn__visual:hover {
    background: var(--brand-2);
    border-color: rgba(15, 118, 110, .18);
    color: var(--brand);
}

.toolbar-note-group {
    min-width: 0;
}

.toolbar-note-group .form-label {
    min-height: 1.25rem;
}

.toolbar-note-group .input-group {
    align-items: stretch;
}

.toolbar-note-group .form-control {
    min-height: 54px;
}

.toolbar-note-group .icon-action-btn {
    box-shadow: none;
}

.toolbar-action-btn {
    align-self: end;
    width: 54px;
    height: 54px;
}

.admin-recitation-row {
    overflow: hidden;
}

.admin-recitation-row__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

body.page-admin-recitations .status-pill {
    min-height: 30px;
    max-width: 150px;
    padding: .32rem .65rem;
    font-size: .78rem;
    line-height: 1.15;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.admin-recitation-row__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.admin-recitation-row__text-stack {
    background: rgba(248,250,252,.85);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.admin-recitation-row__arabic {
    margin-bottom: .9rem;
    font-size: clamp(1.9rem, 3vw, 2.6rem) !important;
}

.admin-recitation-row__meaning {
    line-height: 1.95;
    color: var(--text-main);
    background: rgba(255,255,255,.7);
    border-radius: 14px;
    padding: .85rem 1rem;
    direction: rtl;
    text-align: right;
    font-family: 'Faruma', 'MV Boli', sans-serif;
}

.admin-recitation-row__side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-recitation-side-card {
    background: rgba(248,250,252,.95);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 18px;
    padding: 1rem;
}

.admin-recitation-audio-card {
    display: grid;
    gap: .85rem;
}

.admin-recitation-audio-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.admin-recitation-audio-card__check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.admin-recitation-audio-card__form {
    display: grid;
    grid-template-columns: minmax(120px, .85fr) minmax(160px, 1fr) 50px;
    gap: .7rem;
    align-items: end;
}

.admin-recitation-audio-card__form .icon-action-btn {
    width: 50px;
    height: 50px;
}

.admin-recitation-facts {
    display: grid;
    gap: .7rem;
}

.admin-recitation-facts div {
    display: grid;
    grid-template-columns: minmax(88px, auto) 1fr;
    gap: .6rem;
    align-items: start;
}

.admin-recitation-facts dt,
.admin-recitation-facts dd {
    margin: 0;
}

.admin-recitation-facts dt {
    color: var(--text-muted);
    font-size: .92rem;
}

.admin-recitation-facts dd {
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .admin-recitation-searchbar {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(180px, .8fr));
    }
    .admin-recitation-searchbar__actions {
        grid-column: 1 / -1;
    }

    body.page-admin-recitations .admin-recitations-layout {
        grid-template-columns: 1fr;
    }

    body.page-admin-recitations .admin-recitation-row__form {
        grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr);
    }

    body.page-admin-recitations .admin-recitation-row__save {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .admin-recitation-toolbar,
    .admin-recitation-row__content,
    .admin-recitation-searchbar {
        grid-template-columns: 1fr;
    }
    .toolbar-toggle-btn__visual,
    .toolbar-note-group .form-control,
    .toolbar-action-btn {
        width: 100%;
    }
    .toolbar-action-btn {
        justify-content: center;
    }
    body.page-admin-recitations .admin-recitation-row__header .status-pill {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: 120px;
    }
    .admin-recitation-row__side {
        grid-template-columns: 1fr;
    }
    .admin-recitation-audio-card__form {
        grid-template-columns: 1fr;
    }
    .admin-recitation-audio-card__form .icon-action-btn {
        width: 100%;
        max-width: 220px;
    }
}

@media (max-width: 575.98px) {
    .admin-recitation-facts div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
    .toolbar-toggle-btn__visual {
        min-width: 0;
    }
}

.admin-dictionary-searchbar {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, .8fr)) auto;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88)),
        var(--soft-bg);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .05);
}

body.page-admin-dictionary .admin-dictionary-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 10%, rgba(15, 118, 110, .10), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .85);
}

.admin-dictionary-hero {
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,245,249,.86)),
        var(--soft-bg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.admin-dictionary-hero h1 {
    font-size: clamp(1.45rem, 2vw, 2.2rem);
}

.admin-dictionary-searchbar__field,
.admin-dictionary-searchbar__field--grow {
    min-width: 0;
}

.admin-dictionary-searchbar__actions {
    display: flex;
    gap: .65rem;
    align-items: center;
}

.admin-dictionary-searchbar .form-control,
.admin-dictionary-searchbar .form-select,
.admin-dictionary-editor .form-control,
.admin-dictionary-row .form-control {
    min-height: 50px;
    border-radius: 16px;
}

.admin-dictionary-help {
    padding-inline: .4rem;
    text-align: center;
}

.admin-dictionary-editor,
.admin-dictionary-row {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92)),
        var(--card-bg);
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 26px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .055);
}

.admin-dictionary-editor {
    position: relative;
}

.admin-dictionary-editor::before {
    content: '';
    position: absolute;
    inset-block: 1.2rem;
    inset-inline-end: 0;
    width: 5px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, var(--brand), var(--brand-3));
}

.admin-dictionary-list {
    margin-top: .35rem;
}

.admin-dictionary-editor__header,
.admin-dictionary-row__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-dictionary-row__header > div:first-child {
    min-width: 0;
}

.admin-dictionary-row__header .fw-semibold {
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
    font-family: 'Figtree', sans-serif;
    color: var(--brand-3);
}

.admin-dictionary-row__header .small {
    overflow-wrap: anywhere;
}

.admin-dictionary-editor__grid,
.admin-dictionary-row__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.admin-dictionary-editor__wide,
.admin-dictionary-row__wide {
    grid-column: span 2;
}

.admin-dictionary-row textarea,
.admin-dictionary-editor textarea {
    min-height: 92px;
}

.admin-dictionary-row > form:last-child {
    border-top: 1px dashed rgba(148, 163, 184, .34);
    padding-top: .85rem;
}

.admin-dictionary-pagination {
    padding-top: .5rem;
}

.admin-dictionary-pagination .surah-pagination__list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: .25rem .15rem .45rem;
    scrollbar-width: none;
}

.admin-dictionary-pagination .surah-pagination__list::-webkit-scrollbar {
    display: none;
}

.admin-dictionary-pagination .page-item,
.admin-dictionary-pagination .page-link {
    flex: 0 0 auto;
}

@media (prefers-color-scheme: dark) {
    body.page-admin-dictionary .admin-dictionary-page,
    body.page-admin-dictionary .admin-dictionary-hero,
    body.page-admin-dictionary .admin-dictionary-searchbar,
    body.page-admin-dictionary .admin-dictionary-editor,
    body.page-admin-dictionary .admin-dictionary-row {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body.page-admin-dictionary .admin-dictionary-row__header .fw-semibold {
        color: var(--brand) !important;
    }

    body.page-admin-dictionary .admin-dictionary-row > form:last-child {
        border-top-color: rgba(71, 85, 105, .72);
    }
}

@media (max-width: 1199.98px) {
    .admin-dictionary-searchbar {
        grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(160px, .8fr));
    }
    .admin-dictionary-searchbar__actions {
        grid-column: 1 / -1;
    }
    .admin-dictionary-editor__grid,
    .admin-dictionary-row__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.page-admin-dictionary .admin-dictionary-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-dictionary-hero,
    .admin-dictionary-searchbar,
    .admin-dictionary-editor,
    .admin-dictionary-row {
        border-radius: 20px;
        padding: 1rem;
    }

    .admin-dictionary-hero {
        text-align: center;
        justify-content: center !important;
    }

    .admin-dictionary-searchbar,
    .admin-dictionary-editor__grid,
    .admin-dictionary-row__grid {
        grid-template-columns: 1fr;
    }
    .admin-dictionary-searchbar__actions,
    .admin-dictionary-row__header,
    .admin-dictionary-editor__header {
        justify-content: center;
    }
    .admin-dictionary-row__header {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-dictionary-row__header > .d-flex {
        justify-content: space-between;
    }
    .admin-dictionary-editor__wide,
    .admin-dictionary-row__wide {
        grid-column: auto;
    }
}

.reciter-selector-row .icon-action-btn {
    min-width: 42px;
}

.reciter-context-panel.is-loading {
    opacity: .6;
    pointer-events: none;
}

.reciter-current-ayah {
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.recording-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,.88);
}

.reciter-audio-card {
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 1rem;
    padding: .85rem .95rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92)),
        var(--card-bg);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 10px 24px rgba(15,23,42,.04);
}

.reciter-submission-item {
    border: 1px solid rgba(203, 213, 225, .68);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,.72);
}

.reciter-audio-card__actions {
    justify-content: flex-end;
}

.reciter-audio-card .inline-audio-player {
    width: 100%;
    max-width: none;
}

.recording-card .inline-audio-player {
    max-width: 100%;
}

.recording-card strong,
.recording-card .dhivehi-text,
.reciter-current-ayah .dhivehi-text {
    font-family: 'Faruma', sans-serif;
}

.reciter-current-ayah .ayah-arabic {
    margin-bottom: .25rem;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.reciter-current-ayah .ayah-meaning {
    font-size: var(--meaning-font-size, 22px);
}

body.page-reciter .ayah-card .ayah-arabic {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

@media (max-width: 767.98px) {
    .reciter-upload-tabs .nav-link {
        white-space: nowrap;
    }
    body.page-reciter .reciter-upload-tabs .nav-link {
        min-width: auto;
    }
    body.page-reciter .reciter-page-main {
        padding: 1rem !important;
    }
    body.page-reciter .reciter-workspace-card,
    body.page-reciter .reciter-upload-panel,
    body.page-reciter .reciter-submission-shell,
    body.page-reciter .reciter-current-ayah,
    body.page-reciter .recording-card,
    body.page-reciter .reciter-submission-item,
    body.page-reciter .reciter-audio-card {
        padding: .85rem;
        border-radius: 18px;
    }
    body.page-reciter .reciter-workspace-card,
    body.page-reciter .reciter-upload-panel,
    body.page-reciter .reciter-submission-shell,
    body.page-reciter .reciter-upload-tabs-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-inline: 0;
    }
    body.page-reciter .reciter-workspace-card,
    body.page-reciter .reciter-upload-panel,
    body.page-reciter .reciter-submission-shell {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding-inline: 0;
    }
    body.page-reciter .reciter-submission-item,
    body.page-reciter .recording-card {
        background: transparent;
        box-shadow: none;
    }
    body.page-reciter .reciter-upload-tabs {
        max-width: 100%;
        padding-inline: 0;
    }
    body.page-reciter .reciter-upload-tab-content {
        overflow: hidden;
    }
    .reciter-audio-card__actions {
        width: 100%;
        justify-content: flex-start;
    }
    .reciter-selector-row {
        row-gap: .75rem;
    }
    .recording-card {
        padding: .85rem;
    }
}

body.page-index {
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.10), transparent 28%),
        radial-gradient(circle at top left, rgba(161, 98, 7, 0.08), transparent 24%),
        var(--page-bg);
}

body.page-index .site-main > .container-xl {
    position: relative;
}

.home-index-shell {
    display: grid;
    gap: .85rem;
}

body.page-index .home-short-videos,
body.page-index .home-hero-card,
body.page-index .home-featured-ayah,
body.page-index .home-surah-section,
body.page-index .home-sections-showcase {
    margin-bottom: .85rem !important;
}

body.page-index .home-hero-card {
    margin-bottom: 1rem !important;
}

.home-hero-card {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 94%, #ffffff 6%), color-mix(in srgb, var(--soft-bg) 90%, var(--card-bg) 10%)),
        var(--card-bg);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.home-hero-card::before {
    content: '';
    position: absolute;
    inset: -15% auto auto -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.72), transparent 68%);
    pointer-events: none;
}

.home-hero-card::after {
    content: '';
    position: absolute;
    inset: auto -6% -18% auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.28), transparent 70%);
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.home-hero-kicker-wrap {
    display: flex;
    justify-content: flex-start;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: center;
}

.home-hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.home-hero-card .hero-chip {
    background: var(--carousel-surface);
    color: var(--carousel-text-muted);
    border: 1px solid rgba(148,163,184,.22);
}

.home-short-videos {
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 94%, #ffffff 6%), color-mix(in srgb, var(--soft-bg) 88%, var(--card-bg) 12%)),
        var(--card-bg);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    padding: clamp(1rem, 2vw, 1.35rem);
    overflow: hidden;
}

.home-short-videos__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-short-videos__eyebrow,
.home-short-videos__hint {
    color: var(--text-muted);
    font-size: .85rem;
}

.home-short-videos__title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.35;
}

.home-short-videos__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(118px, 14vw, 170px);
    gap: .9rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: .15rem .15rem .35rem;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.home-short-videos__rail::-webkit-scrollbar {
    display: none;
}

.home-teacher-strip {
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 94%, #ffffff 6%), color-mix(in srgb, var(--soft-bg) 88%, var(--card-bg) 12%)),
        var(--card-bg);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    overflow: hidden;
    padding: clamp(.85rem, 2vw, 1.15rem);
}

.home-teacher-strip__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(76px, 9vw, 104px);
    gap: .8rem;
    justify-content: center;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: .15rem .15rem .35rem;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.home-teacher-strip__rail::before,
.home-teacher-strip__rail::after {
    content: '';
    width: max(.15rem, calc((100vw - min(100vw, 1180px)) / 2));
}

.home-teacher-strip__rail::-webkit-scrollbar {
    display: none;
}

.home-teacher-avatar {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
    border-radius: 28px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--card-bg) 94%, #ffffff 6%), color-mix(in srgb, var(--soft-bg) 88%, var(--card-bg) 12%));
    box-shadow: 0 16px 30px rgba(15, 23, 42, .12);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-teacher-avatar:hover,
.home-teacher-avatar:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
    box-shadow: 0 20px 36px rgba(15, 23, 42, .16);
    outline: none;
}

.home-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-teacher-modal .modal-dialog {
    width: min(920px, calc(100vw - 1rem));
    max-width: 920px;
    margin-inline: auto;
}

.home-teacher-modal__content {
    overflow: hidden;
    max-height: calc(100dvh - 1.5rem);
}

.home-teacher-modal .modal-header-shell {
    align-items: center;
    gap: .85rem;
}

.home-teacher-modal .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(100dvh - 7rem);
}

.home-teacher-profile {
    display: grid;
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
}

.home-teacher-profile__photo {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--soft-bg);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.home-teacher-profile__photo img {
    width: 100%;
    height: auto;
    max-height: min(62vh, 520px);
    object-fit: contain;
    display: block;
}

.home-teacher-profile__body {
    min-width: 0;
}

.home-teacher-profile__body h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    text-align: right;
}

.home-teacher-profile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.home-teacher-profile__grid > div,
.home-teacher-profile__section {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card-bg) 82%, transparent);
    padding: .85rem;
    text-align: right;
}

.home-teacher-profile__grid span,
.home-teacher-profile__section h4 {
    display: block;
    color: var(--text-muted);
    font-size: .88rem;
    margin-bottom: .25rem;
}

.home-teacher-profile__grid strong,
.home-teacher-profile__section p {
    color: var(--text-main);
    margin: 0;
}

.home-teacher-profile__section + .home-teacher-profile__section {
    margin-top: .75rem;
}

.home-short-video-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 22px;
    overflow: hidden;
    padding: 0;
    background: #0f172a;
    color: #fff;
    scroll-snap-align: start;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .16);
}

.home-short-video-card::before {
    content: '';
    position: absolute;
    inset: 22%;
    z-index: 0;
    border-radius: 28px;
    background:
        url('../../images/logo.png') center / 58% auto no-repeat,
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .2), transparent 32%),
        linear-gradient(145deg, rgba(15, 23, 42, .92), rgba(20, 83, 45, .82));
    opacity: 1;
    transition: opacity .22s ease;
    overflow: hidden;
}

.home-short-video-card.is-thumb-ready::before {
    opacity: 0;
}

.home-short-video-card video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    opacity: 0;
    transition: opacity .22s ease;
    background: transparent;
}

.home-short-video-card.is-thumb-ready video {
    opacity: 1;
}

.home-short-video-card__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .04), rgba(15, 23, 42, .18) 58%, rgba(15, 23, 42, .36)),
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .18), transparent 34%);
}

.home-short-video-card__play {
    display: none !important;
}

.home-short-video-card__delete {
    position: absolute;
    top: .55rem;
    left: .55rem;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.home-short-video-card__delete:hover,
.home-short-video-card__delete:focus-visible {
    background: rgba(220, 38, 38, .88);
    color: #fff;
}

.home-short-video-card__delete.is-busy {
    opacity: .55;
    pointer-events: none;
}

.home-print-pdf-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(118px, 14vw, 170px);
    gap: 1rem;
    margin-inline: -0.25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: .25rem .25rem .85rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.home-print-pdf-section {
    position: relative;
}

.home-print-pdf-browse-btn {
    align-items: center;
    background: rgba(15, 23, 42, .76);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    left: 1rem;
    position: absolute;
    top: 1rem;
    transition: transform .2s ease, background .2s ease;
    width: 38px;
    z-index: 4;
}

.home-print-pdf-browse-btn:hover,
.home-print-pdf-browse-btn:focus {
    background: rgba(15, 118, 110, .9);
    color: #fff;
    transform: translateY(-2px);
}

.home-print-pdf-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.home-print-pdf-rail::-webkit-scrollbar {
    display: none;
}

.home-print-pdf-card {
    color: inherit;
    display: block;
    position: relative;
    scroll-snap-align: start;
    text-decoration: none;
    user-select: none;
    width: 100%;
}

.home-print-pdf-card__cover {
    aspect-ratio: 190 / 277;
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.75), transparent 20%),
        linear-gradient(145deg, rgba(255,255,255,.94), rgba(226,232,240,.82));
    border: 1px solid var(--card-border);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
    display: grid;
    overflow: hidden;
    place-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-print-pdf-card:hover .home-print-pdf-card__cover,
.home-print-pdf-card:focus .home-print-pdf-card__cover {
    box-shadow: 0 24px 48px rgba(15, 23, 42, .2);
    transform: translateY(-3px);
}

.home-print-pdf-card__cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home-print-pdf-card__fallback {
    color: var(--text-main);
    font-size: 1.7rem;
    padding: 1rem;
    text-align: center;
}

.home-print-pdf-card__action {
    align-items: center;
    background: rgba(15, 23, 42, .76);
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    bottom: .65rem;
    color: #fff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: .65rem;
    width: 36px;
}

.home-print-pdf-card__count {
    align-items: center;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 .35rem;
    position: absolute;
    right: -0.45rem;
    top: -0.45rem;
}

.home-print-pdf-card__delete {
    align-items: center;
    background: rgba(15, 23, 42, .68);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    left: .6rem;
    position: absolute;
    top: .6rem;
    transition: background .2s ease, opacity .2s ease;
    width: 34px;
    z-index: 3;
}

.home-print-pdf-card__delete:hover,
.home-print-pdf-card__delete:focus-visible {
    background: rgba(220, 38, 38, .9);
    color: #fff;
}

.home-print-pdf-card__delete.is-busy {
    opacity: .55;
    pointer-events: none;
}

.pdf-books-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
}

.home-short-video-card__meta {
    position: absolute;
    inset-inline: .75rem;
    bottom: .75rem;
    display: grid;
    gap: .35rem;
    text-align: start;
}

.home-short-video-card__title {
    font-family: "Faruma", Tahoma, sans-serif;
    font-size: .9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-short-video-card__counts {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
}

.short-video-modal {
    overflow: hidden !important;
    padding: 0 !important;
}

.short-video-modal .modal-backdrop,
.short-video-modal__dialog,
.short-video-modal__shell {
    background: transparent;
    max-width: 100vw;
    overflow: hidden;
}

.short-video-modal__dialog {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
}

.short-video-modal__shell {
    border: 0;
    color: #fff;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.short-video-modal__body {
    position: relative;
    display: grid;
    place-items: center;
    justify-items: center;
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    min-width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-x;
    box-sizing: border-box;
    padding:
        max(.75rem, env(safe-area-inset-top))
        max(.75rem, env(safe-area-inset-right))
        max(.75rem, env(safe-area-inset-bottom))
        max(.75rem, env(safe-area-inset-left));
    background: rgba(2, 6, 23, .94);
}

.short-video-modal__body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 212, 191, .12), transparent 30%),
        radial-gradient(circle at 78% 72%, rgba(148, 163, 184, .16), transparent 32%);
    pointer-events: none;
}

.short-video-modal__close {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    left: max(1rem, env(safe-area-inset-left));
    z-index: 6;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .52);
    color: #fff;
    backdrop-filter: blur(16px);
}

.short-video-modal__player-card {
    position: relative;
    z-index: 2;
    justify-self: center;
    margin-inline: auto;
    width: min(100vw, calc(100dvh * 9 / 16));
    height: min(100dvh, calc(100vw * 16 / 9));
    max-width: 100vw;
    max-height: 100dvh;
    aspect-ratio: 9 / 16;
    border-radius: 0;
    background: #020617;
    overflow: hidden;
    box-shadow: none;
}

.short-video-modal__player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .24s ease, filter .24s ease;
    will-change: transform, opacity;
}

.short-video-modal__player.is-swiping-up-out {
    transform: translateY(-18%) scale(.985);
    opacity: 0;
    filter: blur(2px);
}

.short-video-modal__player.is-swiping-down-out {
    transform: translateY(18%) scale(.985);
    opacity: 0;
    filter: blur(2px);
}

.short-video-modal__player.is-swiping-up-in {
    transform: translateY(18%) scale(.985);
    opacity: 0;
}

.short-video-modal__player.is-swiping-down-in {
    transform: translateY(-18%) scale(.985);
    opacity: 0;
}

.short-video-modal__player.is-swipe-settled {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.short-video-modal__title {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    width: min(430px, calc(100vw - 2rem));
    transform: translateX(-50%);
    margin: 0;
    padding-inline: 1rem 5.8rem;
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    line-height: 1.6;
    text-align: start;
    pointer-events: none;
}

.short-video-modal__actions {
    position: absolute;
    z-index: 5;
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    display: grid;
    gap: .75rem;
}

.short-video-action {
    width: 52px;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: .35rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .05rem;
    color: #fff;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.short-video-action i {
    font-size: 1.15rem;
    line-height: 1;
}

.short-video-action span:not(.visually-hidden) {
    font-size: .72rem;
    line-height: 1;
}

.short-video-action.is-active {
    color: #fff;
    border-color: rgba(45, 212, 191, .62);
    background: linear-gradient(135deg, rgba(20, 184, 166, .92), rgba(15, 118, 110, .92));
}

.short-video-login-link {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: max(1rem, env(safe-area-inset-top));
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .58);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(16px);
}

.short-video-login-link i {
    font-size: 1.2rem;
    line-height: 1;
}

.short-video-modal__comments {
    position: absolute;
    z-index: 7;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(430px, calc(100vw - 1rem));
    max-height: min(62svh, 520px);
    transform: translate(-50%, calc(100% + 1.25rem));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}

.short-video-modal__comments.is-open {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.short-video-modal__comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #fff;
    font-weight: 700;
}

.short-video-modal__comments-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.short-video-modal__comment-list {
    display: grid;
    gap: .65rem;
    overflow-y: auto;
    padding-inline-end: .25rem;
    max-height: 330px;
}

.short-video-comment {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: .75rem;
    background: rgba(255, 255, 255, .06);
}

.short-video-comment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #fff;
    font-size: .84rem;
    margin-bottom: .35rem;
}

.short-video-comment__head span {
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
}

.short-video-comment__text {
    color: #fff;
    line-height: 1.75;
}

.short-video-modal__empty {
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 1rem;
    color: rgba(255, 255, 255, .68);
    text-align: center;
}

.short-video-modal__comment-form {
    display: grid;
    gap: .7rem;
}

.short-video-modal__comment-form .form-control {
    border-radius: 18px;
    resize: vertical;
}

.home-secondary-link,
.home-section-link,
.home-banner-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--brand-3);
    text-decoration: none;
    font-weight: 600;
}

.home-secondary-link:hover,
.home-section-link:hover,
.home-banner-link:hover {
    color: var(--brand);
}

.home-section-kicker,
.home-hero-panel__eyebrow,
.home-section-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: .65rem;
}

.home-ayah-carousel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
}

.home-ayah-carousel__item {
    padding: .35rem 0 2.7rem;
}

.home-ayah-carousel__frame {
    position: relative;
    min-height: 100%;
    border-radius: 28px;
    padding: 1.5rem 1.5rem 1.35rem;
    background:
        var(--hero-slide-surface, linear-gradient(160deg, rgba(255,255,255,.74), rgba(226,232,240,.24))),
        radial-gradient(circle at top left, var(--hero-slide-primary, rgba(226, 232, 240, 0.36)), transparent 38%),
        radial-gradient(circle at bottom right, var(--hero-slide-secondary, rgba(148, 163, 184, 0.24)), transparent 42%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.88));
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 36px rgba(15,23,42,.08);
    backdrop-filter: blur(8px);
    text-align: center;
}

.home-ayah-carousel__frame::before,
.home-ayah-carousel__frame::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(148,163,184,.22);
    pointer-events: none;
}

.home-ayah-carousel__frame::before {
    inset: 16px auto auto 16px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 22px 0 0 0;
}

.home-ayah-carousel__frame::after {
    inset: auto 16px 16px auto;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 22px 0;
}

.home-ayah-carousel__meta {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: center;
}

.home-ayah-carousel__meta .meta-badge {
    background: var(--carousel-surface);
    color: var(--carousel-text-muted);
    border: 1px solid rgba(148,163,184,.22);
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.home-ayah-carousel__arabic {
    color: var(--carousel-text-strong);
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 2.05;
    text-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.page-index .home-featured-ayah .ayah-arabic {
    font-size: var(--ayah-font-size) !important;
}

body.page-index .home-ayah-carousel__arabic {
    font-size: var(--ayah-font-size) !important;
}

body.page-surah .ayah-card .ayah-arabic {
    font-size: var(--ayah-font-size) !important;
}

body.page-search .search-result-card .ayah-arabic {
    font-size: var(--ayah-font-size) !important;
}

body.page-playlist .playlist-item .ayah-arabic {
    font-size: var(--ayah-font-size) !important;
}

.home-ayah-carousel__meaning {
    color: var(--carousel-text-muted);
    font-size: 1.06rem;
    line-height: 1.95;
    max-width: 62ch;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-inline: auto;
}

.home-ayah-carousel__footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.home-carousel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--carousel-text-muted);
    font-weight: 600;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--carousel-surface);
    border: 1px solid rgba(148,163,184,.22);
}

.home-carousel-link:hover {
    color: var(--carousel-text-strong);
}

.home-ayah-carousel__control {
    width: 46px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
}

.home-ayah-carousel__control.carousel-control-prev {
    left: .35rem;
    right: auto;
}

.home-ayah-carousel__control.carousel-control-next {
    right: .35rem;
}

.home-ayah-carousel__control .carousel-control-prev-icon,
.home-ayah-carousel__control .carousel-control-next-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background-color: var(--carousel-control-bg);
    background-size: 55% 55%;
    border: 1px solid rgba(15,23,42,.18);
    box-shadow: 0 10px 20px rgba(15,23,42,.18);
}

.home-ayah-carousel__indicators {
    margin-bottom: .35rem;
    justify-content: flex-start;
    margin-right: 0;
    margin-left: 0;
    padding-inline: .25rem;
}

.home-ayah-carousel__indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background-color: var(--carousel-indicator);
}

.home-ayah-carousel__indicators .active {
    background-color: var(--carousel-indicator-active);
}

.home-section {
    display: grid;
    gap: 1rem;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-surah-section {
    position: relative;
}

.home-surah-section > .home-section-head {
    padding-left: 3.25rem;
}

.home-surah-section > .home-section-head .home-section-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.home-surah-section > .home-section-head .home-section-link i {
    font-size: 1.25rem;
}

.home-section-head--tight {
    align-items: start;
}

.home-banner-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.home-banner-card {
    grid-column: span 4;
    min-width: 0;
    height: 100%;
    background: rgba(255,255,255,.96);
}

.home-banner-card--featured {
    grid-column: span 6;
}

.home-banner-copy {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    height: 100%;
    min-width: 0;
}

.home-banner-copy h2,
.home-banner-copy p,
.home-secondary-link span,
.home-section-link span {
    overflow-wrap: anywhere;
}

.home-banner-link {
    margin-top: auto;
}

.home-featured-ayah {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(247,250,252,.95)),
        var(--card-bg);
}

.home-featured-ayah .home-section-head + .home-featured-ayah__selector-panel,
.home-featured-ayah .home-section-head + .home-featured-ayah__grid,
.home-featured-ayah .home-featured-ayah__selector-panel + .home-featured-ayah__grid {
    margin-top: .75rem;
}

.home-featured-ayah__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.home-featured-ayah__card {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(249,250,251,.98));
    min-width: 0;
}

.home-featured-ayah__meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.home-featured-ayah__aside .playback-controls-card {
    margin-bottom: 0 !important;
    background: rgba(248,250,252,.88);
}

.home-featured-ayah__selector-panel {
    width: 100%;
}

.home-featured-ayah__aside,
.home-featured-ayah__aside [data-common-reciter-selector],
.home-featured-ayah__aside .playback-controls-card,
.home-featured-ayah__aside .row,
.home-featured-ayah__aside [class*="col-"] {
    width: 100%;
}

.home-featured-ayah__aside,
.home-featured-ayah__aside [data-common-reciter-selector],
.home-featured-ayah__aside .playback-controls-card,
.home-featured-ayah__aside .row,
.home-featured-ayah__aside [class*="col-"] {
    min-width: 0;
}

.home-featured-ayah__aside .row {
    row-gap: 1rem;
}

.home-featured-ayah__aside .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.home-featured-ayah .inline-audio-player {
    width: 100%;
    max-width: none;
}

.home-surah-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,.95)),
        var(--card-bg);
}

.home-surah-card .text-end {
    text-align: right !important;
}

.home-surah-card__title {
    font-family: 'QuranArabic', 'Amiri', serif !important;
    font-size: var(--home-surah-title-size, 1.28rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-main);
    text-align: right;
    direction: rtl;
}

.home-surah-section .small.text-muted {
    font-family: 'Faruma', 'MV Faseyha', sans-serif !important;
}

.home-surah-card .small.text-muted {
    text-align: right;
}

.home-surah-card__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap;
    direction: rtl;
    width: 100%;
}

.home-surah-card__meta + .small.text-muted {
    display: none;
}

.home-surah-card__ayah-count {
    white-space: nowrap;
}

.home-info-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(241,244,249,.9)),
        var(--card-bg);
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .home-banner-card,
    .home-banner-card--featured {
        grid-column: span 6;
    }
}

@media (max-width: 991.98px) {
    .home-hero-grid,
    .home-featured-ayah__grid {
        grid-template-columns: 1fr;
    }

    .home-ayah-carousel__arabic {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    body.page-index .home-featured-ayah .ayah-arabic {
        font-size: var(--ayah-font-size) !important;
    }

    body.page-index .home-ayah-carousel__arabic {
        font-size: var(--ayah-font-size) !important;
    }

    body.page-surah .ayah-card .ayah-arabic,
    body.page-search .search-result-card .ayah-arabic,
    body.page-playlist .playlist-item .ayah-arabic {
        font-size: var(--ayah-font-size) !important;
    }

    .home-section-head,
    .home-section-head--tight {
        align-items: start;
    }

    .home-banner-card,
    .home-banner-card--featured {
        grid-column: span 12;
    }
}

@media (max-width: 767.98px) {
    .ayah-arabic .ayah-number-badge {
        vertical-align: middle;
        position: relative;
        top: 0.08em;
    }

    .playback-controls-card .row.g-3 {
        --bs-gutter-y: .9rem;
    }

    .playback-controls-card .row.g-3 > [class*="col-"] {
        margin-top: 0 !important;
    }

    .playback-controls-card .row.g-3 > [class*="col-"] + [class*="col-"] {
        margin-top: .9rem !important;
    }

    .playback-controls-card .font-control-card {
        margin-top: 0;
    }

    .playback-controls-card .font-control-card .row.g-2 {
        --bs-gutter-y: .65rem;
    }

    .home-hero-actions {
        align-items: stretch;
    }

    .home-hero-note {
        flex-direction: column;
        align-items: stretch;
    }

    .home-ayah-carousel__frame {
        padding: 1.15rem 1rem 3.1rem;
    }

    .home-ayah-carousel__footer {
        flex-direction: column;
        align-items: center;
    }

    .home-ayah-carousel__indicators {
        justify-content: center;
    }

    .home-ayah-carousel__control.carousel-control-prev {
        left: .2rem;
        right: auto;
    }

    .home-secondary-link,
    .home-section-link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: .85rem 1rem;
        border-radius: 16px;
        background: rgba(255,255,255,.8);
        border: 1px solid rgba(15, 23, 42, 0.06);
    }

    .home-surah-section > .home-section-head .home-section-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        top: .85rem;
        left: .85rem;
    }
}

@media (prefers-color-scheme: dark) {
    body.page-donations .donation-file-upload {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: 0 18px 36px rgba(0, 0, 0, .28) !important;
    }

    body.page-donations .donation-file-upload:hover,
    body.page-donations .donation-file-upload:focus-within {
        border-color: rgba(45, 212, 191, .42) !important;
        box-shadow: 0 22px 40px rgba(0, 0, 0, .36) !important;
    }

    body.page-donations .donation-file-upload__icon {
        background: linear-gradient(135deg, rgba(45, 212, 191, .95), rgba(20, 184, 166, .72)) !important;
        color: #04111a !important;
        box-shadow: 0 12px 26px rgba(45, 212, 191, .12) !important;
    }

    body.page-donations .donation-file-upload__title {
        color: var(--text-main) !important;
    }

    body.page-donations .donation-file-upload__status {
        color: var(--carousel-text-muted) !important;
    }

    body.page-donations .donation-file-upload__preview {
        background: rgba(15, 23, 42, .72) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        box-shadow: inset 0 1px 0 rgba(148, 163, 184, .12) !important;
    }

    body.page-donations .donation-file-upload__preview-image {
        background: rgba(15, 23, 42, .72) !important;
    }

    body.page-admin-combine-audio .admin-audio-combiner__drop-label,
    body.page-admin-combine-audio .admin-audio-combiner__file,
    body.page-admin-combine-audio .admin-audio-combiner__result {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
    }

    body.page-admin-combine-audio .admin-audio-combiner__result-player {
        background: rgba(15, 23, 42, .62);
        border-color: rgba(51, 65, 85, .9);
    }

    body.page-admin-short-video .admin-short-video__stage-card,
    body.page-admin-short-video .admin-short-video__controls .recording-card,
    body.page-admin-short-video .admin-short-video__controls .ayah-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
    }

    body.page-admin-short-video .admin-short-video__ayah-chip {
        background: rgba(15, 23, 42, .72);
        border-color: rgba(71, 85, 105, .72);
        color: var(--text-main);
    }

    body.page-admin-short-video {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, 0.08), transparent 28%),
            radial-gradient(circle at top left, rgba(244, 199, 107, 0.05), transparent 24%),
            var(--page-bg) !important;
    }

    body.page-admin-short-video .section-card,
    body.page-admin-short-video .admin-short-video-shell {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-admin-short-video .admin-short-video__canvas {
        background: #020617 !important;
        box-shadow: inset 0 0 0 1px rgba(71, 85, 105, .58);
    }

    body.page-admin-short-video .admin-short-video-picker .form-select,
    body.page-admin-short-video .admin-short-video__controls .form-select,
    body.page-admin-short-video .admin-short-video__controls .form-select option,
    body.page-admin-short-video .admin-short-video__controls .form-control:not(.form-control-color),
    body.page-admin-short-video .admin-short-video__controls textarea.form-control {
        background: rgba(15, 23, 42, .88) !important;
        color: var(--text-main) !important;
        border-color: rgba(71, 85, 105, .78) !important;
    }

    body.page-admin-short-video .admin-short-video-picker .form-select:focus,
    body.page-admin-short-video .admin-short-video__controls .form-select:focus,
    body.page-admin-short-video .admin-short-video__controls .form-control:focus {
        background: rgba(15, 23, 42, .96) !important;
        border-color: rgba(94, 234, 212, .58) !important;
        box-shadow: 0 0 0 .2rem rgba(45, 212, 191, .12) !important;
    }

    body.page-admin-short-video .admin-short-video__server-link,
    body.page-admin-short-video .admin-short-video__controls audio,
    body.page-admin-short-video .admin-short-video__preview {
        background: rgba(2, 6, 23, .86) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body.page-admin-short-video .admin-short-video__controls .form-label,
    body.page-admin-short-video .admin-short-video__controls .small,
    body.page-admin-short-video .admin-short-video__controls [data-short-video-status],
    body.page-admin-short-video .admin-short-video__result-head,
    body.page-admin-short-video .text-muted {
        color: var(--carousel-text-muted) !important;
    }

    body.page-admin-short-video .admin-short-video__result-head h2 {
        color: var(--text-main) !important;
    }

    body.page-surah .surah-bookmarks-modal {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
    }

    body.page-surah .surah-bookmark-item {
        background: rgba(15, 23, 42, .88) !important;
        border-color: rgba(51, 65, 85, .9) !important;
    }

    body.page-surah .surah-bookmark-item__arabic {
        color: var(--text-main) !important;
    }

    body.page-surah .surah-mini-player {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38) !important;
    }

    body.page-surah .surah-mini-player__status {
        color: var(--carousel-text-muted) !important;
    }

    body.page-surah .surah-mini-player__time {
        color: var(--carousel-text-muted) !important;
    }

    body.page-surah .surah-mini-player__status-row {
        color: var(--carousel-text-strong) !important;
    }

    body.page-surah .surah-mini-player .icon-action-btn {
        background: rgba(19, 32, 48, 0.92) !important;
        color: var(--carousel-text-strong) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    body.page-surah .surah-mini-player .icon-action-btn:hover,
    body.page-surah .surah-mini-player .icon-action-btn:focus-visible {
        background: rgba(25, 41, 61, 0.98) !important;
        color: #fff !important;
    }

    .global-ayah-stopbar {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38) !important;
    }

    .global-ayah-stopbar__status {
        color: var(--carousel-text-muted) !important;
    }

    .global-ayah-stopbar .icon-action-btn {
        background: rgba(19, 32, 48, 0.92) !important;
        color: var(--carousel-text-strong) !important;
        border-color: rgba(71, 85, 105, 0.72) !important;
    }

    .global-ayah-stopbar .icon-action-btn:hover,
    .global-ayah-stopbar .icon-action-btn:focus-visible {
        background: rgba(25, 41, 61, 0.98) !important;
        color: #fff !important;
    }
}

@media (max-width: 767.98px) {
    body.page-index .home-short-videos,
    body.page-index .home-teacher-strip {
        padding: 1rem;
        border-radius: 20px;
    }

    body.page-index .home-index-shell {
        gap: .65rem;
    }

    body.page-index .home-short-videos,
    body.page-index .home-teacher-strip,
    body.page-index .home-hero-card,
    body.page-index .home-featured-ayah,
    body.page-index .home-surah-section,
    body.page-index .home-sections-showcase {
        margin-bottom: .65rem !important;
    }

    .home-short-videos__head {
        align-items: flex-start;
    }

    .home-short-videos__hint,
    .home-short-videos__eyebrow {
        font-size: .78rem;
    }

    .home-short-videos__rail {
        grid-auto-columns: minmax(112px, 34vw);
        gap: .7rem;
        margin-inline: -.15rem;
    }

    .home-teacher-strip__rail {
        grid-auto-columns: minmax(72px, 23vw);
        gap: .65rem;
        margin-inline: -.15rem;
    }

    .home-teacher-avatar {
        border-radius: 22px;
    }

    .home-teacher-profile {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .home-teacher-profile__photo {
        width: min(260px, 76vw);
        max-height: 34dvh;
        margin-inline: auto;
        border-radius: 24px;
    }

    .home-teacher-profile__photo img {
        max-height: 34dvh;
    }

    .home-teacher-modal .modal-dialog {
        width: calc(100vw - .75rem);
        margin: .375rem auto;
    }

    .home-teacher-modal__content {
        max-height: calc(100dvh - .75rem);
        border-radius: 22px;
    }

    .home-teacher-modal .modal-header-shell {
        padding: .85rem .95rem;
    }

    .home-teacher-modal .modal-body {
        max-height: calc(100dvh - 5.75rem);
        padding: .95rem;
    }

    .home-teacher-profile__body h3 {
        text-align: center;
        font-size: 1.15rem;
    }

    .home-teacher-profile__grid {
        grid-template-columns: 1fr;
        gap: .6rem;
    }

    .home-teacher-profile__grid > div,
    .home-teacher-profile__section {
        padding: .75rem;
        border-radius: 16px;
    }

    .home-short-video-card {
        border-radius: 18px;
    }

    .home-short-video-card__play {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .short-video-modal__player-card {
        width: min(100vw, calc(100dvh * 9 / 16));
        height: min(100dvh, calc(100vw * 16 / 9));
        max-width: 100vw;
        max-height: 100dvh;
        aspect-ratio: 9 / 16;
        border-radius: 0;
        margin-inline: auto;
        transform: translateX(10px);
    }

    .short-video-modal__player {
        width: 100%;
        max-width: 100%;
    }

    .short-video-modal__comment-list {
        max-height: 220px;
    }
}

@media (prefers-color-scheme: dark) {
    body.page-index .home-short-videos,
    body.page-index .home-teacher-strip {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.98), rgba(12, 20, 32, 0.95)),
            var(--card-bg) !important;
        color: var(--text-main) !important;
        border-color: rgba(51, 65, 85, 0.9) !important;
        box-shadow: var(--shadow) !important;
    }

    body.page-index .home-teacher-profile__grid > div,
    body.page-index .home-teacher-profile__section,
    body.page-index .home-teacher-profile__photo {
        background: rgba(15, 23, 42, .72);
        border-color: rgba(71, 85, 105, .72);
    }

}

@media print {
    body {
        background: #fff !important;
    }

    header,
    footer,
    .site-footer,
    .mobile-bottom-nav,
    .admin-print-controls,
    .admin-print-pdf-page > .d-flex,
    .admin-print-pdf-page > .justify-content-end {
        display: none !important;
    }

    .section-card,
    .pdf-shell,
    .surah-print-pdf-shell {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .surah-print-ayah {
        box-shadow: none !important;
    }

    .surah-print-page,
    .surah-print-cover-page {
        border-radius: 0 !important;
        aspect-ratio: 190 / 277;
        margin: 0 auto !important;
        min-height: 0;
    }

    .surah-print-cover-page,
    .surah-print-content-page,
    .surah-print-ayah {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .surah-print-content-page {
        page-break-after: always;
    }
}

body.admin-ltr,
body.admin-ltr .site-main,
body.admin-ltr .section-card,
body.admin-ltr .hero-card,
body.admin-ltr .info-card,
body.admin-ltr .auth-card,
body.admin-ltr .profile-card,
body.admin-ltr .stat-card,
body.admin-ltr .bank-card,
body.admin-ltr .modal-content,
body.admin-ltr .offcanvas,
body.admin-ltr .dropdown-menu,
body.admin-ltr .table,
body.admin-ltr .modern-table,
body.admin-ltr .form-control,
body.admin-ltr .form-select,
body.admin-ltr .input-group-text,
body.admin-ltr .btn,
body.admin-ltr label,
body.admin-ltr .form-label,
body.admin-ltr .form-text,
body.admin-ltr .dv-ui,
body.admin-ltr .dhivehi-text {
    direction: ltr !important;
    text-align: left;
    font-family: 'Figtree', 'Segoe UI', sans-serif !important;
}

body.admin-ltr .site-header .container-xl,
body.admin-ltr .mobile-topbar .container,
body.admin-ltr .top-icon-nav .container-xl,
body.admin-ltr .icon-nav-list,
body.admin-ltr .brand-mark {
    direction: ltr;
}

body.admin-ltr .arabic-text,
body.admin-ltr .arabic-admin-text,
body.admin-ltr textarea.arabic-admin-text,
body.admin-ltr [dir="rtl"] {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'QuranArabic', 'me_quran_volt_newmet', serif !important;
}

body.admin-ltr .text-center,
body.admin-ltr .admin-icon-tile,
body.admin-ltr .pagination {
    text-align: center;
}

body.admin-ltr .text-end {
    text-align: right !important;
}

body.admin-ltr .text-start {
    text-align: left !important;
}

body.admin-ltr .admin-dashboard-hero,
body.admin-ltr .admin-dashboard-actions-head,
body.admin-ltr .admin-dictionary-hero,
body.admin-ltr .admin-dictionary-row__header,
body.admin-ltr .admin-teacher-filter,
body.admin-ltr .admin-translation-filter,
body.admin-ltr .admin-short-video__controls {
    direction: ltr;
    text-align: left;
}

.admin-module-page {
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 8%, rgba(15, 118, 110, .11), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        var(--card-bg);
    border-color: rgba(203, 213, 225, .85);
}

.admin-module-hero {
    min-height: 132px;
}

.admin-module-kicker {
    margin-bottom: .45rem;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-module-subtitle {
    max-width: 780px;
}

.admin-module-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    flex-wrap: wrap;
}

.admin-module-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid rgba(203,213,225,.78);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,245,249,.86)),
        var(--soft-bg);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .05);
}

.admin-module-field,
.admin-module-field--grow,
.admin-module-field--wide,
.admin-module-field--small {
    min-width: 0;
}

.admin-module-field--grow,
.admin-module-field--wide {
    grid-column: span 2;
}

.admin-module-field--small {
    max-width: 180px;
}

.admin-module-toolbar .form-control,
.admin-module-toolbar .form-select {
    min-height: 54px;
}

.admin-module-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    justify-content: flex-start;
}

.admin-module-panel {
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(203,213,225,.78);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9)),
        var(--card-bg);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
}

.admin-home-manager-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

body.page-admin-short-video .admin-short-video-picker {
    grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr) auto;
}

body.page-admin-words .admin-words-filter {
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) auto;
}

body.page-admin-read-meaning .admin-read-meaning-filter {
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto;
}

body.page-admin-print-surah-pdf .admin-print-controls {
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(130px, .7fr)) auto;
}

@media (max-width: 1199.98px) {
    .admin-module-toolbar,
    body.page-admin-short-video .admin-short-video-picker,
    body.page-admin-words .admin-words-filter,
    body.page-admin-read-meaning .admin-read-meaning-filter,
    body.page-admin-print-surah-pdf .admin-print-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-module-actions {
        grid-column: 1 / -1;
    }

    .admin-module-field--grow,
    .admin-module-field--wide {
        grid-column: span 1;
    }

    .admin-home-manager-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .admin-module-page {
        padding: 1rem !important;
        border-radius: 22px;
    }

    .admin-module-hero {
        min-height: 0;
        justify-content: center !important;
        text-align: center;
    }

    .admin-module-hero-actions {
        justify-content: center;
    }

    .admin-module-toolbar,
    body.page-admin-short-video .admin-short-video-picker,
    body.page-admin-words .admin-words-filter,
    body.page-admin-read-meaning .admin-read-meaning-filter,
    body.page-admin-print-surah-pdf .admin-print-controls {
        grid-template-columns: 1fr;
        padding: .9rem;
        border-radius: 20px;
    }

    .admin-module-field--small {
        max-width: none;
    }

    .admin-module-actions .icon-action-btn {
        flex: 1 1 0;
    }
}

@media (prefers-color-scheme: dark) {
    .admin-module-page,
    .admin-module-toolbar,
    .admin-module-panel,
    body.page-admin-combine-audio .admin-audio-combiner,
    body.page-admin-short-video .admin-short-video__control-card,
    body.page-admin-short-video .admin-short-video__stage-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, 0.96), rgba(11, 19, 31, 0.94)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }
}

@media (prefers-color-scheme: dark) {
    body[class^="page-admin"] {
        background:
            radial-gradient(circle at top right, rgba(45, 212, 191, .10), transparent 28%),
            radial-gradient(circle at top left, rgba(244, 199, 107, .06), transparent 24%),
            var(--page-bg) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .section-card,
    body[class^="page-admin"] .hero-card,
    body[class^="page-admin"] .info-card,
    body[class^="page-admin"] .auth-card,
    body[class^="page-admin"] .profile-card,
    body[class^="page-admin"] .stat-card,
    body[class^="page-admin"] .bank-card,
    body[class^="page-admin"] .admin-icon-tile,
    body[class^="page-admin"] .admin-teacher-card,
    body[class^="page-admin"] .admin-teacher-card__grid > div,
    body[class^="page-admin"] .admin-teacher-card__text > div,
    body[class^="page-admin"] .admin-teacher-card__head,
    body[class^="page-admin"] .admin-teacher-review,
    body[class^="page-admin"] .admin-teacher-filter,
    body[class^="page-admin"] .admin-translation-filter,
    body[class^="page-admin"] .translator-reference-card,
    body[class^="page-admin"] .admin-audio-combiner__drop-label,
    body[class^="page-admin"] .admin-audio-combiner__file,
    body[class^="page-admin"] .admin-audio-combiner__result,
    body[class^="page-admin"] .admin-audio-combiner__result-player,
    body[class^="page-admin"] .admin-short-video__stage-card,
    body[class^="page-admin"] .admin-short-video__controls .recording-card,
    body[class^="page-admin"] .admin-short-video__controls .ayah-card,
    body[class^="page-admin"] .admin-short-video__ayah-chip,
    body[class^="page-admin"] .recording-card {
        background:
            linear-gradient(180deg, rgba(16, 26, 39, .98), rgba(12, 20, 32, .95)),
            var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
        box-shadow: var(--shadow) !important;
    }

    body[class^="page-admin"] .table,
    body[class^="page-admin"] .modern-table,
    body[class^="page-admin"] .modern-table thead th,
    body[class^="page-admin"] .modern-table > :not(caption) > * > *,
    body[class^="page-admin"] .table > :not(caption) > * > * {
        --bs-table-bg: transparent;
        --bs-table-color: var(--text-main);
        --bs-table-border-color: rgba(51, 65, 85, .9);
        background-color: transparent !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .form-control,
    body[class^="page-admin"] .form-select,
    body[class^="page-admin"] .input-group-text,
    body[class^="page-admin"] textarea,
    body[class^="page-admin"] select,
    body[class^="page-admin"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
        background-color: rgba(19, 32, 48, .96) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
        box-shadow: none !important;
    }

    body[class^="page-admin"] .form-control::placeholder,
    body[class^="page-admin"] textarea::placeholder,
    body[class^="page-admin"] .text-muted,
    body[class^="page-admin"] .small.text-muted,
    body[class^="page-admin"] .form-text,
    body[class^="page-admin"] .stat-card .label,
    body[class^="page-admin"] .admin-teacher-card__grid span,
    body[class^="page-admin"] .admin-teacher-card__text p,
    body[class^="page-admin"] .translator-reference-card__meaning,
    body[class^="page-admin"] .admin-audio-combiner__file-size,
    body[class^="page-admin"] .admin-short-video__server-link {
        color: var(--text-muted) !important;
    }

    body[class^="page-admin"] h1,
    body[class^="page-admin"] h2,
    body[class^="page-admin"] h3,
    body[class^="page-admin"] h4,
    body[class^="page-admin"] h5,
    body[class^="page-admin"] h6,
    body[class^="page-admin"] label,
    body[class^="page-admin"] .form-label,
    body[class^="page-admin"] .stat-card .value,
    body[class^="page-admin"] .admin-icon-tile i,
    body[class^="page-admin"] .admin-teacher-card__text h3,
    body[class^="page-admin"] .translator-reference-card__ayah {
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .admin-icon-tile:hover,
    body[class^="page-admin"] .admin-icon-tile:focus {
        background:
            linear-gradient(180deg, rgba(19, 54, 50, .98), rgba(12, 36, 34, .96)),
            var(--brand-2) !important;
        color: var(--brand) !important;
        border-color: rgba(45, 212, 191, .38) !important;
    }

    body[class^="page-admin"] .meta-badge,
    body[class^="page-admin"] .badge-soft,
    body[class^="page-admin"] .badge,
    body[class^="page-admin"] .alert,
    body[class^="page-admin"] .pagination .page-link {
        background: rgba(19, 32, 48, .88) !important;
        border-color: rgba(71, 85, 105, .7) !important;
        color: var(--carousel-text-muted) !important;
    }

    body[class^="page-admin"] .modal-content,
    body[class^="page-admin"] .dropdown-menu,
    body[class^="page-admin"] .offcanvas,
    body[class^="page-admin"] .list-group-item {
        background-color: var(--card-bg) !important;
        border-color: rgba(51, 65, 85, .9) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .btn-outline-secondary,
    body[class^="page-admin"] .btn-outline-dark,
    body[class^="page-admin"] .btn-light {
        background: rgba(19, 32, 48, .72) !important;
        border-color: rgba(71, 85, 105, .78) !important;
        color: var(--text-main) !important;
    }

    body[class^="page-admin"] .btn-close {
        filter: invert(1) grayscale(100%);
    }
}
