:root {
    --discord-blurple: #5865F2;
    --discord-indigo: #575ECC;
    --discord-purple: #7289DA;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -8px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes discordGlow {
    0%, 100% { box-shadow: 0 0 5px var(--discord-blurple); }
    50% { box-shadow: 0 0 20px var(--discord-indigo); }
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out forwards;
}

.animate-slideOut {
    animation: slideOut 0.3s ease-out forwards;
}

.animate-bounce {
    animation: bounce 0.6s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 0.3s ease-out;
}

.discord-glow {
    animation: discordGlow 2s ease-in-out infinite;
}

.cart-item button {
    transition: all 0.2s ease;
}

.cart-item button:hover {
    transform: scale(1.1);
}

.cart-item button:active {
    transform: scale(0.95);
}

#cartCount {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#cartCount.updated {
    animation: bounce 0.6s ease-out;
}

#cartOpenBtn {
    transition: all 0.2s ease;
}

#cartOpenBtn:hover {
    transform: scale(1.05);
}

#cartOpenBtn:active {
    transform: scale(0.95);
}

#cartOverlay {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(88, 101, 242, 0.1);
    border-color: var(--discord-blurple);
}

.quantity-decrease,
.quantity-increase {
    transition: all 0.2s ease;
}

.quantity-decrease:hover,
.quantity-increase:hover {
    background-color: var(--discord-blurple);
    border-radius: 4px;
}

.cart-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--discord-blurple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-modal-enter {
    animation: slideIn 0.3s ease-out;
}

.payment-modal-exit {
    animation: slideOut 0.3s ease-out;
}

.from-discord-blurple {
    background: linear-gradient(135deg, var(--discord-blurple), var(--discord-indigo));
}

.from-discord-indigo {
    background: linear-gradient(135deg, var(--discord-indigo), var(--discord-purple));
}

.text-discord-indigo {
    color: var(--discord-indigo);
}

.border-discord-blurple {
    border-color: var(--discord-blurple);
}

.shadow-discord-indigo {
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}
