/* Ekstrak 1:1 dari html_mobile/MOBILE APP TRIAL/index.html <style> — JANGAN diedit manual, ini kontrak UI referensi. */

        /* --- PALET WARNA & TIPOGRAFI --- */
        :root {
            --deep-navy: #003354;
            --light-sky: #CBEFFF;
            --teal-green: #148F87;
            --warm-yellow: #FFB606;
            --charcoal-gray: #4A5568;
            --bg-light: #F8FAFC;
            --white: #FFFFFF;
            --font-main: 'Plus Jakarta Sans', sans-serif;
            --accent-pink: #f08b00;
            
            --primary-blue: #0A2240;
            --border-grey: #E2E8F0;
            --text-muted: #64748B;
            --star-gold: #F59E0B;
            --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
            
            /* Warna tambahan view jadwal */
            --card-bg-dark: #00223A; 
            --card-border-dark: rgba(0, 51, 84, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: var(--font-main);
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: #E2E8F0;
            color: var(--charcoal-gray);
            display: flex;
            justify-content: center;
            min-height: 100vh;
            line-height: 1.6;
        }

        /* Container HP (Mobile Viewport) */
        .app-container {
            width: 100%;
            max-width: 480px;
            background-color: var(--bg-light);
            position: relative;
            overflow-x: hidden;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
            min-height: 100vh;
        }

        /* Logic View Switcher */
        .view-section {
            display: none;
        }
        .view-section.active {
            display: block;
        }

        /* --- HOME VIEW SPECIFIC --- */
        #home-view {
            padding-bottom: 90px;
        }

        .hero-section {
            padding: 30px 20px 25px;
            background-color: var(--deep-navy);
            color: var(--white);
            border-bottom-left-radius: 24px;
            border-bottom-right-radius: 24px;
            position: relative;
            overflow: hidden;
            background-image: linear-gradient(
                90deg,
                rgba(0,51,84,0.95) 0%,
                rgba(0,51,84,0.85) 0%,
                rgba(0,51,84,0.35) 50%
            ),
            url("/static/images/hero-quran.jpg");
            background-size: cover;
            background-position: center right;
        }

        .user-profile {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .greeting h2 {
            font-size: 14px;
            color: var(--light-sky);
            font-weight: 400;
        }

        .greeting h1 {
            font-size: 22px;
            font-weight: 800;
            color: var(--white);
            margin-top: 2px;
        }

        .avatar-placeholder {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .time-display {
            text-align: center;
            margin: 10px 0 20px;
        }

        .time-display h3 {
            font-size: 52px;
            font-weight: 800;
            letter-spacing: -1px;
            color: var(--white);
        }

        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.08);
            padding: 12px 16px;
            border-radius: 14px;
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .toggle-label {
            font-size: 13px;
            color: var(--white);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 46px;
            height: 24px;
        }

        .switch input { display: none; }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(255, 255, 255, 0.2);
            transition: .4s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: var(--white);
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider { background-color: var(--warm-yellow); }
        input:checked + .slider:before { transform: translateX(22px); }

        .prayer-panel-inside {
            background-color: var(--light-sky);
            border-radius: 20px;
            padding: 20px 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .prayer-grid-new {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 6px;
            text-align: center;
        }

        .prayer-item-new {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .prayer-name-new {
            color: #1e293b;
            font-weight: 600;
            font-size: 13px;
        }

        .prayer-icon-box-new {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            border: 1px solid #f1f5f9;
        }

        .prayer-icon-box-new img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .prayer-time-new {
            color: #0f172a;
            font-weight: 700;
            font-size: 14px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 800;
            color: var(--deep-navy);
            padding: 25px 20px 15px;
            letter-spacing: -0.3px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px 12px;
            padding: 0 20px;
        }

        .feature-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            cursor: pointer;
        }

        .feature-icon-wrapper {
            width: 100%;
            aspect-ratio: 1 / 1;
            max-width: 76px;
            border-radius: 16px;
            background-color: #f1f1e6;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 24px;
            margin-bottom: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            transition: all 0.2s ease;
        }

        .feature-icon-wrapper img{
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .feature-item:active .feature-icon-wrapper {
            transform: scale(0.95);
            background-color: var(--light-sky);
            color: var(--deep-navy);
        }

        .feature-label {
            font-size: 14px;
            color: var(--charcoal-gray);
            text-align: center;
            font-weight: 700;
        }

        .course-slider-container {
            width: 100%;
            padding: 0 20px;
        }

        .course-scroll-wrapper {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            padding: 0px 20px 20px 20px; 
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch; 
        }

        .course-scroll-wrapper::-webkit-scrollbar { display: none; }
        .course-scroll-wrapper::after { content: ''; padding-right: 4px; }

        .course-vertical-card {
            flex: 0 0 68%; 
            scroll-snap-align: start;
            background-color: var(--white);
            border: 1px solid var(--border-grey);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            display: flex;
            flex-direction: column;
        }

        .image-container {
            width: 100%;
            height: 90px;
            overflow: hidden;
        }

        .course-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-content {
            padding: 10px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            justify-content: space-between;
        }

        .course-title {
            margin: 0 0 4px 0;
            font-size: 0.8rem;
            font-weight: 700;
            line-height: 1.3;
            color: var(--primary-blue);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 34px;
        }

        .rating-container {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-bottom: 6px;
        }

        .rating-score { font-weight: 700; font-size: 0.7rem; }
        .star-icons { color: var(--star-gold); font-size: 0.65rem; }
        .rating-count { font-size: 0.65rem; color: var(--text-muted); }

        .tags-container {
            display: flex;
            flex-direction: column;
            gap: 2px;
            border-top: 1px solid var(--border-grey);
            padding-top: 6px;
            margin-bottom: 10px;
        }

        .tag-item { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; }

        .view-course-btn {
            display: block;
            width: 100%;
            padding: 8px 0;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
            text-align: center;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
            margin-top: auto;
        }

        .view-course-btn.outline {
            background-color: transparent;
            color: var(--primary-blue);
            border: 1px solid var(--primary-blue);
        }

        .view-course-btn.outline:active { background-color: rgba(10, 34, 64, 0.05); }

        .view-course-btn.filled {
            background-color: var(--primary-blue);
            color: var(--white);
            border: 1px solid var(--primary-blue);
        }

        .view-course-btn.filled:active { opacity: 0.9; }

        .course-footer-container {
            padding: 0 20px;
            margin-bottom: 16px;
        }

        .see-all-btn {
            background-color: var(--primary-blue);
            color: var(--white);
            padding: 12px 28px;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(10, 34, 64, 0.2);
            width: 100%;
        }

        .see-all-btn:active { opacity: 0.9; }

        .scroll-wrapper {
            display: flex;
            gap: 15px;
            overflow-x: auto;
            padding: 5px 20px 10px;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
        }
        .scroll-wrapper::-webkit-scrollbar { display: none; }
        .scroll-wrapper::after { content: ''; flex: 0 0 5px; }

        .product-card {
            flex: 0 0 140px;
            background: var(--white);
            border-radius: 16px;
            padding: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            border: 1px solid rgba(0, 0, 0, 0.02);
        }

        .product-image-placeholder {
            width: 100%; 
            height: 110px; 
            background: var(--bg-light);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden; 
            margin-bottom: 12px;
        }

        .product-image-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 4px;
        }

        .product-card h5 {
            width: 100%; 
            font-size: 13px;
            font-weight: 600;
            color: var(--deep-navy);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: auto; 
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 480px;
            height: 75px;
            background-color: var(--white);
            border-top: 1px solid rgba(0, 51, 84, 0.08);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 999;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
        }

        .nav-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #94A3B8;
            font-size: 11px;
            font-weight: 600;
            gap: 4px;
            width: 20%;
        }

        .nav-link.active { color: var(--deep-navy); }
        .nav-link i { font-size: 20px; }


        /* --- JADWAL VIEW SPECIFIC --- */
        #jadwal-view {
            background-color: var(--white);
            padding: 20px 20px 30px 20px;
        }

        /* Header Back Button Zone */
        .header-back-zone {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .btn-back {
            background: none;
            border: none;
            color: var(--deep-navy);
            font-size: 16px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 5px 0;
        }

        .panels-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 15px;
        }

        .info-card {
            background-color: var(--card-bg-dark);
            border: 1px solid var(--card-border-dark);
            border-radius: 18px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 150px;
            color: var(--white);
        }

        .card-tag {
            font-size: 11px;
            background: rgba(255, 255, 255, 0.1);
            padding: 3px 8px;
            border-radius: 6px;
            width: fit-content;
            color: #CBD5E1;
        }

        .prayer-now-title {
            font-size: 16px;
            font-weight: 600;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .prayer-now-title i { color: var(--warm-yellow); }

        .prayer-now-time {
            font-size: 32px;
            font-weight: 800;
            margin: 4px 0;
            letter-spacing: -0.5px;
        }

        .prayer-countdown { font-size: 12px; color: #94A3B8; }

        .progress-card { align-items: center; justify-content: center; position: relative; }

        .circle-container {
            position: relative;
            width: 100px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .circle-svg { transform: rotate(-90deg); width: 100px; height: 100px; }
        .circle-bg { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 8; }
        
        .circle-bar {
            fill: none;
            stroke: var(--teal-green);
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.35s;
            transform-origin: 50% 50%;
        }

        .circle-text { position: absolute; text-align: center; }
        .circle-text h2 { font-size: 22px; font-weight: 700; }
        .circle-text p { font-size: 10px; color: #94A3B8; }
        .check-badge-center { position: absolute; top: 5px; color: var(--teal-green); font-size: 14px; }

        .imsak-terbit-bar {
            background-color: var(--card-bg-dark);
            border-radius: 20px;
            padding: 8px;
            text-align: center;
            font-size: 12px;
            color: #CBD5E1;
            margin-bottom: 15px;
        }

        .prayer-list-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }

        .prayer-row {
            background-color: #F8FAFC;
            border: 1px solid #E2E8F0;
            border-radius: 16px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s ease;
            color: var(--charcoal-gray);
        }

        .prayer-row.active-now {
            border-color: var(--teal-green);
            background-color: rgba(20, 143, 135, 0.05);
        }

        .left-row-zone { display: flex; align-items: center; gap: 14px; }

        .checkbox-round {
            width: 22px;
            height: 22px;
            border: 2px solid #94A3B8;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .checkbox-round.checked { background-color: var(--teal-green); border-color: var(--teal-green); }
        .checkbox-round.checked::after { content: '✓'; color: var(--white); font-size: 12px; font-weight: bold; }

        .prayer-name-box { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
        .icon-sun { color: var(--warm-yellow); }
        .icon-cloud { color: #818CF8; }
        .icon-sunset { color: #F59E0B; }
        .icon-moon { color: var(--charcoal-gray); }
        .icon-spark { color: var(--teal-green); }

        .right-row-zone { display: flex; align-items: center; gap: 12px; }
        .status-badge-inline { font-size: 10px; background: rgba(0, 51, 84, 0.08); padding: 2px 6px; border-radius: 4px; color: var(--deep-navy); }
        .prayer-time-text { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }

        .audio-toggle-btn {
            color: #94A3B8;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.02);
        }

        .audio-toggle-btn.muted { color: #CBD5E1; }

        .action-button-container { margin-bottom: 20px; }
        
        .btn-success-all {
            width: 100%;
            background-color: var(--teal-green);
            color: var(--white);
            border: none;
            padding: 14px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-success-all:active { opacity: 0.9; }



        /* --- HADITH COMPONENT STYLES (SESUAI MOCKUP PICTURE) --- */
        .hadith-books-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            padding: 16px 4px;
        }

        .hadith-book-card {
            background: var(--white);
            border-radius: 20px;
            padding: 20px 16px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            position: relative;
            box-shadow: 0 4px 18px rgba(0, 51, 84, 0.04);
            border: 1px solid rgba(0, 51, 84, 0.02);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

/* Sembunyikan sub-panel hadis secara default */
.hadith-panel {
    display: none;
}

/* Tampilkan sub-panel hadis yang aktif (misal: hadith-panel-dashboard) */
.hadith-panel.active {
    display: block;
}

/* Memastikan loading screen tidak mengunci layar jika tidak digunakan */
#hadith-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sesuai tema gelap jika Anda menggunakannya */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hadith-book-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 51, 84, 0.02);
}

.hadith-card {
    background: rgba(255, 255, 255, 0.05); /* Tipis transparan untuk dark mode */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hadith-arabic {
    font-family: 'Amiri', serif; /* Font arab agar lebih estetik */
    font-size: 1.5rem;
    line-height: 2.5rem;
    direction: rtl; /* Teks berjalan dari kanan ke kiri */
    text-align: right;
    margin-bottom: 12px;
}

/* Lingkaran Ikon Kitab Hadis */
.hadith-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: bold;
}

/* Info Text di Dalam Kartu Hadis */
.hadith-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.hadith-book-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    color: var(--deep-navy);
    line-height: 1.3;
}

.hadith-book-count {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
}

/* Panah kecil pemanis di sudut kanan bawah kartu */
.hadith-arrow-btn {
    position: absolute;
    bottom: 20px;
    right: 16px;
    font-size: 12px;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.hadith-book-card:hover .hadith-arrow-btn {
    color: var(--deep-navy);
}

/* Styling Halaman List Isi Hadis */
.hadith-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 4px;
    margin-bottom: 16px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--deep-navy);
    cursor: pointer;
    font-weight: 600;
}

.hadith-item-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.hadith-number {
    font-size: 13px;
    font-weight: bold;
    color: #0284C7;
    margin-bottom: 12px;
}

.hadith-arabic {
    font-family: 'Amiri', serif; /* atau font arab pilihan Anda */
    font-size: 22px;
    line-height: 1.8;
    color: #1E293B;
    text-align: right;
    margin-bottom: 12px;
    word-break: break-word;
}

.hadith-translation {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.loading-state, .error-state {
    text-align: center;
    padding: 40px;
    color: #64748B;
    font-size: 15px;
}

/* ==========================================================================
   QIBLA VIEW STYLES (PREMIUM MOBILE UPGRADE)
   ========================================================================== */
   #qibla-view {
    display: none; /* Default disembunyikan, muncul via switchView */
    flex-direction: column;
    min-height: calc(100vh - 70px); /* Menyesuaikan agar tidak tertutup bottom bar jika ada */
    background-color: var(--bg-light);
}

#qibla-view.active {
    display: flex;
}

.qibla-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border-grey);
    position: sticky;
    top: 0;
    z-index: 100;
}

.qibla-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qibla-header .header-left i {
    font-size: 18px;
    cursor: pointer;
    color: var(--deep-navy);
    padding: 4px;
}

.qibla-header .header-left h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 0;
}

.qibla-header .location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--light-sky);
    color: var(--deep-navy);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qibla-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-between;
}

.qibla-info-card {
    background: var(--white);
    width: 100%;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-grey);
    box-sizing: border-box;
}

.qibla-info-card .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qibla-info-card .info-item .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.qibla-info-card .info-item .value {
    font-size: 20px;
    font-weight: 800;
    color: var(--deep-navy);
}

.qibla-info-card .divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-grey);
}

.compass-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-ring {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--white) 40%, #F1F5F9 100%);
    border: 6px solid var(--deep-navy);
    box-shadow: 0 12px 32px rgba(0, 51, 84, 0.15), inset 0 2px 8px rgba(255,255,255,0.8);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.cardinal {
    position: absolute;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-muted);
    transform: translateX(-50%);
}
.cardinal.north { top: 12px; left: 50%; color: var(--teal-green); font-size: 16px; }
.cardinal.east  { top: 50%; right: 14px; transform: translateY(-50%); }
.cardinal.south { bottom: 12px; left: 50%; }
.cardinal.west  { top: 50%; left: 26px; transform: translateY(-50%); }

.compass-ring::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; height: 85%;
    border: 1px dashed rgba(0, 51, 84, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.kaaba-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.kaaba-indicator i {
    font-size: 26px;
    color: var(--warm-yellow);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-navy) 100%);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 182, 6, 0.6), 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid var(--white);
}

.kaaba-line-pointer {
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, var(--warm-yellow), transparent);
    margin-top: -2px;
}

.center-needle {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 32px;
    background-color: var(--teal-green);
    border-radius: 2px;
    z-index: 20;
}
.center-needle::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--teal-green);
}

.qibla-instruction-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--white);
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-grey);
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--card-shadow);
    margin-top: auto;
}

.qibla-instruction-box i {
    font-size: 18px;
    color: var(--teal-green);
    transition: color 0.3s ease;
}

.qibla-instruction-box p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: var(--charcoal-gray);
    font-weight: 500;
}

.btn-calibrate {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--card-shadow);
    width: 100%;
    justify-content: center;
}


/* ==========================================================================
   TASBIH VIEW STYLES
   ========================================================================== */
   #tasbih-view {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

#tasbih-view.active {
    display: flex;
}

.tasbih-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border-grey);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tasbih-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tasbih-header h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--deep-navy);
    margin: 0;
}

.tasbih-header .action-btns {
    display: flex;
    gap: 14px;
    font-size: 18px;
    color: var(--deep-navy);
}

.tasbih-header .action-btns i {
    cursor: pointer;
    padding: 6px;
    transition: transform 0.2s;
}

.tasbih-header .action-btns i:active {
    transform: scale(0.85);
}

.tasbih-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

/* Zikir Selector Card */
.zikr-selector-card {
    background: var(--white);
    width: 100%;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-grey);
    box-sizing: border-box;
}

.zikr-selector-card label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.zikr-select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border-grey);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--deep-navy);
    background-color: var(--bg-light);
    outline: none;
}

/* Counter & Bead Display */
.tasbih-counter-display {
    text-align: center;
    margin: 10px 0;
}

.tasbih-counter-display .count-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--deep-navy);
    line-height: 1;
}

.tasbih-counter-display .target-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* TRACK BULIR ANIMASI (MECHANICAL SLIDER) */
.beads-track-container {
    position: relative;
    width: 100%;
    height: 80px;
    background: rgba(0,0,0,0.03);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-grey);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
}

/* Tali Tasbih Sentral */
.beads-string-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--text-muted), transparent);
    transform: translateY(-50%);
    z-index: 1;
}

/* Pembungkus Bulir Bergerak */
.beads-slider-wrapper {
    display: flex;
    gap: 16px;
    position: absolute;
    left: 50%;
    transform: translateX(-50px); /* Fokus bulir aktif di tengah agak kiri */
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    pointer-events: none;
}

/* Item Bulir Tunggal */
.bead-item {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal-green);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15), inset 0 -4px 8px rgba(0,0,0,0.2), inset 0 4px 8px rgba(255,255,255,0.3);
    transition: background-color 0.3s, transform 0.2s, filter 0.2s;
    flex-shrink: 0;
}

.bead-item.active-target {
    transform: scale(1.15);
    filter: brightness(1.1);
    border: 2px solid var(--white);
}

/* Tombol Klik Area Besar */
.tasbih-clicker-area {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-grey);
    box-shadow: var(--card-shadow);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    transition: transform 0.1s;
}

.tasbih-clicker-area:active {
    transform: scale(0.98);
}

.tasbih-clicker-area i {
    font-size: 36px;
    color: var(--teal-green);
    margin-bottom: 8px;
}

.tasbih-clicker-area p {
    font-size: 13px;
    font-weight: 700;
    color: var(--charcoal-gray);
    margin: 0;
}

/* PANEL ADJUSTMENT / KUSTOMISASI */
.tasbih-customizer-panel {
    background: var(--white);
    width: 100%;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-grey);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-row span {
    font-size: 12px;
    font-weight: 700;
    color: var(--charcoal-gray);
}

.color-options-group {
    display: flex;
    gap: 10px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-dot:active {
    transform: scale(0.85);
}

.color-dot.selected {
    border-color: var(--deep-navy);
    transform: scale(1.1);
}



/* --- ZAKAT VIEW SPECIFIC STYLE --- */
#zakat-view {
    padding-bottom: 90px;
}
.premium-header {
    background: linear-gradient(135deg, var(--deep-navy), #00223b);
    color: var(--white);
    padding: 30px 20px 45px 20px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
}
.header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.header-top i {
    font-size: 18px;
    color: var(--light-sky);
    cursor: pointer;
}
.header-top h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}
.premium-header p {
    font-size: 12px;
    color: var(--light-sky);
    line-height: 1.5;
    padding-left: 34px;
    opacity: 0.9;
}
.calculator-content {
    padding: 20px;
    margin-top: -20px;
}
.nisab-banner {
    background-color: var(--white);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 33, 84, 0.02);
    margin-bottom: 24px;
    border: 1px solid var(--border-grey);
}
.nisab-banner .icon-box {
    background-color: var(--light-sky);
    color: var(--deep-navy);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.nisab-details table {
    width: 100%;
    font-size: 12px;
}
.nisab-details td { padding: 2px 0; }
.nisab-label { color: var(--charcoal-gray); width: 120px; }
.nisab-value { font-weight: 700; color: var(--deep-navy); }

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title i { color: var(--teal-green); }
.input-card {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 33, 84, 0.01);
    border: 1px solid var(--border-grey);
    margin-bottom: 20px;
}
.input-field-group { margin-bottom: 14px; }
.input-field-group:last-child { margin-bottom: 0; }
.input-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal-gray);
    margin-bottom: 6px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-prefix {
    position: absolute;
    left: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #A0AEC0;
}
.input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-size: 13px;
    font-weight: 700;
    color: var(--deep-navy);
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    background-color: var(--bg-light);
    transition: all 0.2s ease;
}
.input-wrapper input:focus {
    outline: none;
    border-color: var(--teal-green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(20, 143, 135, 0.08);
}
.zakat-action-bar {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
}
.btn-hitung {
    width: 100%;
    background-color: var(--teal-green);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 143, 135, 0.2);
    transition: opacity 0.2s;
}
.btn-hitung:active { opacity: 0.9; }

/* Bottom Sheet Calculator Result */
.bottom-sheet-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 84, 0.4);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bottom-sheet {
    position: absolute;
    bottom: -100%; left: 0; right: 0;
    background: var(--white);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 20px;
    z-index: 10000;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -10px 25px rgba(0, 33, 84, 0.1);
}
.bottom-sheet.show { bottom: 0; }
.sheet-handle {
    width: 40px; height: 4px;
    background: var(--border-grey);
    border-radius: 2px;
    margin: -12px auto 16px auto;
}
.sheet-title {
    font-size: 16px; font-weight: 700;
    color: var(--deep-navy); margin-bottom: 16px;
    text-align: center;
}
.result-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.result-row .label { color: var(--charcoal-gray); }
.result-row .value { font-weight: 700; color: var(--deep-navy); }
.status-badge { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.status-wajib { background: #D1FAE5; color: #065F46; }
.status-belum { background: var(--bg-light); color: var(--charcoal-gray); border: 1px solid var(--border-grey); }
.final-zakat-box {
    background: var(--light-sky);
    border: 1px dashed var(--teal-green);
    border-radius: 12px;
    padding: 16px; text-align: center;
    margin-top: 16px; margin-bottom: 20px;
}
.final-zakat-box p { font-size: 12px; color: var(--deep-navy); font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
.final-zakat-box h3 { font-size: 24px; font-weight: 800; color: var(--teal-green); }
.btn-tutup-sheet {
    width: 100%; background: var(--bg-light);
    color: var(--charcoal-gray); border: 1px solid var(--border-grey);
    padding: 12px; border-radius: 10px;
    font-weight: 600; font-size: 13px; cursor: pointer;
}

/* --- PERBAIKAN STYLING HADIST Sesuai Mockup image_0.png --- */
#hadith-view {
    padding-bottom: 90px;
    background-color: var(--bg-light);
}

#hadith-view .hadith-content {
    padding: 20px;
}

/* Header Hadist */
.hadith-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.hadith-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--deep-navy);
}


/* Kartu "Hadis Hari Ini" */
.hadith-day-card {
    background-color: var(--teal-green);
    color: var(--white);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;

    /* --- MENAMBAHKAN SILUET MASJID DENGAN SVG --- */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M70,100 L70,60 Q75,55 75,50 L75,35 Q75,30 72,30 L72,20 Q72,15 70,15 L70,5 L69,5 L69,15 Q67,15 67,20 L67,30 Q64,30 64,35 L64,50 Q64,55 69,60 L69,100 Z M85,100 L85,70 Q88,67 88,63 L88,50 L87,50 L87,40 L86,40 L86,50 L85,50 Q82,67 85,70 Z M100,100 L100,40 Q95,45 90,40 L90,100 Z' fill='rgba(255,255,255,0.15)'/></svg>");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 45% auto; /* Mengatur lebar gambar masjid mengambil 45% dari lebar kartu */
}

.hadith-day-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hadith-day-card .book-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.hadith-day-card .card-info h2 {
    font-size: 18px;
    font-weight: 700;
}

.hadith-day-card .card-info p {
    font-size: 12px;
    opacity: 0.8;
}

.hadith-day-card .narrator-badge {
    background-color: var(--warm-yellow);
    color: #8C6500;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 15px;
}

.hadith-day-card .hadith-text {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
}

/* Dua Tombol Aksi Cepat */
.hadith-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.hadith-action-btn {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    position: relative;
    text-decoration: none;
    color: var(--charcoal-gray);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.hadith-action-btn .btn-header {
    display: flex;
    justify-content: space-between;
}

.hadith-action-btn .icon-box {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hadith-action-btn .arrow-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-grey);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.hadith-action-btn .btn-text-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-navy);
    margin-top: 15px;
}

.hadith-action-btn .btn-text-info p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Bagian Koleksi Hadis (Sesuai Mockup) */
.hadith-collection-section {
    margin-bottom: 20px;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.collection-header .section-title-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--deep-navy);
}

.collection-header .section-title-label i {
    color: var(--teal-green);
    font-size: 18px;
}

.collection-header .btn-see-all {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Grid Kitab Hadis */
.books-collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hadith-book-item {
    background-color: var(--white);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.hadith-book-item .left-part {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hadith-book-item .icon-letter {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.hadith-book-item .book-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--deep-navy);
}

.hadith-book-item .book-info p {
    font-size: 10px;
    color: var(--text-muted);
}

.hadith-book-item .arrow-icon-small {
    color: var(--border-grey);
    font-size: 12px;
}


/* --- ADAPTIVE CSS STYLES FOR KALENDER VIEW --- */
#calendar-view{
    display:none;
    flex-direction:column;
    min-height:100vh;
    background:#fff;
}

#calendar-view .header-top {
    background-color: var(--teal-green);
    color: var(--white);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#calendar-view .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
#calendar-view .header-title {
    font-size: 20px;
    font-weight: 500;
}
#calendar-view .header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
#calendar-view .month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    color: var(--accent-pink);
    font-weight: 700;
    font-size: 18px;
}
#calendar-view .nav-btn {
    background: none;
    border: none;
    color: var(--teal-green);
    cursor: pointer;
    padding: 5px;
}
#calendar-view .calendar-section {
    padding: 0 16px 20px 16px;
}
#calendar-view .days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--teal-green);
    margin-bottom: 16px;
}
#calendar-view .dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 16px;
    text-align: center;
}
#calendar-view .date-cell {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 36px;
    cursor: pointer;
}
#calendar-view .date-cell.muted {
    color: var(--border-grey);
}
#calendar-view .date-cell span.active {
    background-color: var(--accent-pink);
    color: var(--white);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
#calendar-view .date-cell .dot-marker {
    width: 4px;
    height: 4px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
}
#calendar-view .prayer-section{
    background-color: var(--teal-green);
    color: var(--white);
    padding: 20px 24px;

    flex:1;
}
#calendar-view .prayer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}
#calendar-view .prayer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
#calendar-view .prayer-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}
#calendar-view .footer-banner {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

#calendar-view.active {
    display: flex;
}

/* Custom Marker Style (Bulat Putih, Dalam Teal Green) */
.custom-mosque-icon {
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(10, 34, 64, 0.24);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-mosque-icon .inner-circle {
    background: var(--teal-green);
    width: 85%;
    height: 85%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 14px;
}

/* Custom Popup Style (Tema Deep Navy & Muted) */
.leaflet-popup-content-wrapper {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    padding: 2px !important;
    box-shadow: var(--card-shadow);
}

.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    text-align: center;
}

.leaflet-popup-content strong {
    color: var(--light-sky);
}

.leaflet-popup-tip {
    background: var(--primary-blue) !important;
}

.leaflet-tile-container {
    filter: hue-rotate(190deg) saturate(120%) brightness(95%) contrast(95%);
}

.leaflet-control-attribution {
    display: none !important;
}

/* --- MASJID VIEW ADDITIONAL STYLE --- */
/* Custom Marker Style (Bulat Putih, Dalam Teal Green) */
.custom-mosque-icon {
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(10, 34, 64, 0.24);
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-mosque-icon .inner-circle {
    background: var(--teal-green);
    width: 85%;
    height: 85%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 14px;
}

/* Footer Panel Info */
.info-panel {
    background-color: var(--card-bg-dark);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    border-top: 1px solid var(--card-border-dark);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.info-icon {
    background: var(--teal-green);
    color: var(--white);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-details {
    flex: 1;
}

.info-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--light-sky);
}

.info-details p {
    font-size: 0.8rem;
    color: var(--border-grey);
    opacity: 0.8;
}

.info-distance {
    font-size: 0.85rem;
    color: var(--warm-yellow);
    font-weight: 600;
    background: rgba(255, 182, 6, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Custom Popup Style Leaflet */
.leaflet-popup-content-wrapper {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    padding: 2px !important;
    box-shadow: var(--card-shadow);
}

.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    text-align: center;
}

.leaflet-popup-content strong {
    color: var(--light-sky);
}

.leaflet-popup-tip {
    background: var(--primary-blue) !important;
}

.leaflet-tile-container {
    filter: hue-rotate(190deg) saturate(120%) brightness(95%) contrast(95%);
}

.leaflet-control-attribution {
    display: none !important;
}

/* --- DOA VIEW SPECIFIC --- */
        #doa-view {
            background-color: var(--bg-light);
            padding: 20px 20px 100px 20px; /* padding bottom agar tidak tertutup nav bawah */
        }
        
        .doa-search-container {
            margin-bottom: 20px;
        }

        .doa-search-box {
            display: flex;
            align-items: center;
            background: #F1F5F9;
            padding: 12px 14px;
            border-radius: 12px;
            gap: 10px;
            border: 1px solid var(--border-grey);
        }

        .doa-search-box input {
            border: none;
            background: transparent;
            outline: none;
            width: 100%;
            font-size: 0.9rem;
            color: var(--charcoal-gray);
        }

        .doa-grid-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .doa-column-card {
            background: var(--white);
            border: 1px solid var(--border-grey);
            border-bottom: 4px solid #CBD5E1;
            border-radius: 16px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
        }

        .doa-column-card:active {
            transform: translateY(2px);
            border-bottom-width: 2px;
        }

        .icon-3d-wrapper {
            background: transparent !important; 
            box-shadow: none !important;        
            border-radius: 0 !important;        
            padding: 0 !important;              
            display: flex;
            align-items: center;
            justify-content: center;
            width: auto; 
            height: auto;
            margin-bottom: 8px;
        }

        .doa-column-card h3 {
            font-size: 0.85rem;
            color: var(--primary-blue);
            font-weight: 700;
            line-height: 1.2rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 2.4rem;
        }

        /* Detail View Overlay di dalam Doa View */
        .doa-detail-overlay {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: var(--white);
            z-index: 2000;
            display: flex;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
        }

        .doa-detail-overlay.active {
            transform: translateX(0);
        }

        .doa-detail-header {
            background-color: var(--deep-navy);
            color: var(--white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 20px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .doa-detail-header .left-side {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
        }

        .detail-body {
            flex: 1;
            overflow-y: auto;
            padding: 24px 20px;
        }

        .detail-card {
            background: var(--card-bg-dark);
            color: var(--white);
            padding: 24px 20px;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--card-shadow);
        }

        .detail-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--light-sky);
            margin-bottom: 15px;
        }

        .arabic-text {
            font-family: 'Amiri', serif;
            font-size: 1.9rem;
            direction: rtl;
            line-height: 3rem;
            text-align: right;
            margin: 25px 0;
            color: var(--white);
            font-weight: 700;
        }

        .latin-text {
            font-size: 0.9rem;
            font-style: italic;
            color: var(--light-sky);
            line-height: 1.4rem;
            text-align: left;
            margin-bottom: 18px;
            background: rgba(203, 239, 255, 0.05);
            padding: 12px;
            border-radius: 8px;
        }

        .translation-text {
            font-size: 0.9rem;
            color: var(--border-grey);
            line-height: 1.4rem;
            text-align: left;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 15px;
        }

        .doa-loading-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            grid-column: span 2;
            min-height: 250px;
            gap: 12px;
            color: var(--text-muted);
        }

        .doa-spinner {
            width: 40px; height: 40px;
            border: 4px solid var(--border-grey);
            border-top: 4px solid var(--teal-green);
            border-radius: 50%;
            animation: doa-spin 1s linear infinite;
        }

        @keyframes doa-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

                .doa-categories::-webkit-scrollbar {
            display: none; /* Sembunyikan scrollbar di mobile agar tetap rapi */
        }

        .btn-category {
            background-color: var(--white);
            color: var(--charcoal-gray);
            border: 1px solid var(--border-color);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .btn-category.active, .btn-category:hover {
            background-color: var(--deep-navy);
            color: var(--white);
            border-color: var(--deep-navy);
        }

        

/* --- TAMBAHAN STYLE UNTUK VIEW E-LEARNING --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); padding: 15px 20px 5px; }
.breadcrumb span { cursor: pointer; }
.breadcrumb span.active { color: var(--teal-green); font-weight: 600; }

.category-section { margin-bottom: 25px; padding: 0 20px; }
.category-header { margin-bottom: 14px; border-left: 4px solid var(--teal-green); padding-left: 8px; }
.category-title { font-size: 1.15rem; font-weight: 800; color: var(--deep-navy); }

.program-vertical-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.card-program-premium {
    background: var(--white); border: 1px solid var(--border-grey); border-radius: 20px;
    overflow: hidden; box-shadow: var(--card-shadow); cursor: pointer; transition: var(--transition); position: relative;
}
.card-program-premium:hover { transform: translateY(-2px); border-color: var(--teal-green); }

.card-image-area { width: 100%; height: 140px; position: relative; background-size: cover; background-position: center; }
.card-image-area::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6)); }

.badge-type { position: absolute; top: 12px; left: 12px; background: var(--warm-yellow); color: var(--deep-navy); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 30px; text-transform: uppercase; }
.lock-status-icon { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6); color: var(--white); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.lock-status-icon.unlocked { background: var(--teal-green); color: var(--white); }

.card-info-inside { position: absolute; bottom: 12px; left: 12px; right: 12px; color: var(--white); }
.prog-title-text { font-size: 1rem; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.4); }
.card-bottom-details { padding: 14px; background: var(--white); display: flex; justify-content: space-between; align-items: center; }
.meta-unit-text { font-size: 0.8rem; color: var(--charcoal-gray); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.price-tag { font-size: 0.9rem; font-weight: 700; color: var(--teal-green); }

.grid-units-2col { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 15px; }
.card-unit-premium {
    background: var(--white); border: 1px solid var(--border-grey); border-radius: 16px; padding: 16px;
    position: relative; cursor: pointer; box-shadow: var(--card-shadow); transition: var(--transition);
}
.card-unit-premium:hover { border-color: var(--teal-green); }
.unit-lock-badge { position: absolute; top: 16px; right: 16px; font-size: 1.1rem; color: var(--teal-green); }

.material-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 15px 0; }
.mat-tab { background: var(--white); border: 1px solid var(--border-grey); color: var(--charcoal-gray); padding: 10px 4px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: 4px; transition: var(--transition); }
.mat-tab.active { background: var(--deep-navy); color: var(--white); border-color: var(--deep-navy); }

.mat-content { display: none; background: var(--white); border: 1px solid var(--border-grey); padding: 16px; border-radius: 12px; margin-top: 10px; box-shadow: var(--card-shadow); }
.mat-content.active { display: block; animation: fadeIn 0.3s ease; }

.media-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; background: #000; margin-bottom: 12px; }
.media-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.btn { background: var(--teal-green); color: var(--white); border: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; width: 100%; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; transition: var(--transition); font-size: 0.9rem; }
.btn:hover { opacity: 0.9; }
.btn-secondary { background: var(--deep-navy); }
.btn-warning { background: var(--warm-yellow); color: var(--deep-navy); }

.profile-container { text-align: center; padding: 10px 20px; }
.profile-header-card { background: var(--white); border: 1px solid var(--border-grey); border-radius: 20px; padding: 24px; box-shadow: var(--card-shadow); margin-bottom: 24px; }
.avatar-img-premium { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-green); margin-bottom: 10px; }
.profile-name { font-size: 1.25rem; font-weight: 700; color: var(--deep-navy); }
.profile-title { font-size: 0.85rem; color: var(--charcoal-gray); margin-bottom: 5px; }

.purchased-section { text-align: left; margin-top: 20px; }
.purchased-title { font-size: 1.1rem; font-weight: 700; color: var(--deep-navy); margin-bottom: 12px; }
.profile-prog-card { background: var(--white); border: 1px solid var(--border-grey); border-radius: 14px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.progress-bar-bg { background: #E2E8F0; height: 8px; border-radius: 10px; overflow: hidden; width: 100%; margin-top: 4px; }
.progress-bar-fill { background: var(--teal-green); height: 100%; width: 0%; transition: width 0.5s ease; }

.modal-overlay { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 100%; background: rgba(0,51,84,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-card { background: var(--white); border-radius: 24px; width: 100%; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay-tab { padding: 10px; text-align: center; background: var(--bg-light); border: 1px solid var(--border-grey); border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.pay-tab.active { background: var(--light-sky); border-color: var(--teal-green); color: var(--deep-navy); }
.pay-content { display: none; text-align: center; padding: 15px 0; background: var(--bg-light); border-radius: 14px; margin-bottom: 15px; border: 1px dashed var(--teal-green); }
.pay-content.active { display: block; }
.qr-placeholder { width: 150px; height: 150px; background: #000; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; border-radius: 8px; font-size: 1.5rem; letter-spacing: 2px; }
.va-box { font-size: 1.2rem; font-weight: 800; color: var(--deep-navy); letter-spacing: 1px; margin: 10px 0; }

.quiz-box { margin-top: 10px; }
.quiz-option { background: var(--bg-light); border: 1px solid var(--border-grey); padding: 12px; border-radius: 8px; margin-top: 8px; cursor: pointer; }
.quiz-option:hover { border-color: var(--teal-green); background: var(--light-sky); }
#unit-desc-text { font-size: 0.9rem; color: var(--charcoal-gray); line-height: 1.8; white-space: pre-line; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Styling Slider Khusus di index.html */
.course-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    padding-top: 5px;
    -webkit-overflow-scrolling: touch;
}

/* Menyembunyikan scrollbar bawaan browser agar terlihat bersih */
.course-slider-container::-webkit-scrollbar {
    display: none;
}
.course-slider-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Pastikan ukuran card tetap konsisten di dalam flex slider */
.course-slider-container .course-card {
    flex: 0 0 290px; /* Lebar konstan tiap card di slider */
    max-width: 290px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
}

.course-slider-container .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 51, 84, 0.12);
}

/* --- Elemen Internal Card (Sama seperti course.html) --- */
.card-img-container {
    position: relative;
    height: 160px;
    width: 100%;
}
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 51, 84, 0.9);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--warm-yellow);
    margin-bottom: 8px;
}
.course-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}
.course-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border-grey);
    padding-bottom: 12px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.course-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--teal-green);
}
.btn-buy {
    background: var(--deep-navy);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-buy:hover {
    background: var(--teal-green);
}
