/* =========================================
   1. PENGATURAN DASAR & SNAP SCROLLING
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    background-color: #f7f9fa;
    overflow-y: scroll;
    scroll-snap-type: y proximity;
    scrollbar-width: none;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.app-container::-webkit-scrollbar { display: none; }

.screen-section {
    width: 100%;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 130px;
}

/* =========================================
   2. LAYAR 1: BERANDA & JADWAL ADZAN
   ========================================= */
.app-header {
    width: 100%;
    min-height: 220px;
    padding: 14px 24px 0 24px;
    text-align: left;
    position: relative;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background-color: #043927;
    background-image: linear-gradient(to right, #043927 0%, #043927 30%, rgba(4, 57, 39, 0.6) 40%, rgba(4, 57, 39, 0) 55%),
                      url('../almuhtadin_header.png');
    background-size: auto 100%, auto 100%;
    background-position: left center, right top;
    background-repeat: no-repeat;
}

.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.masjid-brand { display: flex; align-items: center; gap: 8px; }
.main-logo { width: 32px; height: 32px; }
.brand-text h2 { color: #ffffff; font-size: 0.95rem; font-weight: 600; margin: 0; }
.brand-text p { color: #b8943a; font-size: 0.7rem; margin: 2px 0 0 0; }
.notification-badge { position: relative; background-color: #ffffff; width: 34px; height: 34px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.badge-number { position: absolute; top: -2px; right: -2px; background-color: #e67e22; color: #ffffff; font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid #ffffff; }

.greeting-section { margin-top: 20px; }
.greeting-section h1 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.greeting-section p {
    color: #ffffff;
    font-size: 0.7rem;
    opacity: 0.9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Kotak Countdown Adzan */
.jadwal-container {
    background-color: #043927;
    border: 1px solid #b8943a;
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 75%;
    position: absolute;
    bottom: -38px;
    left: 24px;
    z-index: 5;
}
.sholat-title { color: #ffffff; font-size: 0.95rem; font-weight: 700; margin: 0; }
.sholat-status { color: #83b299; font-size: 0.7rem; margin: 2px 0 6px 0; }
.time-digit { color: #ffffff; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.time-label { color: #83b299; font-size: 0.6rem; margin-top: 2px; }
.sholat-countdown { display: flex; align-items: center; gap: 4px; }
.countdown-item { display: flex; flex-direction: column; align-items: center; }
.time-separator { color: #ffffff; font-size: 1.1rem; font-weight: 700; padding-bottom: 8px; }

.circle-progress { width: 55px; height: 55px; border-radius: 50%; background: conic-gradient(#b8943a 0% 75%, #02261a 75% 100%); display: flex; justify-content: center; align-items: center; position: relative; }
.circle-progress::after { content: ''; position: absolute; width: 44px; height: 44px; background-color: #043927; border-radius: 50%; z-index: 1; }
.mosque-icon { width: 20px; height: 20px; z-index: 2; }

/* Jadwal Sholat Lengkap */
.jadwal-lengkap {
    margin-top: 42px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.jadwal-lengkap-title {
    color: #0c1a30;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.jadwal-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.jadwal-item {
    text-align: center;
    padding: 8px 4px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.jadwal-item.active {
    background-color: #043927;
    box-shadow: 0 4px 12px rgba(4, 57, 39, 0.2);
}
.jadwal-item .waktu-label {
    color: #718096;
    font-size: 0.6rem;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.jadwal-item .waktu-nama {
    color: #0c1a30;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}
.jadwal-item .waktu-jam {
    color: #b8943a;
    font-size: 0.7rem;
    font-weight: 700;
    display: block;
}
.jadwal-item.active .waktu-label { color: rgba(255,255,255,0.6); }
.jadwal-item.active .waktu-nama { color: #ffffff; }
.jadwal-item.active .waktu-jam { color: #d4af37; }

/* Menu Cepat di Bawah Jadwal */
.menu-cepat-bawah { margin-top: 12px; padding: 0 24px; }
.menu-cepat-bawah-title { color: #0c1a30; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.menu-cepat-bawah-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.menu-cepat-bawah-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.menu-cepat-bawah-item:active { transform: scale(0.97); }
.menu-cepat-bawah-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.menu-cepat-bawah-icon.hijau { background: linear-gradient(135deg, #043927 0%, #065a3e 100%); }
.menu-cepat-bawah-icon.emas { background: linear-gradient(135deg, #d4af37 0%, #b8943a 100%); }
.menu-cepat-bawah-icon svg { width: 18px; height: 18px; }
.menu-cepat-bawah-label { color: #0c1a30; font-size: 0.75rem; font-weight: 600; line-height: 1.2; }

/* Hikmah Hari Ini */
.hikmah-container { margin-top: 12px; padding: 0 24px; }
.hikmah-title { color: #0c1a30; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.hikmah-card {
    background: linear-gradient(135deg, #0c1a30 0%, #162c52 100%);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(12, 26, 48, 0.2);
}
.hikmah-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.hikmah-icon svg { width: 16px; height: 16px; }
.hikmah-content { flex: 1; }
.hikmah-content h4 { color: #d4af37; font-size: 0.75rem; font-weight: 700; margin: 0 0 4px 0; }
.hikmah-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 6px 0;
    font-style: italic;
}
.hikmah-source { color: #94a3b8; font-size: 0.65rem; font-weight: 600; }

/* Swipe Up Guide */
.swipe-up-guide {
    margin-top: 15px;
    margin-bottom: 25px;
    width: 100%;
    text-align: center;
    color: #8c96a3;
    font-size: 0.8rem;
    font-weight: 600;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* =========================================
   3. LAYAR 2: MENU & PENGINGAT
   ========================================= */
.screen-1 { padding-bottom: 130px; justify-content: flex-start; }

.screen-2 { padding: 15px 16px 130px 16px; justify-content: flex-start; gap: 12px; }
.section-title { color: #0c1a30; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; padding-left: 4px; }

/* Menu Cepat Screen-2 */
.menu-cepat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-cepat-item { background-color: #ffffff; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); cursor: pointer; transition: transform 0.2s ease; }
.menu-cepat-item:active { transform: scale(0.95); }
.menu-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.menu-circle svg { width: 20px; height: 20px; }
.menu-circle.hijau { background: linear-gradient(135deg, #043927 0%, #032b1e 100%); }
.menu-circle.emas { background: linear-gradient(135deg, #d4af37 0%, #b8943a 100%); }
.menu-label { color: #333333; font-size: 0.65rem; font-weight: 600; text-align: center; line-height: 1.2; }
.menu-sublabel { color: #b8943a; font-size: 0.52rem; font-weight: 700; text-align: center; margin-top: -6px; word-break: break-word; }

/* Kartu Tanggal Hijriah Memanjang */
.hijri-calendar-card {
    background: linear-gradient(135deg, #fffdf7 0%, #fff9ec 100%);
    border-radius: 14px;
    padding: 10px 14px 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
    margin-top: 8px;
    border: 1px solid rgba(184, 148, 58, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}
.hijri-calendar-card::before {
    content: '';
    display: block;
    width: 5px;
    min-height: 100%;
    background: linear-gradient(180deg, #d4af37 0%, #b8943a 100%);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 14px 0 0 14px;
}
.hijri-calendar-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}
.hijri-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    margin-left: 14px;
}
.hijri-card-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}
.hijri-card-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}
.hijri-masehi-text {
    font-size: 0.7rem;
    color: #b8943a;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.hijri-islam-text {
    font-size: 0.9rem;
    color: #043927;
    font-weight: 700;
    margin-top: 1px;
    letter-spacing: -0.3px;
}
.hijri-card-arrow {
    color: #d4af37;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 4px;
}

/* Slider Pengingat Kebaikan */
.pengingat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 5px; }
.lihat-semua { color: #b8943a; font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.pengingat-slider { display: flex; gap: 15px; overflow-x: auto; padding: 5px 5px 15px 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pengingat-slider::-webkit-scrollbar { display: none; }
.pengingat-card { flex: 0 0 165px; scroll-snap-align: start; border-radius: 20px; padding: 18px 15px; display: flex; flex-direction: column; text-align: left; position: relative; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); min-height: 185px; }
.pengingat-card.hijau-gelap { background-color: #043927; }
.pengingat-card.krem { background-color: #fcf6e8; }
.pengingat-card.hijau-pucat { background-color: #ebf3ee; }
.card-icon-wrap { margin-bottom: 15px; }
.gold-icon { width: 26px; height: 26px; }
.card-headline { font-size: 0.95rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card-subtext { font-size: 0.72rem; font-weight: 500; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.font-white { color: #ffffff; } .font-green { color: #043927; } .font-soft { color: #a4cbb7; } .font-dark { color: #4a5568; }
.arrow-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: absolute; bottom: 15px; right: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.arrow-sign { font-size: 0.65rem; font-weight: 700; }
.bg-white { background-color: #ffffff; } .bg-green { background-color: #043927; } .color-green { color: #043927; }

/* Laporan Keuangan Singkat */
.keuangan-container { padding: 0 5px; }
.keuangan-card {
    background: linear-gradient(135deg, #043927 0%, #065a3e 100%);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.keuangan-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}
.keuangan-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}
.keuangan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; position: relative; z-index: 1; }
.keuangan-header-left { display: flex; align-items: center; gap: 10px; }
.keuangan-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); display: flex; justify-content: center; align-items: center; }
.keuangan-icon svg { width: 18px; height: 18px; }
.keuangan-title { color: #ffffff; font-size: 0.85rem; font-weight: 700; }
.keuangan-badge { background: rgba(212, 175, 55, 0.2); color: #d4af37; font-size: 0.6rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(212, 175, 55, 0.3); }
.keuangan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.keuangan-item { background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px; }
.keuangan-item-label { color: rgba(255, 255, 255, 0.6); font-size: 0.6rem; font-weight: 500; display: block; margin-bottom: 4px; }
.keuangan-item-nominal { color: #ffffff; font-size: 0.85rem; font-weight: 700; }
.keuangan-item-nominal.emas { color: #d4af37; }
.keuangan-item-nominal.hijau-muda { color: #6fcf97; }
.keuangan-item-nominal.merah { color: #eb5757; }
.keuangan-footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.keuangan-footer-label { color: rgba(255, 255, 255, 0.6); font-size: 0.65rem; font-weight: 500; }
.keuangan-footer-nominal { color: #ffffff; font-size: 1rem; font-weight: 700; }
.keuangan-footer-nominal.emas { color: #d4af37; }

/* Layanan Masjid CTA (End of Screen 2) */
.layanan-masjid-cta {
    margin-top: 0;
}
.layanan-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
    transition: transform 0.2s ease;
}
.layanan-btn:active {
    transform: scale(0.98);
}
.layanan-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 10px;
}
.layanan-icon svg {
    width: 18px;
    height: 18px;
}
.layanan-text {
    flex-grow: 1;
}
.layanan-text h4 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.layanan-text p {
    color: #e0e0e0;
    font-size: 0.65rem;
    margin: 0;
}
.layanan-arrow {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.8;
}

/* =========================================
   4. LAYAR 3: TARGET AMAL & FOOTER
   ========================================= */
.screen-3 { padding: 40px 20px 130px 20px; justify-content: space-between; isolation: isolate; }

.target-amal-card { background-color: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.amal-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid #edf2f7;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.amal-item:hover {
    background: #f7faf8;
    border-color: rgba(4, 57, 39, 0.1);
}
.amal-item.checked {
    background: #f0f7f3;
    border-color: rgba(4, 57, 39, 0.08);
}
.amal-checkbox { display: none; }
.amal-checkbox-wrapper {
    margin-right: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.custom-checkbox {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
}
.amal-item:hover .custom-checkbox {
    border-color: #043927;
}
.amal-item.checked .custom-checkbox {
    background-color: #043927;
    border-color: #043927;
}
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.amal-item.checked .custom-checkbox::after {
    display: block;
}

/* Icon Box Styles */
.amal-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 14px;
    flex-shrink: 0;
}
.shalat-icon { background: rgba(4, 57, 39, 0.08); color: #043927; }
.tilawah-icon { background: rgba(212, 175, 55, 0.1); color: #b8943a; }
.sedekah-icon { background: rgba(229, 62, 62, 0.08); color: #e53e3e; }

.amal-item.checked .shalat-icon { background: #043927; color: white; }
.amal-item.checked .tilawah-icon { background: #b8943a; color: white; }
.amal-item.checked .sedekah-icon { background: #e53e3e; color: white; }
.amal-icon-box svg { width: 18px; height: 18px; }

.amal-text { flex: 1; }
.amal-text h4 { color: #0c1a30; font-size: 0.9rem; font-weight: 700; margin: 0 0 2px 0; }
.amal-text p { color: #718096; font-size: 0.72rem; font-weight: 500; margin: 0; }
.amal-item.checked .amal-text h4 { color: #a0aec0; text-decoration: line-through; }
.amal-item.checked .amal-text p { color: #cbd5e0; }

.footer-area { text-align: center; margin-top: auto; padding-top: 30px; }
.footer-logo { width: 30px; margin-bottom: 10px; opacity: 0.5; }
.footer-text { color: #8c96a3; font-size: 0.8rem; font-weight: 500; }

/* =========================================
   5. BOTTOM NAVIGATION BAR (Mengambang)
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    max-width: 480px;
    background-color: #043927;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 14px 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.bottom-nav.nav-hidden {
    transform: translate(-50%, 100%);
    opacity: 0;
    pointer-events: none;
}

.nav-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    padding: 4px 8px;
}
.nav-bottom-item svg {
    width: 22px;
    height: 22px;
}
.nav-bottom-item span {
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}
.nav-bottom-item.active {
    color: #d4af37;
}
.nav-bottom-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   6. FLOATING SCROLL DOTS
   ========================================= */
.scroll-dots {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 150;
    pointer-events: auto;
}

.scroll-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(4, 57, 39, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.scroll-dot.active {
    background-color: #d4af37;
    border-color: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* =========================================
   7. DAILY TARGET AMAL PROGRESS BAR
   ========================================= */
.amal-progress-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.amal-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.amal-progress-title {
    color: #718096;
    font-size: 0.72rem;
    font-weight: 600;
}

.amal-progress-badge {
    color: #b8943a;
    font-size: 0.75rem;
    font-weight: 700;
}

.amal-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}

.amal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #043927 0%, #065a3e 100%);
    border-radius: 4px;
    width: 0%;
}

.amal-progress-fill.complete {
    background: linear-gradient(90deg, #d4af37 0%, #b8943a 100%);
}

/* =========================================
   8. HIJRI CALENDAR MODAL
   ========================================= */
.hijri-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hijri-modal.show {
    display: flex;
    opacity: 1;
}
.hijri-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.hijri-modal.show .hijri-modal-content {
    transform: translateY(0);
}
.hijri-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
}
.hijri-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0c1a30;
    flex-grow: 1;
    text-align: center;
}
.hijri-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #043927;
    cursor: pointer;
    padding: 0 10px;
}
.hijri-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
}
.hijri-modal-body {
    padding: 15px;
}
.hijri-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 15px;
}
.hijri-day-header {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #718096;
    padding: 5px 0;
}
.hijri-date-cell {
    position: relative;
    background: #f7f9fa;
    border-radius: 8px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c1a30;
    border: 1px solid transparent;
}
.hijri-date-cell.empty {
    background: transparent;
    border: none;
}
.hijri-date-cell .hijri-num {
    font-size: 1.1rem;
    font-weight: 700;
}
.hijri-date-cell .masehi-num {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.55rem;
    font-weight: 500;
    color: #a0aec0;
}
/* Highlight Jumat */
.hijri-date-cell.jumat {
    background: #e6f4ea;
    color: #043927;
}
.hijri-date-cell.jumat .masehi-num {
    color: #043927;
    opacity: 0.7;
}
/* Highlight Ayyamul Bidh */
.hijri-date-cell.ayyamul-bidh {
    background: #fcf6e3;
    color: #b8943a;
    border-color: rgba(212, 175, 55, 0.3);
}
.hijri-date-cell.ayyamul-bidh .masehi-num {
    color: #b8943a;
    opacity: 0.8;
}
/* Highlight Today */
.hijri-date-cell.today {
    background: #043927;
    color: #ffffff;
}
.hijri-date-cell.today .masehi-num {
    color: #ffffff;
    opacity: 0.8;
}
/* Legend */
.hijri-modal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px dashed #edf2f7;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #718096;
}
.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.legend-box.jumat { background: #e6f4ea; }
.legend-box.ayyamul-bidh { background: #fcf6e3; border: 1px solid rgba(212, 175, 55, 0.3); }
.legend-box.today { background: #043927; }
