/* General Styling */
:root {
    --primary-color: #04724d;
    --secondary-color: #f7b538;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e9ecef;
    --white-color: #ffffff;
    --gradient-start: #06a77d;
    --gradient-end: #04724d;
    --font-family: 'Poppins', sans-serif;
    --border-color: #e9ecef;
    --gray-text: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Glass Morphism */
.glass-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(4, 114, 77, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 114, 77, 0.3);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
main {
    padding-top: 70px;
}

.hero {
    height: 90vh;
    background: url('https://klikmu.co/wp-content/uploads/2025/07/49aa8ca2-35d0-4bb9-9214-0b5771cfab61.jpg') no-repeat center center/cover;
    
    /* Properti untuk Parallax Effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Properti lainnya */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white-color);
}

.hero-content {
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Program Section */
.program-section {
    padding: 80px 0;
    text-align: center;
}

.program-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 50px;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card .btn {
    margin-top: 20px;
    width: 100%; /* MEMBUAT LEBAR TOMBOL SAMA */
    box-sizing: border-box; /* MEMASTIKAN PADDING KONSISTEN */
}


/* Calculator Promo Section */
.calculator-promo {
    padding: 80px 0;
    background-color: var(--white-color);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.promo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.promo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.promo-text p {
    margin-bottom: 20px;
}

.promo-image {
    flex: 1;
}

.promo-image img {
    max-width: 100%;
    border-radius: 15px;
}

/* Footer */
.site-footer {
    background: var(--white-color);
    color: var(--text-color);
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.address {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Popup Styling */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.popup-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.popup-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    .promo-text {
        align-items: center;
        text-align: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Halaman Login/Register --- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('https://i.pinimg.com/736x/c6/c0/b9/c6c0b9cbff3639b49b2bfcf68b666d2b.jpg') no-repeat center center/cover;
    padding: 100px 20px 40px;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
}

.auth-form-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    color: var(--text-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.auth-form-glass h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-form-glass p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-control, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}
.form-group select:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
}


.form-group input:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 114, 77, 0.1);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- Halaman Profil --- */
.profile-page {
    padding: 40px 0;
}
.profile-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}
.profile-left .card, .profile-right .card {
    text-align: left;
    padding: 30px;
}
.profile-card p {
    margin-bottom: 10px;
}
.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}
.chart-card {
    margin-top: 30px;
}
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    margin: 20px 0;
}
.total-rekap {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 15px;
}
.table-responsive {
    overflow-x: auto;
}
.history-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.history-card th, .history-card td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
}
.history-card th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--white-color);
    font-weight: 500;
    text-transform: capitalize;
}
.status-pending { background-color: #ffc107; color: #333}
.status-verified { background-color: #28a745; }
.status-rejected { background-color: #dc3545; }

/* --- Halaman Pembayaran (BARU) --- */
.payment-page {
    padding: 60px 20px;
}
.payment-form-container.wide {
    max-width: 700px;
}
.form-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.form-section:last-child {
    margin-bottom: 15px;
}
.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* --- Halaman Pembayaran (LAMA) --- */
.payment-page, .confirmation-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 100px 20px 40px;
}
.payment-form-container {
    width: 100%;
    max-width: 500px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.payment-form-container h2, .payment-form-container p {
    text-align: center;
}
.payment-form-container p {
    margin-bottom: 30px;
    color: #6c757d;
}
.payment-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.payment-method input[type="radio"] {
    display: none;
}
.method-card {
    border: 2px solid var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}
.method-card svg {
    margin-bottom: 10px;
    color: var(--primary-color);
}
.payment-method input[type="radio"]:checked + .method-card {
    border-color: var(--primary-color);
    background-color: #e8f5e9;
    box-shadow: 0 0 0 3px rgba(4, 114, 77, 0.1);
}

/* --- Halaman Konfirmasi --- */
.confirmation-card {
    width: 100%;
    max-width: 550px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}
.conf-icon-success {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.confirmation-card h2 {
    margin-bottom: 15px;
}
.confirmation-card p {
    color: #6c757d;
    margin-bottom: 30px;
}
.payment-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.rekening-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin: 10px 0 !important;
}
.qris-image {
    max-width: 250px;
    margin-top: 15px;
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.back-link {
    display: block;
    margin-top: 20px;
    color: #6c757d;
    text-decoration: none;
}
.back-link:hover {
    color: var(--primary-color);
}

/* Responsive tambahan */
@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Halaman Kalkulator Zakat --- */
.calculator-page {
    padding: 60px 0;
}
.calculator-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}
.calculator-container h2 {
    font-size: 2.5rem;
}
.calculator-form-wrapper {
    margin-top: 30px;
    text-align: left;
}
.calculator-result {
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    background-color: #e8f5e9;
    border: 1px solid var(--primary-color);
    text-align: center;
}
.nisab-info {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 20px;
}
.zakat-amount {
    margin-top: 15px;
    font-size: 1.2rem;
}
.zakat-amount strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- Halaman Statis (Dokumentasi & Tentang Kami) --- */
.static-page .page-header {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}
.static-page .page-header h1 {
    font-size: 2.8rem;
}
.static-page .page-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Halaman Dokumentasi */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.doc-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
.doc-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.doc-card-content {
    padding: 25px;
}
.doc-card-content h3 {
    margin-bottom: 10px;
}
.doc-card-content p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    /* Batasi deskripsi menjadi 3 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 54px; /* Kira-kira tinggi 3 baris */
}
.doc-card-content small {
    color: #aaa;
    font-style: italic;
    margin-top: auto; /* Mendorong tanggal ke bawah */
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- HALAMAN DOKUMENTASI (REDESIGN) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.doc-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.doc-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.doc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.doc-card:hover .doc-card-image img {
    transform: scale(1.05);
}
.doc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.doc-card:hover .doc-card-overlay {
    opacity: 1;
}
.doc-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Membuat konten mengisi ruang kartu */
}
.doc-card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.doc-card-content p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 54px; 
}
.doc-card-content small {
    color: #aaa;
    font-style: italic;
    margin-top: auto; 
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}
.lightbox-content {
    position: relative;
    background-color: var(--white-color);
    margin: auto;
    max-width: 900px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    animation: zoomIn 0.4s ease;
}
.lightbox-image {
    width: 100%;
    display: block;
}
.lightbox-caption {
    padding: 25px;
    color: var(--text-color);
}
.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.lightbox-caption p {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 15px;
}
.lightbox-caption small {
    font-size: 0.9rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

/* Halaman Tentang Kami */
.takmir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.takmir-card {
    padding: 30px;
}
.takmir-card .takmir-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--border-color);
}
.takmir-card .takmir-jabatan {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Menu Mobile --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }
    .auth-buttons.active {
        display: none; /* Tombol auth tidak perlu di mobile menu lagi */
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .program-section h2, .promo-text h2, .calculator-container h2 { font-size: 2rem; }
    .zakat-amount strong { font-size: 1.3rem; }
    .summary-card p { font-size: 1.8rem; }
    .profile-content { grid-template-columns: 1fr; }
}

/* --- Tambahan CSS untuk Textarea --- */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-family);
    font-size: 1rem;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 114, 77, 0.1);
}


/* --- Perbaikan Tampilan Halaman Qurban --- */
.qurban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.qurban-card {
    text-decoration: none;
}
.qurban-card.card {
    padding: 0;
    border: 1px solid var(--border-color);
    justify-content: space-between;
    transition: all 0.3s ease;
}
.qurban-card.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.qurban-card-header {
    text-align: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}
.qurban-card-header h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}
.qurban-card-header span {
    color: var(--gray-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.qurban-card-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
}
.qurban-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}
.qurban-card .description {
    font-size: 0.95rem;
    color: var(--gray-text);
    min-height: 40px;
    line-height: 1.5;
}
.qurban-card small {
    display: block;
    margin-top: 10px;
    font-style: italic;
    font-size: 0.85rem;
    color: #a0a0a0;
}
.qurban-card .btn {
    width: calc(100% - 50px);
    margin: 0 auto 25px auto;
    padding: 15px;
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
}
.qurban-card .btn:hover {
    background: var(--gradient-end);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 114, 77, 0.2);
}

/* --- Halaman Laporan Publik --- */
.page-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: -1px;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}
.report-selection-section, .report-details-section {
    padding: 60px 0;
}
.report-program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.report-card {
    display: block;
    text-align: left;
    text-decoration: none;
    color: var(--text-color);
    padding: 30px;
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.report-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.report-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
}
.report-details-section .report-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}
.report-table-container {
    background: var(--white-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.report-table-container h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.report-table-container table {
    width: 100%;
    border-collapse: collapse;
}
.report-table-container th, .report-table-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.report-table-container thead th {
    background-color: #f8f9fa;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.summary-box {
    padding: 25px;
    border-radius: 10px;
    color: var(--white-color);
}
.summary-box.penerimaan { background: linear-gradient(45deg, #2a9d8f, #264653); }
.summary-box.penyaluran { background: linear-gradient(45deg, #f4a261, #e76f51); }
.summary-box.saldo { background: linear-gradient(45deg, #0077b6, #023e8a); }
.summary-box h4 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}
.summary-box p {
    font-size: 1.8rem;
    font-weight: 700;
}


/* --- HALAMAN LAPORAN PUBLIK (REDESIGN) --- */
.report-selection-section {
    background-color: #f8f9fa;
}
.page-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
}
.report-selection-section .program-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.report-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 25px;
    border-left: 5px solid transparent;
}
.report-card:hover {
    border-left-color: var(--primary-color);
}
.report-card .icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background-color: #e8f5e9;
    border-radius: 50%;
}
.report-card .card-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.report-card .card-content p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Summary Grid */
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.stat-card-report {
    background: var(--white-color);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid;
}
.stat-card-report .icon {
    font-size: 2rem;
    padding: 15px;
    border-radius: 50%;
    color: white;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.stat-card-report .info h4 {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 500;
    margin-bottom: 5px;
}
.stat-card-report .info p {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}
.stat-card-report .info small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-text);
}
.stat-card-report.income { border-color: #2a9d8f; }
.stat-card-report.income .icon { background-color: #2a9d8f; }
.stat-card-report.outcome { border-color: #e76f51; }
.stat-card-report.outcome .icon { background-color: #e76f51; }
.stat-card-report.balance { border-color: #0077b6; }
.stat-card-report.balance .icon { background-color: #0077b6; }

/* Tabs */
.report-tabs-container {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}
.report-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}
.tab-link {
    padding: 15px 25px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-text);
    position: relative;
    transition: color 0.3s ease;
}
.tab-link:hover {
    color: var(--primary-color);
}
.tab-link.active {
    color: var(--primary-color);
}
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}
.tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}

/* Modern Table */
.report-table-modern {
    width: 100%;
    border-collapse: collapse;
}
.report-table-modern th, .report-table-modern td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.report-table-modern thead {
    background-color: #f8f9fa;
}
.report-table-modern th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray-text);
}
.report-table-modern tbody tr:hover {
    background-color: #fdfdfd;
}
.report-table-modern .text-right {
    text-align: right;
    font-weight: 500;
}

/* --- HALAMAN LAPORAN PUBLIK (REDESIGN) --- */
.report-selection-section {
    background-color: #f8f9fa;
}
.page-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
}
.report-selection-section .program-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.report-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 25px;
    border-left: 5px solid transparent;
}
.report-card:hover {
    border-left-color: var(--primary-color);
}
.report-card .icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background-color: #e8f5e9;
    border-radius: 50%;
}
.report-card .card-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.report-card .card-content p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Summary Grid */
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.stat-card-report {
    background: var(--white-color);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid;
}
.stat-card-report .icon {
    font-size: 2rem;
    padding: 15px;
    border-radius: 50%;
    color: white;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.stat-card-report .info h4 {
    font-size: 1rem;
    color: var(--gray-text);
    font-weight: 500;
    margin-bottom: 5px;
}
.stat-card-report .info p {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}
.stat-card-report .info small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-text);
}
.stat-card-report.income { border-color: #2a9d8f; }
.stat-card-report.income .icon { background-color: #2a9d8f; }
.stat-card-report.outcome { border-color: #e76f51; }
.stat-card-report.outcome .icon { background-color: #e76f51; }
.stat-card-report.balance { border-color: #0077b6; }
.stat-card-report.balance .icon { background-color: #0077b6; }

/* Tabs */
.report-tabs-container {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}
.report-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}
.tab-link {
    padding: 15px 25px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-text);
    position: relative;
    transition: color 0.3s ease;
}
.tab-link:hover {
    color: var(--primary-color);
}
.tab-link.active {
    color: var(--primary-color);
}
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}
.tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}

/* Modern Table */
.report-table-modern {
    width: 100%;
    border-collapse: collapse;
}
.report-table-modern th, .report-table-modern td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.report-table-modern thead {
    background-color: #f8f9fa;
}
.report-table-modern th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray-text);
}
.report-table-modern tbody tr:hover {
    background-color: #fdfdfd;
}
.report-table-modern .text-right {
    text-align: right;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- PAYMENT FORM MODERN --- */
.payment-page-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}
.payment-form-container-modern {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Stepper */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 25%;
}
.stepper-item:not(:first-child)::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--light-gray);
    top: 20px;
    right: 50%;
    z-index: 0;
}
.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: #a7a7a7;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    z-index: 1;
    transition: all 0.3s ease;
}
.step-name {
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #a7a7a7;
    transition: all 0.3s ease;
    text-align: center;
}
.stepper-item.active .step-counter {
    background-color: var(--primary-color);
    color: white;
}
.stepper-item.active .step-name {
    color: var(--primary-color);
}
.stepper-item.completed .step-counter {
    background-color: #28a745;
    color: white;
}
.stepper-item.completed .step-name {
    color: var(--text-color);
}
.stepper-item.completed:not(:first-child)::before {
    background-color: #28a745;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s;
}
.form-step.active {
    display: block;
}
.step-header {
    text-align: center;
    margin-bottom: 30px;
}
.step-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
}
.step-header p {
    color: var(--gray-text);
}

/* Form Elements */
.input-group {
    display: flex;
}
.input-group-text {
    padding: 0 15px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: grid;
    place-items: center;
    color: var(--gray-text);
}
.input-group .form-control {
    border-radius: 0 8px 8px 0;
}
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.input-with-icon .form-control {
    padding-left: 45px;
}

/* Payment Methods Modern */
.payment-method-options.modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.payment-method-options.modern .method-card {
    padding: 15px;
    font-weight: 500;
}

/* Navigation */
.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-navigation .btn-primary, .form-navigation .btn-secondary {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-page-modern {
        padding: 40px 15px; /* Kurangi padding atas dan samping */
    }

    .payment-form-container-modern {
        padding: 20px; /* Kurangi padding di dalam kontainer form */
    }

    .stepper-wrapper {
        margin-bottom: 30px;
    }

    .stepper-item:not(:first-child)::before {
        /* Sedikit perpendek garis konektor agar tidak menabrak ikon */
        right: 60%;
    }

    .step-name {
        font-size: 0.8rem; /* Kecilkan font nama langkah */
        font-weight: 400;
    }

    .step-header h2 {
        font-size: 1.5rem; /* Kecilkan judul di setiap langkah */
    }

    .form-navigation {
        flex-direction: column; /* Buat tombol menjadi vertikal */
        gap: 15px;
    }

    .form-navigation .btn {
        width: 100%; /* Buat tombol memenuhi lebar */
    }

    /* Memastikan tombol 'Kembali' ada di atas 'Lanjut' */
    .form-navigation .btn-secondary {
        order: 1;
    }
    .form-navigation .btn-primary {
        order: 2;
    }
}

@media (max-width: 480px) {
    .stepper-wrapper {
        padding: 0 10px; /* Beri sedikit ruang agar tidak terlalu mepet */
    }

    .step-name {
        display: none; /* Sembunyikan nama langkah, hanya tampilkan ikon */
    }

    .stepper-item:not(:first-child)::before {
        /* Sesuaikan kembali garis konektor setelah nama disembunyikan */
        right: 50%;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group-text {
        border-radius: 8px 8px 0 0; /* Ubah sudut atas */
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        justify-content: flex-start; /* Ratakan kiri */
        padding: 8px 15px;
    }

    .input-group .form-control {
        border-radius: 0 0 8px 8px; /* Ubah sudut bawah */
    }
}