@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}
.float-anim {
    animation: float 3s ease-in-out infinite;
}
.slide-in {
    animation: slide-in 0.5s ease forwards;
}
.badge-new {
    background: linear-gradient(90deg, #5b4fcf, #7c6fe0, #5b4fcf);
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.feature-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}
.feature-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cta-btn {
    background: linear-gradient(135deg, #5b4fcf 0%, #7b5ea7 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 79, 207, 0.45);
}
.cta-btn:active {
    transform: scale(0.97);
}
.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
    z-index: 1;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}
.chain-node {
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}
.chain-arrow {
    color: #7c6fe0;
    font-size: 13px;
    flex-shrink: 0;
}
.target-chip {
    background: rgba(91, 79, 207, 0.25);
    border: 0.5px solid rgba(91, 79, 207, 0.5);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    color: #c4bcf5;
    white-space: nowrap;
}

/* --- Mobile overrides --- */
@media (max-width: 480px) {
    .popup-inner {
        padding: 22px 18px !important;
    }
    .popup-header h2 {
        font-size: 21px !important;
    }
    .robot-wrap {
        display: none !important;
    }
    .popup-desc {
        font-size: 13px !important;
        margin-bottom: 14px !important;
    }
    .flow-box {
        padding: 11px 12px !important;
        margin-bottom: 14px !important;
    }
    .pills-wrap {
        margin-bottom: 18px !important;
        gap: 6px !important;
    }
    .cta-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}
