/* ==================================================
   الألوان الأساسية
================================================== */

:root{
    --main:#3E2521;
    --main2:#53342D;

    --page:#ededed;
    --box:#f8f8f8;
    --card:#ffffff;

    --text:#302522;
    --border:#ded8d5;
}


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

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
}

body{
    background:var(--page);
    color:var(--text);
    font-family:'Cairo',sans-serif;
    overflow-x:hidden;
}

button,
input{
    font-family:'Cairo',sans-serif;
}


/* ==================================================
   الشريط العلوي
================================================== */

.top-moving-bar{
    position:relative;
    width:100%;
    height:48px;

    background:var(--main);
    color:#fff;

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

    z-index:100;
}

.top-moving-content{
    width:100%;
    padding:0 50px;

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

    gap:9px;

    font-size:11px;
    font-weight:600;
}

.top-moving-content i{
    font-size:15px;
}

.top-moving-line{
    width:24px;
    height:1px;
    background:rgba(255,255,255,.35);
}


/* ==================================================
   أيقونة الحائط
================================================== */

.top-menu-icon{
    position:absolute;

    right:9px;
    top:50%;

    transform:translateY(-50%);

    width:35px;
    height:35px;

    border:0;
    border-radius:9px;

    background:rgba(255,255,255,.13);
    color:#fff;

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

    font-size:17px;

    cursor:pointer;
}


/* ==================================================
   مربعات الخدمات
================================================== */

.action-area{
    width:100%;
    max-width:700px;

    margin:10px auto 10px;

    padding:0 7px;

    display:grid;
    grid-template-columns:repeat(4,1fr);

    gap:5px;
}


/* ==================================================
   المربع الاحترافي
================================================== */

.action-box{
    position:relative;

    height:60px;

    border:1px solid #ded9d6;
    border-radius:12px;

    background:#f8f8f8;

    color:#302522;

    cursor:pointer;

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

    gap:6px;

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

    /* ظل حاد وواضح */
    box-shadow:
        0 3px 0 #c8c2bf,
        0 6px 13px rgba(0,0,0,.16);

    transition:
        transform .12s ease,
        box-shadow .12s ease,
        background .12s ease;
}


/* الخط العلوي */

.action-box::before{
    content:"";

    position:absolute;

    top:0;
    right:12px;
    left:12px;

    height:2px;

    background:var(--main);

    border-radius:0 0 4px 4px;
}


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

.action-box i{
    font-size:18px;
    color:var(--main);
}


/* الضغط */

.action-box:active{
    transform:translateY(3px);

    box-shadow:
        0 1px 0 #c8c2bf,
        0 3px 7px rgba(0,0,0,.12);
}


/* ==================================================
   الحائط
================================================== */

.wall-overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.22);

    z-index:10000;

    visibility:hidden;
    opacity:0;

    transition:opacity .18s ease;
}

.wall-overlay.open{
    visibility:visible;
    opacity:1;
}


/* ==================================================
   لوحة الحائط
   نصف الشاشة
================================================== */

.wall-panel{
    position:absolute;

    top:0;
    right:0;

    width:50vw;
    height:100vh;

    background:#fff;

    box-shadow:
        -8px 0 22px rgba(0,0,0,.20);

    transform:translateX(100%);

    transition:transform .22s ease;

    display:flex;
    flex-direction:column;

    overflow-y:auto;
}

.wall-overlay.open .wall-panel{
    transform:translateX(0);
}


/* ==================================================
   رأس الحائط
================================================== */

.wall-head{
    height:60px;
    min-height:60px;

    padding:0 12px;

    background:var(--main);
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.wall-title{
    display:flex;
    align-items:center;

    gap:8px;

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

.wall-title i{
    font-size:17px;
}

.wall-close{
    width:37px;
    height:37px;

    border:0;
    border-radius:9px;

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

    color:#fff;

    font-size:18px;

    cursor:pointer;
}

.wall-content{
    padding:10px;
}


/* ==================================================
   بطاقة
================================================== */

.youtube-card{
    width:100%;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:13px;

    padding:11px;

    margin-bottom:10px;

    box-shadow:
        0 3px 9px rgba(0,0,0,.07);
}


/* ==================================================
   يوتيوب
================================================== */

.youtube-title{
    display:flex;
    align-items:center;

    gap:7px;

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

    margin-bottom:9px;
}

.youtube-title i{
    color:#e00000;
    font-size:18px;
}

.youtube-input-row{
    display:flex;
    gap:5px;
}

.youtube-input{
    flex:1;
    min-width:0;

    height:42px;

    border:1px solid var(--border);

    border-radius:9px;

    padding:0 9px;

    outline:none;

    background:#f7f7f7;

    color:var(--text);

    font-size:10px;

    direction:ltr;
    text-align:left;
}

.youtube-input:focus{
    border-color:var(--main);
}

.youtube-play{
    width:43px;
    height:42px;

    border:0;
    border-radius:9px;

    background:var(--main);

    color:#fff;

    cursor:pointer;

    font-size:15px;
}

.youtube-player{
    width:100%;

    margin-top:9px;

    aspect-ratio:16/9;

    border-radius:10px;

    overflow:hidden;

    background:#111;

    display:none;
}

.youtube-player iframe{
    width:100%;
    height:100%;
    border:0;
}


/* ==================================================
   الألوان
================================================== */

.colors-title{
    font-size:12px;
    font-weight:700;

    margin:1px 0 9px;
}

.color-picker{
    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:6px;
}

.color-choice{
    height:35px;

    border:2px solid #fff;

    border-radius:9px;

    cursor:pointer;

    box-shadow:
        0 2px 6px rgba(0,0,0,.12);
}

.color-choice.active{
    outline:2px solid var(--main);
    outline-offset:1px;
}


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

#cboxdiv{
    position:relative;

    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;

    font-size:10px;

    padding:7px;

    background:#f4f4f4;

    color:#6D7B8D;
}


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

@media(max-width:600px){

    .top-moving-bar{
        height:47px;
    }

    .top-moving-content{
        padding:0 46px;
        font-size:9px;
        gap:6px;
    }

    .top-menu-icon{
        right:7px;

        width:34px;
        height:34px;
    }

    .action-area{
        padding:0 6px;
        margin-top:8px;

        gap:4px;
    }

    .action-box{
        height:58px;

        border-radius:11px;

        gap:4px;

        font-size:8px;
    }

    .action-box i{
        font-size:16px;
    }

    /*
       يبقى نصف الشاشة
    */

    .wall-panel{
        width:50vw;
        min-width:300px;
    }

    .wall-content{
        padding:8px;
    }

    .youtube-card{
        padding:9px;
    }

}


/* ==================================================
   الأجهزة الصغيرة جداً
================================================== */

@media(max-width:350px){

    .wall-panel{
        width:100vw;
        min-width:0;
    }

}