/* 92Mobile - 20 Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleBounce {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(0, 122, 255, 0);
    }
}

@keyframes cardHoverLift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-4px);
    }
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: var(--fill-width, 100%);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes confetti {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}

@keyframes rotate3d {
    0% {
        transform: perspective(800px) rotateY(15deg);
    }

    100% {
        transform: perspective(800px) rotateY(0deg);
    }
}

@keyframes radarPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes checkmarkDraw {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes blurReveal {
    from {
        filter: blur(10px);
        opacity: 0;
    }

    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Animation utilities */
.anim-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.anim-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.anim-slide-left {
    animation: slideInLeft 0.4s ease forwards;
}

.anim-slide-right {
    animation: slideInRight 0.4s ease forwards;
}

.anim-scale-bounce {
    animation: scaleBounce 0.5s ease forwards;
}

.anim-pop-in {
    animation: popIn 0.4s ease forwards;
}

.anim-shake {
    animation: shake 0.5s ease;
}

.anim-3d-rotate {
    animation: rotate3d 1.2s ease forwards;
}

.anim-blur-reveal {
    animation: blurReveal 0.6s ease forwards;
}

/* Stagger children */
.stagger-children>*:nth-child(1) {
    animation-delay: 0s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.4s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.5s;
}

.stagger-children>* {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Confetti pieces */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confetti 2s ease forwards;
}

/* Radar pulse rings */
.radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: radarPulse 2s ease infinite;
}

.radar-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.radar-ring:nth-child(3) {
    animation-delay: 1s;
}

/* Ticker strip */
.ticker-strip {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    gap: 40px;
    animation: ticker 20s linear infinite;
}

/* Swipe slider hint */
.swipe-hint {
    animation: swipeHint 1.5s ease infinite;
}

/* Transition helpers */
.transition-all {
    transition: all 0.3s ease;
}

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

/* ========== 92Mobile Animated Logo ========== */
._92m-logo { position: relative; }
._92m-icon {
    position: relative;
    width: 32px; height: 32px;
    flex-shrink: 0;
}
._92m-ring {
    position: absolute; inset: -3px;
    border-radius: 13px;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea) 1;
    opacity: 0;
    animation: _92m-pulse 3s ease-in-out infinite;
}
._92m-ring2 { animation-delay: 1.5s; }
@keyframes _92m-pulse {
    0%   { opacity: 0; transform: scale(1); }
    30%  { opacity: 0.6; }
    100% { opacity: 0; transform: scale(1.35); }
}

._92m-logo:hover ._92m-icon svg {
    transform: rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(118,75,162,0.4));
}
._92m-icon svg {
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), filter 0.3s ease;
}

._92m-text {
    display: flex; align-items: center; gap: 0;
    position: relative;
}
._92m-name {
    font-weight: 800; font-size: 16px; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: _92m-shimmer 4s ease infinite;
}
@keyframes _92m-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

._92m-dot {
    width: 5px; height: 5px;
    background: linear-gradient(135deg, #34C759, #30D158);
    border-radius: 50%;
    margin-left: 3px;
    animation: _92m-blink 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(52,199,89,0.5);
}
@keyframes _92m-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.3; transform: scale(0.7); }
}

._92m-logo:hover ._92m-name {
    animation: _92m-shimmer 1s ease infinite;
}
._92m-logo:hover ._92m-dot {
    animation: _92m-blink 0.4s ease-in-out infinite;
    background: linear-gradient(135deg, #FF9500, #FFCC00);
    box-shadow: 0 0 8px rgba(255,149,0,0.6);
}