/* ==========================================================================
   QuranKita — static rebuild (HTML/JS/Bootstrap 5)
   ========================================================================== */

:root {
    --brand-50: #ecfdf5;
    --brand-100: #d1fae5;
    --brand-200: #a7f3d0;
    --brand-300: #6ee7b7;
    --brand-400: #34d399;
    --brand-500: #10b981;
    --brand-600: #059669;
    --brand-700: #047857;
    --brand-800: #065f46;
    --brand-900: #064e3b;
    --brand-950: #022c22;

    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;

    --font-arabic: "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", serif;
    --font-calligraphy: "Aref Ruqaa", "Amiri", "Noto Naskh Arabic", serif;
    --ayah-lh: 2.5;

    --border-soft: #e2e8f0;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-muted: #64748b;
    --text-body: #1e293b;
}

/* Dark theme via Bootstrap data attribute + custom overrides */
[data-bs-theme="dark"] {
    --brand-50: #022c22;
    --brand-100: #064e3b;
    --brand-200: #065f46;
    --brand-300: #059669;
    --brand-500: #34d399;
    --brand-600: #10b981;
    --brand-700: #6ee7b7;
    --brand-800: #a7f3d0;
    --brand-900: #d1fae5;

    --border-soft: #334155;
    --card-bg: #1e293b;
    --body-bg: #0f172a;
    --text-muted: #94a3b8;
    --text-body: #e2e8f0;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-body);
    transition: background-color .3s ease, color .3s ease;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--brand-500);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .5); border-radius: 8px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(51, 65, 85, .6); }

/* ---------- Typography helpers ---------- */
.font-arabic {
    font-family: var(--font-arabic);
    font-weight: 500;
    line-height: var(--ayah-lh);
    word-spacing: .08em;
}
.ayah-arabic {
    font-family: var(--font-arabic);
    font-weight: 500;
    line-height: var(--ayah-lh);
    word-spacing: .08em;
}
.ayat-card .ayah-arabic { font-size: 1.35rem; }
@media (min-width: 768px) { .ayat-card .ayah-arabic { font-size: 1.6rem; } }
.font-calligraphy {
    font-family: var(--font-calligraphy);
    font-weight: 700;
}
.tabular-nums { font-variant-numeric: tabular-nums; }

.text-gold { color: var(--gold-500); }

/* ---------- Pattern background (islamic star) ---------- */
.pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M40 10l7.4 22.6L70 40l-22.6 7.4L40 70l-7.4-22.6L10 40l22.6-7.4z'/%3E%3Ccircle cx='40' cy='40' r='32'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */
.glass {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .6);
}
[data-bs-theme="dark"] .glass {
    background: rgba(30, 41, 59, .72);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #059669 0%, #047857 45%, #064e3b 100%);
}
.hero-sky {
    background: linear-gradient(135deg, #0284c7 0%, #3730a3 45%, #0f172a 100%);
}
.hero-rose {
    background: linear-gradient(135deg, #e11d48 0%, #be185d 45%, #a21caf 100%);
}
.hero-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 45%, #b91c1c 100%);
}
.hero-emerald {
    background: linear-gradient(135deg, #047857 0%, #0f766e 50%, #164e63 100%);
}
.hero-violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 45%, #4c1d95 100%);
}
.hero-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
}
.hero-slate {
    background: linear-gradient(135deg, #64748b 0%, #475569 50%, #1e293b 100%);
}

/* ---------- Cards ---------- */
.qk-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.qk-card.hoverable:hover {
    transform: translateY(-3px);
    border-color: var(--brand-300);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
}

/* ---------- Buttons subtle ---------- */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-weight: 700;
    border: none;
}
.btn-brand:hover, .btn-brand:focus {
    color: #fff;
    filter: brightness(1.05);
}
[data-bs-theme="dark"] .btn-brand,
[data-bs-theme="dark"] .bg-brand-gradient,
[data-bs-theme="dark"] .surah-card .surah-badge {
    background: linear-gradient(135deg, #059669, #047857);
}
.btn-outline-brand {
    border: 1px solid var(--brand-500);
    color: var(--brand-600);
    background: transparent;
}
.btn-outline-brand:hover {
    background: var(--brand-500);
    color: #fff;
}
[data-bs-theme="dark"] .btn-outline-brand {
    color: var(--brand-300);
}
[data-bs-theme="dark"] .btn-outline-brand:hover {
    color: #022c22;
    background: var(--brand-400);
}

/* Jadwal bulanan */
.bg-brand-50-opacity { background: color-mix(in srgb, var(--brand-50) 75%, var(--card-bg)); }
.jadwal-table thead th {
    background: var(--border-soft);
    color: var(--text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    padding-top: 1rem;
    padding-bottom: 1rem;
    white-space: nowrap;
}
.jadwal-table td {
    padding-top: .8rem;
    padding-bottom: .8rem;
    white-space: nowrap;
    vertical-align: middle;
}
.jadwal-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.jadwal-table tbody tr:last-child { border-bottom: none; }
.jadwal-table tbody tr:hover { background: var(--border-soft); }

@media (max-width: 575.98px) {
    .jadwal-table thead { display: none; }
    .jadwal-table tbody { display: block; }
    .jadwal-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 .5rem;
        padding: .9rem 1rem;
        border-bottom: 1px solid var(--border-soft);
    }
    .jadwal-table tbody tr:last-child { border-bottom: none; }
    .jadwal-table tbody tr:hover { background: transparent; }
    .jadwal-table tbody tr.bg-brand-50-opacity {
        background: color-mix(in srgb, var(--brand-50) 75%, var(--card-bg));
        border: 1px solid color-mix(in srgb, var(--brand-600) 25%, var(--border-soft));
        border-radius: .9rem;
        margin: 0 0 .6rem;
    }
    .jadwal-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: .75rem;
        padding: .45rem .15rem;
        white-space: normal;
        border: none;
    }
    .jadwal-table td::before {
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--text-muted);
        flex-shrink: 0;
    }
    .jadwal-table td[data-label="Tanggal"] {
        grid-column: 1 / -1;
        font-size: .95rem;
        padding-top: .1rem;
        padding-bottom: .35rem;
        border-bottom: 1px dashed var(--border-soft);
        margin-bottom: .35rem;
    }
    .jadwal-table td[data-label="Tanggal"]::before { display: none; }
    .jadwal-table td[data-label="Terbit"] { color: var(--text-muted); }
}

/* ---------- Filter chips ---------- */
.chip {
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .75rem;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all .15s ease;
}
.chip.active {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, .35);
}
[data-bs-theme="dark"] .chip {
    background: #334155;
    color: #cbd5e1;
}

/* Doa category chips (rose accent) */
.doa-chip {
    border-radius: 999px;
    padding: .55rem .95rem;
    font-size: .75rem;
    font-weight: 800;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
    transition: all .15s ease;
}
.doa-chip.active { background: #e11d48; color: #fff; box-shadow: 0 4px 12px rgba(225, 29, 72, .3); }
[data-bs-theme="dark"] .doa-chip { background: #334155; color: #cbd5e1; }
.doa-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.doa-card:hover { transform: translateY(-4px); border-color: #fb7185; box-shadow: 0 18px 40px rgba(225, 29, 72, .12); }
[data-bs-theme="dark"] .doa-card:hover { border-color: #be123c; }

/* ---------- Surah list ---------- */
.surah-card .surah-badge {
    position: relative;
    border-radius: .75rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(5, 150, 105, .25);
}
.surah-card .surah-badge svg {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    color: var(--gold-400);
}
.surah-card.hidden, .doa-card.hidden, .asmaul-card.hidden, .azkar-card.hidden, .d-none-x { display: none !important; }

/* Hafalan progress bar */
.hafalan-fill {
    background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
}
/* Khatam progress bar */
.khatam-fill {
    background: linear-gradient(90deg, var(--gold-500), var(--brand-600));
}

/* Ayat dengan catatan */
.ayat-card.has-note {
    border-color: var(--gold-400);
    box-shadow: inset 0 0 0 1px var(--gold-400);
}
.icon-btn.noted {
    background: #fef3c7;
    color: #b45309;
}
[data-bs-theme="dark"] .icon-btn.noted {
    background: rgba(217, 119, 6, .25);
    color: #fcd34d;
}

/* Terjemahan per kata */
.wvw-word {
    cursor: pointer;
    border-radius: .35rem;
    padding: .1rem .15rem;
    transition: background .15s ease, color .15s ease;
}
.wvw-word:hover { background: rgba(16, 185, 129, .18); }
.wvw-word.active { background: var(--brand-100, #d1fae5); color: #064e3b; }
[data-bs-theme="dark"] .wvw-word.active { background: rgba(6, 95, 70, .45); color: #d1fae5; }
.wvw-info {
    border-left: 3px solid var(--brand-500);
    padding: .25rem .75rem;
    background: var(--card-bg);
    border-radius: .375rem;
}

/* Mode murojaah: sembunyikan latin & terjemahan */
body.murojaah-mode .ayat-latin,
body.murojaah-mode .terjemahan-box,
body.murojaah-mode #surah-latin,
body.murojaah-mode #surah-arti {
    display: none !important;
}
body.murojaah-mode .ayat-card { padding-bottom: .5rem; }

/* note-box / wvw-box */
.note-box {
    background: #fffbeb;
    border-left: 3px solid var(--gold-400);
}
[data-bs-theme="dark"] .note-box { background: rgba(120, 70, 10, .18); }

/* Kalender hijriah & imsakiyah */
.kal-cell { min-height: 92px; transition: transform .15s ease; position: relative; }
.kal-cell:hover { transform: translateY(-2px); }

/* ---------- Ayat cards ---------- */
.ayat-card {
    scroll-margin-top: 5rem;
    position: relative;
}
.ayat-card.ayah-playing {
    border-color: var(--surah-accent, var(--brand-400));
    background: color-mix(in srgb, var(--surah-accent, var(--brand-400)) 10%, var(--card-bg));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--surah-accent, var(--brand-400)) 25%, transparent);
}
.ayat-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 800;
    font-size: .95rem;
    vertical-align: middle;
    font-family: inherit;
}
[data-bs-theme="dark"] .ayat-num {
    border-color: var(--brand-400);
    background: rgba(6, 95, 70, .4);
    color: var(--brand-300);
}

/* Bookmark button state */
.bookmark-btn.bookmarked {
    color: var(--gold-500);
    border-color: var(--gold-400);
    background: rgba(251, 191, 36, .14);
}
[data-bs-theme="dark"] .bookmark-btn.bookmarked {
    color: var(--gold-400);
    border-color: var(--gold-500);
    background: rgba(251, 191, 36, .16);
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: #94a3b8;
    width: 2.4rem;
    height: 2.4rem;
    transition: all .2s ease;
}
.icon-btn:hover { color: var(--brand-600); border-color: var(--brand-400); transform: scale(1.05); }
.icon-btn.done { color: #16a34a; border-color: #22c55e; background: rgba(34, 197, 94, .12); }
[data-bs-theme="dark"] .icon-btn.done { color: #4ade80; border-color: #22c55e; }
.border-top-dashed { border-color: var(--border-soft) !important; border-top: 1px dashed var(--border-soft); }

/* ---------- Compass (kiblat) ---------- */
.compass-tick {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 8px;
    transform-origin: 50% 0;
}
.compass-tick::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 2px;
}
.compass-dial .compass-tick.big { height: 14px; }
.compass-dial .compass-tick.big::after { height: 14px; }

/* ---------- Scroll helpers ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.animate-fade-up { animation: fadeUp .5s ease-out both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section top margin */
main { min-height: 70vh; }

/* Search results dropdown */
.search-results {
    max-height: 22rem;
    overflow-y: auto;
    border-radius: .9rem !important;
}
.search-item mark {
    padding: 0 .15rem;
    border-radius: .25rem;
    background: var(--brand-50);
    color: var(--brand-700);
}

/* ---------- Pencarian ayat (search beautified) ---------- */
.search-wrap { padding-bottom: .15rem; }
.search-field { position: relative; }
.search-field .search-icon {
    position: absolute;
    top: 50%; left: .6rem;
    transform: translateY(-50%);
    width: 2.4rem; height: 2.4rem;
    border-radius: .75rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(160deg, #10b981, #047857);
    box-shadow: 0 2px 8px rgba(5, 150, 105, .28);
    z-index: 2;
    pointer-events: none;
}
.search-field .search-icon i { font-size: 1.05rem; line-height: 1; }
.search-field .search-input {
    padding-left: 4.1rem;
    padding-right: 2.9rem;
    border: 1.5px solid var(--border-soft);
    background: var(--card-bg);
    font-size: 1.05rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.search-field .search-input::placeholder { color: var(--text-muted); opacity: .85; }
.search-field .search-input:focus,
.search-field:focus-within .search-input {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 5px rgba(5, 150, 105, .14), inset 0 1px 2px rgba(0,0,0,.04);
}
.search-clear {
    position: absolute;
    top: 50%; right: .85rem;
    transform: translateY(-50%);
    width: 2rem; height: 2rem;
    border: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--border-soft);
    color: var(--text-muted);
    transition: all .15s ease;
}
.search-clear:hover { background: var(--brand-600); color: #fff; }
.search-suggest {
    display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
    margin-top: .9rem;
}
.chip-suggest {
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .8rem;
    background: var(--brand-50);
    color: var(--brand-700);
    cursor: pointer;
    transition: all .15s ease;
}
.chip-suggest:hover {
    background: var(--brand-600);
    color: #fff;
    border-color: var(--brand-600);
    box-shadow: 0 4px 12px rgba(5, 150, 105, .3);
    transform: translateY(-1px);
}

/* ---------- Modal Install PWA ---------- */
.qk-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(2, 44, 34, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.qk-install-backdrop.show { opacity: 1; pointer-events: auto; }
.qk-install-sheet {
    position: relative;
    width: min(26rem, 100%);
    padding: 2rem 1.75rem;
    border-radius: 1.25rem;
    background: var(--card-bg);
    color: var(--text-body);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
    transform: translateY(12px);
    transition: transform .2s ease;
}
.qk-install-backdrop.show .qk-install-sheet { transform: translateY(0); }
.qk-install-close {
    position: absolute;
    top: .8rem; right: .8rem;
    width: 2.2rem; height: 2.2rem;
    border: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--border-soft);
    color: var(--text-muted);
}
.qk-install-close:hover { background: var(--brand-600); color: #fff; }

/* Toast */
#qk-toast {    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1600;
    background: #0f172a;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .875rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .4);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
[data-bs-theme="dark"] #qk-toast {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sticky audio player bar */
#audio-player-root.fixed-player, #asmaul-player-root.fixed-player {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(94vw, 640px);
    z-index: 1500;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .25);
}

/* Beri ruang bawah agar konten tidak tertutup player / tombol install di ponsel */
body.has-audio-player { padding-bottom: 7rem; }

/* Kiblat needle / arc */
#qibla-needle, #qibla-arc, #compass-rotate { will-change: transform; }

/* ---------- Min-height for wraps ---------- */
.min-h-70vh { min-height: 70vh; }

/* ---------- Azkar tabs ---------- */
.azkar-tab { border: none; background: transparent; color: var(--text-muted); transition: all .15s ease; }
.azkar-tab:hover { background: var(--border-soft); }
.azkar-tab.active { background: #e0f2fe; color: #075985; }
[data-bs-theme="dark"] .azkar-tab.active { background: rgba(14, 116, 144, .35); color: #7dd3fc; }
.niat-tab { border: none; background: transparent; color: var(--text-muted); transition: all .15s ease; }
.niat-tab:hover { background: var(--border-soft); }
.niat-tab.active { background: #d1fae5; color: #047857; }
[data-bs-theme="dark"] .niat-tab.active { background: rgba(5, 150, 105, .35); color: #6ee7b7; }
.azkar-count-btn { border: 1px solid var(--border-soft); background: transparent; }
.azkar-count-btn:hover { background: var(--brand-50); }
.azkar-count-btn.done {
    border-color: var(--brand-400);
    color: var(--brand-600);
    background: var(--brand-50);
}
.azkar-count-btn.reached {
    border-color: #22c55e;
    color: #15803d;
    background: rgba(34, 197, 94, .12);
}
[data-bs-theme="dark"] .azkar-count-btn.reached { color: #4ade80; background: rgba(34, 197, 94, .18); }
.azkar-count-reset { color: #94a3b8; }
.azkar-count-reset:hover { color: #dc2626; border-color: #fca5a5; background: rgba(220, 38, 38, .08); }

/* Jadwal hari ini di beranda: jam mengarah ke samping (horizontal) */
#today-times-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scroll-snap-type: x mandatory;
}
#today-times-grid > div {
    flex: 1 0 9.5rem;
    scroll-snap-align: start;
}
#today-times-grid .prayer-item {
    margin: 0;
}

/* ---------- Custom utilities (Bootstrap supplement) ---------- */
.bg-brand { background-color: var(--brand-600) !important; }
.text-brand { color: var(--brand-600) !important; }
[data-bs-theme="dark"] .text-brand { color: var(--brand-300) !important; }
.bg-brand-gradient {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}
.place-items-center { place-items: center; }
.cursor-pointer { cursor: pointer; }
.fs-7 { font-size: .85rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

.logo-box { width: 2.5rem; height: 2.5rem; }
.logo-svg { width: 1.35rem; height: 1.35rem; }
.icon-box { width: 2rem; height: 2rem; }
.icon-box-sm { width: 2rem; height: 2rem; }
.icon-chip {
    width: 2.5rem; height: 2.5rem; border-radius: .75rem;
    background: var(--brand-50); color: var(--brand-600);
    transition: all .2s ease;
}
.prayer-item:hover .icon-chip { background: var(--brand-600); color: #fff; }
.prayer-active { border-color: var(--brand-400) !important; background: color-mix(in srgb, var(--brand-50) 55%, var(--card-bg)) !important; transform: scale(1.03); }

.icon-btn-ghost { width: 2.5rem; height: 2.5rem; padding: 0; display: grid; place-items: center; }

.nav-link-hover, .nav-drop-hover { transition: background-color .15s ease, color .15s ease; }
.nav-link-hover:hover { background: rgba(100, 116, 139, .12); color: var(--brand-600) !important; }
.nav-drop-hover:hover { background: rgba(100, 116, 139, .12); color: var(--brand-600) !important; }
.city-option:hover { background: var(--brand-50); }
.footer-link:hover { color: var(--brand-600) !important; }

.appearance-none { appearance: none; -webkit-appearance: none; }

/* Dropdown menu dark tweaks */
[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #1e293b; --bs-dropdown-border-color: #334155; }
[data-bs-theme="dark"] select.form-select, [data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
    background-color: #1e293b; color: #e2e8f0; border-color: #475569;
}

/* Skeletons */
.skeleton { border-radius: 1rem; background: linear-gradient(90deg, rgba(148,163,184,.12) 25%, rgba(148,163,184,.25) 50%, rgba(148,163,184,.12) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Responsive tweak: text sizes in hero */
@media (max-width: 575.98px) {
    .hero-display { font-size: 2rem; }
}

/* ---------- Warna Tajwid ---------- */
.tajwid-ikhfa { color: #3b82f6; }
.tajwid-idgham { color: #16a34a; }
.tajwid-iqlab { color: #dc2626; }
.tajwid-qalqalah { color: #ea580c; }
.tajwid-mad { color: #9333ea; }
.tajwid-ghunnah { color: #16a34a; }
.tajwid-legend { border: 1px solid var(--border-soft); border-radius: .75rem; }
.tajwid-legend .dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- Pengaturan baca (ukuran & spasi) ---------- */
.ayat-card .ayah-arabic { font-size: var(--ayah-size, 1.35rem); }
@media (min-width: 768px) { .ayat-card .ayah-arabic { font-size: var(--ayah-size, 1.6rem); } }
.terjemahan-box { font-size: var(--trans-size, .875rem); }
#surah-latin { font-size: var(--surah-title-size, 1.75rem); }
.reading-settings .btn-sm { min-width: 2.75rem; min-height: 2.6rem; font-size: .95rem; }

/* ---------- Asmaul Husna player ---------- */
.asmaul-play-btn { position: absolute; top: .5rem; left: .5rem; z-index: 2; }
.asmaul-card { position: relative; }
#asmaul-player-root.fixed-player { z-index: 1400; }
#asmaul-player-root .btn-circle { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; }

/* ---------- Statistik dzikir ---------- */
.dzikir-bars { display: flex; align-items: flex-end; gap: .35rem; height: 5rem; }
.dzikir-bars .bar {
    flex: 1; background: color-mix(in srgb, var(--brand-500) 55%, var(--card-bg));
    border-radius: .35rem .35rem 0 0; min-height: 2px;
    transition: height .3s ease;
}
.dzikir-bars .bar.today { background: var(--brand-600); }
.dzikir-bars .bar-label { font-size: .6rem; text-align: center; }

/* ---------- Hari besar Islam di kalender ---------- */
.kal-holiday {
    position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
    background: linear-gradient(160deg, rgba(16,185,129,.16), rgba(5,150,105,.28));
    pointer-events: none;
}
.kal-holiday span { position: absolute; right: .3rem; font-size: .95rem; }
.kal-holiday .kal-holiday-label {
    position: absolute; left: .3rem; right: .3rem; bottom: .2rem;
    font-size: .55rem; font-weight: 800; text-align: center;
    color: var(--brand-700); letter-spacing: .02em;
}
.kal-cell-today .kal-holiday .kal-holiday-label { color: #d1fae5; }
.kal-list-holiday { display: inline-flex; align-items: center; gap: .3rem; margin-top: .15rem; font-size: .7rem; font-weight: 700; color: var(--brand-700); }