/* ============================================
   RESET & BASE
============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0a7c4a;
    --primary-dark: #065a35;
    --primary-light: #d1fae5;
    --accent: #fbbf24;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 15px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: 16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.container-narrow { max-width: 800px; }

.bg-light { background: var(--light); }

/* ============================================
   NAVBAR
============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: .3s;
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255,255,255,.95);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}
.logo-icon { font-size: 26px; }
.logo-text { letter-spacing: -.3px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-menu > a {
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    transition: .2s;
}
.nav-menu > a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.nav-toggle {
    display: none;
    background: transparent;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: .3s;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary, .btn-outline, .btn-ghost, .btn-wa, .btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: .25s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(10,124,74,.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10,124,74,.35);
}

.btn-outline {
    background: #fff;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

.btn-ghost {
    background: transparent;
    color: var(--dark) !important;
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.btn-wa {
    background: #25D366;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.btn-wa:hover { background: #1eb356; transform: translateY(-2px); }

.btn-white {
    background: #fff;
    color: var(--primary) !important;
}
.btn-white:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
    border-radius: 12px;
}
.btn-block { width: 100%; }

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #e8f5ee 0%, #f0fdf4 50%, #d4ede0 100%);
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-bg-decor {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10,124,74,.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10,124,74,.08);
    border: 1px solid rgba(10,124,74,.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}
.dot-live {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--dark);
}
.text-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 8px;
    background: rgba(251,191,36,.4);
    z-index: -1;
    border-radius: 4px;
}
.text-highlight-sub {
    color: var(--primary);
    font-size: .7em;
    font-weight: 700;
}

.hero-sub {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-btn {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hero-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
}

.hero-card {
    position: relative;
    background: #fff;
    padding: 26px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 340px;
    z-index: 2;
    animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.hero-emoji {
    font-size: 44px;
    background: linear-gradient(135deg,#d1fae5,#a7f3d0);
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}
.hero-card-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 2px;
}
.hero-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.hero-progress {
    height: 10px;
    background: var(--light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}
.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 999px;
    transition: width 1s;
}

.hero-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.hero-card-info span { color: var(--gray); }
.hero-card-info strong { color: var(--dark); font-size: 14px; }

.floating-badge {
    position: absolute;
    background: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
.floating-badge span { font-size: 24px; }
.floating-badge strong {
    display: block;
    font-size: 16px;
    color: var(--primary);
    line-height: 1;
}
.floating-badge small {
    font-size: 11px;
    color: var(--gray);
}

.fb-1 {
    top: 20px;
    left: -10px;
    animation: floaty 3s ease-in-out infinite;
}
.fb-2 {
    bottom: 20px;
    right: -10px;
    animation: floaty 3.5s ease-in-out infinite reverse;
}

/* ============================================
   COUNTER
============================================ */
.counter-section {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}
.counter-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.counter-box {
    text-align: center;
    padding: 15px;
}
.counter-icon {
    font-size: 30px;
    margin-bottom: 6px;
}
.counter-box h3 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 4px;
}
.counter-box p {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* ============================================
   SECTIONS
============================================ */
.section {
    padding: 70px 0;
    background: #fff;
}
.section-alt { background: var(--light); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 45px;
}
.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.7px;
    line-height: 1.25;
    margin-bottom: 12px;
}
.section-title span { color: var(--primary); }
.section-desc {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* GRID */
.grid-3, .grid-4 {
    display: grid;
    gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* FEATURE CARD */
.feature-card {
    background: #fff;
    padding: 30px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: .3s;
    text-align: left;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--gray);
    font-size: 14.5px;
    line-height: 1.6;
}

/* STEP CARD */
.step-card {
    background: #fff;
    padding: 30px 22px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    transition: .3s;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.step-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(10,124,74,.3);
}
.step-card h3 {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
}
.step-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   PROGRESS HERO
============================================ */
.progress-hero {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    padding: 45px 40px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(10,124,74,.25);
}
.progress-hero .section-tag {
    background: rgba(255,255,255,.2);
    color: #fff;
}
.progress-hero h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -.6px;
}
.progress-hero p {
    opacity: .9;
    font-size: 15px;
    line-height: 1.7;
}

.progress-bar-bg {
    height: 20px;
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 1.2s ease-out;
    min-width: 50px;
}
.progress-bar-fill span {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.progress-stats > div {
    background: rgba(255,255,255,.15);
    padding: 14px 18px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.progress-stats small {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-bottom: 3px;
}
.progress-stats strong {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   GALERI
============================================ */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.galeri-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: .35s;
}
.galeri-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}
.galeri-item:hover img { transform: scale(1.08); }

.galeri-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.4) 60%, transparent);
    color: #fff;
    padding: 30px 18px 16px;
    transform: translateY(20%);
    opacity: 0;
    transition: .35s;
}
.galeri-item:hover .galeri-overlay {
    transform: translateY(0);
    opacity: 1;
}
.galeri-overlay strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    font-weight: 700;
}
.galeri-overlay small {
    font-size: 12px;
    opacity: .85;
}

/* ============================================
   TESTIMONI
============================================ */
.testi-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    transition: .3s;
}
.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.testi-quote {
    position: absolute;
    top: 12px; right: 22px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--primary-light);
    line-height: 1;
}
.testi-card p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.testi-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.testi-author strong {
    display: block;
    font-size: 14px;
}
.testi-author small {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   FAQ
============================================ */
.faq-list details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: .3s;
}
.faq-list details[open] {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.faq-list summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary);
    font-weight: 300;
    transition: .3s;
}
.faq-list details[open] summary::after {
    content: '−';
}
.faq-list details p {
    padding: 0 22px 20px;
    color: var(--gray);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ============================================
   CTA AKHIR
============================================ */
.cta-akhir {
    padding: 70px 0;
    background: #fff;
}
.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    padding: 60px 30px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '🐄';
    position: absolute;
    font-size: 200px;
    opacity: .04;
    right: -30px;
    bottom: -60px;
    transform: rotate(-15deg);
}
.cta-box h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -.7px;
    position: relative;
    z-index: 1;
}
.cta-box p {
    opacity: .8;
    font-size: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}
.cta-box .hero-btn {
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 50px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 35px;
}
.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    max-width: 380px;
}
.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 700;
}
.footer a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 5px 0;
    transition: .2s;
}
.footer a:hover { color: var(--primary-light); }
.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ============================================
   FLOATING WA
============================================ */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37,211,102,.45);
    z-index: 999;
    animation: waPulse 2s infinite;
    transition: .3s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
    70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}
.lightbox.aktif { display: flex; }
.lightbox img {
    max-width: 92%;
    max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox p {
    color: #fff;
    margin-top: 18px;
    font-size: 15px;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 15px; right: 25px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    line-height: 1;
}

/* ============================================
   AUTH PAGE (untuk login/daftar)
============================================ */
.auth-box {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e8f5ee 0%, #f0fdf4 100%);
}
.auth-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}
.auth-card h1 {
    font-size: 26px;
    margin-bottom: 6px;
    text-align: center;
    font-weight: 800;
}
.auth-sub {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 25px;
}
.auth-card label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 6px;
    margin-top: 14px;
}
.auth-card input,
.auth-card textarea,
.auth-card select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: .2s;
}
.auth-card input:focus,
.auth-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,124,74,.1);
}
.auth-card button {
    margin-top: 20px;
}
.auth-foot {
    text-align: center;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--gray);
}
.auth-foot a {
    color: var(--primary);
    font-weight: 600;
}
.auth-info {
    margin-top: 20px;
    padding: 14px;
    background: var(--light);
    border-radius: 10px;
    text-align: center;
    font-size: 12.5px;
    color: var(--gray);
}
.auth-info code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
}

/* ALERT */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============================================
   DASHBOARD (member & admin)
============================================ */
.dash-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.dash-card.big { padding: 30px; }
.dash-card h3 {
    font-size: 17px;
    margin-bottom: 18px;
    font-weight: 700;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.dash-stats small {
    color: var(--gray);
    font-size: 12px;
    display: block;
    margin-bottom: 3px;
}
.dash-stats h2 {
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stat-card small {
    color: var(--gray);
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}
.stat-card h2 {
    font-size: 22px;
    color: var(--primary);
    font-weight: 800;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th, .table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: var(--light);
    font-weight: 700;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.table tr:hover { background: #fafafa; }

.progress-mini {
    height: 6px;
    background: var(--light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
    min-width: 80px;
}
.progress-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 999px;
}

.form-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    align-items: end;
}
.form-inline label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-inline input,
.form-inline select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.form-inline input:focus,
.form-inline select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ADMIN GALERI */
.form-upload > div { margin-bottom: 15px; }
.form-upload label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-upload input[type="text"],
.form-upload input[type="file"],
.form-upload textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}
.form-upload input:focus { outline: none; border-color: var(--primary); }

.admin-galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.admin-galeri-item {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
}
.admin-galeri-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.admin-galeri-info { padding: 10px; }
.admin-galeri-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}
.admin-galeri-info small {
    display: block;
    color: var(--gray);
    font-size: 11px;
    margin-bottom: 8px;
}
.btn-hapus {
    display: inline-block;
    background: #ef4444;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.btn-hapus:hover { background: #dc2626; }

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 992px) {
    .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { min-height: 340px; }
    .progress-hero { grid-template-columns: 1fr; gap: 25px; padding: 35px 25px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 6px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: .35s;
        z-index: 999;
    }
    .nav-menu.aktif { transform: translateY(0); }
    .nav-menu > a {
        padding: 12px 16px;
        font-size: 15px;
    }
    .nav-actions {
        flex-direction: column;
        margin-left: 0;
        margin-top: 10px;
        gap: 10px;
    }
    .nav-actions a { width: 100%; text-align: center; }

    .hero { padding: 40px 0 60px; }
    .hero-title { font-size: 28px; }
    .hero-btn { flex-direction: column; width: 100%; }
    .hero-btn a { width: 100%; justify-content: center; }

    .counter-wrap { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .counter-box { padding: 12px 8px; }

    .section { padding: 50px 0; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .progress-hero { padding: 30px 22px; border-radius: 20px; }
    .progress-stats { grid-template-columns: 1fr; gap: 10px; }

    .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .galeri-overlay { 
        transform: translateY(0); 
        opacity: 1; 
        padding: 20px 12px 10px;
    }
    .galeri-overlay strong { font-size: 12px; }
    .galeri-overlay small { font-size: 10px; }

    .cta-box { padding: 40px 22px; }
    .cta-box .hero-btn a { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 25px; }

    .floating-badge { padding: 8px 12px; }
    .floating-badge span { font-size: 18px; }
    .floating-badge strong { font-size: 14px; }
    .fb-1 { left: 0; top: 10px; }
    .fb-2 { right: 0; bottom: 10px; }

    .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }

    .auth-card { padding: 30px 22px; }

    .dash-card { padding: 18px; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .table { font-size: 12.5px; }
    .table th, .table td { padding: 9px 6px; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 24px; }
    .counter-box h3 { font-size: 20px; }
    .galeri-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 22px; }
    .dash-stats { grid-template-columns: 1fr; }
}
/* ============================================
   ADMIN MODERN UI
============================================ */

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.page-head h1 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.6px;
    margin-bottom: 4px;
}
.page-head p { color: var(--gray); font-size: 14px; }

/* USER CHIP */
.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--light);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.user-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.user-avatar.sm {
    width: 32px; height: 32px;
    font-size: 14px;
}

/* NAVBAR LINK ACTIVE */
.nav-menu > a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   STAT CARD (upgrade)
============================================ */
.stat-card {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
}

/* ============================================
   FORM SETORAN
============================================ */
.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dash-card-head h3 { margin-bottom: 0; }
.dash-card-head small { color: var(--gray); font-size: 13px; }

.form-setoran { display: flex; flex-direction: column; gap: 18px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: .2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,124,74,.1);
}
.form-group input[type="file"] {
    padding: 9px 12px;
    cursor: pointer;
}
.form-hint {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 12px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 5px;
}

/* ============================================
   TABLE WRAP (scroll mobile)
============================================ */
.table-wrap {
    overflow-x: auto;
    margin: 0 -5px;
    padding: 0 5px;
    -webkit-overflow-scrolling: touch;
}
.table-wrap .table { min-width: 620px; }

.kode-nota {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}
.badge-method {
    display: inline-block;
    background: var(--light);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
}
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray); font-size: 12px; }

.member-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-link {
    color: #25D366;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s;
}
.btn-mini-primary {
    background: var(--primary);
    color: #fff !important;
}
.btn-mini-primary:hover {
    background: var(--primary-dark);
}

/* ============================================
   NOTA DIGITAL
============================================ */
.nota-wrapper {
    max-width: 620px;
    margin: 40px auto;
    padding: 0 20px 40px;
}
.nota {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.nota-header {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.nota-logo {
    font-size: 40px;
    background: rgba(255,255,255,.2);
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nota-header h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -.4px;
}
.nota-header p {
    opacity: .9;
    font-size: 13px;
}

.nota-status {
    padding: 14px 24px;
    background: #ecfdf5;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.badge-success {
    display: inline-block;
    background: #10b981;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}

.nota-kode-box {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-bottom: 2px dashed var(--border);
}
.nota-kode-box small {
    display: block;
    color: var(--gray);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.nota-kode-box strong {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: 1px;
    font-weight: 800;
}

.nota-body { padding: 20px 24px; }
.nota-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.nota-row:last-child { border-bottom: none; }
.nota-row span {
    color: var(--gray);
    font-size: 13.5px;
    flex-shrink: 0;
}
.nota-row strong {
    font-size: 14.5px;
    text-align: right;
    color: var(--dark);
}
.nota-row.big {
    padding: 18px 0 6px;
    border-top: 2px solid var(--border);
    border-bottom: none;
    margin-top: 10px;
}
.nota-jumlah {
    font-size: 22px !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
}

.nota-bukti {
    padding: 0 24px 20px;
}
.nota-bukti small {
    display: block;
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}
.nota-bukti img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-height: 300px;
    object-fit: contain;
    background: var(--light);
}

.nota-progress {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}
.nota-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}
.nota-progress-head strong {
    color: var(--primary);
    font-weight: 800;
}
.nota-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}
.nota-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 999px;
    transition: width 1s;
}
.nota-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--gray);
    gap: 10px;
    flex-wrap: wrap;
}
.nota-progress-info strong { color: var(--dark); }

.nota-footer {
    padding: 16px 24px;
    background: var(--dark);
    color: #cbd5e1;
    text-align: center;
    font-size: 12px;
}
.nota-footer p { margin-bottom: 4px; opacity: .8; }
.nota-footer small { opacity: .6; }

.nota-actions {
    display: grid;
    gap: 10px;
}
.nota-actions a,
.nota-actions button {
    width: 100%;
    justify-content: center;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-head .btn-primary { width: 100%; justify-content: center; }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 16px; }
    .stat-card h2 { font-size: 17px; }
    .stat-icon { width: 38px; height: 38px; font-size: 18px; }

    .form-row { grid-template-columns: 1fr; }
    .form-actions button { width: 100%; }

    .dash-card { padding: 18px; }
    .dash-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .nota-wrapper { padding: 0 12px 30px; margin-top: 20px; }
    .nota { border-radius: 16px; }
    .nota-header { padding: 18px; }
    .nota-logo { width: 52px; height: 52px; font-size: 32px; }
    .nota-header h1 { font-size: 17px; }
    .nota-kode-box { padding: 18px; }
    .nota-kode-box strong { font-size: 18px; }
    .nota-body { padding: 16px 18px; }
    .nota-row { padding: 10px 0; }
    .nota-row span { font-size: 12.5px; }
    .nota-row strong { font-size: 13px; }
    .nota-jumlah { font-size: 19px !important; }
    .nota-progress { padding: 16px 18px; }
    .nota-bukti { padding: 0 18px 16px; }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr; }
    .user-chip { font-size: 12px; padding: 5px 12px 5px 5px; }
}

/* ============================================
   PRINT (Cetak Nota)
============================================ */
@media print {
    body { background: #fff !important; }
    .navbar, .wa-float, .nota-actions, .footer { display: none !important; }
    .nota-wrapper { margin: 0; padding: 0; max-width: 100%; }
    .nota { box-shadow: none; border: 1px solid #ddd; border-radius: 0; }
    .nota-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .badge-success { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ============================================
   MEMBER DASHBOARD — MODERN UI
============================================ */

/* SAPAAN */
.member-hello {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.member-hello h1 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 4px;
}
.member-hello p {
    color: var(--gray);
    font-size: 14px;
}

/* PROGRESS CARD UTAMA */
.member-progress-card {
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: #fff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10,124,74,.25);
}
.member-progress-card::before {
    content: '🐄';
    position: absolute;
    font-size: 200px;
    opacity: .06;
    right: -30px;
    bottom: -60px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.mpc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.mpc-icon {
    font-size: 36px;
    background: rgba(255,255,255,.2);
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mpc-label {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 3px;
}
.mpc-status {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
}
.mpc-status.lunas {
    background: #fbbf24;
    color: #78350f;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.mpc-progress {
    position: relative;
    z-index: 1;
}
.mpc-progress-bar {
    height: 16px;
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}
.mpc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1.5s ease-out;
    min-width: 40px;
}
.mpc-progress-fill span {
    font-size: 11px;
    font-weight: 800;
    color: #78350f;
}

.mpc-amounts {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.mpc-amounts small {
    display: block;
    font-size: 12px;
    opacity: .8;
    margin-bottom: 3px;
}
.mpc-amounts strong {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    letter-spacing: -.5px;
}

.mpc-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.2);
    position: relative;
    z-index: 1;
}
.mpc-footer-item small {
    display: block;
    font-size: 11px;
    opacity: .8;
    margin-bottom: 3px;
}
.mpc-footer-item strong {
    font-size: 14px;
    font-weight: 700;
}

/* NOTICE */
.member-notice {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #78350f;
}
.notice-icon {
    font-size: 26px;
    flex-shrink: 0;
}

/* FILTER TABS */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--light);
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: .2s;
}
.filter-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.filter-tab.active {
    background: var(--primary);
    color: #fff;
}

/* FILTER TOTAL */
.filter-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px 18px;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    flex-wrap: wrap;
}
.filter-total span { color: var(--gray); }
.filter-total strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}
.filter-count {
    font-size: 12px;
    color: var(--gray);
}

/* SETORAN LIST */
.setoran-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.setoran-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transition: .25s;
}
.setoran-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(10,124,74,.08);
    transform: translateY(-2px);
}

.setoran-icon {
    width: 46px;
    height: 46px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.setoran-main {
    flex: 1;
    min-width: 0;
}
.setoran-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}
.setoran-head strong {
    font-size: 17px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -.3px;
}
.setoran-meta {
    display: flex;
    gap: 12px;
    font-size: 12.5px;
    color: var(--gray);
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.setoran-kode code {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    display: inline-block;
}

.setoran-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.btn-mini-ghost {
    background: #fff;
    color: var(--gray) !important;
    border: 1.5px solid var(--border);
}
.btn-mini-ghost:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 45px 20px;
}
.empty-icon {
    font-size: 60px;
    margin-bottom: 12px;
    opacity: .6;
}
.empty-state h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 700;
}
.empty-state p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* INFO CARD — CARA SETOR */
.info-card {
    margin-top: 5px;
}
.cara-setor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cara-setor-item {
    background: var(--light);
    padding: 22px 18px;
    border-radius: 14px;
    text-align: center;
    transition: .3s;
}
.cara-setor-item:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.cs-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}
.cara-setor-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.cara-setor-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.55;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .member-hello {
        flex-direction: column;
        align-items: flex-start;
    }
    .member-hello .btn-wa {
        width: 100%;
        justify-content: center;
    }

    .member-progress-card {
        padding: 22px;
        border-radius: 20px;
    }
    .mpc-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .mpc-label { font-size: 12px; }
    .mpc-status { font-size: 14px; }
    
    .mpc-amounts strong { font-size: 18px; }
    
    .mpc-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .setoran-item {
        flex-wrap: wrap;
        padding: 14px;
    }
    .setoran-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .setoran-head strong { font-size: 15.5px; }
    .setoran-meta { font-size: 11.5px; gap: 8px; }
    .setoran-kode code { font-size: 10.5px; padding: 3px 8px; }

    .setoran-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 6px;
        gap: 8px;
    }
    .setoran-actions .btn-mini {
        flex: 1;
        justify-content: center;
        padding: 8px;
        font-size: 12px;
    }

    .cara-setor-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cara-setor-item {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 16px;
    }
    .cs-icon {
        margin: 0;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .cara-setor-item h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    .cara-setor-item p {
        font-size: 12.5px;
    }

    .filter-total {
        padding: 12px 14px;
        font-size: 13px;
    }
    .filter-total strong { font-size: 16px; }
}

@media (max-width: 420px) {
    .mpc-footer {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .mpc-footer-item strong { font-size: 13px; }
    .mpc-amounts strong { font-size: 17px; }
    .dash-card { padding: 16px; }
    .dash-card h3 { font-size: 15.5px; }
}
/* ============================================
   KELOLA MEMBER — ADMIN
============================================ */

/* SEARCH FORM */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    opacity: .6;
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: .2s;
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,124,74,.1);
}

/* MEMBER CARDS */
.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 5px;
}

.member-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    transition: .3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.member-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(10,124,74,.08);
    transform: translateY(-3px);
}

.mc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.mc-avatar {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 19px;
    flex-shrink: 0;
}
.mc-info {
    flex: 1;
    min-width: 0;
}
.mc-info strong {
    display: block;
    font-size: 15.5px;
    color: var(--dark);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-info small {
    color: var(--gray);
    font-size: 12.5px;
}

.mc-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.mc-badge-lunas {
    background: #d1fae5;
    color: #065f46;
}
.mc-badge-aktif {
    background: #dbeafe;
    color: #1e40af;
}
.mc-badge-baru {
    background: #f3f4f6;
    color: #6b7280;
}

.mc-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13.5px;
}
.mc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.mc-row > span {
    color: var(--gray);
    flex-shrink: 0;
}
.mc-row > strong,
.mc-row > a {
    text-align: right;
    color: var(--dark);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.mc-row > a {
    color: #25D366;
}
.mc-row > a:hover {
    text-decoration: underline;
}

.mc-progress {
    padding-top: 4px;
}
.mc-progress small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--gray);
}

.mc-actions {
    display: flex;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.mc-actions .btn-mini {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
    min-width: 70px;
}
.btn-mini-danger {
    background: #fee2e2;
    color: #991b1b !important;
    border: 1.5px solid transparent;
}
.btn-mini-danger:hover {
    background: #ef4444;
    color: #fff !important;
}

/* ============================================
   MODAL EDIT
============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.aktif {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: modalIn .3s ease-out;
    margin: auto;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.modal-head h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    transition: .2s;
}
.modal-close:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-box .form-group {
    margin-bottom: 16px;
}
.modal-box .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}
.modal-box .form-group input,
.modal-box .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: .2s;
}
.modal-box .form-group input:focus,
.modal-box .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,124,74,.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .member-cards {
        grid-template-columns: 1fr;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-form button,
    .search-form a {
        width: 100%;
        justify-content: center;
    }

    .modal-box {
        padding: 20px;
        border-radius: 16px;
    }
    .modal-actions {
        flex-direction: column-reverse;
    }
    .modal-actions button {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================
   PENGATURAN ADMIN
============================================ */

/* HIGHLIGHT HARGA */
.harga-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(10,124,74,.22);
    flex-wrap: wrap;
}
.hh-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
}
.hh-item.highlight {
    background: rgba(255,255,255,.18);
    padding: 14px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.hh-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.hh-item small {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-bottom: 4px;
}
.hh-item strong {
    display: block;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 800;
    letter-spacing: -.4px;
}
.hh-divider {
    font-size: 26px;
    opacity: .5;
    font-weight: 300;
}

/* PREVIEW BOX */
.preview-box {
    margin-top: 20px;
    background: var(--light);
    border: 1.5px dashed var(--primary);
    border-radius: 14px;
    padding: 20px;
}
.pv-head {
    margin-bottom: 15px;
}
.pv-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .3px;
}
.pv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.pv-item {
    background: #fff;
    padding: 14px 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
}
.pv-item small {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 5px;
    font-weight: 500;
}
.pv-item strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.3px;
}
.pv-item.pv-highlight {
    background: linear-gradient(135deg, var(--primary-light), #d1fae5);
    border-color: var(--primary);
}
.pv-item.pv-highlight strong {
    color: var(--primary);
    font-size: 16px;
}
.pv-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gray);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.pv-note span {
    font-size: 16px;
}

/* STICKY FORM ACTION */
.form-actions-sticky {
    position: sticky;
    bottom: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
    margin-top: 15px;
    z-index: 50;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .harga-highlight {
        flex-direction: column;
        gap: 10px;
        padding: 22px 18px;
    }
    .hh-divider {
        transform: rotate(90deg);
        font-size: 22px;
    }
    .hh-item {
        width: 100%;
        min-width: auto;
    }
    .hh-item.highlight {
        width: 100%;
    }

    .pv-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .pv-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 14px;
        text-align: left;
    }
    .pv-item small {
        margin-bottom: 0;
    }

    .form-actions-sticky {
        flex-direction: column-reverse;
        bottom: 10px;
        padding: 12px;
    }
    .form-actions-sticky a,
    .form-actions-sticky button {
        width: 100%;
        justify-content: center;
    }
}