/* =========================================
   1. MODAL ENTRANCE (ចលនាពេលបើក Modal)
   ========================================= */

/* ចលនាពង្រីកចេញមក និងបង្កើនភាពច្បាស់ */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-zoom-in {
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* =========================================
   2. STAGE TRANSITIONS (ចលនាប្តូរ Stage)
   ========================================= */

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stage-transition {
    animation: fadeInRight 0.3s ease-out forwards;
}

/* =========================================
   3. LOADING & PROGRESS (ចលនារង្វង់ភាគរយ)
   ========================================= */

/* ចលនាវិលជុំវិញ */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1.5s linear infinite;
}

/* ចលនាអក្សរ "កំពុងឆែក" (Breathing effect) */
@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-loading {
    animation: pulseText 1.5s ease-in-out infinite;
}

/* =========================================
   4. SUCCESS CHECKMARK (ចលនាសញ្ញាគ្រីស)
   ========================================= */

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-check {
    animation: checkmarkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* =========================================
   5. LOCKED STATUS (ចលនាសម្រាប់កូដដែលបិទ)
   ========================================= */

/* ចលនាញ័រតិចៗដើម្បីឱ្យគេចាប់អារម្មណ៍ */
@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.status-locked {
    animation: gentleShake 2s infinite;
    color: #ef4444; /* ពណ៌ក្រហម */
}

/* =========================================
   6. CARD HOVER EFFECTS (ចលនាលើកាត Coupon)
   ========================================= */

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 194, 255, 0.2);
}

/* =========================================
   7. BUTTON GLOW (ចលនាប៊ូតុងភ្លឺ)
   ========================================= */

@keyframes buttonGlow {
    0% { box-shadow: 0 0 5px rgba(0, 194, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 194, 255, 0.2); }
}

.btn-glow {
    animation: buttonGlow 2s infinite;
}