/* ezzprx linked — منسوخ من الأكاديمية (نفس هوية الموقع التسويقي (design-system.css): خلفية داكنة، أزرق أساسي، زمردي ثانوي */

@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Almarai'; font-weight: 800; font-display: swap; src: url('/fonts/almarai-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }

:root {
    --void: #0A0C12;
    --surface: #12151E;
    --surface-2: #171B27;
    --elevated: #1D2230;
    --hairline: #262B3A;
    --border-soft: rgba(255, 255, 255, 0.07);
    --text-1: #F3F4F7;
    --text-2: #A9B0C2;
    --text-3: #949CB0;
    --blue: #0B7EEF;
    --blue-bright: #4FA6FF;
    --blue-soft: rgba(11, 126, 239, 0.12);
    --emerald: #22B378;
    --emerald-soft: rgba(34, 179, 120, 0.13);
    --coral: #F0808A;
    --coral-soft: rgba(229, 85, 95, 0.13);
    --amber: #D89A4B;
    --amber-soft: rgba(216, 154, 75, 0.14);
    --font-display: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Almarai', sans-serif;
    --font-mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', monospace;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 10px;
    --bs-body-bg: #0A0C12;
    --bs-body-color: #F3F4F7;
    --bs-border-color: #262B3A;
    --bs-primary: #0B7EEF;
    --bs-primary-rgb: 11, 126, 239;
    --bs-success: #22B378;
    --bs-success-rgb: 34, 179, 120;
    --bs-danger: #E5555F;
    --bs-link-color: #4FA6FF;
    --bs-link-hover-color: #7DBCFF;
    --bs-secondary-color: #A9B0C2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Bootstrap LTR مع RTL قد يترك فائضاً أفقياً بسيطاً فتنزاح الصفحة عند scrollIntoView */
html, body { overflow-x: clip; }
body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--text-1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 66px;
    line-height: 1.75;
}
html[lang="en"] body { line-height: 1.6; }
main { flex: 1; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 800; color: var(--text-1); line-height: 1.4; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: #7DBCFF; }
.text-2 { color: var(--text-2) !important; }
.text-3 { color: var(--text-3) !important; }
.mono, .code-chip { font-family: var(--font-mono); letter-spacing: .04em; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 0; z-index: 2000; background: var(--blue); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { inset-inline-start: 1rem; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1030;
    background: rgba(10, 12, 18, 0.88) !important;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    padding: .6rem 0;
}
.brand-mark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--text-1) !important; }
.brand-mark small { font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--text-3); letter-spacing: .02em; }
.brand-mark img { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(11, 126, 239, 0.35)); }
.navbar .nav-link { color: var(--text-2); font-weight: 600; font-size: .95rem; border-radius: 8px; padding: .4rem .75rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text-1); background: rgba(255,255,255,.05); }
.navbar-toggler { border: 0; }
.navbar-toggler-icon { filter: invert(1); }
.dropdown-menu { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px; padding: .4rem; }
.dropdown-item { color: var(--text-2); border-radius: 8px; padding: .45rem .8rem; text-align: start; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--elevated); color: var(--text-1); }
.dropdown-divider { border-color: var(--hairline); }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--emerald)); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* ===== Buttons ===== */
.btn { border-radius: var(--r-sm); font-weight: 600; padding: .55rem 1.15rem; }
.btn-gold, .btn-primary {
    background: linear-gradient(135deg, #0F79E0, #0A69C7); color: #fff !important; border: none;
    box-shadow: 0 6px 18px rgba(11, 126, 239, 0.28); font-weight: 700;
}
.btn-gold:hover, .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(11, 126, 239, 0.4); }
.btn-emerald { background: var(--emerald); color: #04110b !important; border: none; font-weight: 700; }
.btn-emerald:hover { background: #2BC487; }
.btn-ghost { background: transparent; border: 1px solid var(--hairline); color: var(--text-1) !important; }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-linkedin { background: #0A66C2; color: #fff !important; border: none; }
.btn-linkedin:hover { background: #0B76E0; }
.btn:disabled, .btn.disabled { opacity: .55; transform: none; box-shadow: none; }

/* ===== Layout pieces ===== */
.page-head { padding: 2.6rem 0 1.6rem; }
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .4rem; }
.page-head p { color: var(--text-2); max-width: 680px; margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700;
    color: var(--blue-bright); background: var(--blue-soft); border: 1px solid rgba(11, 126, 239, 0.25);
    padding: .35rem .9rem; border-radius: 30px; margin-bottom: .9rem;
}
.eyebrow.emerald { color: var(--emerald); background: var(--emerald-soft); border-color: rgba(34, 179, 120, .3); }
.card-x { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.4rem; }
.card-x.flush { padding: 0; overflow: hidden; }
.card-x + .card-x { margin-top: 1rem; }
.card-title-x { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; margin-bottom: .2rem; }
.section-label { font-size: .8rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 2rem 0 .8rem; }
.divider { border-top: 1px solid var(--hairline); margin: 1.2rem 0; }
.muted-box { background: var(--surface-2); border: 1px dashed var(--hairline); border-radius: var(--r-sm); padding: 1rem 1.2rem; color: var(--text-2); }

/* ===== Hero ===== */
.hero { position: relative; padding: 4.2rem 0 3.4rem; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(11,126,239,.18), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(34,179,120,.12), transparent 70%);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.3; margin-bottom: 1rem; position: relative; }
.hero h1 .accent { background: linear-gradient(90deg, var(--blue-bright), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-2); font-size: 1.1rem; max-width: 640px; position: relative; }
.hero-steps { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; position: relative; }
.hero-steps span { display: inline-flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 30px; padding: .4rem .9rem; color: var(--text-2); font-size: .9rem; }
.hero-steps i { color: var(--emerald); }
.cert-mock { position: relative; background: #fff; border-radius: 14px; padding: 1.4rem; color: #141A28; box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(-2deg); max-width: 420px; margin-inline-start: auto; border: 6px solid #0A4FA3; }
.cert-mock .h { font-family: var(--font-display); color: #0A4FA3; font-size: 1.3rem; text-align: center; }
.cert-mock .n { font-family: var(--font-display); font-size: 1.5rem; text-align: center; margin: .5rem 0; }
.cert-mock .bar { width: 70px; height: 3px; background: #22B378; margin: 0 auto .6rem; border-radius: 2px; }
.cert-mock .t { text-align: center; color: #0A4FA3; font-weight: 700; }
.cert-mock .f { display: flex; justify-content: space-between; align-items: end; margin-top: 1rem; font-size: .75rem; color: #5B6478; }
.cert-mock .qr { width: 46px; height: 46px; background: repeating-linear-gradient(90deg, #141A28 0 4px, #fff 4px 7px), #141A28; border-radius: 3px; opacity: .85; }

/* ===== Course cards ===== */
.course-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.3rem; transition: border-color .15s, transform .15s; color: var(--text-1); }
a.course-card:hover { border-color: rgba(11,126,239,.55); transform: translateY(-2px); color: var(--text-1); }
.course-card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--blue-soft); color: var(--blue-bright); margin-bottom: .9rem; }
.course-card.soon { opacity: .55; }
.course-card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.course-card p { color: var(--text-2); font-size: .92rem; margin-bottom: .9rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .9rem; color: var(--text-3); font-size: .84rem; }
.meta i { margin-inline-end: .25rem; }
.badge-x { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .22rem .65rem; border-radius: 20px; }
.badge-x.blue { background: var(--blue-soft); color: var(--blue-bright); }
.badge-x.green { background: var(--emerald-soft); color: var(--emerald); }
.badge-x.red { background: var(--coral-soft); color: var(--coral); }
.badge-x.amber { background: var(--amber-soft); color: var(--amber); }
.badge-x.gray { background: rgba(255,255,255,.06); color: var(--text-2); }

.progress-x { height: 7px; background: var(--elevated); border-radius: 10px; overflow: hidden; }
.progress-x > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--emerald)); border-radius: 10px; }

/* ===== Lessons ===== */
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li + li { border-top: 1px solid var(--hairline); }
.lesson-list a { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; color: var(--text-1); }
.lesson-list a:hover { background: var(--surface-2); }
.lesson-list a.current { background: var(--blue-soft); }
.lesson-num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--elevated); color: var(--text-2); }
.lesson-num.done { background: var(--emerald); color: #04110b; }
.lesson-list .t { flex: 1; font-weight: 600; font-size: .95rem; line-height: 1.5; }
.lesson-list .d { color: var(--text-3); font-size: .82rem; font-family: var(--font-mono); }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: #000; border: 1px solid var(--hairline); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapters { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.4rem; font-size: .9rem; color: var(--text-2); }
.chapters li { break-inside: avoid; padding: .15rem 0; }
.chapters b { font-family: var(--font-mono); color: var(--blue-bright); font-weight: 600; margin-inline-end: .4rem; }
.notes { color: var(--text-2); white-space: pre-line; }

/* ===== Forms ===== */
.form-control, .form-select { background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-1); border-radius: var(--r-sm); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { background: var(--surface-2); color: var(--text-1); border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(11,126,239,.2); }
.form-control::placeholder { color: #6B7388; }
.form-label { font-weight: 600; color: var(--text-2); font-size: .92rem; }
.form-text { color: var(--text-3); }
.form-check-input { background-color: var(--surface-2); border-color: var(--hairline); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.otp-input { font-family: var(--font-mono); font-size: 1.9rem; letter-spacing: .6rem; text-align: center; direction: ltr; }
.auth-card { max-width: 460px; margin: 3rem auto; }
.alert-x { border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .93rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-x i { margin-top: .15rem; }
.alert-x.error { background: var(--coral-soft); color: #FFB3B9; border: 1px solid rgba(229,85,95,.3); }
.alert-x.ok { background: var(--emerald-soft); color: #7FE0B4; border: 1px solid rgba(34,179,120,.3); }
.alert-x.info { background: var(--blue-soft); color: #A8D1FF; border: 1px solid rgba(11,126,239,.3); }
.alert-x.warn { background: var(--amber-soft); color: #F0C891; border: 1px solid rgba(216,154,75,.3); }

/* ===== Dashboard ===== */
.stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.stat .v { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.stat .l { color: var(--text-3); font-size: .86rem; }
.row-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.row-item + .row-item { border-top: 1px solid var(--hairline); }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .title { font-weight: 700; }
.row-item .sub { color: var(--text-3); font-size: .86rem; }
.cert-tile { background: linear-gradient(160deg, rgba(11,126,239,.13), rgba(34,179,120,.08)); border: 1px solid rgba(11,126,239,.3); border-radius: var(--r-md); padding: 1.3rem; }
.cert-tile.revoked { background: var(--surface); border-color: rgba(229,85,95,.35); opacity: .8; }

/* ===== Exam ===== */
.exam-top { position: sticky; top: 66px; z-index: 50; background: rgba(10,12,18,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); padding: .7rem 0; }
.timer { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; padding: .3rem .9rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hairline); direction: ltr; }
.timer.low { color: var(--coral); border-color: rgba(229,85,95,.5); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.q-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.6rem; }
.q-num { color: var(--blue-bright); font-weight: 700; font-size: .9rem; }
.q-text { font-size: 1.16rem; font-weight: 600; line-height: 1.8; margin: .4rem 0 1.1rem; }
.q-image { display: block; max-width: 100%; border-radius: 12px; border: 1px solid var(--hairline); margin-bottom: 1.2rem; cursor: zoom-in; }
.q-hint { color: var(--text-3); font-size: .86rem; margin-bottom: .8rem; }
.opt { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .12s, background .12s; margin-bottom: .6rem; }
.opt:hover { border-color: rgba(11,126,239,.5); }
.opt input { margin-top: .35rem; flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.opt.checked { border-color: var(--blue); background: var(--blue-soft); }
.q-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.q-nav button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: .85rem; }
.q-nav button.answered { background: var(--emerald-soft); border-color: rgba(34,179,120,.45); color: var(--emerald); }
.q-nav button.current { border-color: var(--blue); color: var(--text-1); box-shadow: 0 0 0 2px rgba(11,126,239,.35); }
.q-nav button.flagged { border-color: var(--amber); }
.save-state { font-size: .82rem; color: var(--text-3); }
.save-state.err { color: var(--coral); }
.result-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--elevated) 0); }
.result-ring > div { width: 120px; height: 120px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.topic-row { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; }
.topic-row .name { flex: 1; }
.topic-row .progress-x { width: 120px; }
.zoom-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; place-items: center; z-index: 3000; padding: 2rem; cursor: zoom-out; }
.zoom-overlay.open { display: grid; }
.zoom-overlay img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ===== Verify ===== */
.verify-card { max-width: 640px; margin: 0 auto; }
.verify-status { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; border-radius: var(--r-md); margin-bottom: 1.2rem; }
.verify-status i { font-size: 2rem; }
.verify-status.valid { background: var(--emerald-soft); border: 1px solid rgba(34,179,120,.35); color: #7FE0B4; }
.verify-status.revoked { background: var(--coral-soft); border: 1px solid rgba(229,85,95,.35); color: #FFB3B9; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .55rem 1rem; }
.kv dt { color: var(--text-3); font-weight: 600; font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; }

/* ===== Bootstrap LTR في واجهة RTL: نقلب أصناف الهوامش والمحاذاة الفيزيائية إلى منطقية ===== */
.text-end { text-align: end !important; }
.text-start { text-align: start !important; }
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: .25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
[dir="rtl"] .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
[dir="rtl"] .form-check { padding-left: 0; padding-right: 1.5em; }
[dir="rtl"] .form-check .form-check-input { float: right; margin-left: 0; margin-right: -1.5em; }
[dir="rtl"] .form-select { background-position: left .75rem center; padding-right: .9rem; padding-left: 2.25rem; }
[dir="rtl"] .dropdown-toggle::after { margin-left: 0; margin-right: .255em; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--hairline); padding: 1.8rem 0; color: var(--text-3); font-size: .88rem; margin-top: 3rem; }
.site-footer a { color: var(--text-2); }

@media (max-width: 767px) {
    .chapters { columns: 1; }
    .kv { grid-template-columns: 1fr; }
    .cert-mock { transform: none; margin: 2rem auto 0; }
    .exam-top { top: 58px; }
}
@media print {
    .navbar, .site-footer { display: none; }
}

/* =====================================================================
   إضافات linked: الملف المهني، المحرر، السيرة
   ===================================================================== */
.brand-mark .lk { background: linear-gradient(90deg, var(--blue-bright), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }

/* الصورة */
.avatar-xl { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 2px rgba(11,126,239,.45); background: var(--elevated); display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; color: var(--text-2); }
.avatar-md { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--elevated); display: inline-grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--text-2); flex: none; }
img.avatar { object-fit: cover; }

/* الملف العام */
.profile-cover { height: 150px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(120deg, #0A2A55 0%, #0B4F8F 45%, #0F7A5C 100%); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 40%); }
.profile-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.profile-head { padding: 0 1.6rem 1.4rem; margin-top: -64px; position: relative; }
.profile-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .7rem 0 .2rem; }
.profile-head .headline { color: var(--text-1); font-size: 1.08rem; }
.profile-head .loc { color: var(--text-3); font-size: .92rem; }
.otw { display: inline-flex; align-items: center; gap: .4rem; background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(34,179,120,.35); padding: .3rem .8rem; border-radius: 30px; font-weight: 700; font-size: .85rem; }
.p-section { padding: 1.3rem 1.6rem; border-top: 1px solid var(--hairline); }
.p-section h2 { font-size: 1.12rem; margin-bottom: .9rem; }
.p-item { display: flex; gap: .9rem; }
.p-item + .p-item { margin-top: 1.1rem; }
.p-item .logo { width: 46px; height: 46px; border-radius: 10px; background: var(--elevated); display: grid; place-items: center; color: var(--text-3); flex: none; font-size: 1.2rem; }
.p-item .t { font-weight: 700; }
.p-item .s { color: var(--text-2); font-size: .92rem; }
.p-item .m { color: var(--text-3); font-size: .85rem; }
.p-item .d { color: var(--text-2); white-space: pre-line; margin-top: .35rem; font-size: .95rem; }
.summary-text { white-space: pre-line; color: var(--text-2); }

/* المهارات */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 30px; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-1); font-size: .9rem; font-weight: 600; }
.chip.verified { background: var(--emerald-soft); border-color: rgba(34,179,120,.45); color: #8BE8C0; }
.chip.verified i { color: var(--emerald); }
.chip.pending { border-style: dashed; }
.chip button { background: none; border: 0; color: var(--text-3); padding: 0; line-height: 1; margin-inline-start: .15rem; }
.chip button:hover { color: var(--coral); }
.suggest-box { position: absolute; z-index: 20; inset-inline: 0; top: 100%; margin-top: .25rem; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); max-height: 280px; overflow: auto; display: none; }
.suggest-box.open { display: block; }
.suggest-box button { display: block; width: 100%; text-align: start; background: none; border: 0; color: var(--text-1); padding: .55rem .9rem; }
.suggest-box button:hover, .suggest-box button.active { background: var(--blue-soft); }

/* شهادة موثّقة */
.cred { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid rgba(34,179,120,.3); background: linear-gradient(160deg, rgba(34,179,120,.08), rgba(11,126,239,.06)); border-radius: var(--r-md); }
.cred + .cred { margin-top: .7rem; }
.cred .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); font-size: 1.25rem; flex: none; }
.verified-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; color: var(--emerald); background: var(--emerald-soft); border-radius: 20px; padding: .12rem .55rem; }

/* المحرر */
.editor-nav { position: sticky; top: 86px; }
.editor-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.editor-nav a:hover { background: var(--surface-2); color: var(--text-1); }
.editor-nav a.active { background: var(--blue-soft); color: var(--text-1); }
.editor-nav a .bi { width: 1.2rem; text-align: center; }
.editor-nav .done { margin-inline-start: auto; color: var(--emerald); font-size: .85rem; }
.lang-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lang-pair .lbl { font-size: .78rem; color: var(--text-3); font-weight: 700; margin-bottom: .25rem; display: flex; gap: .4rem; align-items: center; }
.lang-pair .lbl .tag { background: var(--elevated); border-radius: 6px; padding: 0 .4rem; font-family: var(--font-mono); font-size: .72rem; }
.vis-option { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.vis-option + .vis-option { margin-top: .6rem; }
.vis-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.vis-option input { margin-top: .35rem; accent-color: var(--blue); }
.vis-option .t { font-weight: 700; }
.vis-option .s { color: var(--text-3); font-size: .88rem; }
.check-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.check-pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--hairline); background: var(--surface-2); border-radius: 30px; padding: .35rem .85rem; cursor: pointer; font-size: .9rem; }
.check-pill:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.check-pill input { accent-color: var(--blue); }

/* اكتمال الملف */
.ring { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--emerald) calc(var(--p) * 1%), var(--elevated) 0); flex: none; }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.tip { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-1); }
.tip + .tip { margin-top: .5rem; }
.tip:hover { border-color: rgba(11,126,239,.5); color: var(--text-1); }
.tip .pts { margin-inline-start: auto; font-size: .8rem; color: var(--emerald); font-weight: 700; white-space: nowrap; }
.copy-field { display: flex; gap: .5rem; align-items: center; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: .4rem .5rem .4rem .9rem; direction: ltr; }
.copy-field code { color: var(--blue-bright); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .88rem; }

/* السيرة */
.resume-preview { background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.45); width: 100%; display: block; }
.section-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px; }
.section-row + .section-row { margin-top: .45rem; }
.section-row .name { flex: 1; font-weight: 600; }
.section-row.off .name { color: var(--text-3); text-decoration: line-through; }
.section-row .btn { padding: .2rem .5rem; }
.tpl-option { border: 2px solid var(--hairline); border-radius: 12px; padding: .7rem; cursor: pointer; display: block; text-align: center; background: var(--surface-2); }
.tpl-option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.tpl-option input { display: none; }
.tpl-thumb { height: 74px; border-radius: 6px; background: #fff; margin-bottom: .45rem; position: relative; overflow: hidden; }
.tpl-thumb.classic::before { content: ""; position: absolute; inset: 10px 12px auto 12px; height: 8px; border-radius: 3px; background: #0A4FA3; box-shadow: 0 16px 0 -2px #D5DBE6, 0 28px 0 -2px #D5DBE6, 0 40px 0 -2px #D5DBE6; }
.tpl-thumb.modern::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 32%; background: #0F2747; }
.tpl-thumb.modern::after { content: ""; position: absolute; inset: 12px 10px auto 40%; height: 8px; border-radius: 3px; background: #141A28; box-shadow: 0 16px 0 -2px #D5DBE6, 0 28px 0 -2px #D5DBE6; }
[dir="rtl"] .tpl-thumb.modern::before { inset: 0 0 0 auto; }
[dir="rtl"] .tpl-thumb.modern::after { inset: 12px 40% auto 10px; }

/* الرئيسية */
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.4rem; height: 100%; }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--blue-soft); color: var(--blue-bright); margin-bottom: .9rem; }
.feature .icon.green { background: var(--emerald-soft); color: var(--emerald); }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--text-2); margin: 0; font-size: .95rem; }
.mock-profile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); max-width: 420px; margin-inline-start: auto; position: relative; }
.mock-profile .cover { height: 76px; background: linear-gradient(120deg, #0A2A55, #0B4F8F 45%, #0F7A5C); }
.mock-profile .body { padding: 0 1.2rem 1.2rem; margin-top: -36px; }
.mock-profile .ph { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--emerald)); border: 4px solid var(--surface); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-bright); font-weight: 800; flex: none; }

/* القانونية */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--text-2); }
.draft-note { border: 1px dashed rgba(216,154,75,.5); background: var(--amber-soft); color: #F0C891; border-radius: var(--r-sm); padding: .7rem 1rem; font-size: .9rem; }

[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: .25rem !important; }

@media (max-width: 991px) {
    .editor-nav { position: static; display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
    .editor-nav a { padding: .4rem .7rem; font-size: .88rem; background: var(--surface); border: 1px solid var(--hairline); }
    .editor-nav .done { display: none; }
}
@media (max-width: 767px) {
    .lang-pair { grid-template-columns: 1fr; }
    .mock-profile { margin: 2rem auto 0; }
    .profile-head { padding: 0 1rem 1.2rem; }
    .p-section { padding: 1.1rem 1rem; }
}