:root{
    --cardy-navy:#123b60;
    --cardy-deep:#17143e;
    --cardy-purple:#6252dc;
}

/* ==============================
   CARDY UNIFIED HERO
   ============================== */

.cardy-page-hero{
    position:relative;
    isolation:isolate;
    overflow:hidden;

    min-height:178px;
    margin-bottom:22px;
    padding:29px 32px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:35px;

    border:1px solid rgba(255,255,255,.07);
    border-radius:28px;

    background:
        radial-gradient(
            circle at 92% -25%,
            rgb(8 18 66 / 68%),
            transparent 34%
        ),
        linear-gradient(
            125deg,
            #0c3098 0%,
            #103852 48%,
            #010528 100% 100%
        ) !important;

    box-shadow:
        0 18px 45px rgba(6,15,48,.15);
}


/* الدائرة الكبيرة اليسرى */
.cardy-page-hero::before{
    content:"";
    position:absolute;

    width:235px;
    height:235px;

    left:-110px;
    bottom:-145px;

    border-radius:50%;
    border:25px solid rgba(255,255,255,.045);

    z-index:-1;
}


/* الدائرة العلوية */
.cardy-page-hero::after{
    content:"";
    position:absolute;

    width:105px;
    height:105px;

    right:-30px;
    top:-43px;

    border-radius:50%;

    background:rgb(154 158 161 / 27%) !important;

    z-index:-1;
}


.cardy-hero-copy{
    min-width:0;
}


.cardy-hero-eyebrow{
    width:max-content;
    max-width:100%;

    display:flex;
    align-items:center;
    gap:9px;

    margin-bottom:11px;

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

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

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


.cardy-hero-eyebrow span{
    width:8px;
    height:8px;

    flex:0 0 8px;

    border-radius:50%;

    background:#68b6d8;

    box-shadow:
        0 0 0 4px rgba(104,182,216,.10);
}


.cardy-page-hero h1{
    margin:0;

    color:#fff;

    font-size:clamp(28px,3vw,39px);
    line-height:1.35;
    font-weight:900;

    letter-spacing:-.7px;
}


.cardy-page-hero p{
    margin:7px 0 0;

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

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


.cardy-hero-actions{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:10px;
}


.cardy-hero-btn{
    min-width:145px;
    height:47px;

    padding:0 18px;

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

    border-radius:14px;

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

    transition:.18s ease;
}


.cardy-hero-btn:hover{
    transform:translateY(-2px);
}


.cardy-hero-btn.primary{
    color:#123b60;

    background:#fff;

    box-shadow:
        0 10px 26px rgba(0,0,0,.13);
}


.cardy-hero-btn.secondary{
    color:#fff;

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

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


.cardy-hero-btn.secondary:hover{
    background:rgba(255,255,255,.13);
}


@media(max-width:720px){

    .cardy-page-hero{
        min-height:auto;
        padding:24px 20px;

        align-items:flex-start;
        flex-direction:column;

        border-radius:22px;
    }

    .cardy-hero-actions{
        width:100%;
    }

    .cardy-hero-btn{
        flex:1;
        min-width:0;
    }
}

/* ==============================
   CARDY GLOBAL FOOTER
   ============================== */

.cardy-footer{
    background:#fff;
    border-top:1px solid #e8eaf1;
}

.cardy-footer-inner{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.cardy-footer-brand{
    display:flex;
    align-items:center;
    gap:13px;
    color:#8b8e9e;
    font-size:11px;
    font-weight:700;
}

.cardy-footer-brand img{
    display:block;
    width:auto;
    height:31px;
    max-width:105px;
    object-fit:contain;
}

.cardy-footer-copy{
    color:#a0a3b0;
    font-size:11px;
}

@media(max-width:600px){
    .cardy-footer-inner{
        min-height:94px;
        padding-top:18px;
        padding-bottom:18px;
        flex-direction:column;
        justify-content:center;
        gap:9px;
    }
}


/* ==============================
   CARDY FOOTER FINAL
   ============================== */

.cardy-footer{
    margin-top:0;
    background:#ffffff;
    border-top:1px solid #e7e9f1;
}

.cardy-footer-inner{
    min-height:68px;

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

.cardy-footer-brand{
    display:flex;
    align-items:center;
    gap:10px;

    color:#8b8e9e;
    font-size:10px;
    font-weight:700;
}

.cardy-footer-brand img{
    display:block !important;

    width:auto !important;
    height:27px !important;
    max-width:92px !important;

    object-fit:contain;
}

.cardy-footer-copy{
    color:#9da0ad;
    font-size:10px;
    white-space:nowrap;
}

@media(max-width:600px){

    .cardy-footer-inner{
        min-height:82px;
        padding:14px 0;

        flex-direction:column;
        justify-content:center;
        gap:7px;
    }

    .cardy-footer-brand img{
        height:24px !important;
        max-width:84px !important;
    }
}

/* /CARDY FOOTER FINAL */

/* =========================================================
   CARDY EDITOR FINAL LAYOUT V5
   ========================================================= */

/* ===== هوية الجهة أعلى المحرر ===== */



.cardy-identity-main{
    display:flex !important;
    align-items:center !important;
    gap:11px !important;
}

.cardy-identity-logo{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;

    border-radius:14px !important;
}

.cardy-identity-upload{
    min-width:145px !important;
    height:42px !important;

    padding:0 13px !important;

    border-radius:12px !important;

    background:#f4f8fb !important;
    border:1px solid #dbe5ed !important;
}


/* ===== رفع التصميم: أقل زحمة ===== */

.cardy-upload-box{
    min-height:102px !important;

    padding:14px !important;

    display:grid !important;
    grid-template-columns:48px minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;

    align-items:center !important;
    column-gap:12px !important;
    row-gap:3px !important;

    text-align:right !important;
}

.cardy-upload-icon{
    grid-row:1 / 3 !important;

    width:48px !important;
    height:48px !important;

    flex:0 0 48px !important;

    border-radius:14px !important;
}

.cardy-upload-text{
    align-items:flex-start !important;
    gap:1px !important;
}

.cardy-upload-text strong{
    font-size:12px !important;
}

.cardy-upload-text small{
    font-size:9px !important;
    line-height:1.5 !important;

    white-space:normal !important;
}

.cardy-upload-type{
    display:none !important;
}

.cardy-upload-note{
    margin:6px 2px 0 !important;

    text-align:right !important;

    font-size:9px !important;
}


/* ===== الحجم ثم سطر الأدوات ===== */

.gc-tools-row{
    display:grid !important;
    grid-template-columns:105px minmax(0,1fr) !important;

    gap:8px !important;

    align-items:center !important;

    margin-top:10px !important;
}

.gc-tool-center{
    width:100% !important;
    height:40px !important;

    padding:0 10px !important;

    border:1px solid #dce4ec !important;
    border-radius:11px !important;

    background:#f5f8fa !important;

    color:#123b60 !important;

    font-family:inherit !important;
    font-size:10px !important;
    font-weight:800 !important;

    cursor:pointer !important;
}

.gc-tool-center:hover{
    background:#edf3f7 !important;
}


.gc-tool-color{
    height:40px !important;

    display:grid !important;
    grid-template-columns:auto 34px minmax(0,1fr) !important;

    align-items:center !important;
    gap:7px !important;

    padding:0 7px !important;

    border:1px solid #dfe5ec !important;
    border-radius:11px !important;

    background:#fff !important;
}

.gc-tool-color > span{
    color:#7e8797 !important;

    font-size:9px !important;
    font-weight:800 !important;
}

.gc-tool-color input[type="color"]{
    width:30px !important;
    height:30px !important;

    padding:2px !important;

    border:0 !important;

    background:transparent !important;
}

.gc-tool-color .input{
    height:30px !important;

    padding:0 5px !important;

    border:0 !important;

    background:transparent !important;

    box-shadow:none !important;

    font-size:10px !important;
}


/* حفظ التصميم بمحاذاة عمود الإعدادات */
.gc-main-action{
    width:100% !important;
    min-width:0 !important;
}


/* responsive */
@media(max-width:700px){

    .gc-tools-row{
        grid-template-columns:95px minmax(0,1fr) !important;
    }

    
}

/* /CARDY EDITOR FINAL LAYOUT V5 */
