.ejaz-hero{
    padding:20px 22px;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(440px,680px);
    gap:16px;
    align-items:center;
    margin-bottom:16px;
    background:linear-gradient(135deg,rgba(255,250,240,.96),rgba(255,240,205,.9));
}

.ejaz-kicker{
    display:inline-flex;
    background:#fff;
    border:1px solid rgba(185,138,47,.32);
    color:#8e5d22;
    border-radius:999px;
    padding:7px 12px;
    font-weight:900;
    margin-bottom:8px;
}

.ejaz-hero h2{
    margin:0;
    color:#5b3a18;
    font-size:34px;
    font-weight:900;
}

.ejaz-hero p{
    margin:8px 0 0;
    color:#746956;
    line-height:1.8;
    font-weight:700;
}

.ejaz-form{
    display:grid;
    grid-template-columns:1fr 120px auto;
    gap:9px;
    align-items:end;
}

.ejaz-form label{
    display:grid;
    gap:5px;
    background:#fff;
    border:1px solid rgba(91,58,24,.18);
    border-radius:16px;
    padding:10px 12px;
}

.ejaz-form span{
    color:#746956;
    font-size:12px;
    font-weight:900;
}

.ejaz-form select{
    border:0;
    outline:0;
    background:transparent;
    color:#5b3a18;
    font-size:16px;
    font-weight:900;
    font-family:Tajawal,Arial,sans-serif;
}

.ejaz-form button{
    border:0;
    border-radius:16px;
    padding:18px 20px;
    background:linear-gradient(135deg,#8e5d22,#c99a3e);
    color:#fff;
    font-weight:900;
    font-family:Tajawal,Arial,sans-serif;
    cursor:pointer;
}

.ejaz-layout{
    display:grid;
    grid-template-columns:420px minmax(0,1fr) 320px;
    gap:16px;
    align-items:start;
}

.ejaz-mushaf-panel,
.ejaz-side-panel{
    position:sticky;
    top:124px;
}

.ejaz-mushaf-frame{
    background:#f3e5c5;
    padding:14px;
    min-height:620px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ejaz-mushaf-img{
    display:block;
    width:100%;
    max-height:760px;
    object-fit:contain;
    border-radius:13px;
    background:#fff;
    border:1px solid rgba(91,58,24,.14);
    box-shadow:0 18px 38px rgba(0,0,0,.16);
}

.ejaz-tools{
    display:flex;
    gap:8px;
    padding:12px 14px 16px;
    border-top:1px solid rgba(91,58,24,.12);
}

.ejaz-tools a{
    flex:1;
    text-align:center;
    background:#fff;
    border:1px solid rgba(91,58,24,.18);
    border-radius:14px;
    padding:10px;
    font-weight:900;
    color:#5b3a18;
}

.ejaz-stats{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
    padding:14px;
}

.ejaz-stats div{
    background:#fff;
    border:1px solid rgba(91,58,24,.16);
    border-radius:18px;
    padding:12px;
    text-align:center;
}

.ejaz-stats b{
    display:block;
    color:#b3342c;
    font-size:24px;
    font-weight:900;
}

.ejaz-stats span{
    color:#746956;
    font-size:12px;
    font-weight:900;
}

.ejaz-chars{
    margin:0 14px 14px;
    padding:12px 14px;
    background:#fffdf7;
    border:1px solid rgba(91,58,24,.14);
    border-radius:16px;
    color:#5b3a18;
    line-height:1.8;
}

.ejaz-chars span{
    font-family:Amiri,serif;
    font-size:22px;
    color:#b3342c;
}

.ejaz-ayat-list{
    display:grid;
    gap:10px;
    padding:0 14px 16px;
    max-height:680px;
    overflow:auto;
}

.ejaz-ayah-card{
    background:#fffdf7;
    border:1px solid rgba(91,58,24,.16);
    border-radius:18px;
    padding:14px;
    cursor:pointer;
    transition:.2s;
}

.ejaz-ayah-card:hover,
.ejaz-ayah-card.active{
    border-color:rgba(179,52,44,.48);
    background:linear-gradient(135deg,#fffdf7,#fff5df);
    box-shadow:0 16px 32px rgba(179,52,44,.10);
}

.ejaz-ayah-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    color:#5b3a18;
    font-weight:900;
    margin-bottom:8px;
}

.ejaz-ayah-meta span{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    background:#fff8e8;
    border:1px solid rgba(91,58,24,.16);
    border-radius:50%;
}

.ejaz-ayah-meta em{
    font-style:normal;
    color:#746956;
    font-size:13px;
}

.ejaz-ayah-text{
    font-family:Amiri,serif;
    font-size:25px;
    line-height:2;
    color:#1f1a12;
    text-align:right;
}

.ejaz-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
}

.ejaz-actions a{
    border:1px solid rgba(91,58,24,.18);
    background:#fff8e8;
    color:#5b3a18;
    border-radius:13px;
    padding:8px 11px;
    font-weight:900;
    font-size:13px;
}

.ejaz-words-box{
    margin:0 14px 16px;
    background:#fff;
    border:1px solid rgba(91,58,24,.14);
    border-radius:18px;
    overflow:hidden;
}

.panel-head.mini{
    min-height:auto;
    padding:12px 14px;
}

.ejaz-words-table-wrap{
    overflow:auto;
}

.ejaz-words-table{
    width:100%;
    border-collapse:collapse;
    min-width:720px;
}

.ejaz-words-table th,
.ejaz-words-table td{
    padding:10px;
    border-bottom:1px solid rgba(91,58,24,.10);
    text-align:center;
}

.ejaz-words-table th{
    background:#fff8e8;
    color:#5b3a18;
    font-weight:900;
}

.ejaz-words-table td:first-child{
    font-family:Amiri,serif;
    font-size:22px;
    color:#1f1a12;
}

.ejaz-tabs{
    display:grid;
    gap:8px;
    padding:12px;
    border-bottom:1px solid rgba(91,58,24,.12);
}

.ejaz-tabs a{
    background:#fff;
    border:1px solid rgba(91,58,24,.16);
    border-radius:14px;
    padding:10px 12px;
    color:#5b3a18;
    font-weight:900;
}

.ejaz-tabs a.active{
    background:linear-gradient(135deg,#8e5d22,#c99a3e);
    color:#fff;
}

.ejaz-part-list{
    display:grid;
    gap:7px;
    padding:12px;
    max-height:620px;
    overflow:auto;
}

.ejaz-part-list a{
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
    background:#fff;
    border:1px solid rgba(91,58,24,.16);
    border-radius:14px;
    padding:10px 12px;
    color:#5b3a18;
    font-weight:900;
}

.ejaz-part-list a.active{
    border-color:rgba(179,52,44,.5);
    background:#fff5df;
}

.ejaz-part-list b{
    background:#fff8e8;
    border:1px solid rgba(91,58,24,.12);
    border-radius:999px;
    padding:4px 9px;
}

@media(max-width:1350px){
    .ejaz-layout{
        grid-template-columns:380px minmax(0,1fr);
    }

    .ejaz-side-panel{
        grid-column:1/-1;
        position:relative;
        top:auto;
    }

    .ejaz-tabs{
        grid-template-columns:repeat(4,1fr);
    }

    .ejaz-part-list{
        grid-template-columns:repeat(3,1fr);
        max-height:none;
    }
}

@media(max-width:900px){
    .ejaz-hero,
    .ejaz-layout{
        grid-template-columns:1fr;
    }

    .ejaz-form{
        grid-template-columns:1fr;
    }

    .ejaz-mushaf-panel{
        position:relative;
        top:auto;
    }

    .ejaz-stats{
        grid-template-columns:1fr 1fr;
    }

    .ejaz-part-list,
    .ejaz-tabs{
        grid-template-columns:1fr;
    }

    .ejaz-mushaf-frame{
        min-height:auto;
    }

    .ejaz-mushaf-img{
        max-width:420px;
    }

    .ejaz-ayat-list{
        max-height:none;
    }
}

@media(max-width:520px){
    .ejaz-hero{
        padding:14px;
    }

    .ejaz-hero h2{
        font-size:27px;
    }

    .ejaz-stats{
        grid-template-columns:1fr;
    }

    .ejaz-ayah-text{
        font-size:22px;
        line-height:2;
    }

    .ejaz-actions a{
        width:100%;
        text-align:center;
    }
}



.ejaz-data-panel{
    margin:0 14px 14px;
    background:#fffdf7;
    border:1px solid rgba(91,58,24,.16);
    border-radius:18px;
    overflow:hidden;
}

.ejaz-data-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:13px 15px;
    background:linear-gradient(135deg,#fff8e8,#fff);
    border-bottom:1px solid rgba(91,58,24,.12);
}

.ejaz-data-title h3{
    margin:0;
    color:#5b3a18;
    font-size:18px;
    font-weight:900;
}

.ejaz-data-title span{
    color:#746956;
    font-weight:900;
    font-size:13px;
}

.ejaz-data-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:0;
}

.ejaz-data-grid div{
    padding:11px 13px;
    border-bottom:1px solid rgba(91,58,24,.08);
    border-left:1px solid rgba(91,58,24,.08);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.ejaz-data-grid span{
    color:#746956;
    font-size:13px;
    font-weight:900;
}

.ejaz-data-grid b{
    color:#5b3a18;
    font-size:16px;
    font-weight:900;
    text-align:left;
    direction:ltr;
}

.ejaz-data-grid div:nth-child(7) b,
.ejaz-data-grid div:nth-child(8) b{
    font-family:Amiri,serif;
    font-size:20px;
    direction:rtl;
    color:#b3342c;
}

@media(max-width:700px){
    .ejaz-data-grid{
        grid-template-columns:1fr;
    }

    .ejaz-data-title{
        display:grid;
    }
}



.ejaz-check-option{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
}

.ejaz-check-option input{
    width:18px;
    height:18px;
    accent-color:#b3342c;
}

.ejaz-word-dot-summary{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:8px;
    padding:12px;
    background:#fffdf7;
    border-bottom:1px solid rgba(91,58,24,.12);
}

.ejaz-word-dot-summary div{
    background:#fff;
    border:1px solid rgba(91,58,24,.12);
    border-radius:13px;
    padding:10px;
    text-align:center;
}

.ejaz-word-dot-summary b{
    display:block;
    color:#b3342c;
    font-size:20px;
    font-weight:900;
}

.ejaz-word-dot-summary span{
    color:#746956;
    font-size:12px;
    font-weight:900;
}

.ejaz-no-dots-only .ejaz-words-table tr.word-has-dots{
    display:none;
}

.ejaz-words-table tr.word-no-dots td{
    background:#fffdf7;
}

.ejaz-words-table tr.word-no-dots td:first-child{
    color:#b3342c;
    font-weight:900;
}

@media(max-width:900px){
    .ejaz-word-dot-summary{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:520px){
    .ejaz-word-dot-summary{
        grid-template-columns:1fr;
    }
}