/**
 * Stylesheet utama - Sistem Informasi Penduduk & Makam
 * Dipisahkan dari index.php agar lebih terstruktur.
 */

        :root {
            --primary: #1a237e;
            --primary-light: #283593;
            --secondary: #0d47a1;
            --accent: #d32f2f;
            --gold: #c9a84c;
            --soft-bg: #f0f4f8;
            --card-bg: rgba(255,255,255,0.85);
            --shadow: 0 8px 32px rgba(0,0,0,0.08);
            --text-dark: #1a1a2e;
            --text-muted: #6b7a8f;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #e8edf5 0%, #d5dce6 100%);
            color: var(--text-dark);
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        .bg-pattern {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 50%, rgba(26, 35, 126, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(13, 71, 161, 0.04) 0%, transparent 50%);
            z-index: -1;
        }
        
        .bg-pattern::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
        }
        
        .container-custom {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
            position: relative;
            z-index: 1;
        }
        
        .glass {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: 20px;
            box-shadow: var(--shadow);
        }
        
        .header-premium {
            padding: 1.5rem 0 1rem;
            border-bottom: 1px solid rgba(26, 35, 126, 0.08);
            position: relative;
        }
        
        .header-premium::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
            opacity: 0.4;
        }
        
        .logo-wrapper {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .logo-icon-premium {
            width: 50px;
            height: 50px;
            border-radius: 14px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            box-shadow: 0 4px 20px rgba(26, 35, 126, 0.25);
            flex-shrink: 0;
        }
        
        .logo-text-premium h1 {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: -0.5px;
        }
        
        .logo-text-premium h1 span {
            color: var(--gold);
        }
        
        .logo-text-premium .subtitle {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 400;
            letter-spacing: 2px;
            text-transform: uppercase;
        }
        
        /* ==================== NAVIGATION MENU ==================== */
        .nav-menu {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            margin: 1rem 0 0;
            padding: 0.5rem 0;
            border-top: 1px solid rgba(0,0,0,0.04);
        }
        
        .nav-menu .nav-link-premium {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1.2rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        
        .nav-menu .nav-link-premium:hover {
            color: var(--primary);
            background: rgba(26, 35, 126, 0.05);
        }
        
        .nav-menu .nav-link-premium.active {
            color: white;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-color: var(--primary);
            box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
        }
        
        .nav-menu .nav-link-premium i {
            font-size: 0.85rem;
        }
        
        @media (max-width: 768px) {
            .nav-menu .nav-link-premium {
                padding: 0.4rem 0.8rem;
                font-size: 0.7rem;
            }
            .nav-menu .nav-link-premium i {
                font-size: 0.7rem;
            }
        }
        
        @media (max-width: 576px) {
            .nav-menu {
                justify-content: center;
            }
            .nav-menu .nav-link-premium {
                padding: 0.3rem 0.6rem;
                font-size: 0.65rem;
            }
        }
        
        .section-content {
            display: none;
            animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }
        
        .section-content.active {
            display: block;
        }
        
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .header-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            background: rgba(201, 168, 76, 0.12);
            border: 1px solid rgba(201, 168, 76, 0.2);
            font-size: 0.7rem;
            color: var(--gold);
            font-weight: 500;
        }
        
        .section-title-premium {
            text-align: center;
            margin-bottom: 2.5rem;
        }
        
        .section-title-premium .badge-title {
            display: inline-block;
            padding: 0.3rem 1.2rem;
            border-radius: 50px;
            background: rgba(211, 47, 47, 0.08);
            border: 1px solid rgba(211, 47, 47, 0.15);
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.8rem;
        }
        
        .section-title-premium h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }
        
        .section-title-premium h2 .highlight {
            color: var(--gold);
        }
        
        .section-title-premium p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        .title-divider {
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--gold));
            border-radius: 2px;
            margin: 0.8rem auto 0;
        }
        
        .stat-card-premium {
            padding: 1.5rem;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            cursor: default;
            position: relative;
            overflow: hidden;
        }
        
        .stat-card-premium::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--gold));
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .stat-card-premium:hover::before {
            opacity: 1;
        }
        
        .stat-card-premium:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        }
        
        .stat-number-premium {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1.2;
        }
        
        .stat-label-premium {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-top: 0.3rem;
        }
        
        .stat-icon-premium {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.8rem;
            font-size: 1.1rem;
            color: white;
        }
        
        .stat-icon-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        .stat-icon-purple { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
        .stat-icon-gold { background: linear-gradient(135deg, #f6d365, #fda085); }
        .stat-icon-green { background: linear-gradient(135deg, #43e97b, #38f9d7); }
        .stat-icon-red { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
        
        .feature-card-premium {
            padding: 1.5rem;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .feature-card-premium::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--gold));
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }
        
        .feature-card-premium:hover::after {
            transform: scaleX(1);
        }
        
        .feature-card-premium:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.08);
        }
        
        .feature-icon-premium {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.3rem;
            color: white;
        }
        
        .feature-icon-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
        .feature-icon-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .feature-icon-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        .feature-icon-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
        
        .feature-card-premium h5 {
            color: var(--primary);
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .feature-card-premium p {
            color: var(--text-muted);
            font-size: 0.8rem;
            margin-bottom: 0;
        }
        
        .finance-card-premium {
            padding: 1.2rem;
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .finance-card-premium::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            border-radius: 4px 0 0 4px;
        }
        
        .finance-wajib::before { background: #9c27b0; }
        .finance-kebersihan::before { background: #ff9800; }
        .finance-registrasi::before { background: #4caf50; }
        .finance-re-registrasi::before { background: #fd7e14; }
        .finance-total::before { background: #795548; }
        .finance-expense::before { background: #d32f2f; }
        .finance-hibah::before { background: #4facfe; }
        .finance-balance::before { background: var(--gold); }
        
        .finance-card-premium:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.08);
        }
        
        .finance-icon-premium {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: white;
            margin-bottom: 0.6rem;
        }
        
        .finance-wajib .finance-icon-premium { background: #9c27b0; }
        .finance-kebersihan .finance-icon-premium { background: #ff9800; }
        .finance-registrasi .finance-icon-premium { background: #4caf50; }
        .finance-re-registrasi .finance-icon-premium { background: #fd7e14; }
        .finance-total .finance-icon-premium { background: #795548; }
        .finance-expense .finance-icon-premium { background: #d32f2f; }
        .finance-hibah .finance-icon-premium { background: #4facfe; }
        .finance-balance .finance-icon-premium { background: var(--gold); }
        
        .finance-card-premium .amount {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .finance-card-premium .label {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }
        
        .finance-card-premium .sub-amount {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 0.2rem;
        }
        
        .table-premium {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .table-premium thead {
            background: var(--primary);
        }
        
        .table-premium th {
            color: rgba(255,255,255,0.9);
            font-weight: 600;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0.8rem 1rem;
            border: none;
        }
        
        .table-premium td {
            padding: 0.7rem 1rem;
            border-bottom: 1px solid rgba(0,0,0,0.04);
            color: var(--text-dark);
            font-size: 0.8rem;
            vertical-align: middle;
            background: white;
        }
        
        .table-premium tbody tr:hover td {
            background: rgba(26, 35, 126, 0.02);
        }
        
        .badge-premium {
            padding: 0.25rem 0.7rem;
            border-radius: 50px;
            font-size: 0.6rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .badge-wajib { background: rgba(156, 39, 176, 0.12); color: #7b1fa2; }
        .badge-kebersihan { background: rgba(255, 152, 0, 0.12); color: #e65100; }
        .badge-registrasi { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
        .badge-re-registrasi { background: rgba(253, 126, 20, 0.12); color: #bf360c; }
        .badge-lainnya { background: rgba(0,0,0,0.05); color: var(--text-muted); }
        
        .badge-status-approved { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
        .badge-status-pending { background: rgba(255, 193, 7, 0.12); color: #f57f17; }
        .badge-status-rejected { background: rgba(211, 47, 47, 0.12); color: #c62828; }
        
        .search-box-premium {
            background: white;
            border: 2px solid rgba(0,0,0,0.06);
            border-radius: 12px;
            padding: 0.6rem 1rem;
            color: var(--text-dark);
            transition: all 0.3s ease;
            font-size: 0.85rem;
            width: 100%;
        }
        
        .search-box-premium:focus {
            border-color: var(--gold);
            outline: none;
            box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
        }
        
        .btn-premium {
            padding: 0.5rem 1.2rem;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }
        
        .btn-premium-primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }
        
        .btn-premium-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(26, 35, 126, 0.25);
            color: white;
        }
        
        .btn-premium-secondary {
            background: rgba(0,0,0,0.05);
            color: var(--text-muted);
            border: 1px solid rgba(0,0,0,0.06);
        }
        
        .btn-premium-secondary:hover {
            background: rgba(0,0,0,0.08);
            color: var(--text-dark);
        }
        
        .pagination-premium {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            flex-wrap: wrap;
            margin-top: 1.2rem;
        }
        
        .pagination-premium .page-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            height: 36px;
            padding: 0 0.6rem;
            border-radius: 8px;
            border: 1px solid rgba(0,0,0,0.06);
            background: white;
            color: var(--text-dark);
            font-weight: 500;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .pagination-premium .page-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
        }
        
        .pagination-premium .page-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .pagination-premium .page-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        .age-chart-premium {
            display: flex;
            height: 36px;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(0,0,0,0.04);
            margin: 0.8rem 0;
        }
        
        .age-segment-premium {
            height: 100%;
            transition: all 0.6s ease;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55rem;
            font-weight: 700;
            color: white;
        }
        
        .age-segment-batita { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
        .age-segment-balita { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .age-segment-anak { background: linear-gradient(135deg, #4facfe, #00f2fe); }
        .age-segment-dewasa { background: linear-gradient(135deg, #43e97b, #38f9d7); }
        .age-segment-lansia { background: linear-gradient(135deg, #f6d365, #fda085); }
        
        .age-legend-premium {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem 1rem;
            margin-top: 0.6rem;
            justify-content: center;
        }
        
        .age-legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.65rem;
            color: var(--text-muted);
        }
        
        .age-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 3px;
        }
        
        .rt-list-premium {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        
        .rt-item-premium {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.4rem 0.7rem;
            background: rgba(0,0,0,0.02);
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .rt-item-premium:hover {
            background: rgba(0,0,0,0.04);
        }
        
        .rt-name-premium {
            font-weight: 600;
            color: var(--primary);
            font-size: 0.8rem;
        }
        
        .rt-count-premium {
            font-size: 0.75rem;
            color: var(--text-muted);
        }
        
        .rt-badge-premium {
            padding: 0.15rem 0.5rem;
            border-radius: 50px;
            background: rgba(0,0,0,0.04);
            font-size: 0.65rem;
            color: var(--text-muted);
        }
        
        .layout-container-premium {
            background: white;
            border-radius: 16px;
            padding: 1.2rem;
            border: 1px solid rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
        }
        
        .layout-container-premium:hover {
            border-color: rgba(26, 35, 126, 0.1);
            box-shadow: 0 12px 40px rgba(0,0,0,0.06);
        }
        
        .layout-area-premium {
            background: linear-gradient(135deg, #e8eaf6, #c5cae9);
            border-radius: 12px;
            padding: 0.8rem;
            position: relative;
            min-height: 180px;
            border: 1px solid rgba(0,0,0,0.05);
        }
        
        .makam-grid-premium {
            position: relative;
            width: 100%;
            height: 100%;
            min-height: 160px;
        }
        
        .makam-position-premium {
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 2px solid rgba(255,255,255,0.8);
            transform: translate(-50%, -50%);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6px;
            font-weight: 700;
            color: white;
            z-index: 2;
        }
        
        .makam-position-premium:hover {
            transform: translate(-50%, -50%) scale(1.2);
            z-index: 3;
            box-shadow: 0 0 20px rgba(0,0,0,0.2);
        }
        
        .makam-position-premium.terisi { background: linear-gradient(135deg, #d32f2f, #b71c1c); border-color: #d32f2f; }
        .makam-position-premium.kosong { background: linear-gradient(135deg, #2ecc71, #27ae60); border-color: #2ecc71; }
        .makam-position-premium.keluarga { background: linear-gradient(135deg, #f1c40f, #d4a017); border-color: #f1c40f; }
        .makam-position-premium.slot { background: rgba(255,255,255,0.3); border: 1px dashed rgba(0,0,0,0.2); color: rgba(0,0,0,0.3); }
        
        .gallery-card-premium {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            cursor: pointer;
            height: 100%;
            background: white;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow);
        }
        
        .gallery-card-premium:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        }
        
        .gallery-img-premium {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        
        .gallery-card-premium:hover .gallery-img-premium {
            transform: scale(1.05);
        }
        
        .gallery-overlay-premium {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1.2rem;
            background: linear-gradient(transparent, rgba(0,0,0,0.85));
            transform: translateY(30%);
            transition: transform 0.4s ease;
        }
        
        .gallery-card-premium:hover .gallery-overlay-premium {
            transform: translateY(0);
        }
        
        .gallery-overlay-premium h6 {
            color: #fff;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.2rem;
        }
        
        .gallery-overlay-premium .date {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.5);
        }
        
        .gallery-overlay-premium .desc {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.6);
            margin-top: 0.3rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .btn-login-premium {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            padding: 0.7rem 2rem;
            border-radius: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.4s ease;
            box-shadow: 0 4px 25px rgba(26, 35, 126, 0.25);
            border: none;
        }
        
        .btn-login-premium:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 40px rgba(26, 35, 126, 0.3);
            color: white;
        }
        
        .footer-premium {
            padding: 2rem 0;
            border-top: 1px solid rgba(0,0,0,0.05);
            text-align: center;
            background: white;
            border-radius: 20px 20px 0 0;
            margin-top: 2rem;
        }
        
        .footer-premium .brand {
            font-weight: 700;
            color: var(--primary);
            font-size: 0.95rem;
        }
        
        .footer-premium .brand span {
            color: var(--gold);
        }
        
        .footer-premium .copyright {
            color: var(--text-muted);
            font-size: 0.7rem;
            margin-top: 0.5rem;
        }
        
        /* ==================== PENGURUS CARDS ==================== */
        .pengurus-card {
            text-align: center;
            padding: 1.5rem 1rem;
            transition: all 0.4s ease;
            height: 100%;
            background: white;
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow);
        }
        
        .pengurus-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        }
        
        .pengurus-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 1rem;
            border: 4px solid rgba(26, 35, 126, 0.1);
            transition: all 0.3s ease;
            background: linear-gradient(135deg, #e8edf5, #d5dce6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--primary);
        }
        
        .pengurus-card:hover .pengurus-avatar {
            border-color: var(--gold);
            transform: scale(1.05);
        }
        
        .pengurus-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .pengurus-avatar .placeholder {
            font-size: 2.5rem;
            color: var(--primary);
        }
        
        .pengurus-card h6 {
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem;
            margin-bottom: 0.2rem;
        }
        
        .pengurus-card .jabatan {
            font-size: 0.75rem;
            color: var(--gold);
            font-weight: 600;
        }
        
        .pengurus-card .deskripsi {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        
        .pengurus-card .kontak {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 0.3rem;
        }
        
        .pengurus-card .kontak i {
            color: var(--gold);
            margin-right: 0.3rem;
        }
        
        /* ==================== VISI MISI ==================== */
        .visi-card, .misi-card {
            padding: 1.5rem;
            border-radius: 16px;
            background: white;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow);
            height: 100%;
            transition: all 0.3s ease;
        }
        
        .visi-card:hover, .misi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.08);
        }
        
        .visi-card .icon, .misi-card .icon {
            font-size: 2.5rem;
            color: var(--gold);
            margin-bottom: 1rem;
        }
        
        .visi-card h5, .misi-card h5 {
            color: var(--primary);
            font-weight: 700;
        }
        
        .visi-card p, .misi-card p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        .misi-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .misi-list li {
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.04);
            display: flex;
            align-items: flex-start;
            gap: 0.8rem;
            font-size: 0.85rem;
            color: var(--text-dark);
        }
        
        .misi-list li:last-child {
            border-bottom: none;
        }
        
        .misi-list li i {
            color: var(--gold);
            margin-top: 0.2rem;
            flex-shrink: 0;
        }
        
        /* ==================== TATA TERTIB ==================== */
        .tata-tertib-section {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow);
        }
        
        .tata-tertib-section .rule-item {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.04);
            display: flex;
            gap: 1rem;
            align-items: flex-start;
        }
        
        .tata-tertib-section .rule-item:last-child {
            border-bottom: none;
        }
        
        .tata-tertib-section .rule-number {
            font-weight: 700;
            color: var(--gold);
            font-size: 1.2rem;
            min-width: 35px;
        }
        
        .tata-tertib-section .rule-content h6 {
            font-weight: 600;
            color: var(--primary);
            font-size: 0.9rem;
            margin-bottom: 0.2rem;
        }
        
        .tata-tertib-section .rule-content p {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 0;
        }
        
        /* ==================== CONTACT PERSON ==================== */
        .contact-card {
            text-align: center;
            padding: 1.5rem;
            background: white;
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow);
            height: 100%;
            transition: all 0.3s ease;
        }
        
        .contact-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.08);
        }
        
        .contact-card .icon {
            font-size: 2rem;
            color: var(--gold);
            margin-bottom: 0.8rem;
        }
        
        .contact-card h6 {
            font-weight: 600;
            color: var(--primary);
        }
        
        .contact-card .info {
            font-size: 0.85rem;
            color: var(--text-dark);
        }
        
        .contact-card .info .label {
            color: var(--text-muted);
            font-size: 0.7rem;
        }
        
        /* ==================== ANGGOTA MAKAM ==================== */
        .anggota-card {
            padding: 1.5rem;
            background: white;
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            height: 100%;
            cursor: pointer;
        }
        
        .anggota-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.08);
            border-color: var(--gold);
        }
        
        .anggota-card .anggota-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.8rem;
        }
        
        .anggota-card .anggota-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold), #f6d365);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        
        .anggota-card .anggota-nama {
            font-weight: 700;
            color: var(--primary);
            font-size: 1rem;
            margin-bottom: 0.1rem;
        }
        
        .anggota-card .anggota-nik {
            font-size: 0.7rem;
            color: var(--text-muted);
        }
        
        .anggota-card .anggota-detail {
            font-size: 0.8rem;
            color: var(--text-dark);
            margin-top: 0.5rem;
        }
        
        .anggota-card .anggota-detail i {
            color: var(--gold);
            width: 18px;
        }
        
        .anggota-card .badge-lunas {
            background: rgba(46, 125, 50, 0.12);
            color: #2e7d32;
            padding: 0.2rem 0.6rem;
            border-radius: 50px;
            font-size: 0.6rem;
            font-weight: 600;
        }
        
        .anggota-card .view-family-btn {
            font-size: 0.7rem;
            color: var(--primary);
            font-weight: 500;
            margin-top: 0.5rem;
            display: inline-block;
        }
        
        .anggota-card .view-family-btn i {
            transition: transform 0.3s ease;
        }
        
        .anggota-card:hover .view-family-btn i {
            transform: translateX(3px);
        }
        
        /* ==================== FAMILY MEMBER ITEMS ==================== */
        .family-member-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.6rem 0.8rem;
            border-radius: 10px;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }

        .family-member-item:last-child {
            border-bottom: none;
        }

        .family-member-item:hover {
            background: rgba(26, 35, 126, 0.03);
        }

        .family-member-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .family-member-avatar.kepala { background: linear-gradient(135deg, #1a237e, #283593); }
        .family-member-avatar.istri { background: linear-gradient(135deg, #e91e63, #f06292); }
        .family-member-avatar.suami { background: linear-gradient(135deg, #0d47a1, #1976d2); }
        .family-member-avatar.anak { background: linear-gradient(135deg, #4caf50, #81c784); }
        .family-member-avatar.menantu { background: linear-gradient(135deg, #ff9800, #ffb74d); }
        .family-member-avatar.cucu { background: linear-gradient(135deg, #9c27b0, #ce93d8); }
        .family-member-avatar.orangtua { background: linear-gradient(135deg, #795548, #a1887f); }
        .family-member-avatar.mertua { background: linear-gradient(135deg, #607d8b, #90a4ae); }
        .family-member-avatar.default { background: linear-gradient(135deg, #78909c, #b0bec5); }

        .family-member-info {
            flex: 1;
        }

        .family-member-info .nama {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.9rem;
        }

        .family-member-info .status {
            font-size: 0.7rem;
            color: var(--text-muted);
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            margin-top: 0.1rem;
        }

        .family-member-info .detail {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 0.1rem;
        }

        .family-member-info .detail i {
            color: var(--gold);
            width: 16px;
        }

        .list-group {
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.04);
        }
        
        /* ==================== MODAL ==================== */
        .modal-keluarga .modal-content {
            border-radius: 16px;
            border: none;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        }
        
        .modal-keluarga .modal-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 16px 16px 0 0;
            padding: 1.2rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-keluarga .modal-header .btn-close {
            background: transparent;
            color: white;
            font-size: 1.2rem;
            opacity: 0.8;
            border: none;
            padding: 0.5rem;
        }
        
        .modal-keluarga .modal-header .btn-close:hover {
            opacity: 1;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }
        
        .modal-keluarga .modal-body {
            padding: 1.5rem;
            max-height: 60vh;
            overflow-y: auto;
        }
        
        .modal-keluarga .modal-footer {
            border-top: 1px solid rgba(0,0,0,0.05);
            padding: 1rem 1.5rem;
        }

        .modal-keluarga .modal-footer .btn-secondary {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 10px;
            cursor: pointer;
        }

        .modal-keluarga .modal-footer .btn-secondary:hover {
            background: var(--primary-light);
        }
        
        .modal-keluarga .btn-close-modal {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0 0.5rem;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }
        
        .modal-keluarga .btn-close-modal:hover {
            opacity: 1;
        }
        
        .modal-backdrop {
            z-index: 1040 !important;
        }
        
        .modal {
            z-index: 1050 !important;
        }
        
        @media (max-width: 768px) {
            .logo-text-premium h1 { font-size: 1.1rem; }
            .stat-number-premium { font-size: 1.4rem; }
            .section-title-premium h2 { font-size: 1.3rem; }
            .table-premium { font-size: 0.7rem; }
            .table-premium th, .table-premium td { padding: 0.4rem 0.5rem; }
            .makam-position-premium { width: 16px; height: 16px; font-size: 5px; }
            .gallery-img-premium { height: 150px; }
            .finance-card-premium .amount { font-size: 1.1rem; }
            .pengurus-avatar { width: 70px; height: 70px; }
            .pengurus-avatar .placeholder { font-size: 1.8rem; }
            .anggota-card .anggota-avatar { width: 40px; height: 40px; font-size: 1rem; }
            .modal-keluarga .modal-body { max-height: 70vh; }
        }
        
        @media (max-width: 576px) {
            .container-custom { padding: 0 1rem; }
            .logo-icon-premium { width: 40px; height: 40px; font-size: 1rem; }
            .logo-text-premium h1 { font-size: 0.9rem; }
            .stat-card-premium { padding: 0.8rem; }
            .stat-number-premium { font-size: 1.2rem; }
            .feature-card-premium { padding: 1rem; }
            .finance-card-premium { padding: 1rem; }
            .tata-tertib-section { padding: 1rem; }
            .pengurus-card { padding: 1rem; }
            .anggota-card { padding: 1rem; }
            .family-member-item { padding: 0.4rem 0.5rem; gap: 0.5rem; }
            .family-member-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
            .family-member-info .nama { font-size: 0.8rem; }
        }
        
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: rgba(0,0,0,0.02); }
        ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
