/* =======================================================
   1. GLOBAL VARIABLES & RESET
   ======================================================= */
:root {
    --kaching-blue: #0284c7;
    --kaching-light: #00d2ff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* --- TAMBAHKAN KUNCI OVERFLOW DI SINI --- */
html,
body {
    background-color: #f9fafb;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* [FIX] Tetap cegah scroll global, TAPI izinkan elemen child untuk di-scroll menyamping */
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =======================================================
   2. WIDGET WHATSAPP POPUP
   ======================================================= */
.wa-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    transition: transform 0.3s ease;
}
.wa-floating-btn:hover {
    transform: translateY(-5px);
}
.wa-popup {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 360px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    animation: slideUp 0.3s ease forwards;
}
.wa-popup.show {
    display: flex;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.wa-header {
    background: #000000;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wa-header h3 {
    font-size: 16px;
    font-weight: 700;
}
.wa-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    margin-top: -4px;
}
.wa-body {
    padding: 30px 24px;
}
.wa-body h2 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.wa-body p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.5;
}
.wa-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #f3f4f6;
    color: #374151;
    font-size: 15px;
    transition: color 0.2s;
}
.wa-option:hover {
    color: var(--kaching-blue);
}
.wa-option .arrow {
    color: #d1d5db;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.2s;
}
.wa-option:hover .arrow {
    color: var(--kaching-blue);
    transform: translateX(5px);
}

/* =======================================================
   3. FOOTER KACHING (MOKA POS STYLE)
   ======================================================= */
.kaching-footer {
    background-color: #1e252d; /* Warna dark navy elegan */
    color: #94a3b8;
    padding: 60px 0 40px;
    font-family: "Inter", sans-serif;
    margin-top: auto;
    width: 100%;
}
.kf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Area Atas --- */
.kf-top-section {
    margin-bottom: 50px;
}
.kf-logo {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.kf-logo span {
    color: #fbc116;
}
.kf-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}
.kf-badges img {
    height: 40px;
}

/* --- Accordion Menu (MOBILE DEFAULT) --- */
.kf-acc-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis pemisah tipis */
}
.kf-acc-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.kf-acc-header.static-link {
    text-decoration: none;
    display: block;
}
.kf-chevron {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}
.kf-acc-body {
    display: none; /* Sembunyikan menu anak secara default */
    padding-bottom: 20px;
}
.kf-acc-body.show {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.kf-acc-body a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}
.kf-acc-body a:hover {
    color: #ffffff;
}

/* --- Area Bawah (Legal & Sosmed) --- */
.kf-bottom-section {
    margin-top: 40px;
}
.kf-lang-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.kf-lang {
    display: flex;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
}
.kf-lang span {
    color: #94a3b8;
}
.kf-lang a {
    color: #94a3b8;
    text-decoration: none;
}
.kf-lang a.active {
    color: #ffffff;
}

/* FontAwesome Icons Styling */
.kf-social {
    display: flex;
    gap: 25px;
    font-size: 22px;
    align-items: center;
}
.kf-social a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
}
.kf-social a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.kf-legal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.kf-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.kf-legal-links a {
    color: #94a3b8;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.kf-copyright {
    font-size: 12px;
    color: #64748b;
}

/* Styling Tambahan untuk Kelancaran Logo Bergerak */
.brand-section {
    width: 100%;
    display: flex;
    align-items: center;
}

.brand-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.brand-item {
    flex-shrink: 0;
}

/* Memastikan logo tetap proporsional */
.brand-item img {
    object-fit: contain;
    backface-visibility: hidden; /* Mencegah gambar pecah saat scaling */
}

/* =======================================================
   DESKTOP VIEW (FIXED & ALIGNED)
   ======================================================= */
@media (min-width: 769px) {
    /* 1. Atur Layout Utama Footer agar Sejajar */
    .kf-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 5% !important;
    }

    /* 2. Gabungkan Logo & Grid Menu dalam satu baris */
    .kf-top-section {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 80px !important;
        margin-bottom: 60px !important;
    }

    /* 3. Atur Lebar Logo agar tidak dorong menu kejauhan */
    .kf-logo {
        text-decoration: none;
        display: block;
        margin-bottom: 25px;
    }

    /* Mengatur ukuran logo agar pas (tidak raksasa) */
    .kf-logo img {
        height: 45px;
        width: auto;
        transition: all 0.3s ease;
    }

    /* Efek MENGKILAP (Glowing) saat di-hover */
    .kf-logo img:hover {
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
        transform: scale(1.05);
    }

    /* 4. Atur Grid Menu agar menyebar rapi ke kanan */
    .kf-accordion-grid {
        display: flex !important;
        flex: 1 !important;
        justify-content: space-between !important;
        border-bottom: none !important;
        margin: 0 !important;
    }

    /* 5. Bersihkan styling accordion di desktop */
    .kf-acc-item {
        border-bottom: none !important;
        flex: 1 !important;
    }
    .kf-acc-header {
        cursor: default !important;
        padding: 0 0 20px 0 !important;
        pointer-events: none !important; /* Agar tidak bisa diklik di desktop */
    }
    .kf-chevron {
        display: none !important;
    }
    .kf-acc-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* 6. Rapikan Baris Paling Bawah */
    .kf-bottom-section {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 30px !important;
        margin-top: 0 !important;
    }

    .kf-lang-social {
        order: 1 !important;
        margin-bottom: 0 !important;
        gap: 40px !important;
    }

    .kf-legal {
        order: 2 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 30px !important;
    }

    .kf-legal-links {
        margin-right: 0 !important;
        display: flex !important;
        gap: 20px !important;
    }
}

/* =======================================================
   4. NAVBAR DROPDOWN FIX (ANTI KAMUFLASE - LEVEL DEWA)
   ======================================================= */
nav.navbar div.nav-container div.nav-links div.dropdown div.dropdown-menu a {
    color: #334155 !important;
    padding: 12px 16px !important;
    display: block !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

nav.navbar
    div.nav-container
    div.nav-links
    div.dropdown
    div.dropdown-menu
    a:hover {
    color: var(--kaching-blue) !important;
    background-color: #f1f5f9 !important;
}

/* Mempercantik kotak dropdownnya */
nav.navbar div.nav-container div.nav-links div.dropdown div.dropdown-menu {
    background-color: #ffffff !important;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    min-width: 200px !important;
    padding: 8px 0 !important;
}

/* =======================================================
   [BARU] HORIZONTAL SCROLL KHUSUS KARTU (MOBILE) & HERO FIX
   ======================================================= */
@media (max-width: 768px) {
    /* ======================================================
       [FIX NUKLIR 1] HERO SECTION - DORONG DARI KONTAINER LUAR
       ====================================================== */
    .hero-slider-container {
        height: auto !important;
        min-height: 100vh !important;
        padding-bottom: 60px !important;
        /* KUNCI: Dorong seluruh slider ke bawah menjauhi Navbar! */
        padding-top: 100px !important;
    }

    .hero-slide {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 20px !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .hero-text {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: center !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        padding: 0 !important;
    }

    .hero-text h1,
    .hero-text p {
        text-align: center !important;
    }

    .hero-buttons {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-image {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 auto !important;
    }

    .hero-image .mockup-frame {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .slider-dots {
        bottom: 20px !important;
    }

    /* ======================================================
       [FIX] COMPARE SECTION - JADIKAN ATAS-BAWAH AGAR GEMUK
       ====================================================== */
    .compare-section {
        padding: 40px 20px !important;
    }

    .compare-container {
        display: flex !important;
        flex-direction: column !important; /* Paksa tumpuk atas-bawah */
        gap: 30px !important; /* Jarak antara kotak putih dan kotak biru */
    }

    .compare-box {
        width: 100% !important; /* Paksa kotak jadi selebar layar HP */
        max-width: 100% !important;
        padding: 30px 20px !important; /* Ruang napas di dalam kotak */
        box-sizing: border-box !important;
    }

    /* Perbesar sedikit ikon X dan Centang agar proporsional */
    .compare-list li .c-icon {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
    }

    /* ======================================================
       USECASE SECTION ("Dirancang untuk Bisnis Anda")
       ====================================================== */
    .usecase-section {
        padding: 40px 0 !important;
        width: 100%;
        overflow: hidden;
    }

    .usecase-header {
        padding: 0 20px !important;
    }

    .usecase-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 10px 20px 30px 20px !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .usecase-grid::-webkit-scrollbar {
        display: none;
    }

    .usecase-card {
        width: 85vw !important;
        min-width: 280px !important;
        flex: 0 0 auto !important;
        scroll-snap-align: center;
    }

    /* ======================================================
       AFFILIATE SECTION (Partner Program)
       ====================================================== */
    .affiliate-section {
        padding: 40px 0 !important;
        width: 100%;
        overflow: hidden;
    }

    .affiliate-section h2,
    .affiliate-section p,
    .affiliate-badge {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .affiliate-steps {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 10px 20px 30px 20px !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .affiliate-steps::-webkit-scrollbar {
        display: none;
    }

    .aff-card {
        width: 85vw !important;
        min-width: 280px !important;
        flex: 0 0 auto !important;
        scroll-snap-align: center;
    }

    /* =======================================================
       MINIATUR MASSIVE REVIEW CARD
       ======================================================= */
    .massive-review-card {
        padding: 15px !important;
        margin-top: 30px !important;
        width: 95vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .mrc-top-split {
        flex-direction: row !important;
        text-align: left !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .mrc-image-area {
        margin: 0 !important;
        width: 45% !important;
        height: auto !important;
        position: relative !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
    }

    .mrc-image-area img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 12px 0 0 12px !important;
        display: block !important;
    }

    .mrc-content-area {
        padding: 15px 10px 15px 15px !important;
        width: 55% !important;
    }

    .mrc-headline {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .mrc-author-block h4 {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }

    .mrc-author-block p {
        font-size: 9px !important;
        margin: 0 !important;
    }

    .mrc-quote-text {
        font-size: 14px !important;
        margin-top: 15px !important;
        padding: 0 10px !important;
    }

    .kaching-footer {
        padding-bottom: 100px !important; /* Jarak dari tombol WA */
    }

    /* 1. Ubah container utama agar menyusun elemen ke samping (row) */
    .kf-top-section {
        display: flex !important;
        flex-direction: row !important; /* Paksa berjajar ke samping */
        align-items: center !important; /* Sejajarkan tengah secara vertikal */
        justify-content: flex-start !important; /* Ratakan ke kiri */
        gap: 20px !important; /* Jarak antara Logo K dan Google Play */
        margin-bottom: 30px !important;
    }

    /* 2. Atur area pembungkus Logo K agar tidak memaksa 100% layar */
    .kf-logo {
        display: block !important;
        width: auto !important; /* Buang width 100% */
        margin-bottom: 0 !important; /* Buang margin bawah karena sudah bersebelahan */
    }

    /* 3. Atur area pembungkus Google Play */
    .kf-badges {
        display: flex !important;
        margin-bottom: 0 !important; /* Buang margin bawah */
    }

    /* 4. Ukuran spesifik Logo K agar proporsional */
    .kf-logo img,
    .kf-logo svg,
    .kf-top-section > img,
    .kf-top-section > svg {
        width: auto !important; /* Jangan dipaksa 100% */
        max-width: 90px !important; /* Sedikit dikecilkan agar muat bersanding */
        height: auto !important;
        max-height: 50px !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* 5. Ukuran spesifik Google Play agar proporsional */
    .kf-badges img {
        max-width: 130px !important;
        max-height: 40px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Resize CTA Mobile */
    .final-cta {
        padding: 40px 20px !important;
    }

    .cta-content h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .btn-final {
        width: 100% !important;
        display: block;
        box-sizing: border-box;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
} /* PENUTUP @MEDIA */
