* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #1a202c; }
.container { max-width: 480px; margin: 0 auto; padding: 15px 15px 120px 15px; }

/* Header */
.header { background: white; padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-radius: 12px; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo { height: 40px; }
.header-info h1 { font-size: 16px; color: #004aad; font-weight: 700; }
.header-info p { font-size: 12px; color: #718096; margin-top: 1px; }
.btn { padding: 10px 16px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.btn-primary { background: #004aad; color: white; }
.btn-primary:hover { background: #003d91; transform: translateY(-1px); }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }

/* User Card - Compact */
.user-card { background: linear-gradient(135deg, #004aad 0%, #003080 100%); color: white; padding: 18px; border-radius: 14px; margin-bottom: 15px; box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3); }
.user-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.user-card-title { font-size: 14px; opacity: 0.9; }
.user-card-name { font-size: 20px; font-weight: 700; margin-top: 2px; }
.user-card-badge { background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.user-details { display: flex; gap: 24px; flex-wrap: wrap; }
.user-detail { display: flex; flex-direction: column; }
.user-detail label { font-size: 11px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.user-detail strong { font-size: 14px; margin-top: 2px; }
.user-card-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 12px; opacity: 0.85; line-height: 1.5; }

/* Banner - Below User Card */
.banner-carousel { position: relative; height: 140px; border-radius: 14px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); background: linear-gradient(135deg, #004aad 0%, #003080 100%); }
.banner-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; display: flex; align-items: center; justify-content: center; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide .banner-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; text-align: center; padding: 20px; font-weight: 500; }
.banner-indicators { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.indicator { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.indicator.active { background: white; width: 24px; border-radius: 4px; }

/* Menu Grid - 2x2 */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 15px; }
.menu-btn { background: white; padding: 18px 14px; border-radius: 12px; border: none; cursor: pointer; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.menu-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.menu-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.menu-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.menu-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.menu-icon.purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.menu-icon.blue { background: linear-gradient(135deg, #004aad, #003080); }
.menu-btn h3 { font-size: 14px; color: #1a202c; font-weight: 600; }
.menu-btn p { font-size: 12px; color: #718096; margin-top: 2px; }

/* Messages - Yellow accent */
.messages-section { margin-bottom: 15px; }
.message-card { background: linear-gradient(135deg, #ebb13a, #d4a038); color: #1a202c; padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(235, 177, 58, 0.3); }
.message-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.message-card p { font-size: 14px; line-height: 1.4; }

/* Card */
.card { background: white; padding: 18px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 15px; }
.card h2 { font-size: 16px; color: #1a202c; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.card h2 span { font-size: 13px; color: #004aad; font-weight: 600; }

/* Limits - Better styling */
.limits-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.limits-scroll::-webkit-scrollbar { height: 4px; }
.limits-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
.limits-scroll::-webkit-scrollbar-thumb { background: #004aad; border-radius: 2px; }
.limit-card { min-width: 220px; padding: 16px; background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-radius: 12px; scroll-snap-align: start; border: 1px solid #e2e8f0; }
.limit-card h3 { font-size: 13px; color: #1a202c; margin-bottom: 12px; font-weight: 600; }
.limit-values { display: flex; flex-direction: column; gap: 8px; }
.limit-row { display: flex; justify-content: space-between; align-items: center; }
.limit-label { font-size: 12px; color: #64748b; }
.limit-value { font-size: 13px; font-weight: 700; color: #004aad; }
.limit-remaining { font-size: 18px; font-weight: 800; color: #ebb13a; }
.progress-bar { width: 100%; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #004aad, #ebb13a); transition: width 0.3s; }

/* Bottom Nav - FIXED, tidak ikut scroll */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-around; align-items: flex-end; padding: 10px 0 16px 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 9999; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: none; background: none; cursor: pointer; transition: all 0.3s; color: #718096; font-size: 12px; font-weight: 500; }
.nav-item.active { color: #004aad; }
.nav-icon { font-size: 24px; }
.nav-center-btn { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #004aad, #003080); color: white; display: flex; align-items: center; justify-content: center; margin-top: -30px; font-size: 32px; box-shadow: 0 4px 16px rgba(0, 74, 173, 0.4); border: 4px solid white; }

/* Contact Page */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; transition: all 0.3s; }
.contact-item:hover { border-color: #004aad; box-shadow: 0 4px 12px rgba(0, 74, 173, 0.1); }
.contact-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.contact-icon.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.contact-icon.call { background: linear-gradient(135deg, #004aad, #003080); }
.contact-info { flex: 1; }
.contact-info h3 { font-size: 15px; color: #1a202c; margin-bottom: 3px; }
.contact-info p { font-size: 14px; color: #718096; }
.btn-contact { padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-call { background: #004aad; color: white; }

/* Exclusions Slider - Fixed */
.exclusion-slider { position: relative; overflow: hidden; border-radius: 12px; background: #f8fafc; }
.exclusion-track { display: flex; transition: transform 0.4s ease-out; }
.exclusion-slide { min-width: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.exclusion-slide img { width: 100%; max-width: 300px; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); background: linear-gradient(135deg, #004aad, #003080); }
.exclusion-slide h3 { font-size: 17px; color: #1a202c; margin-bottom: 10px; }
.exclusion-slide p { font-size: 14px; color: #4b5563; line-height: 1.5; }
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.slider-btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s; }
.slider-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.slider-btn-prev { background: #e5e7eb; color: #4b5563; }
.slider-btn-next { background: #004aad; color: white; }
.slider-btn:hover:not(:disabled) { transform: translateY(-1px); }
.slider-indicators { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.slider-indicator { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; cursor: pointer; transition: all 0.3s; }
.slider-indicator.active { background: #004aad; width: 24px; border-radius: 4px; }

/* Records */
.search-filter { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search-filter input, .search-filter select { flex: 1; min-width: 100px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.search-filter input:focus, .search-filter select:focus { outline: none; border-color: #004aad; }
.records-list { display: flex; flex-direction: column; gap: 10px; }
.record-item { padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; gap: 10px; }
.record-item:hover { border-color: #004aad; box-shadow: 0 4px 12px rgba(0, 74, 173, 0.08); }
.record-info { flex: 1; }
.record-info h4 { font-size: 14px; color: #1a202c; margin-bottom: 4px; font-weight: 600; }
.record-info p { font-size: 12px; color: #718096; margin-bottom: 2px; }
.record-amount { font-size: 15px; font-weight: 700; color: #ef4444; white-space: nowrap; }
.record-actions { display: flex; gap: 6px; margin-top: 8px; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; align-items: center; justify-content: center; padding: 15px; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 16px; padding: 24px; max-width: 450px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-content h2 { font-size: 20px; color: #1a202c; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #004aad; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions .btn { flex: 1; padding: 14px; }

/* Auth */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #004aad 0%, #003080 100%); padding: 20px; }
.auth-card { background: white; padding: 32px 28px; border-radius: 16px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-card .logo { display: block; margin: 0 auto 16px; height: 70px; }
.auth-card h1 { font-size: 24px; color: #004aad; text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: #718096; margin-bottom: 24px; font-size: 14px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.link { color: #004aad; cursor: pointer; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.text-center { text-align: center; }
.mt-3 { margin-top: 14px; }
.no-data { text-align: center; padding: 50px 20px; color: #9ca3af; }
.no-data-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }

/* Admin Dashboard */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tab { padding: 10px 14px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 12px; background: #e5e7eb; color: #4b5563; transition: all 0.3s; white-space: nowrap; }
.admin-tab.active { background: #004aad; color: white; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.admin-table th { background: #f8fafc; font-weight: 600; color: #4b5563; font-size: 12px; }
.admin-table tr:hover { background: #f8fafc; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; font-weight: 500; }
.btn-edit { background: #ebb13a; color: #1a202c; }
.btn-delete { background: #ef4444; color: white; }
.btn-add { background: #22c55e; color: white; margin-bottom: 12px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.admin-header h2 { margin: 0; border: none; padding: 0; font-size: 16px; }

@media (max-width: 480px) {
    .container { padding: 12px 12px 120px 12px; }
    .menu-grid { gap: 10px; }
    .menu-btn { padding: 16px 12px; }
    .menu-icon { width: 48px; height: 48px; font-size: 22px; }
    .user-details { gap: 18px; }
    .admin-tab { padding: 8px 10px; font-size: 11px; }
}