@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800;900&display=swap');

/* RN IRAQ REFERENCE LAYOUT V8 */

:root{
    --rn-iq-ink:#20243d;
    --rn-iq-muted:#697086;
    --rn-iq-blue:#2c3494;
    --rn-iq-blue-2:#252655;
    --rn-iq-blue-soft:#eff0ff;
    --rn-iq-green:#10b981;
    --rn-iq-orange:#f15a2a;
    --rn-iq-orange-soft:#fff0eb;
    --rn-iq-red:#dc3545;
    --rn-iq-line:#e5e7ef;
    --rn-iq-bg:#f5f7fb;
    --rn-iq-white:#fff;
    --rn-iq-shadow:0 16px 44px rgba(37,38,85,.09);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--rn-iq-bg);
}

.rn-iq-ref-page{
    color:var(--rn-iq-ink);
    background:var(--rn-iq-bg);
    direction:rtl;
    font-family:Alexandria,Cairo,Tahoma,Arial,sans-serif;
    line-height:1.8;
}

.rn-iq-ref-page a{
    color:inherit;
    text-decoration:none;
}

.rn-iq-ref-wrap{
    width:min(1160px,calc(100% - 32px));
    margin:auto;
}

/* شريط المراحل بنفس أسلوب تنقل الملف المرجعي */

.rn-iq-ref-stage-nav{
    background:#fff;
    border-bottom:1px solid var(--rn-iq-line);
}

.rn-iq-ref-stage-nav .rn-iq-ref-wrap{
    min-height:62px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.rn-iq-ref-stage-nav a{
    padding:10px 18px;
    border-radius:10px;
    color:#465269;
    font-size:14px;
    font-weight:800;
    transition:.2s;
}

.rn-iq-ref-stage-nav a:hover,
.rn-iq-ref-stage-nav a.active{
    color:var(--rn-iq-blue);
    background:var(--rn-iq-blue-soft);
}

/* الهيرو: نفس التقسيم والنسب في الملف المرجعي */

.rn-iq-ref-hero{
    padding:64px 0 44px;
    border-bottom:1px solid #e4e7f5;
    background:
        radial-gradient(
            circle at 15% 10%,
            #e6e8ff 0,
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #fff 0,
            #f5f5ff 100%
        );
}

.rn-iq-ref-hero-grid{
    display:grid;
    grid-template-columns:1.03fr .97fr;
    align-items:center;
    gap:46px;
}

.rn-iq-ref-eyebrow{
    display:inline-flex;
    align-items:center;
    padding:7px 13px;
    border-radius:999px;
    color:var(--rn-iq-blue-2);
    background:#e9eaff;
    font-size:13px;
    font-weight:800;
}

.rn-iq-ref-hero h1{
    margin:18px 0;
    color:#202052;
    font-size:clamp(36px,5vw,62px);
    line-height:1.25;
    letter-spacing:-1px;
    font-weight:900;
}

.rn-iq-ref-hero p{
    max-width:680px;
    margin:0;
    color:#5d637a;
    font-size:17px;
    line-height:1.95;
}

.rn-iq-ref-actions{
    display:flex;
    gap:12px;
    margin-top:27px;
}

.rn-iq-ref-btn{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 24px;
    border-radius:12px;
    font-weight:900;
    transition:.2s;
}

.rn-iq-ref-btn-primary{
    color:#fff!important;
    background:linear-gradient(
        135deg,
        var(--rn-iq-blue),
        var(--rn-iq-blue-2)
    );
    box-shadow:0 10px 24px rgba(44,52,148,.23);
}

.rn-iq-ref-btn-primary:hover{
    transform:translateY(-2px);
}

.rn-iq-ref-btn-secondary{
    color:var(--rn-iq-blue-2)!important;
    border:1px solid #cfd2e8;
    background:#fff;
}

/* بطاقة الحالة: نفس تركيب الملف المرجعي */

.rn-iq-ref-status-card{
    padding:26px;
    border:1px solid #dfe1f1;
    border-radius:22px;
    background:#fff;
    box-shadow:var(--rn-iq-shadow);
}

.rn-iq-ref-status-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding-bottom:17px;
    border-bottom:1px solid var(--rn-iq-line);
}

.rn-iq-ref-status-head span{
    color:var(--rn-iq-muted);
    font-size:14px;
    font-weight:700;
}

.rn-iq-ref-status-head strong{
    padding:6px 12px;
    border:1px solid #ffd3c5;
    border-radius:999px;
    color:#b33d18;
    background:var(--rn-iq-orange-soft);
    font-size:12px;
    white-space:nowrap;
}

.rn-iq-ref-phase-list{
    display:grid;
    gap:17px;
    margin-top:21px;
}

.rn-iq-ref-phase>div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-bottom:7px;
    color:#30364e;
    font-size:14px;
    font-weight:700;
}

.rn-iq-ref-phase b{
    color:var(--rn-iq-blue);
}

.rn-iq-ref-phase i{
    height:9px;
    display:block;
    overflow:hidden;
    border-radius:999px;
    background:#edf0f5;
}

.rn-iq-ref-phase i u{
    height:100%;
    display:block;
    border-radius:999px;
    background:var(--rn-iq-orange);
    text-decoration:none;
}

.rn-iq-ref-phase-uploading i u{
    background:var(--rn-iq-blue);
}

.rn-iq-ref-phase-ready i u{
    background:var(--rn-iq-green);
}

.rn-iq-ref-official-note{
    margin:18px 0 0!important;
    padding-top:14px;
    border-top:1px dashed #d8dbe8;
    color:#697086!important;
    font-size:12px!important;
}

/* التنويه مطابق لفكرة info-block */

.rn-iq-ref-info-block{
    padding:48px 0 0;
    background:#fff;
}

.rn-iq-ref-info-block .rn-iq-ref-wrap{
    padding:28px;
    border:1px solid var(--rn-iq-line);
    border-radius:18px;
    background:#f8f9fc;
}

.rn-iq-ref-info-block h2{
    margin:0 0 8px;
    color:#252655;
    font-size:24px;
}

.rn-iq-ref-info-block p{
    margin:0;
    color:#60677b;
}

/* قائمة النتائج بنفس بناء وصفوف الموقع المرجعي */

.rn-iq-ref-results-section{
    padding:54px 0;
    background:#fff;
}

.rn-iq-ref-section-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:19px;
}

.rn-iq-ref-section-title span{
    color:var(--rn-iq-blue);
    font-size:13px;
    font-weight:900;
}

.rn-iq-ref-section-title h2{
    margin:2px 0 0;
    color:#252655;
    font-size:28px;
    line-height:1.5;
}

.rn-iq-ref-section-title>b{
    padding:7px 12px;
    border:1px solid var(--rn-iq-line);
    border-radius:999px;
    color:#5f667b;
    background:#fff;
    font-size:13px;
    white-space:nowrap;
}

.rn-iq-ref-branch-block+ .rn-iq-ref-branch-block{
    margin-top:28px;
}

.rn-iq-ref-branch-title{
    margin:0 0 10px;
    color:#596076;
    font-size:13px;
    font-weight:900;
}

.rn-iq-ref-results-table{
    overflow:hidden;
    border:1px solid var(--rn-iq-line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 34px rgba(37,38,85,.05);
}

.rn-iq-ref-table-head,
.rn-iq-ref-result-row{
    display:grid;
    grid-template-columns:1.2fr .8fr .65fr;
    align-items:center;
    padding:15px 24px;
}

.rn-iq-ref-table-head{
    color:#fff;
    background:var(--rn-iq-blue-2);
    font-size:13px;
    font-weight:800;
}

.rn-iq-ref-result-row{
    min-height:69px;
    border-top:1px solid #edf0f4;
    transition:.18s;
}

.rn-iq-ref-result-row:hover{
    padding-inline-start:29px;
    background:#f8f8ff;
}

.rn-iq-ref-result-row strong{
    color:#252655;
    font-size:16px;
    font-weight:900;
}

.rn-iq-ref-status{
    width:max-content;
    min-width:108px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.rn-iq-ref-status.is-ready{
    color:#087846;
    background:#dcf7e9;
}

.rn-iq-ref-status.is-uploading{
    color:#2c3494;
    background:#eceeff;
}

.rn-iq-ref-status.is-soon{
    color:#b33d18;
    background:#fff0eb;
}

.rn-iq-ref-status.is-waiting{
    color:#9c2f3a;
    background:#f4e6e8;
}

.rn-iq-ref-open-link{
    justify-self:start;
    color:var(--rn-iq-blue);
    font-size:13px;
    font-weight:900;
}

.rn-iq-ref-open-link:after{
    content:' ←';
}

/* الشريط النهائي مطابق لبناء official-box */

.rn-iq-ref-official-box{
    padding:0 0 48px;
    background:#fff;
}

.rn-iq-ref-official-box .rn-iq-ref-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:24px 28px;
    border-radius:18px;
    color:#fff;
    background:var(--rn-iq-blue-2);
}

.rn-iq-ref-official-box strong{
    font-size:20px;
}

.rn-iq-ref-official-box p{
    margin:3px 0 0;
    color:#dfe1f8;
}

.rn-iq-ref-official-box a{
    padding:10px 18px;
    border-radius:10px;
    color:var(--rn-iq-blue-2);
    background:#fff;
    font-weight:900;
    white-space:nowrap;
}

@media(max-width:800px){
    .rn-iq-ref-stage-nav .rn-iq-ref-wrap{
        gap:4px;
    }

    .rn-iq-ref-stage-nav a{
        flex:1;
        padding:9px 7px;
        font-size:12px;
        text-align:center;
    }

    .rn-iq-ref-hero{
        padding-top:40px;
    }

    .rn-iq-ref-hero-grid{
        grid-template-columns:1fr;
    }

    .rn-iq-ref-hero h1{
        font-size:38px;
    }

    .rn-iq-ref-table-head,
    .rn-iq-ref-result-row{
        grid-template-columns:1fr .78fr .7fr;
        padding:13px;
    }

    .rn-iq-ref-result-row strong{
        font-size:14px;
    }

    .rn-iq-ref-open-link{
        font-size:11px;
    }

    .rn-iq-ref-status{
        min-width:88px;
        font-size:11px;
    }

    .rn-iq-ref-section-title{
        align-items:flex-start;
    }

    .rn-iq-ref-section-title h2{
        font-size:22px;
    }

    .rn-iq-ref-section-title>b{
        display:none;
    }

    .rn-iq-ref-official-box .rn-iq-ref-wrap{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:520px){
    .rn-iq-ref-wrap{
        width:min(100% - 22px,1160px);
    }

    .rn-iq-ref-stage-nav a{
        min-height:53px;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:11px;
        line-height:1.5;
    }

    .rn-iq-ref-actions{
        flex-direction:column;
    }

    .rn-iq-ref-btn{
        width:100%;
    }

    .rn-iq-ref-status-card{
        padding:19px;
    }

    .rn-iq-ref-table-head{
        display:none;
    }

    .rn-iq-ref-result-row{
        grid-template-columns:1fr auto;
        gap:7px;
    }

    .rn-iq-ref-open-link{
        grid-column:1/-1;
    }

    .rn-iq-ref-section-title h2{
        font-size:20px;
    }
}

@media print{
    .no-print{
        display:none!important;
    }
}

/* END RN IRAQ REFERENCE LAYOUT V8 */
