.yalda-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 9998;
}

.yalda-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.yalda-popup-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    pointer-events: none;
}

.yalda-popup-card {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.yalda-popup-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,%3Csvg width="160" height="160" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"%3E%3Cg fill="none" fill-opacity="0.08"%3E%3Cpath d="M70 25c20-30 60-30 80 0s20 70 0 100-60 30-80 0-20-70 0-100z" fill="%23f97316"/%3E%3Cpath d="M10 85c12-18 34-18 46 0s12 42 0 60-34 18-46 0-12-42 0-60z" fill="%23dc2626"/%3E%3C/g%3E%3C/svg%3E') center/cover;
    opacity: 0.25;
    mix-blend-mode: multiply;
}

.yalda-popup-wrapper.is-visible .yalda-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.yalda-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.yalda-popup-close:hover {
    color: #E3342F;
    background: rgba(15, 23, 42, 0.16);
    transform: scale(1.05);
}

.yalda-popup-body {
    position: relative;
    z-index: 1;
    text-align: center;
}

.yalda-popup-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.yalda-popup-heading span.icon {
    padding-top: 8px;
    font-size: 1.9rem;
    display: inline-flex;
    animation: yaldaFloat 3s ease-in-out infinite;
}

.yalda-popup-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    color: #1f2937;
    margin: 0 auto 20px;
    max-width: 360px;
}

.yalda-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yalda-popup-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
}

.yalda-popup-open {
    overflow: hidden;
}

@keyframes yaldaFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .yalda-popup-card {
        max-width: 620px;
        padding: 36px 40px;
    }

    .yalda-popup-heading {
        font-size: 1.6rem;
    }

    .yalda-popup-text {
        font-size: 1.05rem;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .yalda-popup-card {
        padding: 22px;
        border-radius: 18px;
    }

    .yalda-popup-heading {
        font-size: 1.2rem;
    }

    .yalda-popup-text {
        font-size: 1rem;
    }
}
