/* ==========================================================================
   1. GLOBAL & CONTAINERS
   ========================================================================== */
.dp-icon-wrapper {
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* ==========================================================================
   2. TOMBOL DONASI ANIMASI
   ========================================================================== */
.dp-btn-trigger-animated {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #222 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
    
    /* Ukuran awal seperti pil */
    height: 42px !important;
    min-width: 100px !important;
    padding: 0 20px !important;
    border-radius: 50px !important;
    
    /* Transisi halus */
    transition: all 0.5s ease-in-out !important;
}

/* State setelah animasi selesai - jadi bulat */
.dp-btn-trigger-animated.animated-complete {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    animation: finalPulseGold 2s infinite !important;
}

/* ==========================================================================
   3. TEKS "DONASI"
   ========================================================================== */
.dp-label-text {
    color: #FFD700 !important;
    font-weight: bold !important;
    font-family: sans-serif !important;
    font-size: 15px !important;
    display: inline-block !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease !important;
}

/* Teks menghilang setelah 2 detik */
.dp-btn-trigger-animated.animated-complete .dp-label-text {
    opacity: 0 !important;
    transform: scale(0.5) !important;
    max-width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* ==========================================================================
   4. IKON KADO
   ========================================================================== */
.dp-fa-icon-gold {
    color: #FFD700 !important;
    font-size: 20px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    opacity: 0 !important;
    transition: all 0.4s ease-in-out !important;
    visibility: visible !important;
}

/* Ikon muncul setelah tombol jadi bulat */
.dp-btn-trigger-animated.animated-complete .dp-fa-icon-gold {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    visibility: visible !important;
    animation: iconPopIn 0.4s ease-out !important;
}

/* ==========================================================================
   5. EFEK HOVER SAAT SUDAH BULAT
   ========================================================================== */
.dp-btn-trigger-animated.animated-complete:hover {
    background-color: #333 !important;
    transform: scale(1.1) !important;
}

.dp-btn-trigger-animated.animated-complete:hover .dp-fa-icon-gold {
    color: #FFED4A !important;
}

/* ==========================================================================
   6. MODAL
   ========================================================================== */
#dpDonasiModal { 
    z-index: 100001 !important; 
}

#dpDonasiModal .modal-content { 
    border-radius: 20px; 
    border: none !important;
}

/* ==========================================================================
   7. KEYFRAMES ANIMASI
   ========================================================================== */
@keyframes iconPopIn {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-90deg);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.3) rotate(10deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes finalPulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
    .dp-btn-trigger-animated {
        height: 38px !important;
        min-width: 90px !important;
        padding: 0 15px !important;
    }
    
    .dp-btn-trigger-animated.animated-complete {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
    }
    
    .dp-fa-icon-gold {
        font-size: 18px !important;
    }
    
    .dp-label-text {
        font-size: 14px !important;
    }
}