/* Mockup Animations */
.mockup-container {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 32px;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eee;
}

.mockup-dot.red {
    background: #ff5f56;
}

.mockup-dot.yellow {
    background: #ffbd2e;
}

.mockup-dot.green {
    background: #27c93f;
}

/* Profile List Animation (Card 1) */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #FFF5F2;
    border-radius: 12px;
    position: relative;
    height: 320px;
    overflow: hidden;
}

.sidebar-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-item.active {
    border: 1px solid #FFC0D3;
    background: #fffafa;
}

/* Animations for switching state */
.item-1 {
    animation: switchItem1 6s infinite;
}

.item-2 {
    animation: switchItem2 6s infinite;
}

@keyframes switchItem1 {

    0%,
    45% {
        border-color: #FFC0D3;
        background: #fffafa;
    }

    /* Active start */
    50%,
    95% {
        border-color: #eee;
        background: #ffffff;
    }

    /* Inactive */
    100% {
        border-color: #FFC0D3;
        background: #fffafa;
    }
}

@keyframes switchItem2 {

    0%,
    45% {
        border-color: #eee;
        background: #ffffff;
    }

    /* Inactive start */
    50%,
    95% {
        border-color: #FFC0D3;
        background: #fffafa;
    }

    /* Active */
    100% {
        border-color: #eee;
        background: #ffffff;
    }
}

.avatar-badge {
    width: 36px;
    height: 36px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
}

.profile-name {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-icon {
    color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn {
    margin-top: auto;
    border: 1px solid #eee;
    background: white;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Cursor Animation for Switching */
.cursor-switch {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L10.07 19.97L12.58 12.58L19.97 10.07L3 3Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    position: absolute;
    z-index: 10;
    pointer-events: none;
    animation: moveCursorSwitch 6s infinite ease-in-out;
}

@keyframes moveCursorSwitch {
    0% {
        top: 110%;
        left: 90%;
    }

    15% {
        top: 20%;
        left: 60%;
        transform: scale(1);
    }

    /* Move to Item 1 */
    20% {
        transform: scale(0.9);
    }

    /* Click Item 1 (Already active) */
    25% {
        transform: scale(1);
    }

    40% {
        top: 45%;
        left: 50%;
    }

    /* Move to Item 2 */
    50% {
        transform: scale(0.9);
    }

    /* Click Item 2 -> Switches state */
    55% {
        transform: scale(1);
    }

    80% {
        top: 110%;
        left: 90%;
    }

    100% {
        top: 110%;
        left: 90%;
    }
}

/* Chat Notifications Animation (Card 2) */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    position: relative;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e1e1e1;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-content {
    flex: 1;
}

.chat-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.chat-preview {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    transform: scale(0);
    animation: popBadge 4s infinite ease-out;
}

/* Blinking Dot on Avatar */
.blink-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border: 2px solid white;
    border-radius: 50%;
    animation: blinkGreen 2s infinite;
}

@keyframes blinkGreen {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Push Notification */
.push-notification {
    position: absolute;
    bottom: 24px;
    right: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 20;
    opacity: 0;
    transform: translateY(20px);
    animation: showPush 6s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.push-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.push-app-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.push-app-icon {
    width: 16px;
    height: 16px;
    background: #25D366;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.push-app-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.push-time {
    font-size: 10px;
    color: #888;
}

.push-body {
    display: flex;
    gap: 12px;
}

.push-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
    flex-shrink: 0;
}

.push-content {
    flex: 1;
}

.push-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.push-text {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* Step Cards */
.elite-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-header {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.step-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.step-visual {
    height: 160px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    position: relative;
}

/* Color Variants */
.step-card.blue {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
}

.step-card.blue .step-visual {
    background: rgba(255, 255, 255, 0.5);
}

.step-card.blue .step-number {
    color: #1976D2;
}

.step-card.purple {
    background: #F3E5F5;
    border: 1px solid #E1BEE7;
}

.step-card.purple .step-visual {
    background: rgba(255, 255, 255, 0.5);
}

.step-card.purple .step-number {
    color: #7B1FA2;
}

.step-card.green {
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
}

.step-card.green .step-visual {
    background: rgba(255, 255, 255, 0.5);
}

.step-card.green .step-number {
    color: #388E3C;
}

/* Step 1: Real Installer Animation */
.installer-mockup {
    width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 16px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.installer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.installer-icon {
    width: 24px;
    height: 24px;
    background: #ff6398;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.installer-title {
    height: 8px;
    width: 80px;
    background: #e0e0e0;
    border-radius: 4px;
}

.installer-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.installer-fill {
    height: 100%;
    background: #1976D2;
    width: 0%;
    border-radius: 3px;
    animation: installProgress 3s infinite ease-in-out;
}

@keyframes installProgress {
    0% {
        width: 0%;
    }

    20% {
        width: 10%;
    }

    50% {
        width: 60%;
    }

    80% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

/* Step 2: Real Sidebar Animation */
.mini-sidebar {
    width: 60px;
    background: #FFF5F2;
    border-radius: 12px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffede6;
}

.mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #555;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mini-avatar.active {
    border-color: #ff6398;
    background: #fff0f5;
    color: #ff6398;
}

.mini-avatar.new {
    animation: popInAvatar 3s infinite;
    opacity: 0;
}

.mini-add {
    width: 36px;
    height: 36px;
    border: 2px dashed #ffb4c9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb4c9;
    font-size: 18px;
    cursor: pointer;
}

@keyframes popInAvatar {

    0%,
    30% {
        transform: scale(0);
        opacity: 0;
        display: none;
    }

    35% {
        transform: scale(1.1);
        opacity: 1;
        display: flex;
    }

    40%,
    90% {
        transform: scale(1);
        opacity: 1;
        display: flex;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Step 3: Real Chat Animation */
.mini-chat {
    width: 200px;
    background: #f0f2f5;
    /* WhatsApp bg color */
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.4;
    position: relative;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-bubble.in {
    background: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-bubble.out {
    background: #d9fdd3;
    align-self: flex-end;
    border-top-right-radius: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: sendMsg 3s infinite;
}

@keyframes sendMsg {

    0%,
    30% {
        opacity: 0;
        transform: translateY(10px);
    }

    40%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes showPush {

    0%,
    10% {
        opacity: 0;
        transform: translateY(20px);
    }

    15%,
    85% {
        opacity: 1;
        transform: translateY(0);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

.message-popup {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: #25d366;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    animation: slideMessage 4s infinite ease-out;
}

@keyframes popBadge {

    0%,
    20% {
        transform: scale(0);
    }

    25%,
    90% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes slideMessage {

    0%,
    22% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }

    25%,
    85% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    90%,
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
}