/* ============================================
   MAIN.CSS - Stylesheet Global untuk SIMZIS Mobile App
   TRUE SPA ARCHITECTURE - Animasi Cepat & Responsif
   ============================================
   
   REVISI ANIMASI:
   - Semua section memiliki entrance animation (fade+slide)
   - Semua button memiliki instant press feedback
   - Modal memiliki scale+fade entrance
   - Nav active state memiliki smooth indicator
   - Semua animasi NON-BLOCKING (tidak menghambat klik)
   - Durasi animasi: 0.15-0.3s (cepat, tidak delay)
   
   STYLE DISTRIBUTION:
   - Main.css: Base styles, modals, bottom nav, common components
   - CSS/Home.css: Dashboard/Home styles
   - CSS/Berita.css: News/Berita styles
   - CSS/Hitung.css: Kalkulator Zakat styles
   - CSS/Profil.css: Profile/Login/Register styles
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Xendit Payment Gateway */
@import url('https://js.xendit.co/v1/xendit.min.css');

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== KEYFRAME ANIMATIONS (GLOBAL) ==================== */

/* Section entrance: fade + slide up */
@keyframes sectionEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal overlay fade in */
@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal content scale + slide up */
@keyframes modalContentIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Button press ripple (quick) */
@keyframes btnPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

/* Slide up generic */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade in generic */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scale in generic */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Pulse subtle (for badges/icons) */
@keyframes pulseSoft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Spin (for loading) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Notification badge pulse */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(255, 71, 87, 0); }
}

/* Payment button glow */
@keyframes paymentGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 145, 72, 0.4), 0 2px 8px rgba(37, 145, 72, 0.15); }
    50% { box-shadow: 0 8px 32px rgba(37, 145, 72, 0.55), 0 2px 12px rgba(37, 145, 72, 0.25); }
}

/* ==================== SECTION ANIMATION CLASSES ==================== */

/* Aktifkan di JS saat section ditampilkan */
.section-animate-in {
    animation: sectionEnter 0.28s ease-out;
}

/* Scroll utama hanya di mobile-container, body tidak boleh scroll */
html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    height: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
}

body.dark-mode .mobile-container {
    background-color: #242424;
}

body.dark-mode .header-greeting h2,
body.dark-mode .result-value,
body.dark-mode .no-results h4 {
    color: #ffffff;
}

body.dark-mode .header-greeting p,
body.dark-mode .result-header p {
    color: #888;
}

body.dark-mode .search-bar {
    background-color: #333;
}

body.dark-mode .search-bar input {
    color: #ffffff;
}

body.dark-mode .search-bar input::placeholder {
    color: #aaa;
}

body.dark-mode .no-results-icon {
    background-color: #333;
}

body.dark-mode .result-card {
    background-color: #333;
}

body.dark-mode .result-item {
    border-bottom: 1px solid #444;
}

body.dark-mode .result-label {
    color: #888;
}

body.dark-mode .modal-body {
    background-color: #242424;
}

body.dark-mode .section-header {
    border-bottom: 2px solid #333;
}

body.dark-mode .section-header h4 {
    color: #ffffff;
}

body.dark-mode .modal-header-text h3 {
    color: #ffffff;
}

body.dark-mode .loading {
    color: #aaa;
}

body.dark-mode .loading p {
    color: #888;
}

body.dark-mode .settings-item {
    border-bottom: 1px solid #333;
}

body.dark-mode .settings-item:hover {
    background-color: #333;
}

body.dark-mode .settings-text h4 {
    color: #ffffff;
}

body.dark-mode .settings-text p {
    color: #888;
}

body.dark-mode .form-label {
    color: #ffffff;
}

body.dark-mode .form-input,
body.dark-mode .form-select {
    background-color: #333;
    color: #ffffff;
    border-color: #444;
}

body.dark-mode .quick-menu-item {
    background-color: #2a2a2a;
}

body.dark-mode .quick-menu-name {
    color: #ddd;
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .check-submission-card {
    background-color: #2a2a2a;
}

body.dark-mode .card-title {
    color: #ffffff;
}

body.dark-mode .bottom-navigation {
    background: rgba(36, 36, 36, 0.9);
}

body.dark-mode .nav-item.active i,
body.dark-mode .nav-item.active span {
    color: #4ade80;
}

body.dark-mode .nav-item.active::before {
    background: rgba(74, 222, 128, 0.1);
}

/* ==================== MOBILE CONTAINER ==================== */
.mobile-container {
    width: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: none;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scrollbar-color: transparent transparent !important;
}

.mobile-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.mobile-container::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.mobile-container::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.mobile-container::-webkit-scrollbar-corner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Header (shared: Home & News) */
.header {
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.header-greeting h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.header-greeting p {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}

.notification-icon:active {
    transform: scale(0.88);
}

.notification-icon i {
    font-size: 22px;
    color: #259148;
    transition: transform 0.2s ease;
}

.notification-icon:hover i {
    transform: rotate(-15deg);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background-color: #ff4757;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: badgePulse 2s ease-in-out infinite;
}

.settings-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.settings-icon:hover {
    transform: rotate(90deg);
}

.settings-icon:active {
    transform: rotate(90deg) scale(0.88);
}

.settings-icon i {
    font-size: 22px;
    color: #259148;
}

/* Search Bar (shared: Home & News) */
.search-container {
    padding: 0 20px 20px;
    animation: sectionEnter 0.35s ease-out 0.05s both;
}

.search-bar {
    background-color: #f5f5f5;
    border-radius: 25px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.search-bar:focus-within {
    box-shadow: 0 2px 16px rgba(37, 145, 72, 0.15);
    background-color: #ffffff;
}

body.dark-mode .search-bar:focus-within {
    background-color: #3a3a3a;
}

.search-bar i {
    font-size: 16px;
    color: #888;
    transition: color 0.2s ease;
}

.search-bar:focus-within i {
    color: #259148;
}

.search-bar input {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    flex: 1;
    outline: none;
    color: #333;
}

.search-bar input::placeholder {
    color: #aaa;
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 6px 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    z-index: 9999;
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
}

.bottom-navigation.hidden-nav {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.12s ease;
    padding: 6px 10px;
    border-radius: 20px;
    position: relative;
    min-width: 52px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    flex: 1;
}

.nav-item i {
    font-size: 21px;
    color: #b0b0b0;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.nav-item span {
    font-size: 10.5px;
    color: #b0b0b0;
    font-weight: 500;
    transition: color 0.2s ease, font-weight 0.15s ease;
    letter-spacing: 0.03em;
}

.nav-item.active i {
    color: #259148;
    transform: scale(1.1);
}

.nav-item.active span {
    color: #259148;
    font-weight: 700;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 32px;
    background: rgba(37, 145, 72, 0.1);
    border-radius: 16px;
    z-index: -1;
    animation: scaleIn 0.2s ease-out;
}

.nav-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease;
}

.nav-item:hover:not(.active) i {
    color: #808080;
}

.nav-item:hover:not(.active) span {
    color: #808080;
}

.nav-item:active {
    transform: scale(0.88);
    transition: transform 0.08s ease;
}

/* Center Payment FAB */
.payment-button {
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, #2ecc71 0%, #259148 55%, #1a6a35 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(37, 145, 72, 0.4),
        0 2px 8px rgba(37, 145, 72, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    margin-top: -24px;
    position: relative;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
    border: none;
    flex: 0 0 auto;
    margin-left: 12px;
    margin-right: 12px;
    animation: paymentGlow 3s ease-in-out infinite;
    transition: transform 0.12s ease;
}

.payment-button::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: transparent;
    box-shadow: 0 0 0 0 rgba(37, 145, 72, 0.3);
    z-index: -1;
    pointer-events: none;
}

.payment-button:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
    animation: none;
}

.payment-button i {
    font-size: 24px;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.content-scroll { padding-bottom: 20px; }

/* ==================== MODALS - ANIMATED ENTRANCE ==================== */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 10000; 
    backdrop-filter: blur(4px); 
}

/* ANIMASI: Modal entrance saat .active ditambahkan */
.modal-overlay.active { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: modalOverlayIn 0.2s ease-out;
}

.modal { 
    background-color: #ffffff; 
    width: 90%; 
    max-width: 380px; 
    max-height: 85vh; 
    border-radius: 24px; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); 
    overflow: hidden; 
    animation: modalContentIn 0.28s ease-out;
}

.modal-header { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); padding: 20px 24px; position: relative; display: flex; align-items: center; gap: 12px; }
.modal-header-icon { width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: scaleIn 0.3s ease-out 0.1s both; }
.modal-header-icon i { font-size: 24px; color: #ffffff; }
.modal-header-text h3 { font-size: 18px; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.modal-header-text p { font-size: 12px; color: rgba(255, 255, 255, 0.9); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background-color: rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; transition: transform 0.2s ease, background-color 0.2s ease; }
.modal-close:hover { background-color: rgba(255, 255, 255, 0.5); transform: rotate(90deg); }
.modal-close:active { transform: rotate(90deg) scale(0.88); }
.modal-close i { color: #ffffff; font-size: 16px; }
.modal-body { padding: 20px 24px; max-height: calc(85vh - 120px); overflow-y: auto; animation: sectionEnter 0.3s ease-out 0.08s both; }
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: #f5f5f5; }
.modal-body::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 2px; }

/* ==================== LOGIN REQUIRED MODAL ==================== */
.auth-required-modal {
    background-color: #ffffff;
    width: 85%;
    max-width: 340px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-required-content {
    padding: 36px 28px 28px;
    text-align: center;
    animation: modalContentIn 0.3s ease-out;
}

.auth-required-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.35);
    animation: scaleIn 0.35s ease-out 0.1s both;
}

.auth-required-icon i {
    font-size: 34px;
    color: #ffffff;
}

.auth-required-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-required-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 0 4px;
}

.auth-required-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-required-buttons .auth-login-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(37, 145, 72, 0.35);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.auth-required-buttons .auth-login-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(37, 145, 72, 0.25);
}

.auth-required-buttons .auth-cancel-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #f5f5f5;
    color: #555;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.auth-required-buttons .auth-cancel-btn:active {
    transform: scale(0.96);
    background-color: #ebebeb;
}

/* ==================== REGISTRATION SUCCESS MODAL ==================== */
.auth-success-modal {
    background-color: #ffffff;
    width: 85%;
    max-width: 340px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-success-content {
    padding: 36px 28px 28px;
    text-align: center;
    animation: modalContentIn 0.3s ease-out;
}

.auth-success-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(37, 145, 72, 0.35);
    animation: scaleIn 0.35s ease-out 0.1s both;
}

.auth-success-icon i {
    font-size: 34px;
    color: #ffffff;
}

.auth-success-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #259148;
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-success-content p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 0 4px;
}

.auth-success-note {
    font-size: 12px;
    color: #888 !important;
    margin-bottom: 28px !important;
    margin-top: 4px !important;
}

.auth-success-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #259148 0%, #1a6a35 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(37, 145, 72, 0.35);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.auth-success-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(37, 145, 72, 0.25);
}

/* Dark mode untuk auth modals */
body.dark-mode .auth-required-modal {
    background-color: #2a2a2a;
}

body.dark-mode .auth-required-content h3 {
    color: #ffffff;
}

body.dark-mode .auth-required-content p {
    color: #aaa;
}

body.dark-mode .auth-required-buttons .auth-cancel-btn {
    background-color: #3a3a3a;
    border-color: #444;
    color: #ccc;
}

body.dark-mode .auth-success-modal {
    background-color: #2a2a2a;
}

body.dark-mode .auth-success-content p {
    color: #aaa;
}

body.dark-mode .auth-success-note {
    color: #777 !important;
}

/* ==================== PAYMENT MODAL ==================== */
.payment-modal .modal-header { background: linear-gradient(135deg, #259148 0%, #1a6a35 100%); }
.payment-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.form-input, .form-select { padding: 12px 16px; border: 2px solid #e5e5e5; border-radius: 12px; font-size: 14px; font-family: 'Poppins', sans-serif; outline: none; color: #333; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-input:focus, .form-select:focus { border-color: #259148; box-shadow: 0 0 0 3px rgba(37, 145, 72, 0.1); }
.form-select { cursor: pointer; background-color: #ffffff; }

.submit-button { padding: 14px 20px; background: linear-gradient(135deg, #259148 0%, #1a6a35 100%); color: #ffffff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(37, 145, 72, 0.3); transition: transform 0.12s ease, box-shadow 0.15s ease; -webkit-tap-highlight-color: transparent; }
.submit-button:active { transform: scale(0.96); box-shadow: 0 2px 6px rgba(37, 145, 72, 0.2); }

.payment-summary { background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%); border-radius: 16px; padding: 16px; margin-top: 12px; animation: sectionEnter 0.3s ease-out; }
.payment-summary h4 { font-size: 14px; font-weight: 600; color: #259148; margin-bottom: 12px; }
.payment-summary-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #c8e6c9; }
.payment-summary-item:last-child { border-bottom: none; }
.payment-summary-label { font-size: 12px; color: #666; }
.payment-summary-value { font-size: 13px; font-weight: 600; color: #1a1a1a; }

/* ==================== SETTINGS MODAL ==================== */
.settings-modal .modal-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.settings-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e5e5e5; transition: background-color 0.15s ease; cursor: pointer; }
.settings-item:hover { background-color: #f5f5f5; }
.settings-item:last-child { border-bottom: none; }
.settings-label { display: flex; align-items: center; gap: 12px; }
.settings-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #ffffff; transition: transform 0.2s ease; }
.settings-item:hover .settings-icon { transform: scale(1.08); }
.settings-icon.theme { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.settings-icon.notification { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.settings-icon.language { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.settings-text h4 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.settings-text p { font-size: 11px; color: #888; }

.toggle-switch { position: relative; width: 50px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 34px; transition: background-color 0.25s ease; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1); }
input:checked + .toggle-slider { background-color: #259148; }
input:checked + .toggle-slider:before { transform: translateX(22px); }

/* ==================== CHECK SUBMISSION MODAL ==================== */
.check-submission-modal { background-color: #ffffff; width: 90%; max-width: 380px; max-height: 85vh; border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; }
.check-submission-modal .modal-header { background: linear-gradient(135deg, #259148 0%, #1a6a35 100%); }
.check-submission-modal .modal-header-icon { background-color: rgba(255, 255, 255, 0.3); }
.submission-result { display: none; }
.submission-result.active { display: block; animation: sectionEnter 0.3s ease-out; }
.result-card { background-color: #f9f9f9; border-radius: 16px; padding: 20px; margin-bottom: 16px; animation: slideUp 0.3s ease-out 0.1s both; }
.result-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #e5e5e5; }
.result-item:last-child { border-bottom: none; }
.result-label { font-size: 12px; color: #888; font-weight: 500; }
.result-value { font-size: 14px; color: #1a1a1a; font-weight: 600; text-align: right; }
.status-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; text-align: center; }
.status-badge.accepted { background-color: #e8f5e9; color: #259148; }
.status-badge.rejected { background-color: #ffebee; color: #f44336; }
.status-badge.pending { background-color: #fff3e0; color: #ff9800; }
.status-badge.processing { background-color: #e3f2fd; color: #1976d2; }

.submission-icon { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; animation: scaleIn 0.3s ease-out; }
.submission-icon.accepted { background-color: #e8f5e9; }
.submission-icon.rejected { background-color: #ffebee; }
.submission-icon.pending { background-color: #fff3e0; }
.submission-icon.processing { background-color: #e3f2fd; }
.submission-icon i { font-size: 32px; }
.submission-icon.accepted i { color: #259148; }
.submission-icon.rejected i { color: #f44336; }
.submission-icon.pending i { color: #ff9800; }
.submission-icon.processing i { color: #1976d2; }

.result-header { text-align: center; margin-bottom: 20px; }
.result-header h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.result-header p { font-size: 12px; color: #888; }

.search-button { width: 100%; padding: 12px; background-color: #ffffff; color: #259148; border: 2px solid #259148; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease; -webkit-tap-highlight-color: transparent; }
.search-button:active { transform: scale(0.96); background-color: #259148; color: #ffffff; }
.search-button:disabled { background-color: #ccc; color: #666; border-color: #ccc; cursor: not-allowed; transform: none; }

.no-results { text-align: center; padding: 40px 20px; animation: fadeIn 0.3s ease-out; }
.no-results-icon { width: 80px; height: 80px; background-color: #f5f5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; animation: scaleIn 0.3s ease-out 0.1s both; }
.no-results-icon i { font-size: 36px; color: #ccc; }
.no-results h4 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.no-results p { font-size: 12px; color: #888; margin-bottom: 20px; }

/* ==================== XENDIT PAYMENT MODAL ==================== */
.xendit-modal .modal-header { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); }

.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.payment-method { display: flex; flex-direction: column; align-items: center; padding: 16px; border: 2px solid #e5e5e5; border-radius: 12px; cursor: pointer; background-color: #ffffff; transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease; }
.payment-method:hover { border-color: #259148; }
.payment-method:active { transform: scale(0.96); }
.payment-method.active { border-color: #259148; background-color: #e8f5e9; animation: scaleIn 0.2s ease-out; }
.payment-method-icon { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.payment-method-icon i { font-size: 20px; color: #259148; }
.payment-method-name { font-size: 12px; font-weight: 600; color: #333; text-align: center; }
.payment-method-description { font-size: 10px; color: #888; text-align: center; margin-top: 4px; }

.amount-input-group { display: flex; align-items: center; border: 2px solid #e5e5e5; border-radius: 12px; overflow: hidden; margin-bottom: 16px; transition: border-color 0.2s ease; }
.amount-input-group:focus-within { border-color: #259148; }
.currency-symbol { padding: 0 16px; background-color: #f5f5f5; height: 48px; display: flex; align-items: center; font-weight: 600; color: #333; }
.amount-input { flex: 1; border: none; padding: 14px 16px; font-size: 16px; font-family: 'Poppins', sans-serif; outline: none; }
.amount-input:focus { outline: none; }
.preset-amounts { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.preset-amount { padding: 8px 16px; background-color: #f5f5f5; border-radius: 20px; font-size: 12px; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease; -webkit-tap-highlight-color: transparent; }
.preset-amount:hover { background-color: #259148; color: #ffffff; }
.preset-amount:active { transform: scale(0.94); }

.payment-instruction { background-color: #f0f9f4; border-radius: 12px; padding: 16px; margin-top: 20px; display: none; }
.payment-instruction.active { display: block; animation: sectionEnter 0.25s ease-out; }
.instruction-title { font-size: 14px; font-weight: 600; color: #259148; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.instruction-steps { list-style-type: none; padding-left: 0; }
.instruction-steps li { padding: 8px 0; border-bottom: 1px solid #c8e6c9; font-size: 12px; color: #333; }
.instruction-steps li:last-child { border-bottom: none; }
.instruction-steps li .step-number { display: inline-block; width: 20px; height: 20px; background-color: #259148; color: #ffffff; border-radius: 50%; text-align: center; line-height: 20px; font-size: 10px; margin-right: 8px; }

.payment-status { text-align: center; padding: 20px; display: none; }
.payment-status.active { display: block; animation: sectionEnter 0.3s ease-out; }
.status-icon { width: 80px; height: 80px; border-radius: 50%; background-color: #e8f5e9; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; animation: scaleIn 0.35s ease-out; }
.status-icon i { font-size: 36px; color: #259148; }
.status-title { font-size: 18px; font-weight: 600; color: #259148; margin-bottom: 8px; }
.status-message { font-size: 12px; color: #666; margin-bottom: 20px; }
.status-details { background-color: #f5f5f5; border-radius: 12px; padding: 16px; margin-top: 20px; }
.payment-qr { width: 200px; height: 200px; margin: 20px auto; background-color: #ffffff; border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

/* ==================== SCROLLBAR UTILITY ==================== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ==================== ERROR & EMPTY STATES ==================== */
.error-state { text-align: center; padding: 60px 20px; animation: fadeIn 0.3s ease-out; }
.error-state-icon { width: 80px; height: 80px; background-color: #ffebee; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; animation: scaleIn 0.3s ease-out 0.1s both; }
.error-state-icon i { font-size: 36px; color: #f44336; }
.error-state h4 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.error-state p { font-size: 12px; color: #888; margin-bottom: 20px; }
.retry-btn { padding: 12px 24px; background-color: #259148; color: #ffffff; border: none; border-radius: 12px; font-size: 13px; font-weight: 600; font-family: 'Poppins', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.12s ease, background-color 0.15s ease; }
.retry-btn:hover { background-color: #1e7a3c; }
.retry-btn:active { transform: scale(0.95); }
body.dark-mode .error-state h4 { color: #ffffff; }
body.dark-mode .error-state p { color: #888; }
body.dark-mode .error-state-icon { background-color: #3a2020; }

.empty-state { text-align: center; padding: 60px 20px; animation: fadeIn 0.3s ease-out; }
.empty-state-icon { width: 80px; height: 80px; background-color: #f5f5f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; animation: scaleIn 0.3s ease-out 0.1s both; }
.empty-state-icon i { font-size: 36px; color: #ccc; }
.empty-state h4 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.empty-state p { font-size: 12px; color: #888; }
body.dark-mode .empty-state h4 { color: #ffffff; }
body.dark-mode .empty-state p { color: #888; }
body.dark-mode .empty-state-icon { background-color: #333; }
body.dark-mode .empty-state-icon i { color: #555; }

/* ==================== SECTION VISIBILITY (TRUE SPA) ==================== */
/* Semua section sudah ada di DOM, switchSection() toggle display + add animation class */
