/* ===================================
ZOS PREMIUM FLOATING BAR
=================================== */

#zos-widget{
    position:relative;
    z-index:999999;
}

/* ===================================
MAIN BAR
=================================== */

#zos-floating-bar{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:28px;

    width:340px;
    height:78px;

    border-radius:999px;

    background:#111828;

    border:1px solid rgba(255,255,255,.05);

    backdrop-filter:blur(24px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.35),
        0 0 35px rgba(0,170,255,.08),
        inset 0 1px 0 rgba(255,255,255,.04);

    display:flex;
    align-items:center;

    flex-direction:row-reverse;
    direction:rtl;

    gap:10px;
    padding:10px 18px;

    z-index:999999;

    opacity:1;
    visibility:visible;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

/* ===================================
TEXT
=================================== */

.widget-text{
    display:flex;
    flex-direction:column;
    justify-content:center;

    text-align:right;
    direction:rtl;

    min-width:125px;

    flex-shrink:0;

    /* ابعاد عن العداد */
    margin-right:10px;

    /* تحريك يمين */
    transform:translateX(-14px);
}

.widget-text h3{
    margin:0;

    font-size:15px;
    line-height:1.2;

    font-weight:800;
    color:#fff;

    white-space:nowrap;
}

.widget-text h3 span{
    color:#14b5bc;
}

.widget-text p{
    margin:4px 0 0;

    font-size:11px;
    font-weight:500;

    color:rgba(255,255,255,.58);

    white-space:nowrap;
}

/* ===================================
DIVIDER
=================================== */

.divider{
    width:1px;
    height:28px;

    background:rgba(255,255,255,.10);

    flex-shrink:0;
}

/* ===================================
BUTTON RESET
=================================== */

#zos-floating-bar button{
    border:none;
    outline:none;
    cursor:pointer;

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

    flex-shrink:0;
}

/* ===================================
BUTTONS
=================================== */

#zos-start-call,
.mute-btn{
    width:48px;
    height:48px;
    border-radius:50%;
}

/* ===================================
CALL BUTTON
=================================== */

#zos-start-call{
    position:relative;

    background:
        linear-gradient(
            180deg,
            #39ff93,
            #18d36e
        );

    box-shadow:
        0 0 18px rgba(45,255,152,.35),
        0 0 35px rgba(45,255,152,.22);

    animation:
        greenPulse 1.4s infinite ease-in-out;
}

#zos-start-call svg{
    width:18px;
    height:18px;
}

/* glowing ring */

#zos-start-call::before{
    content:"";
    position:absolute;
    inset:-7px;

    border-radius:50%;

    border:2px solid
    rgba(45,255,152,.28);

    animation:
        pulseRing 1.8s infinite;
}

@keyframes pulseRing{

    0%{
        transform:scale(.95);
        opacity:.9;
    }

    70%{
        opacity:.35;
    }

    100%{
        transform:scale(1.18);
        opacity:0;
    }
}

@keyframes greenPulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.06);
    }

    100%{
        transform:scale(1);
    }
}

/* ===================================
MUTE BUTTON
=================================== */

.mute-btn{
    background:
        linear-gradient(
            180deg,
            #ff6b88,
            #f13c68
        );

    color:#fff;

    box-shadow:
        0 0 14px rgba(255,84,125,.16);
}

.mute-btn svg{
    width:20px;
    height:20px;
}

/* ===================================
COUNTDOWN
=================================== */

.zos-counter-wrap{
    width:50px;
    height:50px;

    position:relative;

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

    flex-shrink:0;
}

.progress-ring{
    width:50px;
    height:50px;

    transform:rotate(-90deg);

    display:block;
}

/* خلفية الدائرة */

.ring-bg{
    fill:none;

    stroke:rgba(255,255,255,.12);
    stroke-width:4;
}

/* الدائرة المتحركة */

.ring-progress{
    fill:none;

    stroke:#14b5bc;
    stroke-width:4;
    stroke-linecap:round;

    stroke-dasharray:163.36;
    stroke-dashoffset:0;

    transition:
        stroke-dashoffset 1s linear;
}

#count-number{
    position:absolute;
    inset:0;

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

    color:#fff;

    font-size:14px;
    font-weight:800;

    line-height:1;
}




/* ===================================
MOBILE
=================================== */

@media(max-width:768px){

    #zos-floating-bar{
        width:calc(100% - 20px);

        left:10px;
        right:10px;

        transform:none;

        bottom:16px;
        height:72px;

        gap:8px;
        padding:10px 14px;
    }

    .widget-text{
        min-width:108px;
        transform:translateX(-8px);
    }

    .widget-text h3{
        font-size:14px;
    }

    .widget-text p{
        font-size:10px;
    }

    #zos-start-call,
    .mute-btn{
        width:44px;
        height:44px;
    }

    .zos-counter-wrap,
    .progress-ring{
        width:46px;
        height:46px;
    }

    #count-number{
        font-size:13px;
    }
}


/* ===================================
PREMIUM CALL POPUP
=================================== */

.zos-call-popup{
    position:fixed;

    top:24px;
    left:50%;

    transform:
        translateX(-50%)
        translateY(-35px)
        scale(.96);

    width:430px;
    max-width:calc(100% - 24px);

    z-index:9999999999;

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;
}

/* SHOW */

.zos-call-popup.show{

    opacity:1;
    visibility:visible;

    pointer-events:auto;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}

/* CARD */

.zos-call-card{

    position:relative;

    overflow:hidden;

    border-radius:30px;

    padding:30px 28px;

    text-align:center;
    direction:rtl;

    background:
        linear-gradient(
            135deg,
            rgba(2,10,38,.98),
            rgba(4,18,58,.98)
        );

    border:
        1px solid
        rgba(255,255,255,.06);

    backdrop-filter:
        blur(26px);

    -webkit-backdrop-filter:
        blur(26px);

    box-shadow:
        0 30px 80px rgba(0,0,0,.38),
        0 0 45px rgba(0,170,255,.08),
        inset 0 1px 0 rgba(255,255,255,.05);
}

/* TOP GLOW */

.zos-call-card::before{
    content:"";

    position:absolute;

    top:-140px;
    left:50%;

    transform:translateX(-50%);

    width:300px;
    height:300px;

    background:
        radial-gradient(
            circle,
            rgba(0,220,255,.18),
            transparent 72%
        );

    pointer-events:none;
}

/* CALL ICON */

.call-icon{

    width:78px;
    height:78px;

    margin:0 auto 20px;

    border-radius:50%;

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

    font-size:34px;

    background:
        linear-gradient(
            180deg,
            #39ff93,
            #18d36e
        );

    box-shadow:
        0 0 25px rgba(45,255,152,.35),
        0 0 50px rgba(45,255,152,.18);

    animation:
        callPulse 1.4s infinite ease-in-out;
}

/* TITLE */

.zos-call-card h3{

    margin:0 0 12px;

    font-size:31px;
    font-weight:900;

    color:#fff;

    letter-spacing:-.4px;
}

/* TEXT */

.zos-call-card p{

    margin:0;

    font-size:17px;
    line-height:1.9;

    color:
        rgba(255,255,255,.84);
}

/* FOOT TEXT */

.zos-call-card span{

    display:block;

    margin-top:16px;

    font-size:14px;
    font-weight:700;

    color:
        #14b5bc;
}

/* ANIMATION */

@keyframes callPulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }
}

/* MOBILE */

@media(max-width:768px){

    .zos-call-popup{

        top:18px;

        width:
            calc(100% - 18px);
    }

    .zos-call-card{

        border-radius:24px;

        padding:
            26px 20px;
    }

    .call-icon{

        width:66px;
        height:66px;

        font-size:30px;
    }

    .zos-call-card h3{

        font-size:24px;
    }

    .zos-call-card p{

        font-size:15px;
        line-height:1.8;
    }

    .zos-call-card span{

        font-size:13px;
    }
}