/* --- FLOATING WIDGET (Posisikan di atas tombol Go to Top) --- */
.ncg-floating-wrapper {
    position: fixed;
    bottom: 120px; 
    right: 20px;
    /* --- NEW: Z-index dibikin super tinggi --- */
    z-index: 9999998; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.5s ease-out; 
}

.ncg-trigger-item {
    cursor: pointer;
    width: 150px; 
    border-radius: 8px;
    transition: transform 0.2s;
}

.ncg-trigger-item:hover {
    transform: scale(1.05); /* Gambar membesar saat hover */
}

/* --- TOMBOL VIEW PROMO (Gradient) --- */
.ncg-view-promo-btn {
    background: linear-gradient(to right, #fde08b, #c2872e); 
    color: #1a1a1a; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    border: none;
    padding: 8px 24px; 
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ncg-view-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* --- TOMBOL X KECIL --- */
.ncg-floating-close-btn {
    position: absolute;
    /* Geser posisi top dan right sedikit biar tetap pas di pojok karena ukuran membesar */
    top: -12px; 
    right: -12px;
    background-color: #000;
    color: #fff;
    width: 32px;  
    height: 32px; 
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 28px; 
    line-height: 1; 
    padding-bottom: 2px; 
}

/* --- MODAL POPUP UTAMA (Tengah) --- */
.ncg-modal-overlay {
    display: none; 
    position: fixed;
    /* --- NEW: Z-index dibikin paling tinggi biar ngalahin header --- */
    z-index: 9999999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    padding: 20px; 
}
.ncg-modal-content {
    position: relative;
    max-width: 900px; 
    width: auto; /* Diubah jadi auto agar container menciut ngikutin lebar gambar portrait */
}

.ncg-modal-main-image {
    width: auto; /* Jangan paksa 100% lagi */
    height: auto;
    max-width: 100%;
    max-height: 90vh; /* MAKSIMAL TINGGI = 90% LAYAR, biar poster gak kepotong */
    border: 4px solid #fbbc05; 
    border-radius: 8px;
    display: block;
    margin: 0 auto; /* Pastikan gambar tetap di tengah */
}

/* --- TOMBOL X BESAR --- */
.ncg-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    background-color: #000;
    width: 45px;  
    height: 45px; 
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 28px; 
    line-height: 1; 
    padding-bottom: 3px; 
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 120px; opacity: 1; /* Sesuaikan dengan nilai bottom di atas */ }
}

/* --- RESPONSIVE MOBILE SUPPORT --- */
/* Secara default (di layar komputer), sembunyikan gambar versi mobile */
.ncg-img-mobile {
    display: none !important;
}

/* Secara default, tampilkan gambar versi desktop */
.ncg-img-desktop {
    display: block;
}

/* Jika layar di bawah 768px (HP/Tablet kecil), TUKAR GAMBARNYA! */
@media screen and (max-width: 768px) {
    .ncg-img-mobile {
        display: block !important;
    }
    
    .ncg-img-desktop {
        display: none !important;
    }
    
    /* Tweak ukuran biar di HP nggak terlalu memakan tempat */
    .ncg-trigger-item {
        width: 120px; /* Banner kecil di HP agak dikecilin dikit */
    }
    
    .ncg-view-promo-btn {
        padding: 6px 16px; /* Tombol view promo agak diperkecil */
        font-size: 14px;
    }
    
    .ncg-floating-close-btn {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
}