/* =====================================================
   AI Sales Assistant — Frontend Styles
   RTL / Arabic friendly
   ===================================================== */

/* ── Google Font (Tajawal for Arabic) ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ══════════════════════════════════════
   OVERLAY & POPUP
══════════════════════════════════════ */
.aisa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.aisa-overlay.aisa-show {
    opacity: 1;
}

.aisa-popup {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    font-family: 'Tajawal', 'Tahoma', 'Arial', sans-serif;
}

.aisa-overlay.aisa-show .aisa-popup {
    transform: translateY(0) scale(1);
}

/* Close button */
.aisa-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.aisa-close:hover {
    background: #e0e0e0;
}

/* Icon */
.aisa-popup-icon {
    font-size: 52px;
    margin-bottom: 14px;
    line-height: 1;
}

/* Message */
.aisa-popup-msg {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* Coupon box */
.aisa-coupon-box {
    background: #fffbea;
    border: 2.5px dashed #f59e0b;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #444;
}

.aisa-coupon-code {
    color: #c2410c;
    font-size: 20px;
    letter-spacing: 3px;
    display: block;
    margin-top: 4px;
}

/* Timer */
.aisa-timer {
    color: #dc2626;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

/* CTA Button */
.aisa-cta {
    display: block;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    font-family: 'Tajawal', 'Tahoma', 'Arial', sans-serif;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.5px;
}

.aisa-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 52, 96, 0.35);
}

.aisa-cta:active {
    transform: translateY(0);
}

/* Skip link */
.aisa-skip {
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Tajawal', 'Tahoma', 'Arial', sans-serif;
    transition: color 0.2s;
}

.aisa-skip:hover {
    color: #777;
}

/* ══════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════ */
.aisa-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1a1a2e;
    color: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
    z-index: 1000000;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
    font-family: 'Tajawal', 'Tahoma', 'Arial', sans-serif;
}

.aisa-toast.aisa-show {
    transform: translateY(0);
    opacity: 1;
}

.aisa-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.aisa-toast-msg {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    line-height: 1.45;
}

.aisa-toast-x {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.aisa-toast-x:hover {
    color: #fff;
}

/* ══════════════════════════════════════
   TOP BANNER
══════════════════════════════════════ */
.aisa-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #1a1a2e, #0f3460, #1a1a2e);
    color: #ffffff;
    padding: 13px 56px 13px 20px;
    text-align: center;
    z-index: 1000000;
    font-size: 15px;
    font-family: 'Tajawal', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    animation: aisa-slide-down 0.4s ease forwards;
}

@keyframes aisa-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.aisa-banner-msg {
    display: inline;
}

.aisa-banner strong {
    color: #fbbf24;
    letter-spacing: 2px;
}

.aisa-banner-x {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.aisa-banner-x:hover {
    color: #fff;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 480px) {
    .aisa-popup {
        padding: 28px 18px 22px;
        border-radius: 16px;
    }

    .aisa-popup-msg {
        font-size: 17px;
    }

    .aisa-toast {
        right: 12px;
        left: 12px;
        max-width: 100%;
        bottom: 16px;
    }

    .aisa-cta {
        font-size: 16px;
        padding: 14px;
    }
}
