/* =========================================================
   Salla Premium Discount Popup
   Compatible with Salla
   Author: ChatGPT
========================================================= */

/* منع تمرير الصفحة عند ظهور النافذة */
body.popup-open{
    overflow:hidden;


/* الخلفية */
.salla-popup-overlay{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.45);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

    z-index:999999;
}

/* عند الفتح */
.salla-popup-overlay.show{
    opacity:1;
    visibility:visible;
}

/* صندوق النافذة */
.salla-popup{

    width:min(92%,460px);

    background:#FFFFFF;

    border-radius:24px;

    padding:34px 30px;

    position:relative;

    text-align:center;

    box-shadow:
        0 20px 60px rgba(0,0,0,.18),
        0 10px 25px rgba(0,0,0,.08);

    transform:scale(.88) translateY(20px);

    opacity:0;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        opacity .35s ease;
}

/* حركة الدخول */
.salla-popup-overlay.show .salla-popup{
    transform:scale(1) translateY(0);
    opacity:1;
}

/* زر الإغلاق */
.salla-popup-close{

    position:absolute;

    top:14px;
    right:16px;

    width:38px;
    height:38px;

    border:none;

    border-radius:50%;

    background:#F3F5F7;

    color:#666;

    cursor:pointer;

    font-size:20px;

    transition:.25s;
}

.salla-popup-close:hover{

    background:#E6E8EA;

    transform:rotate(90deg);
}

/* أيقونة الهدية */

.popup-icon{

    width:78px;
    height:78px;

    margin:0 auto 18px;

    border-radius:50%;

    background:linear-gradient(135deg,#2E7D32,#1B5E20);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:38px;

    color:#fff;

    box-shadow:
        0 12px 30px rgba(46,125,50,.35);
}

/* العنوان */

.popup-title{

    font-size:30px;

    font-weight:800;

    color:#1B5E20;

    margin-bottom:12px;
}

/* النص */

.popup-description{

    color:#666;

    line-height:1.8;

    font-size:16px;

    margin-bottom:28px;
}

/* صندوق الكود */

.popup-coupon{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    background:#F8F9FA;

    border:2px dashed #2E7D32;

    border-radius:18px;

    padding:14px;

    margin-bottom:24px;
}

/* الكود */

.popup-code{

    font-size:24px;

    font-weight:800;

    color:#1B5E20;

    letter-spacing:2px;

    user-select:all;
}

/* زر النسخ */

.copy-btn{

    border:none;

    background:#2E7D32;

    color:#fff;

    padding:12px 18px;

    border-radius:12px;

    cursor:pointer;

    font-weight:700;

    transition:.25s;
}

.copy-btn:hover{

    background:#1B5E20;

    transform:translateY(-2px);
}

/* رسالة النسخ */

.copy-message{

    margin-top:12px;

    color:#2E7D32;

    font-weight:700;

    font-size:14px;

    opacity:0;

    transition:.25s;

    height:18px;
}

.copy-message.show{

    opacity:1;
}

/* الزر الرئيسي */

.popup-action{

    width:100%;

    border:none;

    cursor:pointer;

    padding:16px;

    border-radius:16px;

    background:linear-gradient(
        135deg,
        #2E7D32,
        #1B5E20
    );

    color:#fff;

    font-size:17px;

    font-weight:700;

    transition:.3s;

    box-shadow:
        0 12px 30px rgba(46,125,50,.25);
}

.popup-action:hover{

    transform:translateY(-3px);

    box-shadow:
        0 18px 40px rgba(46,125,50,.35);
}

/* للجوال */

@media(max-width:480px){

    .salla-popup{

        padding:28px 22px;
    }

    .popup-title{

        font-size:24px;
    }

    .popup-description{

        font-size:15px;
    }

    .popup-coupon{

        flex-direction:column;
    }

    .copy-btn{

        width:100%;
    }

    .popup-action{

        font-size:16px;
    }

}








  /* الخلفية للصفحة الرئيسية فقط */
body.index,
body.home {
    background: url("https://b.top4top.io/p_38335tnai1.png") center top / cover no-repeat fixed !important;
}

/* إظهار الخلفية */
body.index main,
body.home main,
body.index .main-content,
body.home .main-content,
body.index .s-block,
body.home .s-block {
    background: transparent !important;
}