/* ─── Taleed Motors Smart Promotional Popup Modal ─── */
.taleed-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000000;
    background: rgba(6, 11, 20, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.taleed-popup-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.taleed-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: #0B1523;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.25);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    display: flex;
    flex-direction: column;
}

.taleed-popup-backdrop.is-open .taleed-popup-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.taleed-popup-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 30;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(13, 27, 48, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    outline: none;
}

.taleed-popup-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
}

/* Media / Image Container */
.taleed-popup-media-link {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.taleed-popup-image {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: #060B14;
    transition: transform 0.4s ease;
}

.taleed-popup-media-link:hover .taleed-popup-image {
    transform: scale(1.015);
}

/* Action Footer & CTA Button */
.taleed-popup-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none;
}

.taleed-popup-cta-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 34px;
    border-radius: 50px;
    background: linear-gradient(135deg, #781d22 0%, #541115 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(120, 29, 34, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.2px;
}

.taleed-popup-cta-btn:hover {
    background: linear-gradient(135deg, #912329 0%, #68151a 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 30px rgba(120, 29, 34, 0.75), 0 0 0 2px rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}

.taleed-popup-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .taleed-popup-dialog {
        max-width: 94vw;
        border-radius: 18px;
    }
    .taleed-popup-close-btn {
        top: 10px;
        left: 10px;
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .taleed-popup-footer {
        bottom: 14px;
    }
    .taleed-popup-cta-btn {
        padding: 10px 26px;
        font-size: 0.95rem;
    }
}
