*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    background:#eef0ef;
    color:#303638;
    font-family:Cairo,Arial,sans-serif;
}

/* الصورة الرئيسية */
.hero{
    width:92%;
    max-width:520px;
    margin:16px auto 12px;
    text-align:center;
    animation:heroIn .7s ease both;
}

.hero img{
    width:100%;
    max-height:260px;
    object-fit:cover;
    display:block;
    border-radius:18px 18px 8px 8px;
    box-shadow:
        0 8px 0 #d8dcda,
        0 14px 28px rgba(55,65,60,.20);
}

/* شريط الترحيب */
.welcome{
    width:92%;
    max-width:520px;
    margin:18px auto 14px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    overflow:hidden;
    position:relative;
    border-radius:13px;
    background:#e1e7e3;
    border:1px solid #d2dad5;
    color:#4a5751;
    box-shadow:0 5px 14px rgba(55,65,60,.08);
}

.welcome i{
    font-size:17px;
    animation:welcomeIcon 1.8s ease-in-out infinite;
}

.welcome-text{
    white-space:nowrap;
    font-size:13px;
    font-weight:bold;
    animation:textMove 4s ease-in-out infinite alternate;
}

/* المربعات الأربعة */
.actions{
    width:96%;
    max-width:620px;
    margin:0 auto 18px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:6px;
}

.action{
    min-height:52px;
    padding:5px 3px;
    border:1px solid #dfe4e1;
    border-radius:11px;
    background:#f9faf9;
    color:#414b47;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    font-family:Cairo,Arial,sans-serif;
    font-size:9px;
    font-weight:bold;
    box-shadow:0 5px 13px rgba(40,50,45,.08);
    cursor:pointer;
    transform:translateY(45px);
    opacity:0;
    animation:cardUp .65s cubic-bezier(.22,.61,.36,1) forwards;
    transition:transform .2s ease,box-shadow .2s ease;
}

.action:nth-child(1){
    animation-delay:.08s;
}

.action:nth-child(2){
    animation-delay:.16s;
}

.action:nth-child(3){
    animation-delay:.24s;
}

.action:nth-child(4){
    animation-delay:.32s;
}

.action i{
    width:25px;
    height:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#e6ebe8;
    color:#596760;
    font-size:12px;
}

.action:active{
    transform:scale(.96);
}

/* منطقة الدردشة */
#cboxdiv{
    width:100%;
    margin:0 auto;
    font-size:0;
    line-height:0;
}

.cbox-form{
    position:relative;
    height:200px;
    overflow:hidden;
    border:0;
}

.cbox-main{
    position:relative;
    height:900px;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    border:0;
}

/* الفوتر */
.footer{
    text-align:center;
    padding:10px 5px;
    background:#f8f9f8;
    color:#7a8580;
    font-size:11px;
    margin-top:5px;
}

/* الحركات */
@keyframes cardUp{
    to{
        transform:translateY(0);
        opacity:1;
    }
}

@keyframes heroIn{
    from{
        opacity:0;
        transform:translateY(-15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes welcomeIcon{
    0%,100%{
        transform:translateX(-3px);
    }

    50%{
        transform:translateX(3px);
    }
}

@keyframes textMove{
    from{
        transform:translateX(-5px);
    }

    to{
        transform:translateX(5px);
    }
}

@media(max-width:360px){

    .hero{
        width:94%;
    }

    .welcome{
        width:94%;
    }

    .actions{
        width:96%;
        gap:4px;
    }

    .action{
        min-height:50px;
        font-size:8px;
        padding:4px 2px;
    }

    .action i{
        width:23px;
        height:23px;
        font-size:11px;
    }
}