/* =========================
   الأساس
========================= */

*{
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    background:#f3f1ed;
    color:#403b37;
    font-family:Cairo, sans-serif;
}

body{
    overflow-x:hidden;
}

/* =========================
   الصورة الرئيسية
========================= */

.top-image{
    width:calc(100% - 20px);
    max-width:700px;
    height:auto;
    display:block;
    margin:12px auto 10px;
    border-radius:18px;
    object-fit:cover;

    box-shadow:
        0 8px 18px rgba(69,57,48,.20),
        0 2px 5px rgba(69,57,48,.12);

    animation:imageShow .7s ease both;
}

@keyframes imageShow{
    from{
        opacity:0;
        transform:translateY(-12px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   شريط الترحيب
========================= */

.welcome-bar{
    width:calc(100% - 20px);
    max-width:700px;
    height:48px;
    margin:0 auto 13px;

    display:flex;
    align-items:center;
    overflow:hidden;

    background:#e8e2da;
    border:1px solid #ddd4ca;
    border-radius:13px;

    box-shadow:0 4px 12px rgba(70,58,48,.08);
}

.welcome-icon{
    width:48px;
    min-width:48px;
    height:100%;

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

    background:#7b6858;
    color:#fff;
    font-size:18px;

    position:relative;
    z-index:2;
}

.welcome-text{
    white-space:nowrap;
    display:flex;
    align-items:center;
    gap:10px;

    font-size:13px;
    color:#554a42;

    animation:moveText 13s linear infinite;
}

.welcome-text i{
    color:#8b7562;
    font-size:14px;
}

@keyframes moveText{
    from{
        transform:translateX(105%);
    }
    to{
        transform:translateX(-115%);
    }
}

/* =========================
   المربعات الأربعة
========================= */

.actions{
    width:calc(100% - 20px);
    max-width:700px;
    margin:0 auto 14px;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.action{
    min-height:58px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    padding:7px 4px;

    background:#fffdfb;
    border:1px solid #e5ded6;
    border-radius:13px;

    color:#574c44;
    text-decoration:none;

    box-shadow:
        0 4px 10px rgba(67,56,47,.07);

    font-family:Changa, sans-serif;
    font-size:11px;

    cursor:pointer;

    opacity:0;
    transform:translateY(35px);

    animation:boxesUp .65s cubic-bezier(.22,.61,.36,1) forwards;
}

.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;
}

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

.action i{
    font-size:16px;
    color:#806d5d;
    flex-shrink:0;
}

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

/* =========================
   CBOX
========================= */

#cboxdiv{
    position:relative;
    margin:0 auto;
    width:100%;
    font-size:0;
    line-height:0;
}

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

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

/* =========================
   الفوتر
========================= */

.footer{
    text-align:center;
    padding:8px 5px;
    margin-top:5px;

    background:#ebe6df;
    color:#80766d;

    font-family:Changa, sans-serif;
    font-size:11px;

    border-top:1px solid #ddd5cc;
}

/* =========================
   الهاتف
========================= */

@media(max-width:480px){

    .top-image{
        width:calc(100% - 16px);
        margin-top:9px;
        border-radius:15px;
    }

    .welcome-bar{
        width:calc(100% - 16px);
        height:45px;
        border-radius:12px;
    }

    .welcome-icon{
        width:43px;
        min-width:43px;
        font-size:16px;
    }

    .welcome-text{
        font-size:12px;
    }

    .actions{
        width:calc(100% - 16px);
        gap:6px;
    }

    .action{
        min-height:56px;
        border-radius:12px;
        font-size:10px;
        gap:4px;
    }

    .action i{
        font-size:15px;
    }
}