/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    --kf-primary: #0B6B3A;
    --kf-primary-dark: #054d27;
    --kf-primary-light: #E8F5EE;
    --kf-accent: #FFD200;
    --kf-danger: #E63946;
    --kf-dark: #1A1D26;
    --kf-gray: #6B7280;
    --kf-bg: #F6F8FA;
    --kf-card: #FFFFFF;
    --kf-shadow: 0 10px 30px -10px rgba(11, 107, 58, 0.18);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--kf-bg);
    color: var(--kf-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Tambahkan class khusus untuk halaman login agar bisa kiri-kanan */
.login-page {
    display: flex;
    flex-direction: row;
}

/* ==========================================
   2. NAVBAR & BRAND (User & Kurir)
   ========================================== */
.kf-navbar { background: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%); padding-top: calc(0.75rem + var(--safe-top)); padding-bottom: 0.75rem; box-shadow: 0 4px 24px rgba(11,107,58,0.25); position: sticky; top: 0; z-index: 1030; }
.kf-brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; }
.kf-brand-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.kf-icon-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; position: relative; text-decoration: none; transition: all .2s ease; }
.kf-icon-btn:hover { background: rgba(255,255,255,0.25); color: #fff; transform: translateY(-1px); }
.kf-badge-cart { position: absolute; top: -4px; right: -4px; background: var(--kf-danger); color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--kf-primary); }

/* ==========================================
   3. HERO, CARDS & FORM ELEMENTS
   ========================================== */
.kf-hero { background: linear-gradient(135deg, var(--kf-primary-light) 0%, #ffffff 100%); border-radius: 22px; padding: 1.5rem; border: 1px solid rgba(11,107,58,0.08); position: relative; overflow: hidden; margin-bottom: 1.5rem; }
.kf-hero::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(11,107,58,0.12) 0%, transparent 70%); border-radius: 50%; }
.kf-hero h3 { font-weight: 800; color: var(--kf-primary-dark); letter-spacing: -0.02em; margin-bottom: 0.35rem; font-size: 1.4rem; }
.kf-hero p { color: var(--kf-gray); font-size: 0.92rem; margin: 0; }

.kf-card { background: var(--kf-card); border-radius: 16px; padding: 1.25rem; box-shadow: var(--kf-shadow); border: 1px solid rgba(11,107,58,0.06); margin-bottom: 1rem; }

.kf-search-input { background: var(--kf-bg); border: 1.5px solid transparent; border-radius: 12px; padding: 0.75rem 1rem 0.75rem 2.75rem; font-weight: 500; font-size: 0.92rem; transition: all .2s ease; width: 100%; }
.kf-search-input:focus { outline: none; border-color: var(--kf-primary); background: #fff; box-shadow: 0 0 0 4px rgba(11,107,58,0.1); }
.kf-search-wrap { position: relative; }
.kf-search-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--kf-gray); font-size: 1rem; pointer-events: none; }

.kf-form-input { background: var(--kf-bg); border: 1.5px solid transparent; border-radius: 12px; padding: 0.85rem 1rem; font-weight: 500; width: 100%; margin-bottom: 1rem; }
.kf-form-input:focus { outline: none; border-color: var(--kf-primary); background: #fff; }

.kf-btn-success { background: var(--kf-primary); color: #fff; border: none; border-radius: 10px; padding: 0.65rem 1rem; font-weight: 600; width: 100%; transition: all .2s; }
.kf-btn-success:active { transform: scale(0.98); }

/* ==========================================
   4. DAFTAR APOTEK (List)
   ========================================== */
.kf-list-wrap { max-height: 450px; overflow-y: auto; padding-right: 4px; -webkit-overflow-scrolling: touch; }
.kf-list-wrap::-webkit-scrollbar { width: 6px; }
.kf-list-wrap::-webkit-scrollbar-thumb { background: rgba(11,107,58,0.25); border-radius: 10px; }

.kf-apotek-item { background: #fff; border: 1.5px solid #EEF2F5; border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 0.6rem; cursor: pointer; transition: all .22s ease; display: flex; align-items: flex-start; gap: 0.75rem; }
.kf-apotek-item:hover { border-color: var(--kf-primary); background: var(--kf-primary-light); transform: translateY(-2px); box-shadow: var(--kf-shadow); }
.kf-apotek-icon { flex-shrink: 0; width: 42px; height: 42px; background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-dark)); border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(11,107,58,0.3); }
.kf-apotek-info h6 { font-weight: 700; color: var(--kf-dark); margin: 0 0 0.2rem 0; font-size: 0.95rem; }
.kf-apotek-info small { color: var(--kf-gray); font-size: 0.78rem; line-height: 1.3; display: block; }
.kf-apotek-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.kf-meta-badge { font-size: 0.65rem; padding: 0.2rem 0.5rem; border-radius: 6px; background: #F6F8FA; color: var(--kf-gray); border: 1px solid #EEF2F5; font-weight: 600; display: inline-flex; align-items: center; gap: 0.2rem; }

/* ==========================================
   5. PETA LEAFLET
   ========================================== */
.kf-map-card { background: #fff; border-radius: 22px; padding: 6px; box-shadow: var(--kf-shadow); height: 100%; position: relative; }
#map { height: 100%; min-height: 520px; border-radius: 20px; z-index: 1; border: 4px solid #fff; }
.kf-marker-pin { width: 34px; height: 34px; background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-dark)); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: grid; place-items: center; }
.kf-marker-pin i { transform: rotate(45deg); color: #fff; font-size: 0.85rem; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important; padding: 4px; }
.leaflet-popup-content { margin: 12px 14px !important; font-family: 'Plus Jakarta Sans', sans-serif; }
.kf-locate-btn { position: absolute; bottom: 18px; right: 18px; z-index: 1000; width: 50px; height: 50px; background: #fff; border: none; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); color: var(--kf-primary); font-size: 1.2rem; display: grid; place-items: center; transition: all .2s ease; }
.kf-locate-btn:active { transform: scale(0.92); }

/* ==========================================
   6. MODAL & TABEL OBAT
   ========================================== */
.modal-content { border-radius: 22px; border: none; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.25); }
.modal-header { background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-dark)); padding: 1.25rem 1.5rem; border: none; padding-top: calc(1.25rem + var(--safe-top)); }
.modal-title { font-weight: 700; color: #fff; }
.btn-close-white { filter: invert(1) grayscale(1) brightness(2); opacity: 0.9; }
.kf-modal-apotek-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--kf-primary-light); color: var(--kf-primary-dark); padding: 0.4rem 0.85rem; border-radius: 50px; font-weight: 600; font-size: 0.82rem; }

.kf-table-wrap { border-radius: 14px; overflow: hidden; border: 1px solid #EEF2F5; }
.table > :not(caption) > * > * { padding: 0.9rem 1rem; }
.table thead { background: #F6F8FA; }
.table thead th { font-weight: 700; color: var(--kf-gray); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; border: none; }
.kf-obat-row td { vertical-align: middle; border: none; border-bottom: 1px solid #F1F4F7; }
.kf-obat-row:last-child td { border-bottom: none; }
.kf-obat-row:hover { background: var(--kf-primary-light); }

.kf-badge-stock { font-weight: 600; font-size: 0.72rem; padding: 0.35rem 0.7rem; border-radius: 50px; }
.kf-price { font-weight: 700; color: var(--kf-danger); font-size: 0.95rem; }

.kf-btn-cart { background: var(--kf-primary); color: #fff; border: none; border-radius: 10px; padding: 0.45rem 0.9rem; font-weight: 600; font-size: 0.8rem; transition: all .2s ease; display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.kf-btn-cart:hover { background: var(--kf-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(11,107,58,0.35); }
.kf-btn-cart:disabled { background: #ccc; color: #fff; transform: none; box-shadow: none; cursor: not-allowed; }
.kf-qty { width: 60px; text-align: center; border: 1px solid #eee; border-radius: 8px; padding: 0.25rem; }

/* ==========================================
   7. KERANJANG & CHECKOUT
   ========================================== */
.kf-cart-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #F1F4F7; }
.kf-cart-item:last-child { border-bottom: none; }
.kf-item-img { width: 60px; height: 60px; background: var(--kf-primary-light); border-radius: 12px; display: grid; place-items: center; color: var(--kf-primary); font-size: 1.5rem; flex-shrink: 0; }
.kf-item-info h6 { font-weight: 700; margin: 0 0 0.2rem 0; font-size: 0.95rem; }
.kf-item-info small { color: var(--kf-gray); font-size: 0.78rem; }
.kf-qty-control { display: flex; align-items: center; gap: 0.5rem; background: var(--kf-bg); padding: 0.25rem; border-radius: 10px; margin-top: 0.5rem; width: fit-content; }
.kf-qty-btn { width: 28px; height: 28px; border: none; background: #fff; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: grid; place-items: center; cursor: pointer; color: var(--kf-primary); font-weight: bold; }
.kf-qty-val { font-weight: 700; min-width: 20px; text-align: center; }
.kf-btn-remove { background: none; border: none; color: var(--kf-danger); font-size: 1.2rem; opacity: 0.6; cursor: pointer; }

.kf-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; padding-bottom: calc(1rem + var(--safe-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); z-index: 1050; }
.kf-btn-checkout { background: linear-gradient(135deg, var(--kf-primary), var(--kf-primary-dark)); color: #fff; border: none; border-radius: 12px; padding: 0.85rem 1.5rem; font-weight: 700; width: 100%; transition: all .2s; }
.kf-btn-checkout:active { transform: scale(0.98); }

.payment-option { cursor: pointer; border: 2px solid #E5E7EB; border-radius: 12px; padding: 1rem; transition: all 0.2s; display: flex; align-items: center; gap: 0.75rem; }
.payment-option:hover { border-color: var(--kf-primary); background: var(--kf-primary-light); }
.payment-option.active { border-color: var(--kf-primary); background: var(--kf-primary-light); box-shadow: 0 4px 12px rgba(11,107,58,0.1); }
.payment-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; }

/* ==========================================
   8. UTILITY (Toast, Spinner, Badge Status)
   ========================================== */
.kf-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--kf-dark); color: #fff; padding: 0.75rem 1.5rem; border-radius: 50px; z-index: 9999; box-shadow: 0 10px 20px rgba(0,0,0,0.2); font-size: 0.9rem; display: none; transition: all .3s ease; }
.kf-spinner { width: 28px; height: 28px; border: 3px solid var(--kf-primary-light); border-top-color: var(--kf-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.kf-status-badge { font-weight: 700; font-size: 0.7rem; padding: 0.3rem 0.6rem; border-radius: 50px; text-transform: uppercase; }
.status-Pending { background: #FFF3CD; color: #664D03; }
.status-Dibayar { background: #CFE2FF; color: #084298; }
.status-Diproses { background: #E0E0E0; color: #444; }
.status-Dikirim { background: #F8D7DA; color: #842029; }
.status-Selesai { background: #D1E7DD; color: #0F5132; }
.status-Dibatalkan { background: #F8D7DA; color: #842029; }

/* ==========================================
   9. DASHBOARD ADMIN
   ========================================== */
.kf-hero-dark { background: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%); color: #fff; border-radius: 20px; padding: 2rem; box-shadow: 0 10px 30px -10px rgba(11, 107, 58, 0.3); margin-bottom: 1.5rem; }
.kf-hero-dark h2 { font-weight: 800; margin: 0; font-size: 1.8rem; }
.kf-hero-dark p { margin: 0.5rem 0 0 0; opacity: 0.9; font-size: 0.95rem; }

.stat-card { background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; display: flex; align-items: center; gap: 1rem; height: 100%; transition: all 0.2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px -10px rgba(0,0,0,0.1); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-info h4 { font-weight: 800; margin: 0; line-height: 1; font-size: 1.5rem; }
.stat-info p { margin: 0; font-size: 0.85rem; color: var(--kf-gray); font-weight: 600; }

.kf-card-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.table-modern > tbody > tr > td { vertical-align: middle; border-bottom: 1px solid #f0f0f0; padding: 0.85rem 0.5rem; }
.table-modern > tbody > tr:last-child > td { border-bottom: none; }

/* ==========================================
   10. KURIR DASHBOARD & DETAIL PESANAN
   ========================================== */
.nav-tabs-kf { border: none; gap: 0.5rem; margin-bottom: 1.5rem; }
.nav-tabs-kf .nav-link { border: none; background: #fff; color: var(--kf-gray); font-weight: 700; border-radius: 12px; padding: 0.75rem 1rem; flex: 1; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.2s; }
.nav-tabs-kf .nav-link.active { background: var(--kf-primary); color: #fff; box-shadow: 0 6px 14px rgba(11,107,58,0.2); }

.info-label { font-size: 0.75rem; text-transform: uppercase; color: var(--kf-gray); font-weight: 700; margin-bottom: 0.25rem; }
.info-value { font-size: 0.95rem; font-weight: 600; color: var(--kf-dark); margin-bottom: 1rem; line-height: 1.4; }

.mini-map { height: 180px; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; border: 1px solid #eee; z-index: 1; }

.kf-btn-wa { background: #25D366; color: #fff; border: none; border-radius: 10px; padding: 0.7rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.kf-btn-wa:hover { background: #1ebe5d; color: #fff; }

.kf-btn-maps { background: #fff; color: var(--kf-primary); border: 2px solid var(--kf-primary); border-radius: 10px; padding: 0.6rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.3rem; font-size: 0.85rem; }
.kf-btn-maps:hover { background: var(--kf-primary-light); }
.kf-btn-maps-red { color: var(--kf-danger); border-color: var(--kf-danger); }
.kf-btn-maps-red:hover { background: #FEE2E2; }

.kf-btn-done { background: var(--kf-primary); color: #fff; border: none; border-radius: 10px; padding: 0.7rem; font-weight: 700; width: 100%; transition: all 0.2s; }
.kf-btn-done:active { transform: scale(0.98); }

.btn-kf-outline { border: 2px solid #E5E7EB; color: var(--kf-dark); font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 12px; text-decoration: none; transition: all 0.2s ease; }
.btn-kf-outline:hover { border-color: var(--kf-primary); color: var(--kf-primary); }

.history-img { width: 50px; height: 50px; background: var(--kf-primary-light); border-radius: 12px; display: grid; place-items: center; color: var(--kf-primary); font-size: 1.5rem; flex-shrink: 0; }
.kurir-stat-badge { font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ==========================================
   11. LOGIN & REGISTER PAGE
   ========================================== */
.brand-side { background: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%); color: #fff; width: 45%; display: flex; flex-direction: column; justify-content: center; padding: 4rem; position: relative; overflow: hidden; }
.brand-side::before { content: ''; position: absolute; top: -10%; right: -10%; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.brand-side::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.brand-logo { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; position: relative; z-index: 2; }
.brand-icon-lg { width: 55px; height: 55px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; }
.brand-logo h4 { font-weight: 800; margin: 0; font-size: 1.5rem; }
.brand-content { position: relative; z-index: 2; }
.brand-content h1 { font-weight: 800; font-size: 2.8rem; line-height: 1.2; margin-bottom: 1.5rem; }
.brand-content p { font-size: 1.1rem; opacity: 0.9; line-height: 1.6; max-width: 400px; }

.form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { width: 100%; max-width: 420px; background: #fff; }
.mobile-logo { display: none; text-align: center; margin-bottom: 2rem; }
.mobile-logo .brand-icon-lg { display: inline-grid; background: var(--kf-primary); color: #fff; margin-bottom: 1rem; }
.login-title { font-weight: 800; color: var(--kf-dark); font-size: 1.8rem; margin-bottom: 0.5rem; }
.login-subtitle { color: var(--kf-gray); margin-bottom: 2.5rem; }

.form-label-modern { font-size: 0.85rem; font-weight: 600; color: var(--kf-dark); margin-bottom: 0.5rem; display: block; }
.input-group-modern { position: relative; margin-bottom: 1.5rem; }
.input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--kf-gray); font-size: 1.1rem; z-index: 4; }
.form-control-modern { width: 100%; padding: 1rem 3rem 1rem 3rem; border: 1.5px solid #E5E7EB; border-radius: 12px; font-size: 1rem; transition: all 0.2s ease; background-color: #F9FAFB; }
.form-control-modern:focus { outline: none; border-color: var(--kf-primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(11, 107, 58, 0.1); }
.form-select-modern { width: 100%; padding: 1rem 1rem 1rem 3rem; border: 1.5px solid #E5E7EB; border-radius: 12px; font-size: 1rem; transition: all 0.2s ease; background-color: #F9FAFB; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-select-modern:focus { outline: none; border-color: var(--kf-primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(11, 107, 58, 0.1); }
.toggle-password { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--kf-gray); font-size: 1.1rem; cursor: pointer; z-index: 4; transition: color 0.2s ease; }
.toggle-password:hover { color: var(--kf-primary); }

.btn-login { background: var(--kf-primary); color: #fff; border: none; width: 100%; padding: 1rem; font-weight: 700; font-size: 1.1rem; border-radius: 12px; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(11, 107, 58, 0.2); margin-top: 0.5rem; }
.btn-login:hover { background: var(--kf-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(11, 107, 58, 0.3); }
.btn-login:active { transform: scale(0.98); }

.alert-error { background: #FEF2F2; border: 1px solid #FEE2E2; color: #991B1B; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600; text-align: center; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.alert-success { background: #F0FDF4; border: 1px solid #DCFCE7; color: #166534; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600; text-align: center; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

.switch-form { text-align: center; margin-top: 2rem; font-size: 0.9rem; color: var(--kf-gray); }
.switch-form a { color: var(--kf-primary); font-weight: 700; text-decoration: none; cursor: pointer; }
.back-home { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--kf-gray); }
.back-home a { color: var(--kf-primary); font-weight: 700; text-decoration: none; }

.form-wrapper { display: none; animation: fadeIn 0.4s ease; }
.form-wrapper.active { display: block; }

/* ==========================================
   12. LANDING PAGE (index.php)
   ========================================== */
.lp-navbar { background: transparent; padding: 1.5rem 0; transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); }
.lp-navbar.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 0.75rem 0; }
.lp-navbar .navbar-brand { font-weight: 800; color: #fff; display: flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; transition: color 0.3s ease; }
.lp-navbar.scrolled .navbar-brand { color: var(--kf-primary); }
.lp-brand-icon { width: 38px; height: 38px; background: var(--kf-primary); color: #fff; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; }
.lp-navbar .nav-link { font-weight: 600; color: rgba(255,255,255,0.9) !important; margin: 0 0.5rem; position: relative; transition: color 0.3s ease; }
.lp-navbar.scrolled .nav-link { color: var(--kf-dark) !important; }
.lp-navbar .nav-link.active::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: var(--kf-accent); border-radius: 5px; }
.lp-navbar .navbar-toggler { border: none; padding: 0; }
.lp-navbar .navbar-toggler i { color: #fff; font-size: 1.8rem; transition: color 0.3s ease; }
.lp-navbar.scrolled .navbar-toggler i { color: var(--kf-primary); }
.lp-btn-primary { background: var(--kf-primary); color: #fff; font-weight: 700; padding: 0.6rem 1.5rem; border-radius: 50px; border: none; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(11, 107, 58, 0.25); text-decoration: none; display: inline-block; }
.lp-btn-primary:hover { background: var(--kf-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(11, 107, 58, 0.35); }

.lp-hero { min-height: 100vh; display: flex; align-items: center; position: relative; background: linear-gradient(135deg, rgba(5, 77, 39, 0.92) 0%, rgba(11, 107, 58, 0.85) 100%), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat; color: #fff; padding-top: 80px; }
.lp-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.lp-hero p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.9; margin-bottom: 2.5rem; max-width: 600px; }
.lp-btn-hero-outline { border: 2px solid rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); font-weight: 700; padding: 0.8rem 1.8rem; border-radius: 50px; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.lp-btn-hero-outline:hover { background: #fff; color: var(--kf-primary); border-color: #fff; }
.lp-hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem; margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.2); }

.lp-section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--kf-dark); margin-bottom: 1rem; letter-spacing: -0.02em; }
.lp-section-subtitle { color: var(--kf-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem auto; }

.lp-feature-card { background: #fff; border-radius: 20px; padding: 2rem; height: 100%; border: 1px solid #f0f0f0; transition: all 0.3s ease; box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05); }
.lp-feature-card:hover { transform: translateY(-8px); border-color: var(--kf-primary); box-shadow: 0 20px 40px -15px rgba(11, 107, 58, 0.2); }
.lp-feature-icon { width: 60px; height: 60px; background: var(--kf-primary-light); color: var(--kf-primary); border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.5rem; transition: all 0.3s ease; }
.lp-feature-card:hover .lp-feature-icon { background: var(--kf-primary); color: #fff; transform: scale(1.1); }
.lp-feature-card h4 { font-weight: 700; margin-bottom: 0.75rem; color: var(--kf-dark); }
.lp-feature-card p { color: var(--kf-gray); font-size: 0.95rem; margin: 0; }

.lp-about-section { background: #fff; }
.lp-about-img-card { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.2); }
.lp-about-img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.lp-about-img-card:hover img { transform: scale(1.05); }
.lp-about-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.lp-about-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; color: var(--kf-dark); font-weight: 500; }
.lp-about-list i { color: var(--kf-primary); font-size: 1.4rem; margin-top: -2px; }
.lp-stat-card { background: var(--kf-primary-light); border-radius: 16px; padding: 1.5rem; text-align: center; border: 1px solid rgba(11, 107, 58, 0.1); }
.lp-stat-card h2 { font-weight: 800; color: var(--kf-primary); font-size: 2rem; margin: 0; }
.lp-stat-card p { color: var(--kf-primary-dark); font-weight: 600; margin: 0.25rem 0 0 0; font-size: 0.9rem; }

.lp-footer { background: var(--kf-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem 0; }
.lp-footer h5 { color: #fff; font-weight: 700; margin-bottom: 1.5rem; }
.lp-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.2s; display: block; margin-bottom: 0.75rem; }
.lp-footer a:hover { color: var(--kf-primary-light); }
.lp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 3rem; text-align: center; font-size: 0.9rem; }

/* ==========================================
   13. RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 991.98px) {
    .brand-side { display: none; }
    .form-side { padding: 2rem 1.5rem; align-items: center; }
    .mobile-logo { display: block; }
    .kf-list-wrap { max-height: 350px; }
    #map { min-height: 420px; }
    .lp-navbar .navbar-collapse { background: #fff; padding: 1.5rem; border-radius: 15px; margin-top: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .lp-navbar .navbar-collapse .nav-link { color: var(--kf-dark) !important; }
    .lp-navbar .navbar-collapse .navbar-brand { display: none; }
}

@media (max-width: 768px) {
    .lp-hero { text-align: center; padding-top: 100px; }
    .lp-hero p { margin-left: auto; margin-right: auto; }
    .lp-navbar .nav-link.active::after { display: none; }
    .kf-card { padding: 1rem; }
}

@media (max-width: 575.98px) {
    body { align-items: stretch; }
    .form-side { padding: 1.5rem 1rem; }
    .login-card { max-width: 100%; }
    .kf-hero { padding: 1.1rem; }
    .kf-hero h3 { font-size: 1.15rem; }
    #map { min-height: 360px; }
    .modal-body { padding: 1rem !important; }
    .table > :not(caption) > * > * { padding: 0.7rem 0.6rem; }
}

.kf-fade-in { animation: fadeIn 0.5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   PETA & POPUP ADMIN (peta.php)
   ========================================== */
.kf-popup { min-width: 220px; }
.kf-popup-title { font-weight: 800; color: var(--kf-primary); font-size: 1.1rem; margin: 0 0 4px 0; }
.kf-popup-address { font-size: 0.85rem; color: var(--kf-gray); margin: 0 0 10px 0; line-height: 1.4; }
.kf-popup-info { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--kf-dark); margin-bottom: 8px; }
.kf-popup-info i { color: var(--kf-primary); margin-top: 2px; }

.kf-badge { font-weight: 700; font-size: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 50px; text-transform: uppercase; }
.kf-badge-open { background: var(--kf-primary-light); color: var(--kf-primary-dark); }
.kf-badge-closed { background: #FEE2E2; color: #991B1B; }

.kf-btn-call { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--kf-primary); color: #fff !important; text-decoration: none; padding: 0.5rem; border-radius: 10px; font-weight: 700; font-size: 0.85rem; transition: all 0.2s ease; margin-top: 10px; }
.kf-btn-call:hover { background: var(--kf-primary-dark); transform: translateY(-1px); }

/* Tabel Admin tambahan */
.table thead th { background: var(--kf-bg); border: none; font-size: 0.8rem; text-transform: uppercase; color: var(--kf-gray); }
.table tbody tr { border-bottom: 1px solid #f0f0f0; }
.table tbody tr:last-child { border-bottom: none; }

/* ==========================================
   PROFILE ADMIN (profile-admin.php)
   ========================================== */
.profile-header { background: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%); color: #fff; border-radius: 16px; padding: 2rem; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 10px 30px -10px rgba(11, 107, 58, 0.3); }
.profile-avatar { width: 80px; height: 80px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 50%; display: grid; place-items: center; font-size: 2.5rem; font-weight: 800; border: 3px solid rgba(255,255,255,0.3); }

/* Tombol khusus profile (lebar penuh) */
.btn-kf-success { background: var(--kf-primary); color: #fff; border: none; font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 12px; transition: all 0.2s ease; width: 100%; }
.btn-kf-success:hover { background: var(--kf-primary-dark); transform: translateY(-2px); }

@media (max-width: 768px) {
    .profile-header { flex-direction: column; text-align: center; padding: 1.5rem; }
}

/* ==========================================
   RIWAYAT PESANAN (User)
   ========================================== */
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.timeline-dot.active { background: var(--kf-primary); box-shadow: 0 0 0 3px var(--kf-primary-light); }

/* ==========================================
   ADMIN SIDEBAR
   ========================================== */
.kf-admin-header { background: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%); color: #fff; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.kf-admin-header h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }

.kf-admin-sidebar { background: linear-gradient(180deg, var(--kf-primary) 0%, var(--kf-primary-dark) 100%); width: 260px !important; color: #fff; border-right: 1px solid rgba(255,255,255,0.1); }
.kf-sidebar-brand { text-align: center; padding: 1.5rem 0; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.kf-sidebar-brand i { font-size: 2rem; background: rgba(255,255,255,0.15); width: 55px; height: 55px; border-radius: 14px; display: inline-grid; place-items: center; margin-bottom: 0.5rem; }
.kf-sidebar-brand h4 { font-weight: 800; margin: 0; font-size: 1.15rem; color: #fff; }
.kf-sidebar-brand span { font-size: 0.75rem; opacity: 0.8; }

.kf-sidebar-nav { gap: 0.4rem; }
.kf-sidebar-link { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; color: rgba(255,255,255,0.85); text-decoration: none; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease; }
.kf-sidebar-link i { font-size: 1.1rem; width: 24px; text-align: center; }
.kf-sidebar-link:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateX(4px); }
.kf-sidebar-link.active { background: #fff; color: var(--kf-primary-dark); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.kf-sidebar-logout { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; color: #FFD200; text-decoration: none; border-radius: 10px; font-weight: 700; transition: all 0.2s ease; background: rgba(0,0,0,0.1); }
.kf-sidebar-logout:hover { background: var(--kf-danger); color: #fff; }

/* ==========================================
   ULASAN & RATING
   ========================================== */
.kf-btn-review { 
    background: var(--kf-primary-light); 
    color: var(--kf-primary-dark); 
    border: none; 
    border-radius: 10px; 
    padding: 0.6rem; 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.4rem; 
    transition: all 0.2s; 
    margin-top: 8px; 
    width: 100%;
}
.kf-btn-review:hover { 
    background: #d1e7dd; 
    color: var(--kf-primary); 
}

.kf-rating-badge { 
    font-size: 0.65rem; 
    padding: 0.2rem 0.5rem; 
    border-radius: 6px; 
    background: #FFF8E1; 
    color: #F57F17; 
    border: 1px solid #FFE082; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.2rem; 
}

/* Box untuk setiap ulasan user */
.kf-review-item { 
    padding: 1.25rem !important; 
    border: 1px solid #e9ecef !important; 
    border-radius: 12px !important; 
    margin-bottom: 2rem !important; /* Jarak antar ulasan user */
    background: #fff !important;
}
.kf-review-item:last-child { 
    margin-bottom: 0 !important; 
}
.kf-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.kf-review-name { font-weight: 700; color: var(--kf-dark); font-size: 0.9rem; }
.kf-review-date { font-size: 0.75rem; color: var(--kf-gray); }
.kf-review-text { font-size: 0.9rem; color: #555; line-height: 1.5; margin-bottom: 0; }

.kf-review-stars { color: #FFC107 !important; font-size: 0.85rem; margin-bottom: 0.5rem; }

/* Box untuk balasan admin */
.kf-admin-reply { 
    background: #F6F8FA !important; 
    border: 1px solid #e9ecef !important; 
    border-left: 3px solid var(--kf-primary) !important; 
    padding: 1rem !important; 
    border-radius: 0 8px 8px 8px !important; 
    margin-top: 1.5rem !important; 
    margin-left: 3rem !important; /* Jarak menjorok (tab) ke kanan */
}
.kf-admin-badge { background: var(--kf-primary); color: #fff; font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 4px; margin-right: 0.5rem; }

.kf-form-review textarea { width: 100%; border: 1px solid #eee; border-radius: 10px; padding: 0.75rem; font-size: 0.9rem; resize: none; margin-bottom: 0.5rem; }

.kf-star-input { 
    font-size: 1.8rem; 
    color: #ccc !important; 
    cursor: pointer; 
    transition: color 0.2s; 
    margin-right: 3px;
}
.kf-star-input.active { 
    color: #FFC107 !important; 
}