﻿
@media (max-width: 767.98px) {
    .btn-pack {
        flex-direction: row;
    }
}
/* دسکتاپ */
.floating-pack {
    position: fixed;
    top: 35%;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    backdrop-filter: blur(2px);
    background: var(--accent-color);
}

.btn-pack {
    border: none;
    padding: 14px 16px;
    font-size: 18px !important;
    text-align: left;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pack-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid #fff;
    opacity: 1;
}



/* هاور دسکتاپ */
.btn-pack:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
    text-decoration: none;
}

/* موبایل */
@media (max-width: 767.98px) {
    .floating-pack {
        top: auto;
        bottom: 0px;
        left: 0px;
        right: 0px;
        flex-direction: row;
        border-radius: 5px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    }

    .btn-pack {
        flex: 1;
        text-align: center;
        font-size: 13px;
        padding: 12px 6px;
        justify-content: center;
    }

        .btn-pack:hover {
            transform: none;
        }
    /* HR عمودی در موبایل */
    .pack-divider {
        width: 1px !important;
        height: auto;
        background-color: rgba(255,255,255,0.35);
        border: none;
        margin: 8px 0;
    }
}


@keyframes gentle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
    /* فقط 2% بزرگ‌تر */
    100% {
        transform: scale(1);
    }
}

.pulse-section {
    animation: gentle-pulse 3s ease-in-out infinite; /* 3 ثانیه ضربان ملایم */
    will-change: transform;
}

@keyframes bell-shake {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-10deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.pulse-section i {
    display: inline-block; /* مهم برای transform */
    animation: bell-shake 1.5s ease-in-out infinite;
    transform-origin: 50% 50%; /* مرکز چرخش */
}


.promo-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 290px;
    z-index: 1080;
    background: #fff;
    border-radius: 20px;
    padding: 22px 18px;
    border: 1px solid #dbeafe;
    box-shadow: 0 20px 40px rgba(13,110,253,.18), 0 6px 15px rgba(0,0,0,.08);
    text-align: center;
    overflow: hidden;
    animation: promoIn .7s cubic-bezier(.18,.89,.32,1.28);
}

    .promo-banner::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg,#0d6efd,#66b3ff);
    }

.promo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d6efd,#4ea1ff);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(13,110,253,.25);
}

.promo-title {
    color: #0d6efd;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 10px;
}

.promo-text {
    color: #6c757d;
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 18px;
}

.promo-banner .btn {
    border-radius: 50rem;
    font-weight: 700;
    animation: pulseBtn 2.2s infinite;
}

.btn-close {
    transform: scale(.85);
}

/* ورود */
@keyframes promoIn {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(.9);
    }

    70% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* جلب توجه هر چند ثانیه */
@keyframes floatShake {

    0%,90%,100% {
        transform: translateX(0);
    }

    92% {
        transform: translateX(-5px);
    }

    94% {
        transform: translateX(5px);
    }

    96% {
        transform: translateX(-3px);
    }

    98% {
        transform: translateX(0);
    }
}

.promo-banner {
    animation: promoIn .7s cubic-bezier(.18,.89,.32,1.28), floatShake 10s infinite;
}

/* دکمه */
@keyframes pulseBtn {

    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13,110,253,.45);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 12px rgba(13,110,253,0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13,110,253,0);
    }
}
@media (max-width:768px) {

    .promo-banner {
        width: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}