/* Ekstrak dari html_mobile/MOBILE APP TRIAL/course.html <style>. */

        :root {
            /* Palette Baru Sesuai Request */
            --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;
            
            --border-grey: #E2E8F0;
            --text-muted: #64748B;
            --shadow: rgba(0, 51, 84, 0.08);
            --transition: all 0.3s ease;
        }

        * {
            box-sizing: border-box;
            margin: 0; padding: 0;
            font-family: var(--font-main);
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-light);
            color: var(--deep-navy);
            transition: var(--transition);
            padding-bottom: 90px;
        }

        header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 16px 20px; background: var(--deep-navy);
            border-bottom: 1px solid var(--border-grey);
            position: sticky; top: 0; z-index: 100;
        }

        .logo { font-weight: 800; font-size: 1.2rem; color: var(--light-sky); letter-spacing: 0.5px; }
        .logo span { color: var(--warm-yellow); }

        .container { padding: 20px; max-width: 600px; margin: 0 auto; width: 100%; }
        .view { display: none; animation: fadeIn 0.4s ease forwards; }
        .view.active { display: block; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
        .breadcrumb span { cursor: pointer; }
        .breadcrumb span.active { color: var(--teal-green); font-weight: 600; }

        .category-section { margin-bottom: 32px; }
        .category-header { margin-bottom: 14px; border-left: 4px solid var(--teal-green); padding-left: 8px; }
        .category-title { font-size: 1.25rem; 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: 0 6px 14px var(--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: 0 4px 10px var(--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); }

        /* Tabs Navigasi Materi Internal */
        .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: 0 4px 10px var(--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 VIEW & PROGRESS */
        .profile-container { text-align: center; padding: 10px 0; }
        .profile-header-card { background: var(--white); border: 1px solid var(--border-grey); border-radius: 20px; padding: 24px; box-shadow: 0 4px 15px var(--shadow); margin-bottom: 24px; }
        .avatar-img { 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; }

        /* PAYMENT MODAL BOX */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; 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%; max-width: 450px; padding: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); animation: fadeIn 0.3s ease; }
        .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; }

        /* BOTTOM NAVIGATION BAR - MODIFIED AS PER IMAGE */
         .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; }

        .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; transition: var(--transition); }
        .quiz-option:hover { border-color: var(--teal-green); background: var(--light-sky); }

        

        /* --- CSS Kustom Konten Materi Al-Qur'an --- */
.materi-paragraph {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--charcoal-gray);
    margin-bottom: 12px;
}

.materi-subheading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin: 20px 0 10px 0;
    border-bottom: 2px solid var(--light-sky);
    padding-bottom: 4px;
}

.materi-title-small {
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin: 14px 0 6px 0;
}

/* Mengatur box arab agar lebih tipis, rapat, dan proporsional */
.materi-card-box {
    background: #F8FAFC;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    padding: 12px 16px; /* Padding diperkecil agar tidak terlalu tinggi */
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.materi-arabic {
    font-size: 1.6rem; /* Ukuran font arab disesuaikan */
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 4px; /* Memperkecil jarak dengan terjemahan */
    direction: rtl;
}

.materi-translation {
    font-size: 0.85rem;
    color: var(--charcoal-gray);
    line-height: 1.4;
}

.materi-highlight-box {
    background: #FFFDF5;
    border-left: 4px solid var(--warm-yellow);
    padding: 12px;
    border-radius: 4px 12px 12px 4px;
    font-size: 0.85rem;
    color: var(--charcoal-gray);
    line-height: 1.5;
    margin: 16px 0;
}

/* Sesuaikan juga pembungkus utamanya */
#unit-desc-text {
    font-size: 0.9rem;
    color: var(--charcoal-gray);
    line-height: 1.5; /* Diturunkan dari 1.8 agar lebih rapat proporsional */
}


        #unit-desc-text {
            font-size: 0.9rem;
            color: var(--charcoal-gray);
            line-height: 1.8;
            white-space: pre-line;
        }


            /* --- Style Tambahan untuk Isi Materi Premium --- */
    .materi-subheading {
        border-left: 4px solid var(--teal-green);
        padding-left: 10px;
        margin: 14px 0 14px 0;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--deep-navy);
    }

    .materi-title-small {
        font-size: 1rem;
        font-weight: 700;
        color: var(--deep-navy);
        margin: 14px 0 8px 0;
    }

    .materi-paragraph {
        font-size: 0.9rem;
        color: var(--charcoal-gray);
        line-height: 1.4;
        margin-bottom: 14px;
    }

    /* Kotak Ayat & Hadits (Callout Box) */
    .materi-card-box {
        background: #F8FAFC;
        border: 1px solid #E2E8F0;
        border-radius: 14px;
        padding: 20px;
        text-align: center;
        margin: 16px 0;
    }

    .materi-arabic {
        font-size: 1.6rem;
        font-family: 'Times New Roman', serif;
        color: #0F172A;
        line-height: 2.2;
        margin-bottom: 12px;
        direction: rtl;
    }

    .materi-translation {
        font-size: 0.85rem;
        font-style: italic;
        color: #64748B;
        line-height: 1.5;
    }

    /* Kotak Highlight Formula / Kalkulasi */
    .materi-highlight-box {
        border-left: 4px solid var(--warm-yellow);
        background: #FFFDF5;
        padding: 14px 16px;
        border-radius: 4px 12px 12px 4px;
        font-weight: 700;
        color: var(--deep-navy);
        margin: 18px 0;
        font-size: 0.95rem;
    }
    