@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease;
    will-change: transform, opacity;
}

.animate-slide-in-delay {
    animation: slideIn 0.5s ease 0.2s both;
    will-change: transform, opacity;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.8), 0 0 30px rgba(220, 38, 38, 0.6);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
    will-change: transform, opacity;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoom-in {
    animation: zoomIn 0.4s ease;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

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

.wheel-spinning {
    animation: wheelSpin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-up {
    animation: countUp 0.5s ease;
}

@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes flip {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.animate-flip {
    animation: flip 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.animate-slide-down {
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }


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

.btn-error-shake {
    animation: errorShake 0.5s ease-in-out;
}

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

@keyframes lxrdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lxrdSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes lxrdScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lxrdOrbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(30px, -20px) scale(1.1); 
    }
    66% { 
        transform: translate(-20px, 30px) scale(0.95); 
    }
}

@keyframes lxrdRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lxrdShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes lxrdProgressGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes lxrdSpin {
    to { transform: rotate(360deg); }
}

@keyframes lxrdPulseRing {
    0% { 
        transform: scale(1);
        opacity: 0.5; 
    }
    100% { 
        transform: scale(1.5);
        opacity: 0; 
    }
}

@keyframes lxrdBtnShine {
    from { left: -100%; }
    to { left: 200%; }
}

.lxrd-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: lxrdSpin 0.8s linear infinite;
}

.lxrd-spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.lxrd-spinner-lg {
    width: 56px;
    height: 56px;
    border-width: 4px;
}

.lxrd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.lxrd-stagger > * {
    animation: lxrdFadeInUp 0.4s ease backwards;
}
.lxrd-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.lxrd-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.lxrd-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.lxrd-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.lxrd-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.lxrd-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.lxrd-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.lxrd-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.lxrd-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.lxrd-stagger > *:nth-child(10) { animation-delay: 0.5s; }

.page-transition-enter {
    animation: lxrdSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-transition-exit {
    animation: lxrdFadeIn 0.3s ease reverse forwards;
}

@keyframes lxrdModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes lxrdModalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lxrd-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lxrd-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.lxrd-hover-glow {
    transition: box-shadow 0.3s ease;
}

.lxrd-hover-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

.wheel-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 10000;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes lxrdSkeletonPulse {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: lxrdSkeletonPulse 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


@media (max-width: 768px) {
    .lxrd-orb,
    .wheel-orb,
    .shop-orb,
    .lb-orb,
    .faq-orb,
    .tools-orb,
    .lxrd-bg-orbs > * {
        filter: none !important;
        opacity: 0.2 !important;
    }
    
    .lxrd-header-glass,
    .lxrd-card,
    .modal-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(10, 10, 15, 0.85) !important;
    }
    
    .lxrd-stagger > *:nth-child(n+6) {
        animation-delay: 0.2s !important;
    }
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.4s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.25s !important;
}
