/* ==========================================================
   إشراق | معك لمستقبل طموح — الهوية البصرية
   ألوان الهوية مشتقة من شعار المبادرة
   ========================================================== */

:root {
  --p: #8776C4;          /* بنفسجي الشعار */
  --p-d: #5B4A9E;
  --p-dd: #2E2563;
  --p-l: #EEEBF8;
  --b: #7FB1D4;          /* أزرق الشعار */
  --b-d: #3E83B3;
  --b-l: #E8F2F9;
  --g: #747B83;          /* رمادي الشعار */
  --ink: #25223A;
  --ink-2: #4E4B63;
  --muted: #7C7A8E;
  --line: #E6E3F0;
  --bg: #F7F6FB;
  --card: #FFFFFF;
  --ok: #1E9E62; --ok-l: #E3F6EC;
  --warn: #E4A714; --warn-l: #FFF6DA;
  --bad: #D93A3A; --bad-l: #FDE7E7;
  --orange: #C2560C; --orange-l: #FCEBDD;
  --grad: linear-gradient(135deg, var(--p-dd) 0%, var(--p-d) 38%, var(--p) 68%, var(--b) 100%);
  --grad-soft: linear-gradient(135deg, var(--p-l), var(--b-l));
  --r: 18px; --r-sm: 12px;
  --sh: 0 10px 30px -12px rgba(46, 37, 99, .22);
  --sh-lg: 0 30px 60px -20px rgba(46, 37, 99, .35);
  /* الخطوط: Cairo للعناوين والأرقام البارزة، IBM Plex Sans Arabic لواجهة الاستخدام، Noto Sans Arabic للنص الأساسي */
  --f-display: 'Cairo', 'Noto Sans Arabic', sans-serif;
  --f-ui: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --f-body: 'Noto Sans Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-head: var(--f-display);
  --font-body: var(--f-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0 0 .5em; color: var(--p-dd); font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--p-d); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }

/* ===== أدوار الخطوط ===== */
/* واجهة الاستخدام: الأزرار والشارات والوسوم والتسميات والتلميحات والجداول */
button, select, .chip, .pill, .role-chip, .badge, .count, .code-chip, .code-input, .field label, .hint, small,
.table, .toast, .notif-list, .hero-badge, .deadline, .rc-roles span, .chip-filter button, .empty p,
.mc-areas small, .modal-foot, .sec-actions, .export-bar, .kpi span, .stat-box span, .ring small, .check, .radio, .switch,
.main-nav a, .muted.small, .warn-note, .db-warning { font-family: var(--f-ui); }
/* النص الأساسي: خانات الإدخال والنماذج */
input, textarea { font-family: var(--f-body); }
/* العناوين والأسماء والأرقام البارزة */
.brand b, .hero-sub, .portal b, .m-tile b, .person b, .mini-member b, .avatar,
.stat b, .kpi b, .stat-box b, .ring b, .tl-dot, .step-n { font-family: var(--f-display); }
/* الأرقام: عرض متساوٍ واتجاه ثابت من اليسار لليمين */
.num, .stat b, .kpi b, .stat-box b, .ring b, .tl-dot, .step-n, .count, .badge, .code-chip, .code-input, .year {
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ===== أزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid transparent; border-radius: 999px; padding: .62em 1.3em; font-weight: 700; cursor: pointer; background: var(--p-l); color: var(--p-d); transition: .2s transform, .2s box-shadow, .2s background; white-space: nowrap; font-family: var(--f-ui); font-size: .98rem; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; background-size: 160% 160%; }
.btn.primary:hover:not(:disabled) { background-position: 100% 0; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.light { background: #fff; color: var(--p-d); }
.btn.outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--bad); border-color: #F3C7C7; }
.btn.success { background: var(--ok); color: #fff; }
.btn.warn { background: var(--orange); color: #fff; }
.btn.wa { background: #25D366; color: #fff; }
.btn.lg { padding: .85em 1.7em; font-size: 1.05rem; }
.btn.sm { padding: .45em 1em; font-size: .9rem; }
.btn.xs { padding: .32em .8em; font-size: .8rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; position: relative; transition: .15s; flex: 0 0 auto; }
.icon-btn:hover:not(:disabled) { background: var(--p-l); color: var(--p-d); border-color: var(--p-l); }
.icon-btn.danger:hover { background: var(--bad-l); color: var(--bad); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.badge { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff; font-size: .72rem; display: grid; place-items: center; font-style: normal; font-weight: 700; line-height: 1; }

/* ===== شارات وحالات ===== */
.chip { display: inline-block; padding: .15em .75em; border-radius: 999px; background: var(--p-l); color: var(--p-d); font-size: .8rem; font-weight: 600; }
.chip.mentor { background: var(--p-l); color: var(--p-d); }
.chip.mentee { background: var(--b-l); color: var(--b-d); }
.pill { display: inline-flex; align-items: center; gap: .35em; padding: .3em .9em; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.pill.st-upcoming { background: #FFD84D; color: #5C4600; }
.pill.st-done { background: var(--ok); color: #fff; }
.pill.st-absent-mentor { background: var(--bad); color: #fff; }
.pill.st-absent-mentee { background: var(--orange); color: #fff; }
.pill.st-await { background: var(--p-l); color: var(--p-d); box-shadow: inset 0 0 0 1.5px var(--p); }
.pill.st-await.mine { background: var(--p); color: #fff; }
.pill.st-overdue { background: #6B7280; color: #fff; }
.code-chip { display: inline-flex; gap: .4em; align-items: center; direction: ltr; font-family: var(--f-ui); font-weight: 700; letter-spacing: .06em; background: var(--p-dd); color: #fff; padding: .2em .75em; border-radius: 8px; font-size: .85rem; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--p-l); color: var(--p-d); font-size: .8rem; font-weight: 700; vertical-align: middle; margin-inline-start: .3em; }

/* ===== التحميل ===== */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.boot { align-content: center; gap: 18px; text-align: center; padding: 20px; }
.boot img { width: 110px; animation: pulse 1.4s ease-in-out infinite; margin: 0 auto; }
.boot span { font-family: var(--f-ui); color: var(--muted); max-width: 360px; line-height: 1.9; }
.boot span .btn { margin-top: 10px; }
#conn-bar { position: fixed; z-index: 150; top: 0; inset-inline: 0; padding: 10px 16px; text-align: center; font-family: var(--f-ui); font-weight: 700; font-size: .92rem; color: #fff; transform: translateY(-100%); transition: transform .3s; }
#conn-bar.show { transform: none; }
#conn-bar.offline { background: var(--bad); }
#conn-bar.saving { background: var(--p-d); }
#conn-bar.online { background: var(--ok); }
#conn-bar i { margin-inline-end: 6px; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .6; } }

/* ==========================================================
   الصفحة الرئيسية
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 30; transition: .3s; background: rgba(255,255,255,0); }
.site-header.scrolled, .site-header.open { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); box-shadow: 0 6px 24px -14px rgba(46,37,99,.35); }
.hero + .site-header, .site-header:not(:first-child) { background: rgba(255,255,255,.92); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--p-dd); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 900; line-height: 1; }
.brand small { color: var(--muted); font-size: .78rem; }
.home > .site-header:first-child:not(.scrolled):not(.open) .brand,
.home > .site-header:first-child:not(.scrolled):not(.open) .main-nav a { color: #fff; }
.home > .site-header:first-child:not(.scrolled):not(.open) .brand small { color: rgba(255,255,255,.75); }
.home > .site-header:first-child:not(.scrolled):not(.open) .brand img { filter: brightness(0) invert(1); }
.home > .site-header:first-child:not(.scrolled):not(.open) .nav-toggle { background: rgba(255,255,255,.15); color: #fff; border-color: transparent; }
.home > .site-header:first-child + .hero { margin-top: -74px; padding-top: 74px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { padding: .4em .8em; border-radius: 10px; color: var(--ink-2); font-weight: 500; transition: .2s; }
.main-nav a:hover { background: rgba(135,118,196,.14); }
.hdr-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }

.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; background: var(--grad); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.rays { position: absolute; left: 50%; bottom: -60%; width: 180vmax; height: 180vmax; transform: translateX(-50%); background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0 4deg, transparent 4deg 16deg); animation: spin 90s linear infinite; mask-image: radial-gradient(circle, #000 20%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 60%); }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow.g1 { width: 520px; height: 520px; background: #B3A6F0; top: -140px; right: -120px; animation: float 14s ease-in-out infinite; }
.glow.g2 { width: 460px; height: 460px; background: #9FD3F4; bottom: -160px; left: -100px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }
.net { position: absolute; width: 760px; left: -140px; top: 50%; transform: translateY(-50%); opacity: .13; stroke: #fff; fill: #fff; stroke-width: 4; stroke-linecap: round; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 60px 0 90px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5em; padding: .45em 1.1em; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); font-weight: 600; font-size: .92rem; animation: rise .8s both; }
.hero-badge i { color: #FFD66B; }
.hero h1 { color: #fff; font-size: clamp(3.6rem, 10vw, 7rem); margin: .1em 0 .15em; line-height: 1.25; font-weight: 900; letter-spacing: -.01em; text-shadow: 0 10px 40px rgba(20,10,60,.35); animation: rise .8s .1s both; }
.hero-sub { font-family: var(--font-head); font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 700; margin: 0 0 .6em; background: linear-gradient(90deg, #fff, #D6ECFA); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .8s .2s both; }
.hero-body { font-size: 1.13rem; max-width: 560px; opacity: .92; animation: rise .8s .3s both; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; animation: rise .8s .4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero-logo { display: grid; place-items: center; animation: rise 1s .3s both; }
.logo-orb { width: min(420px, 80vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0 58%, rgba(255,255,255,.85) 64%, rgba(255,255,255,0) 71%); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255,255,255,.08), 0 0 0 30px rgba(255,255,255,.05), 0 40px 80px -20px rgba(20,10,60,.5); animation: bob 7s ease-in-out infinite; }
.logo-orb img { width: 70%; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); animation: nudge 2s infinite; }
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }

.sec { padding: 96px 0; position: relative; }
.sec.tint { background: linear-gradient(180deg, #fff, var(--bg)); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.sec-sub { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-flex; align-items: center; gap: .5em; font-family: var(--f-ui); font-weight: 700; color: var(--p); letter-spacing: .02em; margin-bottom: .5em; font-size: 1rem; }
.kicker::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--b), var(--p)); }
.kicker.light { color: #D8EDFA; }
.kicker.light::before { background: #fff; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.about-items { display: grid; gap: 18px; }
.about-item { display: flex; gap: 18px; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); border: 1px solid var(--line); }
.about-item h3 { font-size: 1.2rem; margin-bottom: .3em; }
.about-item p { margin: 0; color: var(--ink-2); }
.ic { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -8px rgba(91,74,158,.6); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { position: relative; padding: 30px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: .35s; }
.feature::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(127,177,212,.25), transparent 70%); transition: .5s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.feature:hover::after { inset: auto -20% -40% auto; }
.feature h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.feature p { color: var(--ink-2); margin: 0; }
.feature:nth-child(3n+2) .ic { background: linear-gradient(135deg, var(--b-d), var(--b)); }
.feature:nth-child(3n) .ic { background: linear-gradient(135deg, var(--g), #9AA1A8); }

.check-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; padding: 16px 20px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.check-list i { color: var(--p); font-size: 1.2rem; margin-top: .25em; }

.stats-sec { background: var(--grad); color: #fff; overflow: hidden; }
.stats-sec::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 120%, rgba(255,255,255,.06) 0 3deg, transparent 3deg 12deg); }
.stats-sec .sec-head h2, .stats-sec .sec-sub { color: #fff; }
.stats-sec .kicker { color: #D8EDFA; }
.stats-sec .kicker::before { background: #fff; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 14px; border-radius: var(--r); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 900; direction: ltr; line-height: 1.1; }
.stat span { opacity: .9; font-size: .98rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 28px; right: 10%; left: 10%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--b), var(--p)); opacity: .35; }
.timeline li { text-align: center; position: relative; padding: 0 6px; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 3px solid var(--p-l); font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; color: var(--p-d); }
.timeline li.current .tl-dot { background: var(--grad); color: #fff; border-color: #fff; box-shadow: 0 0 0 8px rgba(135,118,196,.2), 0 12px 24px -8px rgba(91,74,158,.6); transform: scale(1.12); }
.timeline h3 { font-size: 1.1rem; margin-bottom: .2em; }
.timeline p { color: var(--ink-2); margin: 0; }
.timeline em { display: inline-block; margin-top: 8px; font-style: normal; font-size: .78rem; font-weight: 700; color: #fff; background: var(--p); padding: .1em .8em; border-radius: 999px; }
.tl-note { text-align: center; margin: 40px auto 0; max-width: 640px; padding: 14px 20px; border-radius: var(--r-sm); background: var(--p-l); color: var(--p-d); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--r); padding: 28px 20px 24px; text-align: center; border: 1px solid var(--line); transition: .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.step .ic { margin: 0 auto 14px; }
.step-n { position: absolute; top: 12px; left: 14px; font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--p-l); }
.step h3 { font-size: 1.1rem; margin-bottom: .3em; }
.step p { font-size: .94rem; color: var(--ink-2); margin: 0; }

.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.org-card { background: #fff; border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--line); border-top: 4px solid var(--p); }
.org-card:nth-child(3n+2) { border-top-color: var(--b); }
.org-card:nth-child(3n) { border-top-color: var(--g); }
.org-card h3 { font-size: 1.1rem; }
.org-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.org-card li { color: var(--ink-2); padding-inline-start: 16px; position: relative; }
.org-card li::before { content: ''; position: absolute; right: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--b); }
.org-card li.lead-p { font-weight: 700; color: var(--p-dd); }
.org-card li.lead-p::before { background: var(--p); }

.register-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 56px; border-radius: 28px; background: var(--grad); color: #fff; box-shadow: var(--sh-lg); }
.rc-rays { position: absolute; inset: 0; background: repeating-conic-gradient(from 200deg at 0% 100%, rgba(255,255,255,.08) 0 5deg, transparent 5deg 15deg); }
.register-card > div { position: relative; }
.register-card h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.register-card p { opacity: .92; font-size: 1.08rem; }
.deadline { display: inline-flex; gap: .5em; align-items: center; background: rgba(255,255,255,.15); padding: .3em 1em; border-radius: 999px; }
.rc-cta { display: grid; justify-items: center; gap: 18px; text-align: center; }
.rc-roles { display: flex; gap: 10px; }
.rc-roles span { display: inline-flex; gap: .45em; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .4em 1em; border-radius: 999px; font-weight: 600; }

.members-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 40px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.members-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .2em; }
.members-cta p { margin: 0; color: var(--ink-2); }
.avatars-stack { display: flex; }
.avatars-stack .avatar { width: 58px; height: 58px; border: 3px solid #fff; margin-inline-start: -16px; box-shadow: var(--sh); }
.avatars-stack .avatar:first-child { margin: 0; }
.avatars-stack:empty { width: 110px; height: 74px; background: url('../assets/ishraq-mark.png') center/contain no-repeat; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.quote { margin: 0; padding: 30px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); position: relative; }
.quote > i { font-size: 2rem; color: var(--p-l); position: absolute; top: 20px; left: 22px; }
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--ink-2); }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--muted); }

.video-lead { text-align: center; max-width: 760px; margin: -24px auto 32px; }
.video-wrap { max-width: 960px; margin: 0 auto; padding: 10px; border-radius: 28px; background: var(--grad); box-shadow: var(--sh-lg); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #1c1740; cursor: pointer; }
.video-frame img, .video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame video { object-fit: contain; background: #000; cursor: auto; }
.video-frame.playing { cursor: auto; }
.video-frame:not(.playing)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,37,99,.05), rgba(46,37,99,.45)); transition: .3s; }
.play-btn { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--p-d); font-size: 1.9rem; box-shadow: 0 0 0 12px rgba(255,255,255,.25), 0 20px 40px -10px rgba(0,0,0,.5); transition: .3s; }
.play-btn i { margin-left: 6px; }
.video-frame:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-frame.empty { display: grid; place-content: center; justify-items: center; gap: 8px; color: rgba(255,255,255,.7); cursor: default; }
.video-frame.empty i { font-size: 2.4rem; }
.video-frame.empty p { margin: 0; }
@media (max-width: 560px) { .video-wrap { padding: 6px; border-radius: 20px; } .video-frame { border-radius: 15px; } .play-btn { width: 68px; height: 68px; font-size: 1.5rem; } }

.custom-sec.has-img { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.custom-sec .sec-head { text-align: start; margin: 0 0 16px; }
.custom-sec img { border-radius: var(--r); box-shadow: var(--sh-lg); width: 100%; object-fit: cover; }

.portals { background: linear-gradient(180deg, var(--bg), var(--p-l)); }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portal { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: .3s; text-align: center; }
.portal i { font-size: 1.8rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: var(--grad); margin-bottom: 6px; transition: .3s; }
.portal:nth-child(1) i { background: linear-gradient(135deg, var(--b-d), var(--b)); }
.portal:nth-child(2) i { background: var(--grad); }
.portal:nth-child(3) i { background: linear-gradient(135deg, #4D535A, var(--g)); }
.portal b { font-family: var(--font-head); font-size: 1.25rem; color: var(--p-dd); }
.portal small { color: var(--muted); }
.portal:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.portal:hover i { transform: rotate(-8deg) scale(1.08); }

.site-footer { background: var(--p-dd); color: rgba(255,255,255,.85); padding: 56px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% -40%, rgba(255,255,255,.04) 0 3deg, transparent 3deg 12deg); }
.ftr-in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 30px; align-items: center; }
.ftr-logo { width: 150px; background: #fff; border-radius: 20px; padding: 12px; margin-bottom: 14px; }
.ftr-brand p { margin: 0; max-width: 420px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.social-link { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-size: 1.15rem; transition: .25s; }
.social-link:hover { background: #fff; color: var(--p-d); transform: translateY(-3px); }
.ftr-org { text-align: center; display: grid; gap: 8px; justify-items: center; }
.ftr-org img { width: 150px; background: #fff; padding: 12px; border-radius: 18px; }
.ftr-bottom { position: relative; text-align: center; padding: 18px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; opacity: .75; }

/* ===== الفعاليات ===== */
.events-sec { background: linear-gradient(180deg, var(--bg), #fff); }
.ev-list { display: grid; gap: 28px; }
.ev-card { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.ev-info { padding: 34px 36px; }
.ev-badge { display: inline-flex; gap: .5em; align-items: center; padding: .3em 1em; border-radius: 999px; background: var(--p-l); color: var(--p-d); font-family: var(--f-ui); font-weight: 700; font-size: .88rem; }
.ev-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 14px 0 10px; }
.ev-about { color: var(--ink-2); font-size: 1.05rem; }
.ev-meta { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-meta li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.ev-meta li > i { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; }
.ev-meta li:nth-child(2n) > i { background: linear-gradient(135deg, var(--b-d), var(--b)); }
.ev-meta small { display: block; color: var(--muted); font-size: .78rem; }
.ev-meta b { font-family: var(--f-ui); font-weight: 700; color: var(--p-dd); font-size: .98rem; }
.ev-meta a { color: var(--p-d); }
.ev-meta a i { font-size: .75em; }
.ev-speaker { padding: 18px; border-radius: 20px; background: var(--grad-soft); }
.ev-label { display: block; font-family: var(--f-ui); font-weight: 700; color: var(--p); margin-bottom: 10px; }
.ev-sp-head { display: flex; gap: 14px; align-items: center; }
.ev-sp-head b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--p-dd); }
.ev-sp-head span { display: block; color: var(--p); font-weight: 600; font-size: .92rem; }
.ev-sp-head .chip { margin-top: 4px; font-style: normal; }
.ev-sp-bio { margin: 12px 0 0; color: var(--ink-2); font-size: .95rem; }
.ev-reg { padding: 34px 32px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.ev-reg::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 200deg at 100% 0%, rgba(255,255,255,.07) 0 4deg, transparent 4deg 14deg); pointer-events: none; }
.ev-reg > * { position: relative; }
.ev-reg h4 { color: #fff; font-size: 1.3rem; display: flex; gap: .5em; align-items: center; margin-bottom: 16px; }
.ev-form { display: grid; gap: 14px; }
.ev-fields { display: grid; gap: 12px; }
.ev-form .field label { color: rgba(255,255,255,.9); }
.ev-form .field label em { color: #FFD66B; }
.ev-form input:not([type=hidden]) { background: rgba(255,255,255,.96); border-color: transparent; color: var(--ink); }
.ev-q p { margin: 0 0 8px; font-weight: 600; font-family: var(--f-ui); }
.ev-q p small { opacity: .75; font-weight: 400; }
.ev-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-choice { display: grid; gap: 4px; justify-items: start; text-align: start; padding: 12px 14px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: .2s; }
.ev-choice i { font-size: 1.2rem; }
.ev-choice b { font-family: var(--f-display); font-size: 1.05rem; }
.ev-choice small { font-size: .78rem; line-height: 1.6; opacity: .88; }
.ev-choice:hover { background: rgba(255,255,255,.18); }
.ev-choice.on { background: #fff; color: var(--p-d); border-color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.ev-choice.on small { color: var(--ink-2); opacity: 1; }
.ev-submit { background: #fff !important; color: var(--p-d) !important; justify-self: stretch; }
.ev-done { background: rgba(255,255,255,.95); color: var(--ok); padding: 12px 14px; border-radius: 14px; font-weight: 700; display: flex; gap: .5em; align-items: center; }
.ev-empty .ev-teaser { display: grid; align-content: center; justify-items: start; }
.ev-teaser-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 2rem; box-shadow: var(--sh-lg); animation: bob 4s ease-in-out infinite; }

.ev-admin-list { display: grid; gap: 12px; margin-top: 12px; }
.ev-admin { border: 1px solid var(--line); border-radius: 18px; background: #FDFCFF; overflow: hidden; }
.ev-admin.open { border-color: var(--p); box-shadow: var(--sh); }
.ev-admin.is-hidden { background: #F5F5F8; }
.ev-admin-head { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.ev-admin-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.ev-admin-title b { font-family: var(--f-display); font-size: 1.15rem; color: var(--p-dd); }
.ev-admin-info small { color: var(--muted); }
.ev-admin-sp { margin-top: 8px; }
.ev-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ev-admin .ev-regs { padding: 6px 16px 16px; border-top: 1px dashed var(--line); animation: rise .3s both; }
.source-chip { margin-top: 4px; background: var(--b-l); color: var(--b-d); }
.aud-chip { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.aud-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.aud-options .radio i { color: var(--p); width: 18px; }
.ev-portal-panel { border-color: #D8D1F0; background: linear-gradient(180deg, #FBFAFF, #fff); }
.ev-portal { box-shadow: var(--sh); }
.ev-portal .ev-info { padding: 26px 28px; }
.ev-portal .ev-reg { padding: 26px 24px; }
.ev-registered { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 20px 0; }
.ev-registered > i { font-size: 3rem; color: #fff; }
.ev-registered h4 { margin: 0; justify-content: center; }
.ev-registered small { opacity: .85; }
@media (max-width: 560px) { .aud-options { grid-template-columns: 1fr; } }

.sp-picker { position: relative; }
.sp-current { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .55em .9em; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: start; }
.sp-current > i { color: var(--muted); }
.sp-panel { position: absolute; z-index: 5; inset-inline: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); overflow: hidden; }
.sp-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.sp-search input { border: 0 !important; box-shadow: none !important; padding: .3em !important; }
.sp-list { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; }
.sp-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.sp-list li:hover { background: var(--p-l); }
.sp-cohort { color: var(--muted); font-size: .75rem; }
.sp-other-opt, .sp-none-opt { justify-content: flex-start !important; color: var(--p-d); border-top: 1px dashed var(--line); }
.sp-other-opt small { color: var(--muted); }
.sp-none-opt { color: var(--muted); }
.sp-empty { color: var(--muted); cursor: default !important; }

@media (max-width: 900px) {
  .ev-card { grid-template-columns: 1fr; }
  .ev-info, .ev-reg { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .ev-meta, .ev-choices { grid-template-columns: 1fr; }
}

/* ===== صفحة الأعضاء ===== */
.mp-hero { background: var(--grad); color: #fff; padding: 40px 0 70px; text-align: center; position: relative; overflow: hidden; }
.mp-hero::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 130%, rgba(255,255,255,.07) 0 4deg, transparent 4deg 14deg); }
.mp-hero > * { position: relative; }
.mp-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); }
.back { color: #fff; display: inline-flex; gap: .5em; align-items: center; opacity: .85; position: absolute; right: 0; top: 0; }
.mp-mark { width: 90px; margin: 10px auto 10px; filter: brightness(0) invert(1); }
.cohort-switch { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.14); flex-wrap: wrap; justify-content: center; }
.cohort-switch button { border: 0; background: transparent; color: #fff; padding: .55em 1.3em; border-radius: 999px; cursor: pointer; font-weight: 700; font-family: var(--f-ui); }
.cohort-switch button span { opacity: .75; font-weight: 500; margin-inline-start: .3em; }
.cohort-switch button.active { background: #fff; color: var(--p-d); }
.mp-body { margin-top: -30px; position: relative; padding-bottom: 80px; }
.m-group { background: #fff; border-radius: 24px; padding: 30px; margin-bottom: 24px; box-shadow: var(--sh); }
.m-group h3 { display: flex; align-items: center; gap: .5em; font-size: 1.4rem; }
.m-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; margin-top: 16px; }
.m-tile { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 18px 10px; border-radius: 18px; transition: .3s; border: 0; background: transparent; cursor: pointer; font: inherit; }
.m-tile:hover .avatar { transform: scale(1.05); }
.m-tile .avatar { transition: transform .3s; }
.member-modal .modal { background: transparent; box-shadow: none; overflow: visible; }
.member-modal .modal-head { border: 0; padding: 0 0 10px; justify-content: flex-start; }
.member-modal .modal-head .modal-x { background: #fff; }
.member-modal .modal-body { padding: 0; }
.member-modal .member-card { box-shadow: var(--sh-lg); }
.member-modal .member-card:hover { transform: none; }
.m-tile:hover { background: var(--p-l); }
.m-tile .avatar { margin-bottom: 8px; }
.m-tile b { font-family: var(--font-head); color: var(--p-dd); }
.m-tile small { color: var(--muted); line-height: 1.5; }

/* ===== الصورة الرمزية (موحدة المقاس) ===== */
.avatar { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--grad); color: #fff; flex: 0 0 auto; font-family: var(--font-head); font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--p-l); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.avatar.sm { width: 36px; height: 36px; font-size: .8rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--p-l); }
.avatar.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar.xl { width: 116px; height: 116px; font-size: 2rem; }

/* ===== بطاقة العضو ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.member-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: .3s; box-shadow: 0 4px 16px -10px rgba(46,37,99,.25); }
.member-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px 44px; background: linear-gradient(135deg, var(--b-d), var(--b)); }
.member-card.mentee .mc-head { background: var(--grad); }
.mc-logo { height: 54px; width: auto; object-fit: contain; }
.mc-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mc-head .code-chip { background: transparent; border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.mc-head .role-chip { background: transparent; border: 1.5px solid rgba(255,255,255,.85); }
.mc-head .secret-code { gap: 2px; padding: .15em .3em .15em .55em; background: rgba(0,0,0,.18); border-style: dashed; }
.mc-head .secret-code.shown { background: rgba(0,0,0,.3); border-style: solid; }
.chip-btn { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0 .3em; font-size: .78rem; opacity: .85; }
.chip-btn:hover { opacity: 1; }
.role-chip { color: #fff; font-size: .78rem; font-weight: 700; background: rgba(0,0,0,.15); padding: .15em .75em; border-radius: 999px; }
.mc-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px 20px; margin-top: -58px; flex: 1; }
.mc-body .avatar.xl { box-shadow: 0 0 0 5px #fff, 0 10px 24px -8px rgba(46,37,99,.45); }
.mc-name { margin: 14px 0 2px; font-size: 1.2rem; }
.mc-tag { color: var(--p); font-weight: 600; margin: 0 0 10px; font-size: .95rem; }
.mc-bio { color: var(--ink-2); font-size: .9rem; margin: 0 0 12px; white-space: normal; overflow-wrap: anywhere; }
.mc-areas { width: 100%; margin-bottom: 12px; }
.mc-areas small { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.mc-areas div { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.mc-social { display: flex; gap: 8px; justify-content: center; margin-top: auto; }
.mc-social-link { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--p-l); color: var(--p-d); transition: .2s; }
.mc-social-link:hover { background: var(--p-d); color: #fff; }
.mc-social-link .fa-whatsapp { color: #1FAF54; }
.mc-social-link:hover .fa-whatsapp { color: #fff; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; border-top: 1px solid var(--line); background: #FBFAFE; }
.mc-actions .send-cred { flex: 1 1 100%; }
.cred-preview { display: grid; place-items: center; min-height: 160px; margin-bottom: 14px; padding: 12px; border-radius: 16px; background: var(--bg); }
.cred-preview img { max-height: 340px; width: auto; border-radius: 12px; }
.cred-loading { color: var(--muted); }
.cred-hint { display: block; margin-top: 10px; line-height: 1.7; }
.err-hint { color: var(--bad); text-align: center; }
.add-card { display: grid; place-content: center; justify-items: center; gap: 10px; min-height: 300px; border: 2px dashed #CFC8EA; border-radius: 22px; background: rgba(238,235,248,.4); color: var(--p-d); cursor: pointer; font-weight: 700; font-family: var(--f-ui); transition: .25s; }
.add-card i { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.6rem; transition: .25s; }
.add-card:hover { border-color: var(--p); background: var(--p-l); }
.add-card:hover i { transform: rotate(90deg); }
.mini-member { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; vertical-align: middle; }
.mini-member b { display: block; font-family: var(--font-head); color: var(--p-dd); font-size: 1rem; }
.mini-member small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }

/* ==========================================================
   اللوحات (إدارة / مرشد / مستفيد)
   ========================================================== */
.dash { min-height: 100vh; background: radial-gradient(1200px 400px at 80% -10%, rgba(135,118,196,.18), transparent), var(--bg); }
.dash-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dash-top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.dash-top-actions { display: flex; gap: 10px; align-items: center; }
.dash-main { padding: 26px 0 80px; }
.dash-hello { display: flex; align-items: center; gap: 20px; padding: 26px 30px; border-radius: 24px; background: var(--grad); color: #fff; margin-bottom: 22px; position: relative; overflow: hidden; box-shadow: var(--sh-lg); }
.dash-hello::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 180deg at 0% 100%, rgba(255,255,255,.07) 0 4deg, transparent 4deg 14deg); }
.dash-hello > * { position: relative; }
.dash-hello h1 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.4rem, 3vw, 2rem); }
.dash-hello small, .dash-hello .muted { color: rgba(255,255,255,.8); }
.dash-hello .code-chip { background: rgba(255,255,255,.2); }
.hello-stats { margin-inline-start: auto; }
.admin-hello { justify-content: space-between; flex-wrap: wrap; }
.kpis { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi { display: grid; justify-items: center; min-width: 100px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.kpi i { opacity: .8; }
.kpi b { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; }
.kpi span { font-size: .8rem; opacity: .9; }
.ring { display: flex; align-items: center; gap: 12px; }
.ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255,255,255,.2); }
.ring-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 1s; }
.ring b { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; direction: ltr; text-align: right; }
.ring small { font-size: .8rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 20px -14px rgba(46,37,99,.3); }
.panel h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.panel h2 > i { color: var(--p); }
.panel-head, .block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2, .block-head h3 { margin: 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
h3.sub { font-size: 1.05rem; color: var(--ink-2); margin: 20px 0 12px; display: flex; gap: .5em; align-items: center; }
.export-bar { display: inline-flex; gap: 6px; }
.export-bar [data-fmt=pdf] { color: #C0392B; }
.export-bar [data-fmt=csv] { color: #1E8449; }

.admin-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.admin-tabs button { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.2em; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; font-family: var(--f-ui); font-weight: 700; transition: .2s; }
.admin-tabs button .caret { font-size: .7rem; opacity: .5; transition: .25s; }
.admin-tabs button:hover { border-color: var(--p); color: var(--p-d); }
.admin-tabs button.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh); }
.admin-tabs button.active .caret { transform: rotate(180deg); opacity: 1; }
.admin-tabs .badge { position: static; margin-inline-start: 2px; }
.tab-panel { animation: rise .35s both; }

.db-warning { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 18px; border-radius: 16px; background: var(--bad-l); border: 1px solid #F5C4C4; color: #8A1F1F; font-weight: 600; }
.db-warning i { font-size: 1.3rem; margin-top: .2em; }
.db-warning p { margin: 0; }
.db-warning code { direction: ltr; background: #fff; padding: 0 .4em; border-radius: 6px; }

.backup-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; margin-bottom: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-family: var(--f-ui); }
.backup-bar > div:first-child { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.backup-bar > div:first-child > i { color: var(--ok); font-size: 1.2rem; }
.backup-bar.due { background: var(--warn-l); border-color: #F3DD9A; }
.backup-bar.due > div:first-child > i { color: #B7860B; }
.backup-bar label.btn { cursor: pointer; }

.sec-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; margin-bottom: 18px; border-radius: 18px; background: var(--p-l); border: 1px solid #D8D1F0; color: var(--p-dd); }
.sec-banner > i { font-size: 1.6rem; color: var(--p-d); margin-top: 4px; }
.sec-banner b { font-family: var(--f-display); font-size: 1.1rem; }
.sec-banner p { margin: 4px 0 10px; color: var(--ink-2); }
.sec-banner .btn { margin-inline-end: 6px; }
.sec-banner.warn { background: var(--warn-l); border-color: #F3DD9A; }
.sec-banner.warn > i { color: #B7860B; }
.sec-banner code { direction: ltr; background: #fff; padding: 0 .4em; border-radius: 6px; }
.rules-pre { background: #1E1B33; color: #E6E3F0; padding: 16px; border-radius: 14px; overflow: auto; max-height: 50vh; font-size: .82rem; line-height: 1.6; text-align: left; }
.admin-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.admin-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FDFCFF; flex-wrap: wrap; }
.admin-list li > div { flex: 1; min-width: 160px; }
.admin-list b { font-family: var(--f-display); color: var(--p-dd); }
.admin-list li.invite { border-style: dashed; background: #fff; }
.admin-list li.owner { background: linear-gradient(90deg, #FFF9E8, #FDFCFF); border-color: #F3DD9A; }
.admin-list li.owner .avatar-fallback i { color: #FFD66B; }
.admin-meta { display: grid; gap: 2px; text-align: start; min-width: 130px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.perm-chips .chip { font-size: .72rem; }
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.perm-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.perm-item:has(input:checked) { border-color: var(--p); background: var(--p-l); }
.perm-item input { accent-color: var(--p); width: 18px; height: 18px; margin-top: 3px; }
.perm-item > i { color: var(--p); margin-top: 4px; width: 18px; }
.perm-item b { display: block; font-family: var(--f-ui); }
.perm-item small { color: var(--muted); font-size: .78rem; }
@media (max-width: 560px) { .perm-list { grid-template-columns: 1fr; } }
.or-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted); font-family: var(--f-ui); font-size: .85rem; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { width: 100%; background: #fff; border-color: var(--line); color: var(--ink); }
.google-btn svg { flex: 0 0 auto; }
.admin-list small[dir=ltr] { display: block; color: var(--muted); text-align: right; }

/* ترتيب الأقسام */
.sortable { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.sortable li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #FDFCFF; transition: .15s; }
.sortable li.dragging { opacity: .5; border-style: dashed; border-color: var(--p); }
.sortable li.is-hidden { opacity: .55; background: #F3F2F7; }
.sortable li.is-hidden .sec-info b::after { content: ' (مخفي)'; color: var(--muted); font-weight: 400; }
.sortable li.locked { background: var(--p-l); }
.drag { cursor: grab; color: var(--muted); padding: 6px; }
.sec-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p-l); color: var(--p-d); flex: 0 0 auto; }
.sec-info { flex: 1; min-width: 0; }
.sec-info b { display: block; font-family: var(--f-ui); }
.sec-info small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.req { color: var(--bad); font-style: normal; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.type-card { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .2s; text-align: center; font-weight: 600; }
.type-card i { font-size: 1.4rem; color: var(--p); }
.type-card:hover { border-color: var(--p); background: var(--p-l); transform: translateY(-2px); }
.item-row { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #FDFCFF; }
.item-fields { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.item-fields label small { display: block; color: var(--muted); font-size: .78rem; }
.item-ctl { display: flex; flex-direction: column; gap: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0; }
legend { padding: 0 8px; font-weight: 700; font-family: var(--f-ui); color: var(--p-d); }

/* الدفعات */
.cohort-list { display: grid; gap: 12px; }
.cohort { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: .2s; }
.cohort.open { border-color: var(--p); box-shadow: var(--sh); }
.cohort-row { display: flex; align-items: center; gap: 8px; padding: 8px; }
.cohort-btn { flex: 1; display: flex; align-items: center; gap: .6em; flex-wrap: wrap; text-align: start; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--grad-soft); cursor: pointer; font-family: var(--f-ui); font-weight: 800; font-size: 1.1rem; color: var(--p-dd); }
.cohort-btn .year { background: var(--p-d); color: #fff; border-radius: 8px; padding: 0 .55em; font-size: .9rem; }
.cohort-btn small { color: var(--muted); font-weight: 500; font-family: var(--f-ui); font-size: .85rem; margin-inline-start: auto; }
.cohort-btn .caret { transition: .25s; color: var(--p); }
.cohort.open .cohort-btn { background: var(--grad); color: #fff; }
.cohort.open .cohort-btn small { color: rgba(255,255,255,.85); }
.cohort.open .cohort-btn .caret { transform: rotate(180deg); color: #fff; }
.cohort-body { padding: 8px 16px 20px; animation: rise .3s both; }
.sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-tabs button { padding: .6em 1.2em; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-family: var(--f-ui); color: var(--ink-2); }
.sub-tabs button.active { background: var(--p-dd); color: #fff; border-color: var(--p-dd); }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; margin: 10px 0 20px; border: 2px dashed #C9D9E8; border-radius: 16px; background: var(--b-l); color: var(--b-d); cursor: pointer; text-align: center; transition: .2s; }
.dropzone i { font-size: 1.6rem; }
.dropzone.over { background: #D4E8F6; border-color: var(--b-d); transform: scale(1.01); }
.net-head { display: grid; grid-template-columns: 1fr 40px 1fr; font-weight: 700; color: var(--muted); padding: 0 14px; font-size: .9rem; }
.net-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.net-list li { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FDFCFF; }
.net-x { color: var(--p); text-align: center; }
.net-pick { display: flex; gap: 6px; }
.net-pick select { flex: 1; }
.warn-note { background: var(--warn-l); color: #7A5A00; padding: 8px 14px; border-radius: 10px; font-weight: 600; }

/* الجلسات */
.chip-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.chip-filter button { border: 1px solid var(--line); background: #fff; padding: .4em 1em; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.chip-filter button span { color: var(--muted); font-size: .85em; }
.chip-filter button.active { background: var(--p-d); color: #fff; border-color: var(--p-d); }
.chip-filter button.active span { color: rgba(255,255,255,.8); }
.stat-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.stat-box { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat-box i { position: absolute; left: 12px; top: 12px; font-size: 1.2rem; opacity: .35; }
.stat-box b { font-family: var(--font-head); font-size: 1.8rem; line-height: 1.1; }
.stat-box span { font-size: .85rem; color: var(--ink-2); }
.stat-box.st-upcoming { background: #FFF8DC; border-color: #F6E3A0; }
.stat-box.st-upcoming b { color: #9A7400; }
.stat-box.st-done { background: var(--ok-l); border-color: #BDE7D0; }
.stat-box.st-done b { color: var(--ok); }
.stat-box.st-absent-mentor { background: var(--bad-l); border-color: #F5C4C4; }
.stat-box.st-absent-mentor b { color: var(--bad); }
.stat-box.st-absent-mentee { background: var(--orange-l); border-color: #F2CDB0; }
.stat-box.st-absent-mentee b { color: var(--orange); }
.stat-box.st-pending { background: #F1F2F5; border-color: #D5D8DF; }
.stat-box.st-pending b { color: #4B5563; }
button.stat-box { font: inherit; text-align: start; cursor: pointer; transition: .2s; }
button.stat-box:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.stat-box.active { border-color: var(--p-d); box-shadow: 0 0 0 3px var(--p), var(--sh); transform: translateY(-2px); }
.stat-list { margin: 10px 0 18px; animation: rise .3s both; }
.stat-box.st-hours { background: var(--p-l); border-color: #D8D1F0; }
.stat-box.st-hours b { color: var(--p-d); }
.icon-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.person { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border-radius: 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: center; transition: .2s; }
.person b { font-family: var(--font-head); font-size: .95rem; color: var(--p-dd); line-height: 1.4; margin-top: 6px; }
.person small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.person:hover { border-color: var(--p); transform: translateY(-2px); }
.person.active { background: var(--p-l); border-color: var(--p); box-shadow: var(--sh); }
.person .badge { top: 8px; left: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { background: var(--p-l); color: var(--p-dd); font-family: var(--f-ui); text-align: start; padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.new td { background: #FFFDF2; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* المواعيد */
.slot-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slot-group { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #FDFCFF; }
.slot-group.is-booked { background: var(--ok-l); border-color: #BDE7D0; }
.slot-group h3 { font-size: 1.05rem; display: flex; align-items: center; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slot-list li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.slot-list li.booked { border-color: #BDE7D0; }
.slot-list li b, .slot-list li span { display: block; font-size: .9rem; }
.slot-list li span.chip { display: inline-block; margin-top: 4px; }
.slot-list li p { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.slot-list i { color: var(--p); margin-inline-end: 4px; }
.slot-state { display: grid; gap: 8px; justify-items: start; font-size: .9rem; }
.slot-state.locked { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.time-select { display: flex; align-items: center; gap: 6px; direction: ltr; }
.time-select select { width: auto; flex: 1; text-align: center; }

.pair-cards { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 10px; align-items: center; }
.pair-cards > div > .member-card { max-width: 380px; margin: 0 auto; }
.pair-cards h3.sub { justify-content: center; margin-top: 0; }
.pair-link { display: grid; place-items: center; }
.pair-link i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.3rem; box-shadow: var(--sh); }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-box { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #FDFCFF; }
.review-box h3 { font-size: 1.05rem; }
.review-box h4 { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.review.featured { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-l); }
.review header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.review header small { color: var(--muted); margin-inline-start: auto; }
.review p { margin: 0 0 6px; color: var(--ink-2); }
.review .extra { background: var(--b-l); padding: 8px 10px; border-radius: 10px; font-size: .92rem; }
.review footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.review footer span { display: flex; gap: 6px; flex-wrap: wrap; }

.msg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.msg-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #FDFCFF; }
.msg-list li.unread { background: #FFFDF2; border-color: #F6E3A0; }
.msg-list li > i { color: var(--p); margin-top: .3em; }
.msg-list li > div { flex: 1; }
.msg-list b { display: block; font-family: var(--f-ui); }
.msg-list p { margin: 4px 0; }
.msg-list small { color: var(--muted); }
.panel.msgs { border-color: #F6E3A0; background: linear-gradient(180deg, #FFFDF4, #fff); }
.composers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.composer { display: grid; gap: 8px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #FDFCFF; }
.composer h3 { font-size: 1.05rem; margin: 0; }
.composer .btn { justify-self: start; }

.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif-list li { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); }
.notif-list li.unread { background: var(--p-l); }
.notif-list li i { color: var(--p); margin-top: .3em; }
.notif-list p { margin: 0; }
.notif-list small { color: var(--muted); }

.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty i { font-size: 2.2rem; color: #D2CCE8; margin-bottom: 8px; }
.empty p { margin: 0; }

/* مفتاح التبديل */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { display: none; }
.switch span { width: 44px; height: 24px; border-radius: 12px; background: #D6D3E3; position: relative; transition: .2s; flex: 0 0 auto; }
.switch span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { right: 23px; }

/* ===== النماذج ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid .wide, .form-grid > p, .form-grid > fieldset, .form-grid > .switch { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field label em { color: var(--bad); font-style: normal; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: .15s; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--p); box-shadow: 0 0 0 4px rgba(135,118,196,.15); }
textarea { resize: vertical; min-height: 80px; }
.hint { color: var(--muted); font-size: .8rem; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-col { display: grid; gap: 8px; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; }
.radio:has(input:checked) { border-color: var(--p); background: var(--p-l); color: var(--p-d); font-weight: 700; }
.radio input, .check input { accent-color: var(--p); width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.form-actions { display: flex; gap: 10px; }
.form-intro { background: var(--grad-soft); padding: 12px 16px; border-radius: 12px; color: var(--p-dd); }
.photo-preview { display: flex; align-items: center; gap: 16px; }
.social-fields label i { color: var(--p); width: 18px; }

/* ===== النوافذ المنبثقة ===== */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(30, 24, 70, .45); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal-wrap.show { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: 0 40px 80px -20px rgba(20, 10, 60, .5); transform: translateY(20px) scale(.97); transition: transform .25s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.modal-wrap.show .modal { transform: none; }
.modal.sm { width: min(420px, 100%); }
.modal.md { width: min(640px, 100%); }
.modal.lg { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.2rem; display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.modal-head h3 i { color: var(--p); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #FBFAFE; flex-wrap: wrap; }
.announce .modal-head { border: 0; padding-bottom: 0; }
.ann { text-align: center; }
.ann img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.ann-icon { width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 28px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 2.4rem; box-shadow: var(--sh-lg); animation: bob 3s ease-in-out infinite; }
.ann h2 { font-size: 1.7rem; }
.announce .modal-foot { justify-content: center; border: 0; background: #fff; }
.confirm-msg { font-size: 1.05rem; margin: 0; }
.confirm-login { text-align: center; display: grid; justify-items: center; gap: 6px; }
.confirm-login p { margin: 10px 0 0; color: var(--muted); }
.confirm-login h3 { margin: 0; font-size: 1.4rem; }
.code-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .25em; font-weight: 700; text-transform: uppercase; font-family: var(--f-ui); }
.login-form .err { color: var(--bad); font-weight: 600; margin: 10px 0 0; text-align: center; }
.shake { animation: shake .4s; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.success-msg { text-align: center; }
.success-msg i { font-size: 3.4rem; color: var(--ok); margin-bottom: 10px; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--p-dd); color: #fff; box-shadow: var(--sh-lg); animation: rise .3s both; transition: .4s; }
.toast.error { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ===== الطباعة / PDF ===== */
.print-doc { background: #fff; padding: 20px; }
.print-head { display: flex; align-items: center; gap: 16px; border-bottom: 3px solid var(--p); padding-bottom: 12px; margin-bottom: 20px; }
.print-head img { width: 80px; }
.print-head h1 { margin: 0; font-size: 1.5rem; }
.print-body .card-grid { grid-template-columns: repeat(3, 1fr); }
.print-body .member-card, .print-body .panel { box-shadow: none; break-inside: avoid; }
@media print {
  .print-doc { padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== الاستجابة ===== */
@media (max-width: 1024px) {
  .feature-grid, .org-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .main-nav { display: none; position: absolute; top: 74px; right: 16px; left: 16px; flex-direction: column; background: #fff; padding: 10px; border-radius: 18px; box-shadow: var(--sh-lg); }
  .site-header.open .main-nav { display: flex; }
  .site-header .main-nav a { color: var(--ink-2) !important; }
  .nav-toggle { display: inline-grid; }
  .hdr-actions { margin-inline-start: auto; }
  .composers { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-logo { order: -1; }
  .logo-orb { width: min(260px, 64vw); }
  .hero-body { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .about-grid, .register-card, .custom-sec.has-img { grid-template-columns: 1fr; }
  .register-card { padding: 36px 24px; text-align: center; }
  .members-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; right: 28px; left: auto; width: 4px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; text-align: start; padding: 10px 0; }
  .tl-dot { grid-row: span 3; margin: 0; }
  .check-list { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .ftr-brand { display: grid; justify-items: center; }
  .slot-groups, .review-grid { grid-template-columns: 1fr; }
  .pair-cards { grid-template-columns: 1fr; }
  .pair-link i { transform: rotate(90deg); }
  .dash-hello { flex-wrap: wrap; }
  .hello-stats { margin: 0; }
  /* الجداول تتحول إلى بطاقات على الجوال */
  .table-wrap:has(.rtable) { border: 0; overflow: visible; border-radius: 0; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: #fff; overflow: hidden; box-shadow: 0 4px 14px -10px rgba(46,37,99,.3); }
  .rtable td { position: relative; border: 0; border-top: 1px dashed var(--line); padding: 10px 14px; padding-inline-start: 104px; min-height: 42px; line-height: 1.6; text-align: start; }
  .rtable td:first-child { border-top: 0; }
  .rtable td[data-l]:not([data-l=""])::before { content: attr(data-l); position: absolute; inset-inline-start: 14px; top: 10px; width: 82px; font-weight: 700; color: var(--muted); font-size: .85rem; }
  .rtable td:not([data-l]), .rtable td[data-l=""] { padding-inline-start: 14px; }
  .rtable td:first-child[data-l] { background: var(--p-l); font-family: var(--f-ui); font-size: 1.05rem; color: var(--p-dd); }
  .rtable td:first-child[data-l]::before { color: var(--p); }
  .rtable td small { font-size: .85rem; }
  .rtable td.row-actions { display: flex; flex-wrap: wrap; gap: 8px; background: #FBFAFE; }
  .rtable td.row-actions:empty { display: none; }
  .rtable td.row-actions .btn { flex: 1 1 auto; justify-content: center; padding: .6em 1em; font-size: .88rem; }
  .row-actions { justify-content: flex-start !important; }
  .net-head { display: none; }
  .net-list li { grid-template-columns: 1fr; }
  .net-x { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .sec { padding: 70px 0; }
  .feature-grid, .org-grid, .stats-grid, .steps, .portal-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hdr-actions .btn span, .hdr-actions .btn { font-size: .8rem; }
  .brand small { display: none; }
  .panel { padding: 18px 14px; }
  .dash-hello { padding: 20px; }
  .kpi { min-width: 80px; }
  .modal-body { padding: 16px; }
  .sortable li { flex-wrap: wrap; }
  .sec-actions { width: 100%; }
  .back { position: static; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== نطاقات متابعة تعثر الجلسات ===== */
.band-1 { --bc: #17693A; --bl: #DDF1E4; }
.band-2 { --bc: #3E9B4F; --bl: #EDF8E6; }
.band-3 { --bc: #B8660B; --bl: #FFF1D1; }
.band-4 { --bc: #C62828; --bl: #FDE4E2; }
.band-5 { --bc: #4F3FA0; --bl: #E9E5F8; }
.band-6 { --bc: #7F1D1D; --bl: #F5D5D5; }
.launch-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px; border-radius: var(--r-sm); background: var(--grad-soft); border: 1px dashed #CFC7EE; }
.launch-box > i { font-size: 1.8rem; color: var(--p-d); }
.launch-box > div { flex: 1 1 280px; }
.launch-box p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.band-row { margin-top: 18px; }
.band-row h3.sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.band { background: var(--bl); border: 1px solid color-mix(in srgb, var(--bc) 25%, transparent); border-radius: var(--r-sm); min-height: 96px; overflow: hidden; }
.band header { background: var(--bc); color: #fff; padding: 8px 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 6px; align-items: center; }
.band header b { font-size: .88rem; }
.band header small { grid-column: 1 / -1; opacity: .9; font-size: .72rem; }
.band header em { font-style: normal; background: rgba(255,255,255,.25); border-radius: 99px; padding: 0 8px; font-size: .8rem; }
.band ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 6px; }
.band li { background: #fff; border-radius: 10px; padding: 7px 9px; display: grid; gap: 4px; border-inline-start: 3px solid var(--bc); color: var(--ink); }
.band li.waiting { border-inline-start-style: dashed; }
.band li small { color: var(--muted); font-size: .72rem; }
.band li .btn { justify-self: start; }
.bm-name { font-weight: 700; font-size: .85rem; cursor: pointer; }
.bm-name:hover { color: var(--p-d); text-decoration: underline; }
.band-legend { margin-top: 16px; }
.band-legend summary { cursor: pointer; color: var(--p-d); font-weight: 600; }
.band-legend ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.band-legend li { display: grid; grid-template-columns: 170px 130px 110px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--bl); color: var(--ink); font-size: .85rem; }
.band-legend li em { font-style: normal; font-weight: 700; color: var(--bc); }
.band-legend li p { margin: 0; }
.band-tag { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--bl); color: var(--bc); font-weight: 700; margin-bottom: 8px; }
.remind-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.band-alerts { display: grid; gap: 10px; margin-bottom: 18px; }
.band-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bl); border: 1px solid color-mix(in srgb, var(--bc) 30%, transparent); border-inline-start: 5px solid var(--bc); color: var(--ink); }
.band-alert > i { color: var(--bc); font-size: 1.3rem; margin-top: 2px; }
.band-alert > div { flex: 1; }
.band-alert b { color: var(--bc); }
.band-alert p { margin: 4px 0 0; font-size: .92rem; }
.band-alert small { color: var(--muted); }
.band-alert .btn { background: var(--bc); color: #fff; border-color: var(--bc); align-self: center; }
@media (max-width: 1100px) { .bands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bands { grid-template-columns: 1fr; }
  .band { min-height: 0; }
  .band ul:empty { display: none; }
  .band-legend li { grid-template-columns: 1fr; gap: 2px; }
  .band-alert { flex-wrap: wrap; }
}
/* المرشد داخل النطاق: الصورة والاسم فقط */
.bp { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.bp b { font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp.big { flex-direction: column; gap: 6px; width: 100%; margin-bottom: 10px; }
.bp.big b { font-size: 1.05rem; }
.band li { cursor: pointer; transition: transform .15s; }
.band li:hover { transform: translateY(-1px); box-shadow: var(--sh); }
.band li.waiting .avatar { opacity: .75; }
.add-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.add-stat { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i n a" "l l l"; gap: 4px 10px; align-items: center; text-align: start; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.add-stat > i:first-child { grid-area: i; color: var(--ok); font-size: 1.3rem; }
.add-stat b { grid-area: n; font-family: var(--f-display); font-size: 1.7rem; line-height: 1; }
.add-stat b small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.add-stat span { grid-area: l; font-family: var(--f-ui); font-size: .85rem; color: var(--ink-2); }
.add-stat .arrow { grid-area: a; color: var(--muted); transition: transform .2s; }
.add-stat.active { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-l); }
.add-stat.active .arrow { transform: rotate(180deg); color: var(--p-d); }
.add-stat.warn > i:first-child { color: var(--bad); }
.add-stat-list { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.add-stat-list h4 { margin: 0 0 10px; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.add-stat-list hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.bp-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.bp-list.faded { opacity: .45; filter: grayscale(.6); }
@media (max-width: 900px) { .add-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band .bp b { white-space: normal; overflow: visible; line-height: 1.35; }
.band .bp .avatar { flex: none; }
.band ul { min-height: 44px; }
.danger-text { color: var(--bad); }
.wipe-list { display: grid; gap: 4px; margin: 8px 0; padding: 10px 14px; border-radius: 10px; background: var(--bad-l); font-size: .9rem; }

/* ===== الأخبار ===== */
.news-ticker { display: flex; align-items: stretch; background: var(--p-dd); color: #fff; font-family: var(--f-ui); font-size: .9rem; overflow: hidden; position: relative; z-index: 5; }
.tk-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: linear-gradient(135deg, var(--p-d), var(--p)); font-weight: 700; white-space: nowrap; }
.tk-viewport { flex: 1; overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tk-track { display: flex; width: max-content; animation: tk-scroll var(--tk-dur, 30s) linear infinite; }
.news-ticker:hover .tk-track, .news-ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-set { display: flex; align-items: center; direction: rtl; flex: none; }
.tk-item { background: none; border: 0; color: #fff; font: inherit; padding: 9px 20px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tk-item i { color: #FFD866; }
.tk-item:hover { text-decoration: underline; }
.tk-sep { color: rgba(255,255,255,.35); font-size: .6rem; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .tk-viewport { overflow-x: auto; } }
@media (max-width: 640px) { .tk-label span, .tk-label { padding: 8px 12px; } .tk-label { font-size: 0; gap: 0; } .tk-label i { font-size: 1rem; } }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.news-card:hover, .news-card:focus-visible { transform: translateY(-3px); box-shadow: var(--sh-lg); outline: none; }
.nc-img { aspect-ratio: 16 / 9; background: var(--p-l); overflow: hidden; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.nc-body small { color: var(--muted); }
.nc-body h3 { margin: 0; font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); }
.nc-body p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.7; }
.nc-more { color: var(--p-d); font-weight: 700; font-size: .88rem; }
.news-full .news-content { margin: 14px 0; line-height: 2; color: var(--ink); overflow-wrap: anywhere; }
.news-content blockquote { margin: 10px 0; padding: 8px 16px; border-inline-start: 4px solid var(--p); background: var(--p-l); border-radius: 8px; }
.news-content a { color: var(--p-d); text-decoration: underline; }
.news-content ul, .news-content ol { padding-inline-start: 24px; }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.news-admin-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.news-admin-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.news-admin-list li.is-hidden { opacity: .65; }
.news-admin-list .sec-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.news-admin-list .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--bg); }
.rt-toolbar select { font: inherit; font-size: .85rem; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.rt-color { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--p-d); }
.rt-color input { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; }
.rt-editor { min-height: 220px; max-height: 50vh; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #fff; color: var(--ink); line-height: 2; outline: none; }
.rt-editor:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-l); }
.rt-editor:empty::before { content: attr(data-placeholder); color: var(--muted); }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; }
.rt-toolbar select { width: auto; min-width: 0; max-width: 130px; }
.rt-color input[type=color] { width: 26px; height: 26px; min-width: 0; padding: 0; border: 0; border-radius: 6px; }
.rt-toolbar .icon-btn { width: 34px; height: 34px; }
.rt-color input[type=color] { -webkit-appearance: auto; appearance: auto; width: 30px; height: 26px; padding: 1px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: none; }
.rt-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.rt-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.rt-swatches { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--p-d); }
.rt-swatches button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; min-width: 0; }
.rt-swatches.hl button { border-radius: 6px; }
.rt-swatches button:hover { transform: scale(1.15); }

/* ===== الدعم الفني والإداري ===== */
.ticket-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ticket { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer; transition: box-shadow .15s; }
.ticket:hover, .ticket:focus-visible { box-shadow: var(--sh); outline: none; border-color: var(--p); }
.ticket.unread { border-inline-start: 4px solid var(--p); background: var(--p-l); }
.tk-main { min-width: 0; display: grid; gap: 4px; }
.tk-main b { color: var(--ink); }
.tk-main p { margin: 0; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-side { display: grid; gap: 4px; justify-items: end; flex: none; }
.tk-side small { color: var(--muted); }
.tk-side .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.thread-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.thread-head .btn { margin-inline-start: auto; }
.thread-head .btn + .btn { margin-inline-start: 0; }
.thread-msgs { display: grid; gap: 10px; max-height: 46vh; overflow: auto; padding: 4px 2px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.bubble small { color: var(--muted); display: block; margin-bottom: 4px; }
.bubble p { margin: 0; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.bubble.mine { justify-self: start; background: var(--p-l); border-color: #D8D1F0; border-end-start-radius: 4px; }
.bubble.theirs { justify-self: end; background: #fff; border-end-end-radius: 4px; }
.thread-form { display: grid; gap: 8px; margin-top: 12px; }
.thread-form textarea { width: 100%; }
.thread-form .btn { justify-self: start; }
.search { width: 100%; margin: 10px 0 0; }

/* ===== الشهادات ===== */
.cert-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.cert-filters select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); max-width: 100%; }
.cert-filters .search { flex: 1; min-width: 200px; margin: 0; }
.cert-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); position: sticky; top: 0; z-index: 3; }
.cert-bar .btn { margin-inline-start: auto; }
.cert-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cert-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.cert-list li.sel { border-color: var(--p); background: var(--p-l); }
.cert-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cert-who b { color: var(--ink); }
.cert-who small .warn, .warn { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cert-preview { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; min-height: 120px; display: grid; place-items: center; }
.cert-preview img { width: 100%; display: block; }
.cert-loading { padding: 40px; color: var(--muted); }
.cert-mail { margin-top: 14px; display: grid; gap: 8px; }
.cert-mail h4 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cert-mail textarea, .cert-mail input { width: 100%; }
.cert-tpl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cert-tpl-prev { position: sticky; top: 0; }
.cert-tpl-form { max-height: 70vh; overflow: auto; padding-inline-end: 6px; }
.cert-tpl-form code { background: var(--p-l); padding: 0 5px; border-radius: 4px; direction: ltr; unicode-bidi: embed; }
.bulk-opts { display: grid; gap: 10px; margin-top: 10px; }
.bulk-opt { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; text-align: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); }
.bulk-opt:hover { border-color: var(--p); box-shadow: var(--sh); }
.bulk-opt i { grid-row: 1 / 3; font-size: 1.6rem; color: var(--p-d); }
.bulk-opt small { color: var(--muted); }
.mail-queue { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.mail-queue li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.mail-queue span { display: grid; }
.mail-queue small { color: var(--muted); }
@media (max-width: 860px) { .cert-tpl-grid { grid-template-columns: 1fr; } .cert-tpl-prev { position: static; } }
.modal.xl { width: min(1180px, 100%); }
