@font-face { font-family: 'Thmanyah'; src: url('../assets/thmanyah-text-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah'; src: url('../assets/thmanyah-text-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah'; src: url('../assets/thmanyah-text-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thmanyah Display'; src: url('../assets/thmanyah-display-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Thmanyah Display'; src: url('../assets/thmanyah-display-black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* ---------- الواجهة: لوحة «خطوات قليلة» مفكوكة إلى طبقات ---------- */
.hs { position: relative; z-index: 2; margin-top: -10px; overflow: hidden; isolation: isolate; background: transparent; }
.hs-stage { position: relative; width: 100%; aspect-ratio: 1672 / 941; container-type: inline-size; perspective: 1200px; }
.hs-plate, .hs-plate-m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; user-select: none; }
.hs-plate-m { display: none; }
.hs-inst { position: absolute; z-index: 2; touch-action: pan-y; cursor: grab; will-change: transform; }
.hs-inst-in img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; filter: drop-shadow(-14px 22px 22px rgba(0, 0, 0, .55)); }
.hs-inst:active { cursor: grabbing; }
.hs-tip { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.hs-thread { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.hs-thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.hs-thread .t-blk { stroke: #2c2124; stroke-width: 3.2; }
.hs-thread .t-red { stroke: #a8172b; stroke-width: 3.4; }
.hs-thread .t-hl { stroke: rgba(255, 170, 170, .28); stroke-width: 1; transform: translate(-.6px, -.8px); }
.hs-thread .t-knot { fill: #7d0f1f; }
.hs-thread.hot .t-red { stroke: #e0283f; }
.hs-thread.hot { filter: drop-shadow(0 0 6px rgba(255, 60, 80, .55)); }
.hs-hit-a { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hs-hit { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.hs-hit path { fill: none; stroke: transparent; stroke-width: 36; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.hs-hit-a:focus-visible .hs-hit path { stroke: rgba(255, 120, 130, .18); }
.hs-kicker { position: absolute; z-index: 4; top: 1.8%; right: 3%; font-size: max(10px, .74cqw); letter-spacing: .38em; color: #b98c92; font-family: var(--serif); }
.hs-title { margin: 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; color: #f8e6e4; line-height: 1; pointer-events: none; }
.hs-title span { position: absolute; z-index: 5; display: block; white-space: nowrap;
  text-shadow: 0 .012em 0 #6a1b22, 0 .024em 0 #5c161c, 0 .036em 0 #4d1116, 0 .048em 0 #3f0c11, 0 .1em .16em rgba(0, 0, 0, .55); }
.hs-t1 { top: 4.6%; left: 0; right: 0; text-align: center; font-size: 7.4cqw; transform: rotateX(-10deg) rotateZ(-1.2deg); }
.hs-t2 { top: 75%; right: 6%; font-size: 6.6cqw; transform: rotateX(10deg) rotateZ(1deg); }
.hs-t2 em { font-style: normal; color: #e6c88f; }
.hs-badge { position: absolute; z-index: 4; left: 3.3%; top: 33.3%; width: 15.95%; height: 47.1%; display: grid; place-items: center; align-content: center; gap: 4%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 225, 225, .07), rgba(255, 225, 225, .03)); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.hs-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-badge .o1 { fill: none; stroke: #d7a9b1; stroke-width: 2.4; }
.hs-badge .o2 { fill: none; stroke: rgba(255, 230, 230, .45); stroke-width: 1.2; stroke-dasharray: 2 5; }
.hs-badge .b-top { font-family: var(--display); font-weight: 700; font-size: 1.3cqw; color: #f2dede; }
.hs-badge img { width: 38%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.hs-badge .b-yr { font-size: .95cqw; letter-spacing: .45em; color: #e9cdd0; margin-inline-start: .45em; }
.hs-list { position: absolute; z-index: 5; right: 3.6%; top: 39%; margin: 0; padding: 0; list-style: none; display: grid; gap: .55cqw; justify-items: start; }
.hs-list li { display: flex; align-items: baseline; gap: 1.1cqw; font-family: var(--display); font-weight: 700; font-size: 1.12cqw; color: #e7cfd2; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hs-list .hs-lh { font-size: 1.35cqw; color: #f4e1e2; padding-bottom: .9cqw; margin-bottom: .5cqw; border-bottom: 1px solid rgba(255, 220, 220, .28); }
.hs-list b { font-family: var(--serif); font-weight: 600; font-size: .8cqw; color: #a98589; order: -1; min-width: 1.6cqw; }
.hs-hint { position: absolute; z-index: 5; left: auto; right: 6.4%; top: 88.6%; margin: 0; text-align: right; font-family: var(--display); font-weight: 700; font-size: max(13px, 1.2cqw); color: #ecd6d6; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.hs-hint b { color: #e6c88f; }
/* شاشة غرفة العمليات: صغيرة في الركن الفارغ، بنبض حي وأرقام المنصة الفعلية */
.hs-pulse { position: absolute; z-index: 5; left: 2.2%; right: auto; top: 3.4%; bottom: auto; width: clamp(240px, 17%, 330px); padding: 10px 12px 8px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(30, 8, 11, .78), rgba(12, 3, 5, .72)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 190, .14), 0 20px 40px -20px rgba(0, 0, 0, .7); }
.hs-pulse .om-head { font-size: 12px; gap: 8px; }
.hs-pulse .om-ecg { height: 26px; margin: 4px 0 6px; }
.hs-pulse .om-vals { gap: 5px; }
.hs-pulse .om-vals a { padding: 5px 7px; border-radius: 9px; }
.hs-pulse .om-vals b { font-size: 20px; }
.hs-pulse .om-vals span { font-size: 11px; line-height: 1.3; }
.hs-pulse-cap { position: absolute; bottom: -22px; top: auto; right: 6px; font-family: var(--display); font-weight: 700; font-size: 12px; color: #d79aa3; }
@media (max-width: 1100px) { .hs-pulse .om-ecg { display: none; } .hs-pulse { width: 230px; } }
@media (max-width: 760px) {
  .hs { display: flex; flex-direction: column; }
  .hs-stage { aspect-ratio: auto; height: calc(100svh - 64px); min-height: 600px; max-height: 880px; }
  .hs-plate { display: none; }
  .hs-plate-m { display: block; object-position: 62% 50%; }
  .hs-kicker { top: 14px; right: 16px; font-size: 9px; }
  .hs-t1 { top: 4.5%; font-size: 15.5cqw; }
  .hs-t2 { top: auto; bottom: 16%; right: 0; left: 0; text-align: center; font-size: 12.6cqw; }
  .hs-list { top: 16%; right: 12px; left: 12px; grid-template-columns: repeat(3, auto); justify-content: center; column-gap: 14px; row-gap: 4px; }
  .hs-list li { font-size: 13px; gap: 5px; }
  .hs-list .hs-lh { grid-column: 1 / -1; justify-self: center; font-size: 14px; padding: 0; margin: 0; border: 0; color: #dca4ae; }
  .hs-list b { font-size: 11px; min-width: 16px; }
  .hs-badge { left: 5%; top: 25%; width: 25cqw; height: 33cqw; }
  .hs-badge .b-top { font-size: 2.9cqw; }
  .hs-badge .b-yr { font-size: 2.3cqw; }
  .hs-inst { width: 128cqw !important; left: -38cqw !important; top: 41% !important; rotate: -24deg; }
  .hs-hint { top: auto; bottom: 11%; font-size: 14px; }
  .hs-pulse { position: relative; right: auto; bottom: auto; width: auto; margin: 26px 16px 10px; }
  .hs-pulse .om-ecg { display: block; }
  .hs-pulse-cap { position: static; display: block; margin-top: 6px; text-align: center; }
}
.om-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #ead7d4; }
.om-head .ltr { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; color: #f28a8e; }
.om-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fe08f; box-shadow: 0 0 10px #5fe08f; animation: omBlink 1.6s ease-in-out infinite; }
.om-ecg { display: block; width: 100%; height: 48px; margin: 8px 0 10px; }
.om-ecg path { fill: none; stroke: #ff5a62; stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: omTrace 2.6s linear infinite; }
.om-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.om-vals a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); transition: background .25s; }
.om-vals a:hover, .om-vals a:focus-visible { background: rgba(150, 18, 28, .45); }
.om-vals b { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: #fff; }
.om-vals span { font-size: 13px; color: #d9c3bf; }
@keyframes omTrace { 0% { stroke-dashoffset: 520; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .15; } }
@keyframes omBlink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .om-ecg path { animation: none; stroke-dashoffset: 0; } .om-dot { animation: none; } }

/* معالجة ثنائية اللون بالقرمزي للصور الأرشيفية */
.duo { position: relative; margin: 0; overflow: hidden; background: #3a070b; }
.duo img, .duo-img { filter: grayscale(1) contrast(1.2) brightness(.95); mix-blend-mode: luminosity; }
.duo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #0a0405 100%); }
.duo figcaption { position: absolute; bottom: 14px; inset-inline-start: 16px; z-index: 2; font-size: 13px; color: #d9b8b4; }
.journey2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.journey-fig { position: sticky; top: 90px; height: min(78vh, 760px); border-radius: 28px; }
.journey-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.3); }
.journey-fig { background: #b8323a; }
.big-h { font-size: clamp(36px, 4.4vw, 64px); font-family: 'Thmanyah Display', var(--display); font-weight: 700; }
.lead-p { font-size: 18px; color: var(--muted); margin: 10px 0 34px; max-width: 520px; }
.stops2 { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 4px; }
.stops2 li { counter-increment: s; display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.stops2 li::before { content: counter(s); font-family: var(--serif); font-size: 54px; line-height: .9; color: var(--pink); }
.stops2 h3 { font-size: 28px; }
.stops2 p { margin: 4px 0; font-size: 16px; }
.stops2 small { color: var(--gold); font-size: 14px; }
.history-band { position: relative; height: 80vh; min-height: 480px; overflow: hidden; background: #2a0508; display: grid; align-items: end; }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.history-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0405 0%, transparent 60%), linear-gradient(0deg, #0a0405 0%, transparent 40%); }
.band-text { position: relative; z-index: 2; padding-bottom: 70px; }
.band-quote { margin: 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(42px, 6vw, 96px); line-height: 1.15; color: #fbeeea; text-shadow: 0 3px 0 #5f1a20; }
.band-quote em { font-style: normal; color: #f2b9b4; }
.band-text small { display: block; margin-top: 12px; color: #c9a9a5; font-size: 14px; }
.finale2 { position: relative; overflow: hidden; background: #1a0607; padding: clamp(90px, 12vw, 170px) 0; text-align: center; }
.finale-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; object-position: 40% 50%; opacity: .42; filter: blur(3px) saturate(1.1); }
.finale2::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 20%, #0a0405 85%); }
.finale-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 26px; }
.finale-in .hero-wordmark { width: min(340px, 70%); }
.fin-h { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(46px, 7vw, 116px); line-height: 1.1; display: grid; color: #fbeeea; text-shadow: 0 3px 0 #5f1a20; }
.fin-h span:first-child { transform: perspective(900px) rotateX(-10deg) rotateZ(-2deg); }
.fin-h span:last-child { transform: perspective(900px) rotateX(10deg) rotateZ(2deg); }
.fin-h em { font-style: normal; color: #f2b9b4; }
.footer .credits { font-size: 13px; max-width: 760px; }
@media (max-width: 900px) { .journey2 { grid-template-columns: 1fr; } .journey-fig { position: relative; top: 0; height: 60vh; } }
.section-title h2, .page-head h1 { font-family: 'Thmanyah Display', var(--display); font-weight: 700; }

:root {
  --bg: #090505;
  --bg-2: #120808;
  --panel: rgba(30, 10, 11, .62);
  --panel-solid: #170909;
  --line: rgba(255, 222, 218, .09);
  --line-2: rgba(255, 222, 218, .16);
  --wine: #2e080b;
  --burgundy: #5e0f15;
  --crimson: #8f1820;
  --rose: #c2353c;
  --pink: #e8484f;
  --blush: #fbeeee;
  --gold: #dfbd83;
  --gold-2: #bc8b60;
  --text: #f6ecea;
  --muted: #bca39f;
  --dim: #a68f8b;
  --ok: #7fe0b4;
  --warn: #f3c06b;
  --radius: 22px;
  --display: 'Thmanyah', 'IBM Plex Sans Arabic', sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--crimson); color: #fff; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- atmosphere ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 80% -10%, #2a0709 0%, transparent 55%), radial-gradient(90% 70% at 0% 110%, #1f0507 0%, transparent 60%), var(--bg); }
.atmosphere i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.atmosphere i:nth-child(1) { width: 46vw; height: 46vw; background: #5a0c12; top: -14vw; right: -10vw; }
.atmosphere i:nth-child(2) { width: 34vw; height: 34vw; background: #3a0709; bottom: -12vw; left: -8vw; animation-duration: 32s; }
.atmosphere i:nth-child(3) { width: 22vw; height: 22vw; background: #7a1a1c; top: 40%; left: 38%; opacity: .18; animation-duration: 40s; }
.atmosphere .grain { position: absolute; inset: -50%; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(-6vw, 5vw, 0) scale(1.15); } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 14px; background: linear-gradient(var(--bg) 0%, rgba(8, 6, 8, .72) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.club, .team-mark { display: flex; align-items: center; gap: 12px; }
.club img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.club { min-width: 44px; min-height: 44px; }
.club strong, .team-mark strong { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.2; }
.club small, .team-mark small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.team-mark { padding-inline-start: 22px; border-inline-start: 1px solid var(--line-2); }
.team-mark img { width: 26px; height: 40px; object-fit: contain; }
.team-mark small { font-family: var(--serif); letter-spacing: .14em; font-size: 13px; }
/* هاشتاق الفريق بخط مائل أنيق */
.hashtag { font-family: 'Cormorant Garamond', var(--serif); font-style: italic; font-weight: 700; font-size: 22px; letter-spacing: .01em; padding-inline-start: 20px; border-inline-start: 1px solid var(--line-2); background: linear-gradient(100deg, #f6d6b0 0%, #ff9aa2 55%, #e8484f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; transform: rotate(-3deg); display: inline-block; text-shadow: none; }
@media (max-width: 1100px) { .hashtag { display: none; } }
.top-links { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.top-links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.top-links a:hover, .top-links a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.updates-link { display: inline-flex; align-items: center; gap: 4px; }
.updates-link svg { width: 18px; height: 18px; }
/* تخطّي التنقل لمستخدمي لوحة المفاتيح وقارئ الشاشة */
.skip { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus-visible { transform: none; }
/* شريط النسخة التجريبية */
.demo-strip { padding: 7px clamp(16px, 4vw, 48px); font-size: 13px; line-height: 1.6; text-align: center; color: #ecd6ae; background: rgba(223, 189, 131, .1); border-bottom: 1px solid rgba(223, 189, 131, .22); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .25s var(--spring), background .2s, border-color .2s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); border-color: rgba(232, 72, 79, .4); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, #b01c26, #6a0f16 60%, #3f080d); border-color: rgba(255, 180, 200, .35);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }
.btn-primary:hover { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-gold { background: linear-gradient(135deg, #f1d39b, #bc8b60); color: #2a1208; border-color: transparent; font-weight: 600; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 15px;
  background: linear-gradient(135deg, var(--rose), var(--burgundy)); color: #fff; flex: none; }

/* ---------- liquid glass dock ---------- */
.dock { position: fixed; z-index: 50; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  border-radius: 28px; padding: 8px; isolation: isolate; }
.dock-glass { position: absolute; inset: 0; border-radius: inherit; z-index: -1; overflow: hidden;
  background: linear-gradient(160deg, rgba(140, 18, 26, .34), rgba(48, 6, 9, .30) 60%, rgba(110, 14, 20, .32));
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 222, 216, .45), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 205, 200, .14),
    inset 0 18px 30px -18px rgba(255, 205, 200, .35), 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35); }
.dock-glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 60% at 50% -20%, rgba(255, 255, 255, .22), transparent 55%); }
.dock-items { display: flex; gap: 4px; position: relative; }
.dock a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 8px 10px 6px;
  border-radius: 20px; color: rgba(255, 232, 228, .72); font-size: 13px; line-height: 1.3; transition: color .25s, transform .3s var(--spring); }
.dock a svg { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.dock a:hover { color: #fff; }
.dock a:hover svg { transform: translateY(-2px) scale(1.08); }
.dock a.active { color: #fff; }
.dock a span { white-space: nowrap; }
.dock-blob { position: absolute; z-index: 0; top: 8px; height: calc(100% - 16px); border-radius: 20px; pointer-events: none;
  background: linear-gradient(160deg, rgba(235, 92, 96, .38), rgba(150, 18, 28, .55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 14px rgba(70, 0, 6, .35), 0 6px 20px -6px rgba(215, 45, 50, .7);
  transition: left .55s var(--spring), width .55s var(--spring), opacity .3s; opacity: 0; }
.dock.has-active .dock-blob { opacity: 1; }

/* ---------- layout ---------- */
#view { display: block; min-height: 70vh; padding-bottom: 140px; outline: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.page-enter { animation: pageIn .7s var(--ease) backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #f28a8e; font-size: 13.5px; letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.ltr::before { order: 2; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
.page-head { padding: clamp(28px, 6vw, 64px) 0 28px; }
.page-head h1 { font-size: clamp(38px, 6vw, 72px); margin-top: 10px; }
.page-head h1 em { font-style: normal; color: var(--pink); }
.page-head p { color: var(--muted); max-width: 640px; margin: 10px 0 0; font-size: 17px; }
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(32px, 4.4vw, 54px); margin-top: 8px; }
.section-title p { color: var(--muted); max-width: 520px; margin: 0; }
.card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.open { color: var(--ok); border-color: rgba(127, 224, 180, .3); }
.tag.soon { color: var(--warn); border-color: rgba(243, 192, 107, .3); }
.tag.prep { color: var(--muted); }
.tag.done, .tag.closed { color: var(--dim); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 80px); display: grid; align-items: center; overflow: hidden; margin-top: -10px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 40px 0 120px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero h1 { font-size: clamp(40px, 5.2vw, 82px); line-height: 1.12; }
.hero h1 .l1 { white-space: nowrap; }
.hero h1 em { display: block; font-style: normal; color: var(--pink); text-shadow: 0 0 40px rgba(232, 72, 79, .35); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; margin: 22px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-wordmark { justify-self: center; width: min(460px, 90%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.hero-meta { position: absolute; z-index: 2; bottom: 120px; inset-inline: 0; display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; letter-spacing: .2em; font-family: var(--serif); }
.scroll-cue { display: flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--pink), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- glass section picker (home) ---------- */
.hub-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1400px; }
.glass-tile { position: relative; min-height: 300px; padding: 22px; border-radius: 26px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transform-style: preserve-3d;
  background: linear-gradient(165deg, rgba(150, 22, 30, .30), rgba(34, 5, 7, .55) 55%, rgba(100, 14, 20, .35));
  border: 1px solid rgba(240, 150, 145, .14);
  box-shadow: inset 0 1px 0 rgba(255, 220, 214, .35), inset 0 -30px 60px -30px rgba(0, 0, 0, .6), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease), box-shadow .4s, border-color .4s; }
.glass-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(200px 160px at var(--mx, 50%) var(--my, 0%), rgba(240, 110, 105, .28), transparent 70%); transition: opacity .3s; }
.glass-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.glass-tile:hover { border-color: rgba(240, 150, 145, .35); box-shadow: inset 0 1px 0 rgba(255, 220, 214, .5), 0 40px 80px -30px rgba(160, 30, 70, .7); }
.glass-tile .num { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--pink); letter-spacing: .08em; }
.glass-tile h3 { font-size: 24px; }
.glass-tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.glass-tile .tile-icon { position: absolute; top: 22px; inset-inline-start: 22px; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); transform: translateZ(40px); }
.glass-tile .tile-icon svg { width: 26px; height: 26px; color: #ffd9d4; }
.glass-tile .tile-art { position: absolute; top: 18px; inset-inline-end: 14px; width: 55%; opacity: .9; transform: translateZ(60px); pointer-events: none; }
.glass-tile .go { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: #ffd9d4; font-size: 13px; }
.glass-tile .go svg { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.glass-tile:hover .go svg { transform: translateX(-5px); }

/* ---------- journey ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.journey::before { content: ''; position: absolute; top: 31px; inset-inline: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--crimson), var(--pink), var(--crimson), transparent); opacity: .6; }
.stop { position: relative; text-align: center; padding: 0 10px; }
.stop .dot { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--blush);
  background: radial-gradient(circle at 35% 30%, #c2262f, #5a0c12 70%); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line-2), 0 14px 30px -10px rgba(190, 28, 36, .7); }
.stop h3 { font-size: 22px; margin-bottom: 6px; }
.stop p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 8px; }
.stop small { color: var(--gold); font-size: 13px; }

/* ---------- campaigns ---------- */
.campaign-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1240px) { .campaign-rail { grid-template-columns: 1fr 1fr; } }
.campaign-card { position: relative; padding: 26px; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.campaign-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.campaign-card::before { content: ''; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: var(--c); opacity: .09; filter: blur(30px); }
.campaign-card .brand { height: 104px; width: auto; max-width: 100%; margin: -6px 0 8px; }
.campaign-card h3 { font-size: 21px; }
.campaign-card p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.campaign-card .meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.campaign-card .meta .tag { color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.campaign-card details { margin-top: 14px; font-size: 15px; color: var(--muted); }
.campaign-card summary { cursor: pointer; color: var(--text); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.campaign-card summary::-webkit-details-marker { display: none; }
.campaign-card dl { margin: 10px 0 0; display: grid; gap: 8px; }
.campaign-card dt { color: var(--text); font-weight: 600; font-size: 13px; }
.campaign-card dd { margin: 0; }

/* ---------- team / misc home ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.org-row.top { gap: 14px; }
.member { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.member .avatar { width: 74px; height: 74px; margin: 0 auto 14px; font-size: 28px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .04); }
.member h3 { font-size: 20px; }
.member-photo { position: relative; height: 150px; margin: -10px auto 14px; width: 130px; }
.member-photo::before { content: ''; position: absolute; inset: auto 0 0; height: 130px; border-radius: 50%; background: var(--crimson); }
.member-photo .doc-art { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; -webkit-mask: linear-gradient(#000 82%, transparent); mask: linear-gradient(#000 82%, transparent); }
.member-photo:has(img) { overflow: hidden; border-radius: 0 0 65px 65px; }
.member-photo img { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); height: calc(330px * var(--s, 1)); width: auto; max-width: none; }
.member span { color: var(--muted); font-size: 13px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 26px; }
.feature h3 { font-size: 21px; margin: 14px 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(232, 72, 79, .1); color: var(--pink); }
.feature .ico svg { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); flex: 1 1 260px; }
.chip strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; }
.chip span { color: var(--muted); font-size: 15px; }
.cycle { counter-reset: c; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cycle div { counter-increment: c; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.cycle div::before { content: '0' counter(c); display: block; font-family: var(--serif); color: var(--gold); font-size: 20px; }
.cycle strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.cycle p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* updates feed */
.feed { display: grid; gap: 12px; }
.post { padding: 22px 24px; display: grid; gap: 6px; }
.post header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post h2 { font-size: 21px; }
.post p { margin: 0; color: var(--muted); white-space: pre-line; }
.post time { color: var(--dim); font-size: 13px; margin-inline-start: auto; }
.post.pinned { border-color: rgba(223, 189, 131, .35); background: linear-gradient(160deg, rgba(223, 189, 131, .08), var(--panel)); }

/* finale */
.finale { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.finale h2 { font-size: clamp(44px, 7vw, 100px); line-height: 1.1; }
.finale h2 em { font-style: normal; color: var(--pink); }
.finale img { width: 60px; margin: 0 auto 24px; opacity: .9; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- timeline page ---------- */
.tl-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.next-ev { min-width: 340px; padding: 24px; border-radius: 24px; display: grid; gap: 10px; justify-items: start;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #1a0708), #120606); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.next-ev .next-brand { height: 64px; width: auto; }
.next-ev strong { font-family: var(--display); font-weight: 400; font-size: 22px; }
.clock { display: flex; gap: 8px; }
.clock div { display: grid; justify-items: center; min-width: 62px; padding: 8px 6px; border-radius: 14px; background: rgba(0, 0, 0, .35); }
.clock b { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--blush); font-variant-numeric: tabular-nums lining-nums; }
.clock span { font-size: 13px; color: var(--muted); }
/* الخيط الجراحي */
.suture { position: relative; padding: 30px 0 60px; }
.suture-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
#thread-ghost { fill: none; stroke: rgba(255, 222, 218, .07); stroke-width: 2; stroke-dasharray: 2 8; }
#thread { fill: none; stroke: url(#thread-grad); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--zone) 70%, transparent)); }
#knots .knot { fill: var(--bg); stroke: var(--c, var(--pink)); stroke-width: 2.5; }
#knots .cross { stroke: rgba(255, 222, 218, .35); stroke-width: 1.5; }
.needle { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.stitches { list-style: none; margin: 0; padding: 0; display: grid; gap: 70px; }
.stitch { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; grid-template-areas: "card knot date"; }
.stitch.left { grid-template-areas: "date knot card"; }
.st-knot { grid-area: knot; justify-self: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px var(--bg), 0 0 24px var(--c); position: relative; z-index: 2; }
.st-date { grid-area: date; display: grid; justify-items: start; padding-inline: 34px; }
.stitch.left .st-date { justify-items: end; text-align: end; }
.st-date b { font-family: var(--serif); font-weight: 600; font-size: clamp(80px, 9vw, 140px); line-height: .85; color: var(--c); }
.st-date span { font-family: var(--display); font-size: 30px; }
.st-date small { color: var(--muted); font-size: 14px; }
.st-card { grid-area: card; position: relative; padding: 26px 28px; border-radius: 26px; background: var(--panel-solid); border: 1px solid var(--line);
  transition: border-color .3s; }
.st-card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.st-card::before { content: ''; position: absolute; top: 28px; width: 34px; height: 2px; background: var(--c); }
.stitch.right .st-card::before { left: -34px; }
.stitch.left .st-card::before { right: -34px; }
.st-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 10px; }
.st-brand { height: 74px; width: auto; max-width: 60%; object-fit: contain; }
.st-card h2 { font-size: 26px; }
.st-card p { color: var(--muted); margin: 6px 0 12px; font-size: 15px; }
.st-meta { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 14px; }
.st-meta li { display: flex; gap: 8px; align-items: center; }
.st-meta svg { width: 16px; height: 16px; color: var(--c); flex: none; }
.st-note { font-size: 15px; }
.stitch.done, .stitch.closed { opacity: .55; }
@media (max-width: 900px) {
  .tl-head { grid-template-columns: 1fr; }
  .next-ev { min-width: 0; }
  .clock div { min-width: 0; flex: 1; }
  .stitch, .stitch.left { grid-template-columns: 44px 1fr; grid-template-areas: "knot date" "knot card"; gap: 8px 0; }
  .st-knot { align-self: start; margin-top: 30px; }
  .st-date, .stitch.left .st-date { justify-items: start; text-align: start; padding: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .st-date b { font-size: 56px; }
  .st-date span { font-size: 22px; }
  .st-card::before { display: none; }
  .stitches { gap: 44px; }
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button { border: 1px solid var(--line-2); background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: all .2s; }
.filters button[aria-pressed="true"] { background: rgba(232, 72, 79, .14); color: var(--blush); border-color: rgba(232, 72, 79, .4); }

/* ---------- passport ---------- */
.passport-stage { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
.pp-scene { position: relative; height: 620px; perspective: 2200px; display: grid; place-items: center; }
.pp-book .pp-cover { background: radial-gradient(120% 90% at 30% 20%, var(--cv-a) 0%, color-mix(in srgb, var(--cv-a) 50%, var(--cv-b)) 50%, var(--cv-b) 100%) !important; }
.pp-book .pp-cover .emboss { color: var(--foil); }
.pp-book .pp-cover .frame, .pp-book .pp-cover .chip-ico, .pp-book .pp-cover .chip-ico::before { border-color: color-mix(in srgb, var(--foil) 60%, transparent); }
.pp-book .pp-cover .rule { background: linear-gradient(90deg, transparent, var(--foil), transparent); }
.ts-foil { display: block; width: 66px; height: 100px; background: var(--foil); -webkit-mask: url('../assets/TS-White.svg') center/contain no-repeat; mask: url('../assets/TS-White.svg') center/contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 240, 220, .35)) drop-shadow(0 -1px 0 rgba(0, 0, 0, .55)); }
.pp-book.ivory .pp-cover .emboss { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.pp-book.holo .pp-cover .emboss > * { background: linear-gradient(100deg, #f6d6b0, #ffb3c1, #b5e6ff, #f6d6b0); background-size: 300% 100%; animation: holo 6s linear infinite; }
.pp-book.holo .pp-cover .ts-foil { background: linear-gradient(100deg, #f6d6b0, #ffb3c1, #b5e6ff, #f6d6b0); background-size: 300% 100%; }
.pp-book.holo .pp-cover .t1, .pp-book.holo .pp-cover .t2, .pp-book.holo .pp-cover .t3, .pp-book.holo .pp-cover .t4 { -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes holo { to { background-position: -300% 0; } }
/* شريط المهمة والتقدم */
.quest { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 20px 26px; border-radius: 26px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 18%, #160707), #120606 70%); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: transform .35s var(--ease); }
.quest:hover { transform: translateY(-3px); }
.quest img { height: 64px; width: auto; }
.quest span { color: var(--c); font-size: 13px; }
.quest strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.quest small { color: var(--muted); font-size: 14px; }
.quest-go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #160707 !important; }
.quest-go svg { width: 22px; height: 22px; }
.pp-progress { display: grid; gap: 56px; margin-top: 70px; }
.pp-block h2 { font-size: clamp(28px, 3vw, 40px); display: flex; gap: 14px; align-items: baseline; }
.pp-block h2 .ltr { font-family: var(--serif); color: var(--pink); font-size: .8em; }
.pp-block > p { margin: 6px 0 22px; font-size: 16px; }
.collection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.coll { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; border-radius: 22px; background: rgba(255, 255, 255, .025); text-align: center; transition: transform .4s var(--spring); }
.coll img { height: 60px; width: auto; filter: grayscale(1) brightness(.55); opacity: .5; transition: filter .4s, opacity .4s; }
.coll span { font-size: 13px; color: var(--dim); min-height: 2.6em; display: grid; place-items: center; }
.coll.got { background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.coll.got img { filter: none; opacity: 1; }
.coll.got span { color: var(--c); }
.coll.got span svg { width: 22px; height: 22px; }
.coll:hover { transform: translateY(-4px) rotate(-1deg); }
.rank-hero { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; margin: 10px 0 30px; padding: 26px 34px; border-radius: 28px;
  background: radial-gradient(120% 140% at 85% 50%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 60%), rgba(255, 255, 255, .025); }
.rank-big { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--tc) 55%, transparent)); animation: floatRank 5s ease-in-out infinite; }
@keyframes floatRank { 50% { transform: translateY(-8px); } }
.rank-hero h2 { font-size: clamp(34px, 4vw, 56px); color: var(--tc); }
.rank-hero h2 .ltr { font-family: var(--serif); font-size: .45em; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.rank-bar { height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 14px 0 10px; max-width: 520px; }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 60%, #000), var(--tc)); box-shadow: 0 0 16px var(--tc); }
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; position: relative; }
.ladder::before, .ladder::after { content: ''; position: absolute; top: 48px; height: 4px; border-radius: 4px; inset-inline-start: 8.33%; }
.ladder::before { inset-inline-end: 8.33%; background: rgba(255, 255, 255, .07); }
.ladder::after { width: calc(var(--p) * (100% - 16.66%)); background: linear-gradient(270deg, var(--pink), #b06a3c); box-shadow: 0 0 12px rgba(232, 72, 79, .6); }
.ladder li { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: center; text-align: center; transition: transform .35s var(--spring); }
.ladder li:hover { transform: translateY(-6px); }
.ladder li b { font-family: var(--display); font-weight: 700; font-size: 17px; }
.ladder li small { color: var(--muted); font-size: 13px; }
.ladder li.locked .rank-emblem { filter: saturate(.55) brightness(.62); }
.ladder li.locked:hover .rank-emblem { filter: none; }
.ladder li.locked b { color: var(--dim); }
.ladder li.past .rank-emblem { filter: saturate(.75); }
.ladder li.now .rank-emblem { transform: scale(1.18); filter: drop-shadow(0 0 18px var(--tc)); }
.ladder li.now b { color: var(--tc); }
.holo-rank { animation: holoRank 6s linear infinite; }
@keyframes holoRank { 0% { filter: hue-rotate(0deg) drop-shadow(0 0 18px #e8484f); } 50% { filter: hue-rotate(40deg) drop-shadow(0 0 26px #ffb070); } 100% { filter: hue-rotate(0deg) drop-shadow(0 0 18px #e8484f); } }
@media (max-width: 820px) { .rank-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .rank-hero .rank-bar { margin-inline: auto; } .ladder::before, .ladder::after { display: none; } }.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .025); }
.badge .medal { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: #2a1414; color: var(--dim); }
.badge .medal svg { width: 24px; height: 24px; }
.badge b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.badge small { color: var(--dim); font-size: 13px; }
.badge.got .medal { background: linear-gradient(150deg, #f1d39b, #b8803f); color: #3a1206; }
.badge.got small { color: var(--gold); }
@media (max-width: 820px) {
  .collection { grid-template-columns: repeat(2, 1fr); }
  .ladder { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .badges { grid-template-columns: 1fr 1fr; }
  .quest { grid-template-columns: 1fr auto; }
  .quest img { display: none; }
}
@media (max-width: 560px) { .badges { grid-template-columns: 1fr; } }
.pp-shadow { position: absolute; bottom: 30px; width: 60%; height: 40px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .7), transparent 70%); filter: blur(10px); }
.pp-book { --w: 340px; --h: 480px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)) rotateZ(-2deg); transition: transform .9s var(--ease); }
.pp-book.open { transform: translateX(calc(var(--w) * -.5)) rotateX(calc(var(--rx, 12deg) * .6)) rotateY(calc(var(--ry, -18deg) * .4)); }
.pp-leaf { cursor: pointer; user-select: none; -webkit-user-select: none; }
.pp-cover, .pp-paper { position: absolute; inset: 0; }
.pp-leaf { position: absolute; inset: 0; transform-origin: right center; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
.pp-face, .pp-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px 14px 14px 6px; overflow: hidden; }
.pp-back { transform: rotateY(180deg); border-radius: 14px 6px 6px 14px; }
/* الغلاف */
.pp-cover { background: radial-gradient(120% 90% at 30% 20%, #8e1a1f 0%, #5a0c10 45%, #2c0508 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 10px 0 18px -8px rgba(0, 0, 0, .5); }
.pp-cover::before { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"); }
.pp-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 220, 230, .16) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--sheen, 100%) 0; }
.pp-cover .emboss { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--gold);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .35), 0 -1px 0 rgba(0, 0, 0, .5); }
.pp-cover .emboss img { width: 70px; filter: sepia(1) saturate(2.5) hue-rotate(-12deg) brightness(.92) drop-shadow(0 1px 0 rgba(255, 240, 200, .3)) drop-shadow(0 -1px 0 rgba(0, 0, 0, .6)); }
.pp-cover .t1 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: .22em; line-height: 1.15; }
.pp-cover .t2 { font-family: var(--display); font-size: 19px; }
.pp-cover .rule { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pp-cover .t3 { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; opacity: .85; }
/* اسم حامل الجواز محفور على الغلاف */
.pp-cover .t4 { margin-top: 10px; display: grid; gap: 4px; font-family: 'Thmanyah Display', var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; max-width: 82%; text-wrap: balance; text-shadow: 0 1px 0 rgba(255, 240, 200, .25), 0 -1px 0 rgba(0, 0, 0, .55); }
.pp-cover .t4 small { font-family: var(--serif); font-weight: 600; font-size: 10px; letter-spacing: .28em; opacity: .7; }
.pp-cover .chip-ico { position: absolute; bottom: 30px; width: 46px; height: 32px; border: 1.5px solid var(--gold); border-radius: 6px; opacity: .8; }
.pp-cover .chip-ico::before { content: ''; position: absolute; inset: 9px 15px; border: 1.5px solid var(--gold); border-radius: 50%; }
.pp-cover .frame { position: absolute; inset: 16px; border: 1px solid rgba(223, 189, 131, .35); border-radius: 4px 10px 10px 4px; }
.pp-spine { position: absolute; top: 0; bottom: 0; right: -14px; width: 28px; transform: rotateY(90deg); transform-origin: center; background: linear-gradient(90deg, #240407, #5a0c10, #240407); }
.pp-edge { position: absolute; top: 4px; bottom: 4px; left: -9px; width: 18px; transform: rotateY(-90deg); background: repeating-linear-gradient(90deg, #efe2d6 0 1px, #d8c6b8 1px 2px); }
/* الصفحات */
.pp-paper { background: linear-gradient(90deg, #ecdcd3 0%, #f6ece4 6%, #f8efe8 100%); color: #3b1414; padding: 28px 26px; }
.pp-paper::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(143, 24, 32, .05) 22px 23px), radial-gradient(circle at 50% 50%, rgba(143, 24, 32, .07), transparent 60%); }
.pp-paper::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('../assets/TS-Black.svg') center/42% no-repeat; opacity: .04; }
.pp-back.pp-paper { background: linear-gradient(270deg, #ecdcd3 0%, #f6ece4 6%, #f8efe8 100%); }
.pp-paper .pp-k { margin: 0; font-family: var(--serif); letter-spacing: .2em; font-size: 13px; color: var(--crimson); }
.pp-paper .pp-title { font-family: var(--display); font-size: 22px; margin: 2px 0 14px; color: #2a0a0a; }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pp-photo { overflow: hidden; width: 96px; height: 120px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 44px; color: #fff;
  background: linear-gradient(160deg, var(--rose), var(--burgundy)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); }
.pp-id { display: grid; grid-template-columns: 96px 1fr; gap: 16px; position: relative; z-index: 1; }
.pp-field { font-size: 13px; color: #8b5c5a; letter-spacing: .04em; }
.pp-field b { display: block; font-size: 15px; color: #2a0a0a; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.pp-mrz { position: absolute; bottom: 22px; inset-inline: 26px; font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: .12em; color: #5a3030; direction: ltr; text-align: left; line-height: 1.5; word-break: break-all; }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.pp-stats div { border: 1px solid rgba(143, 24, 32, .2); border-radius: 10px; padding: 8px; text-align: center; }
.pp-stats b { display: block; font-family: var(--serif); font-size: 26px; color: var(--crimson); line-height: 1.1; }
.pp-stats span { font-size: 13px; color: #8b5c5a; }
.pp-level { margin-top: 16px; position: relative; z-index: 1; font-size: 13px; color: #6b3a38; }
.pp-bar { height: 6px; border-radius: 6px; background: rgba(143, 24, 32, .14); overflow: hidden; margin-top: 6px; }
.pp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--rose)); border-radius: inherit; }
.stamps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.stamp { --c: #8f1820; position: relative; aspect-ratio: 1.15; border: 2.5px solid var(--c); border-radius: 50%; color: var(--c); display: grid; place-items: center; text-align: center; padding: 10px;
  transform: rotate(var(--r, -8deg)); opacity: .86; mix-blend-mode: multiply; animation: stampIn .5s var(--spring) both; animation-delay: var(--d, 0s); }
.stamp::before { content: ''; position: absolute; inset: 5px; border: 1px dashed var(--c); border-radius: 50%; }
.stamp.sq { border-radius: 12px; }
.stamp.sq::before { border-radius: 8px; }
.stamp b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.2; display: block; }
.stamp small { font-size: 9.5px; letter-spacing: .08em; display: block; }
.stamp em { font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 14px; }
.stamp.blank { border-style: dashed; opacity: .25; animation: none; }
@keyframes stampIn { from { transform: rotate(var(--r, -8deg)) scale(1.8); opacity: 0; } }
.pp-pageno { position: absolute; bottom: 12px; inset-inline-end: 18px; font-family: var(--serif); font-size: 13px; color: #7d5753; }
.pp-controls { display: flex; gap: 10px; justify-content: center; margin-top: -10px; position: relative; z-index: 3; flex-wrap: wrap; }
.pp-side { display: grid; gap: 14px; }
.xp-ring { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 22px; }
.xp-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.xp-ring .val { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--blush); }
.records { padding: 8px; }
.record { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; }
.record + .record { border-top: 1px solid var(--line); border-radius: 0; }
.record .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(127, 224, 180, .1); color: var(--ok); }
.record .ico svg { width: 18px; height: 18px; }
.record strong { display: block; font-weight: 600; font-size: 15.5px; }
.record span { color: var(--muted); font-size: 13px; }
.record b { font-family: var(--serif); color: var(--gold); font-size: 18px; direction: ltr; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--text); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: rgba(232, 72, 79, .55); box-shadow: 0 0 0 4px rgba(232, 72, 79, .1); }
.f select option { background: var(--panel-solid); }
.auth-shell { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 30px 0; }
.auth-card { width: min(520px, 100%); padding: clamp(24px, 4vw, 40px); }
.auth-card h1 { font-size: 38px; margin: 8px 0 4px; }
.auth-card .switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.auth-card .switch a { color: var(--pink); display: inline-block; padding-block: 8px; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 15px; background: rgba(223, 189, 131, .08); border: 1px solid rgba(223, 189, 131, .25); color: #ecd6ae; }
.err { color: #ff9aa9; font-size: 15px; min-height: 1em; }

/* ---------- invitation ---------- */
.invite-layout { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.invite-layout .card { padding: 24px; }
.invite-preview { position: relative; perspective: 1600px; }
.inv-frame { display: block; width: 100%; max-width: 400px; height: min(82vh, 820px); margin-inline: auto; border: 0; border-radius: 18px; background: #070a26;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.invite-preview canvas { width: 100%; max-width: 520px; margin-inline: auto; height: auto; border-radius: 18px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .3s var(--ease); }
.inv-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-bottom: 26px; }
.inv-picker button { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 20px; border: 0; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; transition: transform .35s var(--spring), background .3s, box-shadow .3s; }
.inv-picker button img { height: 46px; width: 100%; object-fit: contain; }
.inv-picker button:hover { transform: translateY(-3px); }
.inv-picker button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 2px var(--c); color: var(--c); }
.inv-picker button[disabled] { opacity: .35; cursor: not-allowed; }
.inv-note { font-size: 15px; color: var(--text); padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
@media (max-width: 820px) { .inv-picker { grid-template-columns: repeat(3, 1fr); } }
.inv-replay { display: flex; margin: 12px auto 0; }
.tpl-pick { display: flex; gap: 8px; }
.tpl-pick button { flex: 1; height: 54px; border-radius: 12px; border: 2px solid transparent; }
.tpl-pick button[aria-pressed="true"] { border-color: var(--pink); }

/* ---------- compass ---------- */
.compass-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.dial-mini { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: var(--pink); flex: none;
  background: radial-gradient(circle at 35% 30%, #3a0a0c, #120606); box-shadow: inset 0 0 0 2px rgba(226, 192, 127, .45), 0 20px 40px -20px rgba(232, 72, 79, .6); transition: color .4s; }
.q-wrap { max-width: 1000px; }
.q-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.q-title { font-size: clamp(30px, 3.6vw, 48px); margin: 26px 0 24px; }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.opt-card { display: grid; justify-items: center; align-content: start; gap: 14px; padding: 26px 18px; border-radius: 24px; border: 0; text-align: center; font-size: 16px; line-height: 1.5;
  background: rgba(255, 255, 255, .035); color: var(--text); transition: transform .35s var(--spring), background .3s, box-shadow .3s; }
.opt-card:hover { transform: translateY(-6px) rotate(-.5deg); background: color-mix(in srgb, var(--c) 10%, transparent); }
.opt-card .oc-art { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .4s var(--spring); }
.opt-card:hover .oc-art { transform: scale(1.08) rotate(-6deg); }
.opt-card[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.result-wrap { display: grid; gap: 30px; }
.res-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.res-hero h2 { font-size: clamp(40px, 5vw, 72px); color: var(--c); }
.res-hero p { font-size: 17px; margin: 6px 0 0; max-width: 640px; }
.why-line { color: var(--muted); font-size: 15.5px !important; }
.res-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: center; }
.radar { width: 100%; height: auto; overflow: visible; }
.legend { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.res-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 22px; background: color-mix(in srgb, var(--c) 8%, rgba(255, 255, 255, .02)); }
.res-list .oc-art { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.res-list b { font-family: var(--display); font-weight: 400; font-size: 22px; display: block; }
.res-list small { color: var(--muted); font-size: 15px; }
.res-list em { font-style: normal; font-family: var(--serif); font-size: 30px; color: var(--c); }
/* مستكشف التخصصات: قرص كبير وقائمة */
.explorer { margin-top: 120px; }
.explorer h2 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 30px; }
.exp-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; min-height: 560px; }
.exp-list { list-style: none; padding: 0; margin: 0; }
.exp-list button { border: 0; background: none; padding: 4px 0; font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); color: var(--dim); text-align: start; transition: color .25s, transform .3s var(--spring); }
.exp-list button:hover { color: var(--muted); transform: translateX(-6px); }
.exp-list button[aria-pressed="true"] { color: var(--text); }
.exp-list button[aria-pressed="true"]::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); margin-inline-end: 12px; vertical-align: middle; }
.exp-stage { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.disc { width: min(56vh, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--c); display: grid; place-items: center; position: relative;
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, .25); }
.disc.small { width: 200px; }
.disc-art { color: #160707; transform: translateY(-6%); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .12)); }
.disc-art svg { width: 62%; height: auto; margin: auto; }
.disc.small .disc-art svg { width: 75%; }
.exp-info h3 { font-size: 40px; }
.exp-info p { font-size: 17px; margin: 10px 0 20px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.bars i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bars b { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
@media (max-width: 980px) {
  .exp-grid, .exp-stage, .res-grid, .res-hero { grid-template-columns: 1fr; }
  .exp-list { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
  .exp-list button { white-space: nowrap; font-size: 22px; }
  .disc { width: min(80vw, 360px); margin: auto; }
  .res-radar { max-width: 360px; margin: auto; }
}
.compass-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.q-card { padding: clamp(22px, 4vw, 40px); }
.q-card h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 22px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: all .25s var(--ease); }
.opt:hover { border-color: rgba(232, 72, 79, .45); background: rgba(232, 72, 79, .07); transform: translateX(-4px); }
.opt i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.opt[aria-pressed="true"] { border-color: var(--pink); background: rgba(232, 72, 79, .12); }
.opt[aria-pressed="true"] i { background: var(--pink); box-shadow: inset 0 0 0 3px var(--panel-solid); border-color: var(--pink); }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--pink)); transition: width .5s var(--ease); }
.compass-dial { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.compass-dial svg { width: 100%; height: 100%; }
.compass-needle { transition: transform 1.2s var(--spring); transform-origin: 150px 150px; }
.result { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; }
.result .rank { font-family: var(--serif); font-size: 34px; color: var(--pink); }
.result h3 { font-size: 22px; }
.result p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.result .pct { font-family: var(--serif); font-size: 22px; color: var(--gold); }

/* ---------- caselab ---------- */
/* CaseLab: ثلاثة أقسام تحت بعض، لكل قسم عنوانه فوق، وبطاقاته موزعة يمين ووسط ويسار */
.lab-cols { display: grid; gap: 44px; }
.lab-col { display: grid; gap: 18px; }
.lab-col-head { display: grid; justify-items: center; gap: 4px; text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lab-col-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0; }
.lab-col-head .cnt { font-size: .6em; color: var(--muted); margin-inline-start: 4px; }
.lab-col-head p { margin: 0; color: var(--muted); font-size: 15px; }
.lab-col-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.lab-col-cards > * { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; }
@media (max-width: 1000px) { .lab-col-cards > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .lab-col-cards > * { flex-basis: 100%; } .lab-cols { gap: 34px; } }
.lab-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.lab-tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: all .25s; }
.lab-tabs button[aria-pressed="true"] { background: linear-gradient(160deg, rgba(235, 92, 96, .3), rgba(150, 18, 28, .5)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.lab-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.lab-score { display: grid; justify-items: center; padding: 18px 26px; border-radius: 24px; background: rgba(226, 192, 127, .07); }
.lab-score b { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold); }
.lab-score small { color: var(--dim); font-size: 13px; }
.case-card .cc-art { height: 110px; display: grid; place-items: center; color: var(--muted); border-radius: 16px; background: rgba(0, 0, 0, .25); margin-bottom: 4px; }
.case-card .cc-art svg { width: 70%; height: 90%; }
.cc-patient { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 72, 79, .12); color: var(--pink); }
.cc-patient svg { width: 30px; height: 30px; }
.cc-go { display: inline-flex; gap: 6px; align-items: center; color: var(--pink); font-size: 14px; }
.cc-go svg { width: 16px; height: 16px; }
.case-card.done { box-shadow: inset 0 0 0 1.5px rgba(127, 224, 180, .35); }
.case-shell { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; }
.case-side { position: sticky; top: 90px; display: grid; gap: 12px; }
.monitor { border-radius: 22px; padding: 14px; background: #0b0606; box-shadow: inset 0 0 0 1px rgba(100, 240, 160, .14), 0 20px 40px -20px rgba(0, 0, 0, .8); }
.mon-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #ff5a52; font-family: var(--serif); letter-spacing: .1em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a52; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
#ecg { width: 100%; height: 92px; border-radius: 10px; }
.mon-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; direction: ltr; }
.mon-vals div { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); color: #64f0a0; transition: color .4s; }
.mon-vals span { display: block; font-size: 13px; opacity: .7; }
.mon-vals b { font-family: var(--serif); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.mon-vals .warn { color: var(--warn); }
.mon-vals .bad { color: #ff5a52; }
.tool-stage { padding: 30px; border-radius: 22px; background: rgba(255, 255, 255, .03); color: var(--blush); display: grid; place-items: center; }
.tool-stage svg { width: 100%; height: auto; }
.stage-track { display: flex; padding: 8px; gap: 4px; }
.stage-track span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px; font-size: 13px; color: var(--dim); }
.stage-track .past { color: var(--ok); }
.stage-track .now { background: rgba(232, 72, 79, .16); color: var(--text); }
.terms { padding: 16px; display: grid; gap: 10px; }
.terms strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.terms div { display: flex; flex-wrap: wrap; gap: 6px; }
.term { border: 0; background: rgba(226, 192, 127, .12); color: var(--gold); padding: 1px 8px; border-radius: 8px; font-size: inherit; text-decoration: underline dotted; text-underline-offset: 4px; }
.term:hover { background: rgba(226, 192, 127, .22); }
.case-top { display: flex; justify-content: space-between; align-items: center; }
.case-title { font-size: clamp(32px, 3.6vw, 48px); margin: 10px 0 18px; }
.prev-step { padding: 12px 16px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 15.5px; }
.prev-step b { color: var(--text); font-weight: 500; margin-inline-end: 6px; }
.prev-step .okc { color: var(--ok); display: block; margin-top: 4px; }
.prev-step .noc { color: #ff9a92; display: block; margin-top: 4px; }
.stem { padding: 20px 22px; border-radius: 18px; background: rgba(232, 72, 79, .06); font-size: 17px; line-height: 1.8; margin: 12px 0 8px; }
.stem-stage { display: block; color: var(--pink); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.case-q { font-size: 26px; margin: 22px 0 12px; }
.opt { flex-wrap: wrap; }
.opt-why { flex-basis: 100%; display: block; margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); animation: pageIn .5s var(--ease) backwards; }
.opt.right .opt-why { color: #b8f2d6; }
.opt.other { opacity: .78; }
.verdict { margin-top: 14px; padding: 14px 18px; border-radius: 14px; font-size: 16px; }
.verdict.good { background: rgba(127, 224, 180, .1); color: #b8f2d6; }
.verdict.bad { background: rgba(255, 90, 82, .1); color: #ffb3ad; }
.debrief { display: grid; gap: 18px; }
.db-score { display: flex; align-items: baseline; gap: 16px; }
.db-score b { font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--pink); }
.db-score span { font-family: var(--display); font-size: 28px; }
.debrief h2 { font-size: 34px; }
.db-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.db-cols > div { padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .03); }
.db-cols h3 { font-size: 22px; margin-bottom: 10px; }
.db-cols ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 15.5px; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; }
.check li { display: flex; gap: 10px; align-items: center; }
.check svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
@media (max-width: 980px) { .case-shell, .db-cols { grid-template-columns: 1fr; } .case-side { position: static; order: -1; } }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.case-card { padding: 22px; text-align: start; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); display: grid; gap: 8px; transition: transform .3s var(--ease), border-color .3s; }
.case-card:hover { transform: translateY(-4px); border-color: rgba(232, 72, 79, .35); }
.case-card h2 { font-size: 21px; }
.case-card p { margin: 0; color: var(--muted); font-size: 14px; }
.case-card .row { display: flex; justify-content: space-between; align-items: center; }
.case-run { padding: clamp(22px, 4vw, 36px); max-width: 820px; }
.case-run .stem { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); margin: 14px 0 22px; }
.opt.right { border-color: rgba(127, 224, 180, .6); background: rgba(127, 224, 180, .1); }
.opt.wrong { border-color: rgba(255, 120, 140, .6); background: rgba(255, 120, 140, .08); }
.why { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(223, 189, 131, .07); border: 1px solid rgba(223, 189, 131, .22); font-size: 15.5px; animation: pageIn .5s var(--ease); }
.why strong { color: var(--gold); }

/* ---------- structure ---------- */
.suture { overflow-x: clip; }
.org { margin-top: 130px; }
.org h2, .folders-sec h2, .rules h2 { font-size: clamp(30px, 3.4vw, 48px); margin-bottom: 26px; }
.org-tree { display: grid; gap: 34px; }
.org-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
.org-row + .org-row::before { content: ''; position: absolute; top: -34px; left: 50%; height: 34px; border-left: 2px dashed rgba(232, 72, 79, .6); }
.org-row.many::after { content: ''; position: absolute; top: -12px; left: 8%; right: 8%; border-top: 2px dashed rgba(232, 72, 79, .45); }
.org-node { display: grid; gap: 2px; text-align: center; padding: 14px 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 0; color: var(--text); font-family: var(--display); font-size: 19px; }
.org-node small { font-family: var(--body); font-size: 13px; color: #e6d6d2; }
.org-node.lead { background: var(--crimson); font-size: 24px; padding: 18px 34px; }
.org-node.lead small { color: #ffd6d0; }
.org-node.lead2 { background: var(--burgundy); font-size: 24px; padding: 18px 34px; }
.org-row.top .org-node { min-width: 200px; }
.org-node.lead2 small { color: #ffd6d0; }
.org-node.comm { font-size: 16px; box-shadow: inset 0 -3px 0 var(--c); transition: transform .3s var(--spring), background .3s; cursor: pointer; }
.org-node.comm:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--c) 14%, transparent); }
.folders-sec { margin-top: 130px; }
.folders { position: relative; display: grid; padding-top: calc(var(--n) * 44px); }
.folder { grid-area: 1 / 1; position: relative; margin-top: calc(var(--d) * 44px - var(--n) * 44px); }
.folder-tab { position: absolute; top: -40px; inset-inline-start: calc(var(--tab) * (100% - 290px) / (var(--n) - 1)); height: 42px; padding: 0 26px; white-space: nowrap; border: 0; font-family: var(--display); font-size: 16px; color: #170707;
  background: var(--c); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%); white-space: nowrap; transition: filter .2s; }
.folder-tab:hover { filter: brightness(1.12); }
.folder::after { content: ''; display: block; height: 70px; border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--c) 70%, #1a0808); }
.folder.front::after { display: none; }
.folder-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 40px; border-radius: 22px; background: color-mix(in srgb, var(--c) 92%, #000); color: #170707;
  animation: pageIn .5s var(--ease) backwards; }
.fb-brand { height: 80px; width: auto; margin-bottom: 14px; filter: brightness(0) saturate(100%) opacity(.85); }
.fb-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 14px; border-radius: 24px; background: rgba(0, 0, 0, .12); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); }
.fb-ico svg { width: 50px; height: 50px; }
.fb-main h3 { font-size: clamp(32px, 3.4vw, 50px); }
.fb-main p { font-size: 18px; line-height: 1.7; margin: 10px 0 0; max-width: 520px; }
.fb-people { display: grid; gap: 14px; align-content: start; }
.person { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .12); }
.person .avatar { width: 56px; height: 56px; font-size: 20px; background: #170707; color: var(--c); }
.person .avatar.alt { background: rgba(23, 7, 7, .65); }
.person b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; }
.person small { font-size: 15px; opacity: .75; }
.fb-members { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-members span { padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .14); font-size: 14px; }
.coords { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 60px; }
.coord-card { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .03); }
.coord-card .avatar { width: 70px; height: 70px; font-size: 24px; }
.coord-card b { color: var(--pink); font-weight: 500; font-size: 14px; }
.coord-card h3 { font-size: 26px; }
.coord-card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.rules { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; margin-top: 130px; align-items: start; }
.stitch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; font-size: 17px; }
.stitch-list li { padding-inline-start: 34px; position: relative; }
.stitch-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 12px; width: 20px; height: 2px; background: var(--pink); transform: rotate(-30deg); box-shadow: 6px 0 0 var(--pink); }
.duties { margin: 0; padding-inline-start: 26px; columns: 2; column-gap: 34px; font-size: 15.5px; }
.duties li { margin-bottom: 10px; break-inside: avoid; }
.duties li::marker { color: var(--pink); font-family: var(--serif); }
@media (max-width: 820px) {
  .folders { padding-top: 0; }
  .folder:not(.front) { display: none; }
  .folder-tab { position: static; clip-path: none; border-radius: 12px 12px 0 0; display: none; }
  .folder.front .folder-tab { display: inline-block; }
  .folder-body { grid-template-columns: 1fr; padding: 24px; border-radius: 0 22px 22px 22px; }
  .coords, .rules { grid-template-columns: 1fr; }
  .duties { columns: 1; }
}
/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 38px; line-height: 1.1; color: var(--blush); }
.stat span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel-pad { padding: 22px; }
.panel-pad h3 { font-size: 22px; margin-bottom: 14px; }
.inline-actions { display: flex; gap: 6px; }
.search { width: 100%; max-width: 320px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); }

/* ---------- modal & toast ---------- */
dialog.modal { border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--text); border-radius: 24px; padding: 0; width: min(560px, 100% - 32px); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
dialog.modal::backdrop { background: rgba(5, 2, 4, .7); backdrop-filter: blur(6px); }
dialog.modal .m-body { padding: 26px; }
dialog.modal h3 { font-size: 26px; margin-bottom: 14px; }
.install-steps { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; counter-reset: st; }
.install-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.6; }
.install-steps li::before { content: counter(st); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 700; font-size: 14px; }
.install-steps svg { vertical-align: -3px; color: var(--gold); }
#toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 999px; background: rgba(36, 9, 10, .9); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 14px; animation: toastIn .4s var(--spring); }
.toast.bad { border-color: rgba(255, 120, 140, .5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.95); } }

/* reveal on scroll */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(26px); }
@media print { .reveal.pre { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hub-picker { grid-template-columns: repeat(3, 1fr); }
  .passport-stage, .invite-layout, .compass-wrap { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(3, 1fr); }
  .hero-meta { display: none; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 10px; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero-wordmark { order: -1; width: min(300px, 75%); }
  .hero-meta { display: none; }
  .hub-picker { grid-template-columns: 1fr 1fr; }
  .glass-tile { min-height: 230px; }
  .journey { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .journey::before { display: none; }
  .campaign-rail, .trio, .team-grid { grid-template-columns: 1fr 1fr; }
  .ev { grid-template-columns: 1fr; gap: 12px; }
  .ev .brand { max-height: 64px; width: auto; }
  .ev .side { justify-items: start; text-align: start; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .split, .form .row { grid-template-columns: 1fr; }
  .club span, .team-mark span { display: none; }
  .pp-scene { height: 470px; }
  .pp-book { --w: 280px; --h: 400px; }
  .pp-book.open { transform: scale(.56) translateX(calc(var(--w) * -.5)) rotateX(8deg); }
}
@media (max-width: 560px) {
  .dock { left: 8px; right: 8px; transform: none; }
  .dock-items { justify-content: space-between; }
  .dock a { min-width: 0; flex: 1; padding: 8px 2px 6px; font-size: 10px; }
  .dock a span { white-space: normal; text-align: center; font-size: 12px; }
  .hub-picker, .campaign-rail, .trio, .team-grid, .cycle { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .top-links a.hide-sm { display: none; }
  .updates-link, .top-links .lite-toggle { width: 44px; height: 44px; padding: 0 !important; justify-content: center; flex-shrink: 0; }
  .updates-link span, .top-links .lite-toggle span { display: none; }
  .top-links { gap: 4px; }
  .xp-ring { grid-template-columns: 90px 1fr; }
  .xp-ring svg { width: 90px; height: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- CaseLab investigations ---------- */
.inv-grid { display: grid; gap: 14px; margin: 14px 0 6px; }
.inv { border-radius: 20px; background: #0d0606; box-shadow: inset 0 0 0 1px rgba(255, 222, 218, .08); overflow: hidden; }
.inv > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255, 255, 255, .03); flex-wrap: wrap; }
.inv > header b { font-weight: 600; font-size: 15px; }
.inv > header small { color: var(--muted); font-size: 13px; margin-inline-start: auto; }
.inv-tag { font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: .12em; padding: 3px 9px; border-radius: 8px; background: var(--crimson); color: #fff; }
.inv-labs table { width: 100%; font-size: 14.5px; }
.inv-labs th { font-size: 13px; }
.inv-labs td, .inv-labs th { padding: 9px 14px; white-space: nowrap; }
.inv-labs .val b { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.inv-labs .val span { color: var(--muted); font-size: 13px; }
.inv-labs tr.abn .val b { color: #ff8f86; }
.rng-c { width: 42%; }
.rng { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); margin-bottom: 3px; }
.rng .norm { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: rgba(127, 224, 180, .28); }
.rng .dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #0d0606; }
.rng .dot.off { background: #ff6b62; box-shadow: 0 0 0 3px #0d0606, 0 0 12px #ff6b62; }
.rng-c small { color: var(--dim); font-size: 13px; }
.flag { font-family: var(--serif); font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.flag.H { background: rgba(255, 107, 98, .16); color: #ff8f86; }
.flag.L { background: rgba(122, 168, 255, .16); color: #9fc0ff; }
/* imaging viewer */
.inv-pacs { background: #000; }
.pacs-tools { margin-inline-start: auto; display: flex; gap: 4px; }
.pacs-tools button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .06); color: var(--muted); display: grid; place-items: center; }
.pacs-tools button svg { width: 18px; height: 18px; }
.pacs-tools button[aria-pressed="true"] { background: var(--crimson); color: #fff; }
.pacs-frame { position: relative; display: grid; place-items: center; padding: 10px; background: #000; }
.pacs-img { position: relative; width: 100%; overflow: hidden; cursor: ns-resize; touch-action: none; aspect-ratio: 4 / 3; }
.pacs-img img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; user-select: none; transition: filter .08s; }
.pacs-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .4s; }
.pacs-marks ellipse { fill: none; stroke: #ffd24a; stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-dasharray: 6 4; }
.pacs-label { position: absolute; transform: translate(-50%, -100%); padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .75); color: #ffd24a; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.inv-pacs.show-marks .pacs-marks, .inv-pacs.show-marks .pacs-label { opacity: 1; }
.pacs-lens { position: absolute; top: 0; left: 0; width: 170px; height: 170px; border-radius: 50%; pointer-events: none; background-repeat: no-repeat; filter: var(--f);
  box-shadow: 0 0 0 2px #ffd24a, 0 10px 30px rgba(0, 0, 0, .8); z-index: 3; }
.pacs-hud { position: absolute; top: 18px; inset-inline-end: 22px; display: grid; gap: 2px; font-family: var(--serif); font-size: 13px; color: #9fe6c4; text-shadow: 0 1px 2px #000; pointer-events: none; text-align: end; }
.pacs-ctrl { display: flex; gap: 16px; align-items: center; padding: 12px 16px; flex-wrap: wrap; background: #0b0606; }
.pacs-ctrl label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.pacs-ctrl input[type=range] { accent-color: var(--pink); width: 120px; }
.pacs-find { margin-inline-start: auto; display: inline-flex; gap: 8px; align-items: center; border: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 210, 74, .12); color: #ffd24a; font-size: 13.5px; }
.pacs-find svg { width: 16px; height: 16px; }
.pacs-find[disabled] { background: rgba(255, 255, 255, .05); color: var(--dim); cursor: not-allowed; }
.pacs-report { margin: 0; padding: 12px 16px; background: rgba(255, 210, 74, .06); font-size: 15px; animation: pageIn .5s var(--ease) backwards; }
.pacs-report b { color: #ffd24a; margin-inline-end: 6px; }
.pacs-credit { display: block; padding: 6px 16px 10px; color: var(--dim); font-size: 13px; background: #0b0606; }
/* ECG */
.ecg-paper { position: relative; padding: 10px; background: #fff6f3; }
.ecg-paper canvas { width: 100%; height: auto; display: block; cursor: crosshair; border-radius: 6px; }
.ecg-cal { position: absolute; top: 10px; bottom: 10px; border-inline: 2px solid #1f6feb; background: rgba(31, 111, 235, .08); pointer-events: none; }
.ecg-read, .ecg-interp { margin: 0; padding: 10px 16px; font-size: 14.5px; }
.ecg-read b { color: var(--gold); }
.ecg-interp { background: rgba(255, 210, 74, .06); animation: pageIn .5s var(--ease) backwards; }
.ecg-interp b { color: #ffd24a; margin-inline-end: 6px; }
/* score tool */
.inv-score ul { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.inv-score label { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer; font-size: 14.5px; transition: background .2s; }
.inv-score label:hover { background: rgba(255, 255, 255, .04); }
.inv-score input { width: 18px; height: 18px; accent-color: var(--pink); }
.inv-score input.miss { outline: 2px solid #ffd24a; outline-offset: 2px; }
.inv-score em { margin-inline-start: auto; font-style: normal; font-family: var(--serif); color: var(--gold); }
.inv-score footer { display: flex; align-items: center; gap: 18px; padding: 12px 16px; background: rgba(255, 255, 255, .03); }
.sc-total b { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--blush); }
.sc-total span { color: var(--muted); }
.sc-band { padding: 6px 14px; border-radius: 999px; font-size: 14px; background: rgba(127, 224, 180, .14); color: var(--ok); }
.sc-band[data-level="1"] { background: rgba(243, 192, 107, .14); color: var(--warn); }
.sc-band[data-level="2"] { background: rgba(255, 107, 98, .16); color: #ff8f86; }
/* list + debrief extras */
.lab-tabs .cnt { font-family: var(--serif); opacity: .7; margin-inline-start: 4px; }
.cc-art { position: relative; }
.cc-kinds { position: absolute; bottom: 8px; inset-inline-start: 8px; display: flex; gap: 4px; }
.cc-kinds i { font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: rgba(143, 24, 32, .85); color: #fff; }
.cc-steps { font-size: 13px !important; color: var(--dim) !important; }
.tag.xp { color: var(--gold); border-color: rgba(226, 192, 127, .35); }
.tag.xp.got { color: var(--ok); border-color: rgba(127, 224, 180, .4); }
.tag.lvl-intermediate { color: var(--warn); }
.tag.lvl-advanced { color: #ff8f86; }
.case-xp { padding: 14px 16px; display: grid; gap: 2px; }
.case-xp span { color: var(--muted); font-size: 13px; }
.case-xp b { font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1.1; }
.case-xp small { color: var(--dim); font-size: 13px; }
.db-xp { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 15.5px; }
.db-xp.got { background: rgba(127, 224, 180, .1); color: #b8f2d6; }
.specimen { margin: 0; border-radius: 20px; overflow: hidden; background: #0d0606; }
.specimen img { width: 100%; max-height: 320px; object-fit: cover; }
.specimen figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); }
.specimen small { display: block; color: var(--dim); font-size: 13px; }
#lab .opt:hover { transform: translateX(4px); }
#lab .stem, #lab .case-q, #lab .case-title, #lab .prev-step { text-align: left; }
@media (max-width: 640px) { .inv-score ul { grid-template-columns: 1fr; } .rng-c, .rng-h { display: none; } }

/* صور القادة في بطاقة الهيكلة */
.lead-stack { display: flex; justify-content: flex-end; padding-top: 6px; }
.lead-av { position: relative; width: 66px; height: 66px; flex: none; border-radius: 50%; overflow: hidden; margin-inline-start: -16px;
  background: radial-gradient(circle at 40% 28%, #b3232e, #4a0a10 72%); box-shadow: 0 0 0 3px #2a070b, 0 0 0 4.5px rgba(232, 72, 79, .55), 0 10px 20px rgba(0, 0, 0, .55);
  transition: transform .4s var(--spring); }
.lead-av:first-child { margin-inline-start: 0; }
.lead-av img { position: absolute; left: 50%; top: 5px; height: calc(250% * var(--s, 1)); width: auto; max-width: none; transform: translateX(-50%); }
.lead-av .doc-art { position: absolute; left: 50%; top: 0; height: 122%; width: auto; transform: translateX(-50%); -webkit-mask: none; mask: none; }
.glass-tile:hover .lead-av { transform: translateY(-6px); }
.glass-tile:hover .lead-av:nth-child(2) { transition-delay: .04s; }
.glass-tile:hover .lead-av:nth-child(3) { transition-delay: .08s; }
.glass-tile:hover .lead-av:nth-child(4) { transition-delay: .12s; }

@media (max-width: 560px) {
  .chips, .cycle { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; }
  .chips > .chip, .cycle > div { flex: 0 0 78%; scroll-snap-align: start; }
}

/* تعديل ميلان الرأس وتوسيط الوجه في الصور الحقيقية (يُطبّق في الهيكلة والرئيسية) */
img[src*="aseel"] { --tx: -41%; --rot: 4deg; }
img[src*="taha"] { --tx: -60%; --rot: -11deg; }
img[src*="sara"] { --tx: -52%; --rot: -8deg; --s: .74; }
img[src*="shahd"] { --s: .54; }
img[src*="ahd-alotaibi"] { --s: .61; }
.member-photo img, .lead-av img { transform: translateX(var(--tx, -50%)) rotate(var(--rot, 0deg)); transform-origin: 50% 14%; }

/* أماكن لم تُعلن أسماؤها بعد */
.tba { color: var(--muted); font-style: normal; letter-spacing: .01em; }
.org-node.coord.tba { color: #cdb3ae; }
.coord-card h3.tba { color: #cdb3ae; }
.person b.tba { color: inherit; opacity: .62; }
.fb-members span.tba { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }

/* ---------- زر الوضع الخفيف ---------- */
.lite-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .05); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 200, 190, .14); transition: background .25s, color .25s; }
.lite-toggle svg { width: 18px; height: 18px; }
.top-links .lite-toggle + .fs-toggle { margin-inline-start: -4px; }
.lite-toggle:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.lite-toggle[aria-pressed="true"] { background: rgba(95, 224, 143, .12); color: #9ff0bf; box-shadow: inset 0 0 0 1px rgba(95, 224, 143, .4); }

/* ---------- الوضع الخفيف: بلا ضبابية ولا حركات مستمرة ولا مشهد ثلاثي الأبعاد ---------- */
.lite *, .lite *::before, .lite *::after { animation: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lite .atmosphere i, .lite .atmosphere .grain { display: none; }
.lite .topbar { background: var(--bg); }
.lite .dock .dock-glass { background: rgba(28, 7, 10, .96); }
.lite .glass-tile::after { display: none; }
.lite .hs-pulse { background: rgba(22, 6, 8, .92); backdrop-filter: none; } .lite .hs-badge { backdrop-filter: none; }
.lite .reveal.pre { opacity: 1; transform: none; }
.lite .om-ecg path { stroke-dashoffset: 0; }
.tray-still { object-fit: cover; object-position: 30% 50%; }

/* ---------- جرّاح وجرّاحة الشهر: لوح الأشعة ---------- */
:root { --xr-light: #e9f1f6; --xr-ink: rgba(226, 238, 246, .78); --mono: 'IBM Plex Mono', ui-monospace, monospace; }
.xr-month { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); color: var(--muted); margin: 0 0 14px; }
.xr-box { padding: clamp(14px, 2.4vw, 28px); border-radius: 20px; background: linear-gradient(180deg, #1c1718, #100c0d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.xr-panels { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 24px); max-width: 760px; margin-inline: auto; }
.xr-panel { position: relative; margin: 0; }
.xr-screen { position: relative; padding: 5%; }
.xr-light { position: absolute; inset: 0; border-radius: 8px; background: radial-gradient(110% 80% at 50% 38%, #fbfdff 0%, var(--xr-light) 45%, #b7c6d1 100%); box-shadow: 0 24px 70px -24px rgba(190, 220, 240, .45); animation: xr-on 1.1s steps(1, end) both; }
.xr-box.still .xr-light { animation: none; }
@keyframes xr-on { 0% { opacity: 0; } 10% { opacity: .75; } 16% { opacity: .08; } 26% { opacity: .9; } 32% { opacity: .35; } 44%, 100% { opacity: 1; } }
.xr-clip { position: absolute; top: -7px; left: 50%; z-index: 3; width: 54px; height: 16px; margin-left: -27px; border-radius: 4px; background: linear-gradient(180deg, #d9d3cd, #8a837e); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
.xr-film { position: relative; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden; background: radial-gradient(90% 70% at 50% 45%, rgba(20, 30, 40, .96), rgba(4, 7, 10, .99)); }
.xr-film::after { content: ''; position: absolute; inset: 0; opacity: .16; mix-blend-mode: screen; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.xr-film img { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; max-width: none; transform: translateX(-50%) !important;
  filter: grayscale(1) contrast(1.6) brightness(.95) sepia(.3) hue-rotate(165deg) saturate(.7) blur(.3px); mix-blend-mode: screen; opacity: .9; }
.xr-ghost { position: absolute; inset: 8% 10% 0; width: 80%; height: 92%; color: rgba(214, 230, 242, .3); filter: blur(.6px); }
.xr-lbl { position: absolute; top: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--xr-ink); }
.xr-lbl.tl { left: 10px; } .xr-lbl.tr { right: 10px; }
.xr-mark { position: absolute; bottom: 10px; left: 10px; width: 24px; height: 24px; display: grid; place-items: center; font: 500 13px var(--mono); color: var(--xr-ink); border: 1.5px solid var(--xr-ink); border-radius: 3px; }
.xr-stamp { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-8deg); padding: 6px 14px; border: 2px solid rgba(232, 72, 79, .75); border-radius: 6px; color: #ff8a8f; font: 700 15px var(--display); white-space: nowrap; background: rgba(9, 5, 5, .4); }
.xr-panel figcaption { position: relative; display: grid; gap: 2px; padding: 16px 4px 0; text-align: center; }
.xr-panel figcaption b { font: 700 clamp(17px, 2vw, 22px) var(--display); }
.xr-panel figcaption span { color: var(--muted); font-size: 15px; }
.xr-box.mini .xr-panel figcaption b { font-size: 16px; }
.xr-box.mini .xr-lbl.tl { display: none; }
.xr-strip { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: thin; }
.xr-thumb { flex: none; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 0; background: #12161a; color: var(--muted); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(214, 230, 242, .14); transition: background .2s, color .2s; }
.xr-thumb:hover { color: var(--text); }
.xr-thumb[aria-pressed="true"] { background: var(--xr-light); color: #0d1216; font-weight: 600; }
.xr-reports { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); margin-top: 28px; }
.rx { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rx h3 { font: 700 clamp(24px, 3vw, 34px)/1.3 var(--display); margin: 4px 0 2px; }
.rx header small { color: var(--dim); font-size: 14px; }
.rx h4 { margin: 24px 0 10px; font-size: 14px; font-weight: 600; color: var(--dim); }
.rx.pending h3 { font-size: 22px; margin: 0; }
.rx.pending p { margin: 10px 0 0; }
.rx-find { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rx-find li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rx-find b { font: 700 28px/1 var(--display); color: var(--xr-light); font-variant-numeric: tabular-nums; }
.rx-find span { color: var(--muted); font-size: 14px; }
.rx-find p { margin: 0; grid-column: 1 / -1; }
.rx-imp { margin: 0; font-size: 18px; line-height: 1.8; }
.rx footer { margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--dim); font-size: 14px; }
.xr-protocol { margin: clamp(56px, 8vw, 96px) 0 40px; }
.xr-protocol h2 { font: 700 clamp(26px, 3.4vw, 40px) var(--display); margin: 0 0 20px; }
.xr-protocol ol { list-style: none; margin: 0; padding: 0; }
.xr-protocol li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.xr-protocol li b { font: 700 19px var(--display); }
.xr-protocol li p { margin: 0; color: var(--muted); }
.honor-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.honor-teaser .xr-box { max-width: 560px; }
.honor-h { font: 700 clamp(32px, 4.4vw, 54px)/1.2 'Thmanyah Display', var(--display); margin: 0 0 12px; }
.honor-h em { font-style: normal; color: var(--pink); }
.honor-teaser .btn { margin-top: 20px; }
@media (max-width: 820px) {
  .xr-reports, .honor-teaser { grid-template-columns: 1fr; }
  .xr-protocol li { grid-template-columns: 1fr; }
  .xr-lbl { font-size: 10px; top: 6px; } .xr-lbl.tl { display: none; } .xr-lbl.tr { right: 6px; }
  .xr-mark { width: 20px; height: 20px; font-size: 11px; bottom: 6px; left: 6px; }
  .xr-stamp { font-size: 13px; padding: 4px 10px; }
}

/* غرفة القراءة: رأس اللوح، لوح الموسم، طلب القراءة */
.xr-page .page-head { position: relative; }
.xr-head { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 22px; }
.xr-plate { display: grid; padding: 6px 14px; border-radius: 6px; background: linear-gradient(180deg, #2a2425, #1a1516); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .08); line-height: 1.3; }
.xr-plate b { font: 700 15px var(--display); }
.xr-plate small { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--dim); }
.xr-month-lbl { margin-inline-start: auto; font: 700 clamp(18px, 2.2vw, 24px) var(--display); color: var(--muted); }
.xr-switch { position: relative; width: 52px; height: 30px; flex: none; border: 0; border-radius: 999px; background: #0c0a0b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 2px 4px rgba(0, 0, 0, .6); }
.xr-switch i { position: absolute; top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #e9e3de, #9a938e); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.xr-switch[aria-pressed="true"] { background: rgba(190, 220, 240, .22); }
.xr-switch[aria-pressed="true"] i { transform: translateX(-22px); }
.xr-box .xr-light { transition: opacity .35s var(--ease); }
.xr-box.off .xr-light { opacity: .06; }
.xr-box.off .xr-film img { opacity: .35; }
.xr-reports .rx { position: relative; overflow: hidden; }
.rx-form { margin: 18px 0 0; display: grid; gap: 14px; }
.rx-form div { display: grid; grid-template-columns: 84px 1fr; align-items: end; gap: 12px; }
.rx-form dt { color: var(--dim); font-size: 14px; }
.rx-form dd { margin: 0; height: 1px; border-bottom: 1px dashed var(--line-2); }
.rx-note { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.rx-seal { position: absolute; top: 22px; inset-inline-end: 22px; padding: 4px 12px; border: 2px solid rgba(232, 72, 79, .55); border-radius: 6px; color: #ff8a8f; font: 700 14px var(--display); transform: rotate(6deg); }
.xr-season { margin-top: clamp(56px, 8vw, 96px); }
.xr-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.xr-sec-head h2, .xr-protocol h2 { font: 700 clamp(26px, 3.4vw, 40px) var(--display); margin: 0; }
.xr-sec-head p { margin: 0; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 14px; }
.sw-film { display: grid; gap: 4px; justify-items: center; padding: 0; border: 0; background: none; color: var(--text); text-align: center; }
.sw-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; display: flex; gap: 4%; padding: 7%; border-radius: 6px; background: #0e0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: box-shadow .25s, background .25s; }
.sw-frame > * { display: block; flex: 1; border-radius: 2px; background: #0a0d10; overflow: hidden; }
.sw-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.5) sepia(.3) hue-rotate(165deg) saturate(.7); mix-blend-mode: screen; }
.sw-film.lit .sw-frame { background: radial-gradient(110% 90% at 50% 40%, #fbfdff, #c7d4de); }
.sw-film.lit .sw-frame > * { background: radial-gradient(90% 70% at 50% 45%, #18222b, #05080b); }
.sw-film.lit .sw-frame i { background: radial-gradient(28% 22% at 50% 30%, rgba(214, 230, 242, .22), transparent 70%), radial-gradient(60% 40% at 50% 92%, rgba(214, 230, 242, .14), transparent 70%), radial-gradient(90% 70% at 50% 45%, #18222b, #05080b); }
.sw-film[aria-pressed="true"] .sw-frame { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--xr-light); }
.sw-film:disabled { cursor: default; }
.sw-film.dark .sw-frame::after { content: ''; position: absolute; inset: 7%; border-radius: 2px; border: 1px dashed rgba(255, 255, 255, .1); }
.sw-name { margin-top: 6px; font: 700 16px var(--display); }
.sw-film small { color: var(--dim); font-size: 13px; }
.sw-film.dark .sw-name { color: var(--muted); }
@media (max-width: 820px) {
  .xr-plate small { display: none; }
  .rx-seal { top: 18px; inset-inline-end: 18px; font-size: 13px; }
  .sw-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
}

/* البوصلة: حقائق التدريب والمقارنة */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.exp-stage .disc { width: min(40vh, 300px); }
.fact-years { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.fact-years b { font: 700 28px/1.1 var(--display); color: var(--c); }
.fact-years span { color: var(--muted); font-size: 15px; }
.fact-src { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fact-src:hover { color: var(--text); }
.exp-more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.exp-more h4 { margin: 0 0 10px; font: 700 17px var(--display); }
.exp-more h4 + .bars { margin-top: 0; }
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ev-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.ev-bar { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ev-bar b { display: block; height: 100%; border-radius: inherit; }
.ev-list em { font-style: normal; color: var(--ink, #f4ede2); font-weight: 600; white-space: nowrap; }
.ev-list .ev-t { white-space: normal; text-align: end; }
.ev-src { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); opacity: .8; unicode-bidi: plaintext; text-align: right; }
.ev-none, .ev-years { font-size: 14px; color: var(--muted); }
.res-evidence h3 { margin: 0 0 10px; }
.exp-more p { margin: 0 0 22px; color: var(--muted); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fact-list li { padding-inline-start: 16px; position: relative; }
.fact-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.compare { margin-top: clamp(64px, 9vw, 110px); }
.compare h2, .compass-note h2 { font: 700 clamp(28px, 3.6vw, 44px) var(--display); margin: 0 0 6px; }
.cmp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; max-width: 640px; }
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 16px 18px; text-align: start; vertical-align: top; border-top: 1px solid var(--line); border-bottom: 0; white-space: normal; }
.cmp thead th { border-top: 0; font: 700 clamp(19px, 2vw, 24px) var(--display); color: var(--c, var(--text)); }
.cmp thead th .cmp-art { display: block; margin-bottom: 6px; color: var(--c); }
.cmp tbody th { width: 160px; color: var(--dim); font-weight: 500; font-size: 15px; }
.cmp td { width: calc((100% - 160px) / 2); }
.cmp-years { font: 700 22px var(--display); }
.cmp-meter { display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 8px; max-width: 220px; }
.cmp-meter i { display: block; height: 100%; width: var(--v); background: var(--c); border-radius: inherit; }
.compass-note { margin: clamp(56px, 8vw, 96px) 0 40px; max-width: 760px; }
.compass-note p { color: var(--muted); }
@media (max-width: 900px) {
  .exp-more { grid-template-columns: 1fr; gap: 20px; }
  .exp-stage .disc { width: 180px; }
  .cmp-pick { grid-template-columns: 1fr; }
  .cmp tbody th { width: 110px; }
}
@media (max-width: 600px) {
  .cmp, .cmp thead, .cmp tbody { display: block; min-width: 0; }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp thead th:first-child { display: none; }
  .cmp th, .cmp td { width: auto; padding: 12px 10px; font-size: 14px; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; font-size: 13px; }
  .cmp tbody td { border-top: 0; }
  .cmp thead th { font-size: 17px; }
  .cmp-years { font-size: 18px; }
}

/* سجل محاولات البوصلة */
.cmp-hist { margin-bottom: 36px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.hist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hist-head h2 { font: 700 clamp(22px, 2.6vw, 30px) var(--display); margin: 0; }
.cmp-hist > p { margin: 6px 0 16px; font-size: 15px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hist-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.hist-list time { min-width: 150px; color: var(--dim); font-size: 14px; }
.hist-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hist-list ol li { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); font-size: 14px; }
.hist-list ol li span { color: var(--muted); font-size: 13px; }
.hist-change { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 15px; }

/* بطاقة العضوية */
dialog.mcard-dlg { border: 0; padding: 0; background: transparent; color: var(--text); width: min(400px, 100% - 24px); max-height: 100dvh; overflow: auto; }
dialog.mcard-dlg::backdrop { background: rgba(5, 2, 4, .82); backdrop-filter: blur(8px); }
.mc-wrap { display: grid; gap: 14px; justify-items: center; padding: 16px 0; }
.mc-hello { margin: 0; font: 700 22px var(--display); text-align: center; }
.mcard { --gold: #e6c58c; position: relative; width: 100%; aspect-ratio: 4 / 5.6; display: grid; grid-template-rows: auto auto 1fr auto auto auto; justify-items: center; gap: 10px; padding: 34px 24px 22px; border-radius: 28px; overflow: hidden; text-align: center;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 240, 220, .8), transparent 60%), radial-gradient(1px 1px at 84% 12%, rgba(255, 240, 220, .7), transparent 60%),
    radial-gradient(1.4px 1.4px at 92% 46%, rgba(243, 220, 174, .8), transparent 60%), radial-gradient(1px 1px at 8% 62%, rgba(255, 240, 220, .6), transparent 60%),
    radial-gradient(1.2px 1.2px at 22% 88%, rgba(243, 220, 174, .7), transparent 60%), radial-gradient(1px 1px at 78% 84%, rgba(255, 240, 220, .6), transparent 60%),
    radial-gradient(120% 70% at 50% 22%, #6a1018 0%, #2e080b 55%, #120406 100%);
  box-shadow: inset 0 0 0 2px rgba(230, 197, 140, .75), inset 0 0 0 10px rgba(46, 8, 11, .0), 0 40px 90px -30px rgba(0, 0, 0, .9);
  animation: mc-in .7s var(--ease) both; }
@keyframes mc-in { from { opacity: 0; transform: translateY(26px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
.mcard-dlg.still .mcard { animation: none; }
.mcard.special { box-shadow: inset 0 0 0 2.5px var(--gold), 0 40px 90px -30px rgba(0, 0, 0, .9); }
.mcard::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 72%, rgba(255, 210, 230, .12) 78%, rgba(255, 230, 170, .16) 82%, rgba(150, 220, 255, .1) 86%, transparent 92%); animation: mc-foil 8s linear infinite; pointer-events: none; }
.mcard-dlg.still .mcard::before { animation: none; }
.mcard.special::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 226, 170, .22) 80%, transparent 90%); animation: mc-foil 6s linear infinite; pointer-events: none; }
.mcard-dlg.still .mcard.special::before { animation: none; }
@keyframes mc-foil { to { transform: rotate(1turn); } }
.mcard > * { position: relative; }
.mc-slot { position: absolute; top: 12px; width: 70px; height: 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.mc-head { display: flex; align-items: center; gap: 10px; }
.mc-head img { width: 26px; height: 54px; filter: drop-shadow(0 0 10px rgba(230, 197, 140, .35)); }
.mc-head span { display: grid; text-align: start; line-height: 1.2; }
.mc-head b { font: 700 17px var(--display); }
.mc-head small { font: 600 11px var(--serif); letter-spacing: .3em; color: var(--gold); }
.mc-tag { padding: 4px 14px; border-radius: 99px; font: 700 12.5px var(--body); color: #f3dcae; background: rgba(230, 197, 140, .12); box-shadow: inset 0 0 0 1px rgba(230, 197, 140, .6); }
.mc-tag i { font: 700 11.5px var(--serif); font-style: normal; letter-spacing: .06em; }
.mc-photo { width: 44%; aspect-ratio: 1; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; overflow: hidden; background: #3a0c12; box-shadow: 0 0 0 4px rgba(255, 222, 218, .25); }
.mc-photo { box-shadow: 0 0 0 4px var(--gold), 0 0 28px rgba(230, 197, 140, .45) !important; }
.mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.mc-ini { font: 900 44px var(--display); line-height: 1; }
.mc-add { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.mc-add svg { width: 14px; height: 14px; }
.mc-name { margin: 6px 0 0; font: 900 clamp(24px, 7vw, 30px)/1.2 'Thmanyah Display', var(--display); }
.mc-no { display: grid; line-height: 1; }
.mc-no small { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.mc-no b { font: 900 clamp(64px, 20vw, 86px)/1 'Thmanyah Display', var(--display); color: #fbeeea; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mc-no b { background: linear-gradient(180deg, #fff0c9, #e6c58c 50%, #a87a3c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(230, 197, 140, .35)); }
.mc-badge { padding: 4px 14px; border-radius: 99px; background: var(--gold); color: #2a1208; font-weight: 700; font-size: 13px; }
.mc-foot { display: grid; gap: 2px; margin-top: auto; }
.mc-foot b { font: italic 700 27px 'Cormorant Garamond', var(--serif); color: var(--gold); text-shadow: 0 0 16px rgba(230, 197, 140, .35); }
.mc-foot small { color: var(--dim); font-size: 12px; }
.mc-cta { margin: 0; text-align: center; font-size: 15px; }
.mc-cta b { color: var(--gold); }
.mc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mc-actions .btn { min-height: 44px; }
.mc-note { margin: 0; font-size: 12.5px; color: var(--dim); }
/* البطاقة تأخذ ارتفاع محتواها (الشارات الإضافية لا تضغط الصورة فوق الاسم) */
.mcard { aspect-ratio: auto; grid-template-rows: none; gap: 9px; padding: 34px 24px 24px; }
.mc-foot { margin-top: 4px; }
.mc-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.mc-confetti i { position: absolute; top: -20px; border-radius: 2px; opacity: 0; animation: mc-fall linear forwards; }
@keyframes mc-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(var(--r)); } 100% { opacity: .9; transform: translate(var(--dx), 105vh) rotate(calc(var(--r) + 720deg)); } }
@media (prefers-reduced-motion: reduce) { .mc-confetti { display: none; } }

/* لوحة الإدارة: التحقق الثنائي وقائمة الأعضاء */
.mfa-card { max-width: 460px; margin: clamp(32px, 8vw, 80px) auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.mfa-card h1 { font: 700 clamp(26px, 4vw, 34px) var(--display); margin: 0; }
.mfa-card .form { width: 100%; text-align: start; }
.mfa-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(232, 72, 79, .12); color: var(--pink); }
.mfa-ico svg { width: 28px; height: 28px; }
.mfa-qr { display: grid; gap: 10px; justify-items: center; }
.mfa-qr img { width: 200px; height: 200px; padding: 10px; border-radius: 14px; background: #fff; }
.mfa-qr code { display: block; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); font-size: 13px; word-break: break-all; }
.mf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mf-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.mf-bar { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mf-bar .search { width: 100%; }
.mlist { display: grid; gap: 10px; }
.mrow { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.mrow-av { width: 46px; height: 46px; font-size: 17px; }
.mrow-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mrow-top b { font-size: 17px; }
.mrow-mail { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.mrow-dl { margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 18px; }
.mrow-dl dt { color: var(--dim); font-size: 12.5px; }
.mrow-dl dd { margin: 0; font-weight: 600; font-size: 14.5px; }
.mrow-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.mrow-role { padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); font-size: 13px; }
.tag.gold { color: var(--gold); border-color: rgba(223, 189, 131, .45); }
.tag.role-admin { color: #9fd6ff; border-color: rgba(159, 214, 255, .4); }
.tag.role-super_admin { color: var(--gold); border-color: rgba(223, 189, 131, .5); background: rgba(223, 189, 131, .08); }
.btn-danger { color: #ff9a9e; border-color: rgba(232, 72, 79, .45); background: rgba(232, 72, 79, .08); }
.btn-danger:hover:not(:disabled) { background: rgba(232, 72, 79, .18); }
@media (max-width: 760px) {
  .mf-bar { grid-template-columns: 1fr 1fr; }
  .mf-q { grid-column: 1 / -1; }
  .mrow { grid-template-columns: auto 1fr; }
  .mrow-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

/* حساب المستخدم في الشريط العلوي */
.me { position: relative; }
.me-chip { --tier: var(--gold); --tier-hi: #fff3d6; position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--panel-solid);
  box-shadow: inset 0 0 0 1px rgba(255, 222, 218, .12), 0 10px 24px -14px rgba(0, 0, 0, .8); color: var(--text); text-align: start; cursor: pointer; transition: box-shadow .25s, transform .25s; }
/* شريط بلون الرتبة على حافة البطاقة مثل بطاقة هوية المستشفى */
.me-chip.r1::before { content: ''; position: absolute; inset-block: 8px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--tier-hi), var(--tier)); box-shadow: 0 0 10px var(--tier); }
.me-chip:hover, .me-chip[aria-expanded="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 55%, transparent), 0 10px 28px -12px color-mix(in srgb, var(--tier) 45%, transparent); }
.me-chip:active { transform: scale(.98); }
.me-ring { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.me-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.me-stitch { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2.6; stroke-dasharray: 1.8 2.2; stroke-linecap: round; }
.me-stitch.on { stroke: var(--tier); filter: drop-shadow(0 0 2px var(--tier)); }
#me-prog { transition: stroke-dasharray 1.2s var(--ease); }
.me-ring .me-av { width: 38px; height: 38px; font-size: 14px; box-shadow: none; }
.me-av { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font: 700 16px var(--display); background: var(--burgundy); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold-2); }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.me-txt { display: grid; gap: 1px; line-height: 1.3; min-width: 0; }
.me-txt b { font: 700 14.5px var(--display); white-space: nowrap; }
#me-rank { display: flex; align-items: center; gap: 6px; color: var(--tier-hi); font-size: 12px; font-weight: 600; white-space: nowrap; }
#me-rank i { width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--tier); box-shadow: 0 0 6px var(--tier); }
.me-xp { font: 500 11px var(--mono, 'IBM Plex Mono', monospace); color: var(--muted); letter-spacing: .02em; }
/* ===== سلّم الزينة حسب الرتبة ===== */
@property --me-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.me-shine, .me-fx > * { display: none; }
.me-fx { position: absolute; inset: 0; pointer-events: none; }
/* فضي: إطار بلون الرتبة */
.me-chip.r2 { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 40%, transparent), 0 10px 24px -14px rgba(0, 0, 0, .8); }
/* ذهبي: لمسة لون في الخلفية وشارة الرتبة بجانب اسمها */
.me-chip.r3 { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--tier) 16%, transparent), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--panel-solid); }
.me-emb { display: inline-grid; width: 18px; height: 18px; margin: -4px 0; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tier) 60%, transparent)); }
.me-emb svg { width: 18px; height: 18px; }
/* بلاتيني: لمعة تمرّ على البطاقة */
.me-chip.r4 .me-shine { display: block; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.me-chip.r4 .me-shine::after { content: ''; position: absolute; inset: -20% auto -20% -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier-hi) 35%, transparent), transparent); animation: meShine 6s ease-in-out infinite; }
@keyframes meShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* زمرّدي: هالة حول الصورة */
.me-chip.r5 .me-ring::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 14px 1px color-mix(in srgb, var(--tier) 55%, transparent); }
/* ياقوت أزرق: إطار معدني مزدوج للصورة وغرز أكثر توهجًا */
.me-chip.r6 .me-ring .me-av { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--tier-hi); }
.me-chip.r6 .me-stitch.on { filter: drop-shadow(0 0 3px var(--tier)) drop-shadow(0 0 6px var(--tier)); }
/* ماسي: بريق يلمع حول الحلقة */
.me-chip.r7 .sp { display: block; position: absolute; width: 7px; height: 7px; background: var(--tier-hi); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 3px var(--tier)); animation: meTwinkle 2.4s ease-in-out infinite; }
.me-chip.r7 .s1 { top: -3px; inset-inline-start: -2px; }
.me-chip.r7 .s2 { bottom: 0; inset-inline-end: -4px; width: 5px; height: 5px; animation-delay: .8s; }
.me-chip.r7 .s3 { top: 40%; inset-inline-start: -7px; width: 4px; height: 4px; animation-delay: 1.6s; }
@keyframes meTwinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* ماستر: إطار متدرّج يدور حول البطاقة */
.me-chip.r8::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--me-ang), var(--tier), transparent 25%, var(--tier-hi) 50%, transparent 75%, var(--tier));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: meSpin 5s linear infinite; }
@keyframes meSpin { to { --me-ang: 360deg; } }
/* غراند ماستر: تاج فوق الصورة وهالة تنبض */
.me-chip.r9 .me-crown { display: block; position: absolute; top: -9px; left: 50%; width: 20px; height: 12px; transform: translateX(-50%); z-index: 2; fill: var(--tier-hi); filter: drop-shadow(0 0 4px var(--tier)); }
.me-chip.r9 .me-ring::before { animation: meHalo 2.6s ease-in-out infinite; }
@keyframes meHalo { 50% { box-shadow: 0 0 22px 4px color-mix(in srgb, var(--tier) 70%, transparent); } }
/* أسطورة: إكليل غار حول الصورة واسم يلمع بلون الرتبة */
.me-chip.r10 .me-laurel { display: block; position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); fill: #ffd76a; opacity: .9; filter: drop-shadow(0 0 3px rgba(255, 215, 106, .6)); }
.me-chip.r10 .me-crown { fill: #ffd76a; }
.me-chip.r10 .me-txt b { background: linear-gradient(90deg, var(--tier-hi), #fff, #ffd76a, var(--tier-hi)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: meName 5s linear infinite; }
@keyframes meName { to { background-position: -220% 0; } }
.lite .me-chip *, .lite .me-chip::after, .lite .me-chip .me-shine::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .me-chip *, .me-chip::after, .me-chip .me-shine::after { animation: none !important; } }
.me-head { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.me-head b { font: 700 15px var(--display); }
.me-head small { color: var(--muted); font-size: 12.5px; }
.me-head span { margin-top: 4px; color: var(--gold); font-size: 12px; }
.me-head span:empty { display: none; }
.me-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 230px; padding: 6px; border-radius: 16px; background: var(--panel-solid); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -12px rgba(0, 0, 0, .8); display: grid; gap: 2px; }
.me-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 14.5px; cursor: pointer; text-align: start; }
.me-item svg { width: 18px; height: 18px; color: var(--muted); }
.me-item:hover, .me-item:focus-visible { background: rgba(255, 255, 255, .06); }
@media (max-width: 900px) { .me-txt { display: none; } .me-chip, .me-chip.r2, .me-chip.r3 { padding: 3px; border-radius: 50%; background: none; box-shadow: none; } .me-chip::before, .me-chip .me-shine { display: none !important; } }
.pf-av { position: relative; cursor: pointer; flex: none; }
.pf-av .me-av { width: 96px; height: 96px; font-size: 34px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-2); }
.pf-av-edit { position: absolute; bottom: 0; inset-inline-end: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-solid); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pf-av-edit svg { width: 16px; height: 16px; }
.pf-av:hover .pf-av-edit, .pf-av:focus-within .pf-av-edit { background: var(--crimson); }

/* قصّ صورة الحساب */
dialog.crop-dlg { border: 0; padding: 0; width: min(440px, 100% - 24px); border-radius: 24px; background: var(--panel-solid); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px rgba(0, 0, 0, .7); }
dialog.crop-dlg::backdrop { background: rgba(5, 2, 4, .78); backdrop-filter: blur(6px); }
.crop-wrap { display: grid; gap: 14px; padding: 22px; }
.crop-wrap h3 { margin: 0; font: 700 21px var(--display); }
.crop-wrap p { margin: -8px 0 0; font-size: 14px; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: #120607; }
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side, transparent 99.5%, rgba(8, 3, 4, .62) 100%); }
.crop-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(230, 197, 140, .85); }
/* إطار الوجه المنقّط داخل الدائرة: يوضّح حجم الوجه المناسب */
.crop-face { position: absolute; left: 31%; top: 17%; width: 38%; height: 50%; border-radius: 50% 50% 46% 46%; border: 2px dashed rgba(243, 220, 174, .8); pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.crop-zoom svg { width: 18px; height: 18px; flex: none; }
.crop-zoom input { flex: 1; accent-color: var(--pink); min-height: 32px; }
.crop-actions { display: flex; gap: 8px; }
.crop-actions .btn { flex: 1; justify-content: center; min-height: 44px; }

/* ---------- الدعوة التفاعلية ---------- */
body.iv-mode .topbar, body.iv-mode .dock, body.iv-mode .demo-strip, body.iv-mode .skip { display: none !important; }
body.iv-mode #view { padding: 0; }
.iv { --c: var(--pink); position: relative; min-height: 100dvh; overflow: hidden; background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--c) 22%, #12060a) 0%, #0a0406 70%); }
.iv-bad { display: grid; place-items: center; text-align: center; padding: 24px; }
.iv-bad h1 { font: 700 30px var(--display); }

/* الغرفة (المحتوى خلف الباب) */
.iv-room { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 40px 20px 60px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.iv-room > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.iv-room.in > * { opacity: 1; transform: none; }
.iv-room.in > :nth-child(2) { transition-delay: .05s; } .iv-room.in > :nth-child(3) { transition-delay: .12s; }
.iv-room.in > :nth-child(4) { transition-delay: .2s; } .iv-room.in > :nth-child(6) { transition-delay: 1.1s; }
.iv-room.in > :nth-child(7) { transition-delay: 1.2s; } .iv-room.in > :nth-child(8) { transition-delay: 1.35s; }
.iv-room.in > :nth-child(9), .iv-room.in > :nth-child(10), .iv-room.in > :nth-child(11) { transition-delay: 1.6s; }
.iv-ts { width: 30px; height: 46px; }
.iv-kicker { margin: 4px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.iv-brand { height: clamp(70px, 18vw, 110px); width: auto; margin: 6px 0 4px; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--c) 40%, transparent)); }
.iv-hello { margin: 8px 0 0; font: 700 22px var(--display); color: color-mix(in srgb, var(--c) 70%, #fff); }
.iv-name { min-height: 1.2em; margin: 0; font: 900 clamp(46px, 14vw, 88px)/1.1 'Thmanyah Display', var(--display); color: #fff; text-shadow: 0 0 40px color-mix(in srgb, var(--c) 55%, transparent); word-break: break-word; }
.iv-name::after { content: ''; display: inline-block; width: .08em; height: .9em; margin-inline-start: .06em; vertical-align: -.08em; background: var(--c); animation: ivCaret 1s steps(1) infinite; }
.printed .iv-name::after { display: none; }
@keyframes ivCaret { 50% { opacity: 0; } }
.iv-line { margin: 6px 0 0; font-size: 18px; }
.iv-line b { color: color-mix(in srgb, var(--c) 75%, #fff); }
.iv-sub { margin: 0; color: var(--muted); font-size: 15px; }
.iv-facts { list-style: none; margin: 14px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.iv-facts li { display: grid; gap: 2px; padding: 12px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }
.iv-facts small { color: var(--dim); font-size: 12px; }
.iv-facts b { font-size: 14px; line-height: 1.4; }

/* طابعة الإسورة */
.iv-printer { position: relative; width: 100%; margin-top: 18px; padding-top: 14px; }
.iv-slot { position: absolute; top: 0; inset-inline: 10%; height: 14px; border-radius: 99px; background: #050203; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .08); z-index: 2; }
.iv-band { position: relative; margin: 0 auto; width: 92%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 40px; background: linear-gradient(180deg, #fbfbfd, #e9ecf2); color: #10151c; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); clip-path: inset(0 0 100% 0); transform: translateY(-40px); }
.printed .iv-band { animation: ivPrint 1.6s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes ivPrint { 0% { clip-path: inset(0 0 100% 0); transform: translateY(-40px); } 70% { clip-path: inset(0 0 0 0); transform: translateY(4px); } 100% { clip-path: inset(0 0 0 0); transform: none; } }
.iv-band::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 26px; border-radius: 40px 0 0 40px; background: var(--c); }
.iv-band-bar { display: grid; gap: 2px; padding-inline-start: 22px; }
.iv-band-bar svg { width: 92px; height: 34px; fill: #10151c; }
.iv-band-bar small { font: 600 10px var(--mono, monospace); letter-spacing: .08em; }
.iv-band-main { display: grid; text-align: start; line-height: 1.25; min-width: 0; }
.iv-band-main small { font-size: 11px; color: #4a5462; letter-spacing: .04em; }
.iv-band-main b { font: 900 clamp(16px, 4.6vw, 22px)/1.25 'Thmanyah Display', var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iv-band-tag { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #10151c; color: #fff; font: 700 12px/1.05 var(--serif); text-align: center; }
.iv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.iv-actions .btn { min-height: 46px; }
.iv-home { margin-top: 18px; color: var(--dim); font-size: 13px; }

/* الأبواب */
.iv-doors { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; background: #0b0809; }
.iv-door { position: relative; background: linear-gradient(180deg, #c9cfd6, #9aa3ad 60%, #858e98); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset -8px 0 18px rgba(0, 0, 0, .25); transition: transform 1.3s cubic-bezier(.7, 0, .2, 1); }
.iv-door.r { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 8px 0 18px rgba(0, 0, 0, .25); }
.iv-door::after { content: ''; position: absolute; top: 0; bottom: 0; width: 6px; background: rgba(0, 0, 0, .35); }
.iv-door.l::after { left: 0; } .iv-door.r::after { right: 0; }
.iv-win { position: absolute; top: 18%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--c) 45%, #fff) 0%, color-mix(in srgb, var(--c) 25%, #182028) 55%, #0c1116 100%); box-shadow: inset 0 0 0 8px #7b848e, inset 0 0 0 11px #5d656e, 0 0 40px color-mix(in srgb, var(--c) 35%, transparent); }
.iv-door.l .iv-win { left: 22%; } .iv-door.r .iv-win { right: 22%; }
.iv-push { position: absolute; top: 52%; padding: 6px 12px; border-radius: 6px; background: #3b434c; color: #e9edf1; font: 700 12px var(--serif); letter-spacing: .2em; }
.iv-door.l .iv-push { left: 30%; } .iv-door.r .iv-push { right: 30%; }
.iv-doors.opening .iv-door.l { transform: translateX(-102%); }
.iv-doors.opening .iv-door.r { transform: translateX(102%); }
.iv-doors.opening .iv-gate, .iv-doors.opening .iv-sign { opacity: 0; transition: opacity .5s ease .5s; }
.iv-doors.opening { background: transparent; pointer-events: none; }
.iv-sign { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 10px; padding: 10px 18px; border-radius: 12px; background: #140608; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .6); white-space: nowrap; }
.iv-sign i { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 18px #ff4d4d; }
.iv-sign i.go { background: #59e39b; box-shadow: 0 0 18px #59e39b; }
.iv-sign span { font: 700 15px var(--display); color: #ffe0da; }
.iv-sign span b { color: #fff; margin-inline-end: 4px; }
.iv-sign small { font-size: 12px; color: var(--muted); }
.iv-ecg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 70px; transform: translateY(-50%); z-index: 2; pointer-events: none; }
.iv-ecg path { fill: none; stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--c)); }
.iv-gate { position: absolute; left: 50%; bottom: max(32px, 7vh); transform: translateX(-50%); z-index: 3; width: min(360px, 92vw); display: grid; justify-items: center; gap: 8px; padding: 20px 18px 16px; border-radius: 24px; background: rgba(12, 6, 8, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 30px 60px -20px rgba(0, 0, 0, .8); text-align: center; }
.iv-doors, .iv-gate, .iv-gate * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.iv-for { margin: 0; color: var(--muted); font-size: 14px; }
.iv-for-name { margin: -4px 0 6px; font: 900 clamp(26px, 8vw, 36px)/1.2 'Thmanyah Display', var(--display); color: #fff; }
.iv-scrub { position: relative; width: 112px; height: 112px; border: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, #1a0b0e), #12070a); color: #fff; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.iv-scrub > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.iv-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 6; }
.iv-fill { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--c)); }
.iv-hand { display: grid; justify-items: center; gap: 2px; }
.iv-hand svg { width: 34px; height: 34px; color: color-mix(in srgb, var(--c) 60%, #fff); }
.iv-hand b { font: 700 14px var(--display); }
.iv-scrub.holding .iv-hand { animation: ivScrub .35s ease-in-out infinite alternate; }
@keyframes ivScrub { to { transform: rotate(18deg) scale(1.08); } }
.iv-bubbles { position: absolute; inset: 0; pointer-events: none; }
.iv-bubbles i { position: absolute; bottom: 30%; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(220, 240, 255, .8); opacity: 0; }
.iv-scrub.holding .iv-bubbles i { animation: ivBubble 1s ease-out infinite; }
.iv-bubbles i:nth-child(1) { left: 30%; animation-delay: 0s; } .iv-bubbles i:nth-child(2) { left: 55%; animation-delay: .15s; }
.iv-bubbles i:nth-child(3) { left: 42%; animation-delay: .3s; } .iv-bubbles i:nth-child(4) { left: 65%; animation-delay: .45s; }
.iv-bubbles i:nth-child(5) { left: 36%; animation-delay: .6s; } .iv-bubbles i:nth-child(6) { left: 50%; animation-delay: .75s; }
.iv-bubbles i:nth-child(7) { left: 60%; animation-delay: .1s; } .iv-bubbles i:nth-child(8) { left: 26%; animation-delay: .5s; }
@keyframes ivBubble { 0% { opacity: .9; transform: translateY(0) scale(.6); } 100% { opacity: 0; transform: translateY(-70px) scale(1.4); } }
.iv-scrub.done { background: radial-gradient(circle, #1d6b45, #0e2a1d); }
.iv-help { margin: 0; color: var(--muted); font-size: 14px; }
.iv-p { position: fixed; z-index: 60; width: 30px; height: 30px; pointer-events: none; color: var(--iv-c, #ffd1dc); }
.iv-p svg { width: 100%; height: 100%; }
.iv-p em { font: 700 18px var(--serif); font-style: normal; white-space: nowrap; color: #ffe8b0; }
.iv-p:nth-child(3n) { color: #fff; } .iv-p:nth-child(3n+1) { color: #ff9aa2; }
@media (min-width: 900px) { .iv-room { padding-top: 64px; } }

/* استوديو: رابط الدعوة */
.inv-link { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(232, 72, 79, .07); box-shadow: inset 0 0 0 1px rgba(232, 72, 79, .25); }
.inv-link b { display: flex; align-items: center; gap: 8px; font: 700 17px var(--display); }
.inv-link b svg { width: 18px; height: 18px; color: var(--pink); }
.inv-link p { margin: 0; font-size: 14px; }
.inv-link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-link-row .btn { min-height: 44px; }
.inv-link-row a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.iv-art { width: 100%; margin-top: 8px; }
.iv-art canvas { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 60px -10px color-mix(in srgb, var(--c) 35%, transparent); background: #000; }
.iv-room.in > .iv-art { transition-delay: .1s; }
.iv-room.in > .iv-printer, .iv-room.in > .iv-actions, .iv-room.in > .iv-home { transition-delay: 0s; }
.iv-room .iv-printer, .iv-room .iv-actions, .iv-room .iv-home { opacity: 0 !important; transform: translateY(16px) !important; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.iv-room.printed .iv-printer, .iv-room.printed .iv-actions, .iv-room.printed .iv-home { opacity: 1 !important; transform: none !important; }
.iv-room.printed .iv-actions { transition-delay: 1.2s; } .iv-room.printed .iv-home { transition-delay: 1.4s; }
.iv-fs { position: fixed; top: 16px; inset-inline-start: 16px; z-index: 70; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(12, 6, 8, .7); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer; }
.iv-fs:hover { background: rgba(12, 6, 8, .9); }
.iv-fs svg { width: 22px; height: 22px; }
.fs-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255, 200, 190, .14); cursor: pointer; transition: background .2s, color .2s; }
.fs-toggle:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.fs-toggle svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .fs-toggle { width: 44px; height: 44px; } }
@media (max-width: 560px) {
  .topbar { gap: 10px; padding-inline: 12px; }
  .team-mark { padding-inline-start: 10px; }
  .top-links { gap: 3px; }
  .top-links a:not(.btn) { padding-inline: 8px; }
}
.club, .team-mark { flex-shrink: 0; }
@media (max-width: 420px) {
  .updates-link, .top-links .lite-toggle, .fs-toggle { width: 38px !important; height: 38px !important; }
  .top-links .btn-sm { padding-inline: 12px; }
  .top-links a:not(.btn):not(.updates-link) { padding-inline: 6px; }
}

/* مسار الرتب: شريط أفقي يمرّ بمراحل المهنة */
.ladder-wrap { overflow-x: auto; scroll-snap-type: x proximity; padding: 26px 4px 8px; margin: 0 -4px; scrollbar-width: thin; }
.ladder-wrap .ladder { display: flex; align-items: flex-start; gap: 6px; width: max-content; min-width: 100%; }
.ladder-wrap .ladder::before, .ladder-wrap .ladder::after { display: block; top: 46px; inset-inline-start: 40px; }
.ladder-wrap .ladder::before { inset-inline-end: 40px; }
.ladder-wrap .ladder::after { width: calc(var(--p) * (100% - 80px)); }
.ladder-wrap .ladder li { width: 112px; flex: none; scroll-snap-align: center; }
.ladder-wrap .ladder li.stage { width: 34px; align-self: stretch; display: grid; place-items: start center; padding-top: 8px; }
.ladder-wrap .ladder li.stage span { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .04em; color: var(--dim); padding: 6px 2px; border-radius: 99px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.ladder-wrap .ladder li b { font-size: 15px; line-height: 1.3; }
.ladder-wrap .ladder li.now .rank-emblem { transform: scale(1.14); }
.xp-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.xp-col { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); }
.xp-col h3 { margin: 0 0 10px; font: 700 18px var(--display); color: var(--gold); }
.xp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.xp-col li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.xp-col li:last-child { border-bottom: 0; }
.xp-col li b { color: var(--text); font-variant-numeric: tabular-nums; }
.xp-note { margin: 14px 0 0; }
@media (max-width: 820px) { .xp-guide { grid-template-columns: 1fr; } }
.xp-calc { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(223, 189, 131, .08); color: var(--muted); font-size: 14px; }
.xp-calc b { color: var(--gold); }
.pp-progress > *, .rank-block { min-width: 0; }
.ladder-wrap { max-width: 100%; }

/* شبكة الرتب: تتدفق من اليمين لليسار بلا شريط تمرير */
.ranks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 10px; }
.ranks li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 20px; text-align: center; background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--tc) 14%, transparent), transparent 70%); transition: transform .35s var(--spring), background .3s; }
.ranks li:hover { transform: translateY(-6px); background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--tc) 26%, transparent), transparent 70%); }
.ranks li .rank-emblem { filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--tc) 45%, transparent)); transition: filter .3s, transform .3s; }
.ranks li b { font: 700 16px/1.3 var(--display); margin-top: 4px; }
.ranks li small { color: var(--muted); font-size: 12.5px; }
.tier-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--tc); letter-spacing: .02em; }
.ranks li.locked .rank-emblem { filter: saturate(.9) brightness(.82) drop-shadow(0 8px 18px color-mix(in srgb, var(--tc) 30%, transparent)); }
.ranks li.locked b { color: var(--muted); }
.ranks li.locked::before { content: ''; position: absolute; top: 12px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9c7c3' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='11' width='12' height='9' rx='2'/%3E%3Cpath d='M9 11V8a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ranks li.locked:hover .rank-emblem { filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--tc) 45%, transparent)); }
.ranks li.now { background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 75%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 70%, transparent); }
.ranks li.now .rank-emblem { transform: scale(1.12); filter: drop-shadow(0 0 22px var(--tc)); }
.ranks li.now b { color: var(--tc); }
.ranks li.now::after { content: 'أنت هنا'; position: absolute; top: -10px; padding: 2px 10px; border-radius: 99px; background: var(--tc); color: #0b0507; font-size: 11.5px; font-weight: 700; }
.rank-hero .tier-tag { font-size: 14px; }
@media (max-width: 560px) { .ranks { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; } .ranks li .rank-emblem { width: 84px; height: 84px; } .ranks li b { font-size: 14px; } }
/* هرم الرتب: الأعلى في القمة */
.ranks-pyramid { display: grid; gap: 14px; margin-top: 10px; }
.ranks-pyramid .ranks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.ranks-pyramid .ranks li { width: 158px; }
.ranks-pyramid .ranks:first-child li { width: 176px; }
.ranks-pyramid .ranks:first-child li .rank-emblem { width: 124px; height: 124px; }
@media (max-width: 560px) {
  .ranks-pyramid .ranks { gap: 8px; }
  .ranks-pyramid .ranks li, .ranks-pyramid .ranks:first-child li { width: calc(33.33% - 6px); }
  .ranks-pyramid .ranks:first-child li .rank-emblem { width: 96px; height: 96px; }
}
.ranks-pyramid.narrow { display: none; }
@media (max-width: 760px) {
  .ranks-pyramid.wide { display: none; }
  .ranks-pyramid.narrow { display: grid; }
  .ranks-pyramid .ranks { flex-wrap: nowrap; }
  .ranks-pyramid .ranks li, .ranks-pyramid .ranks:first-child li { width: calc(33.33% - 6px); }
}
/* الرتب الأسطورية: أشعة تدور ببطء ونبض توهج */
.rank-emblem .rk-rays { transform-origin: 100px 100px; animation: rkSpin 26s linear infinite; }
.rank-emblem.tier-8, .rank-emblem.tier-9 { animation: rkPulse 3.2s ease-in-out infinite; }
@keyframes rkSpin { to { transform: rotate(1turn); } }
@keyframes rkPulse { 50% { filter: brightness(1.15) saturate(1.15); } }
.lite .rank-emblem .rk-rays, .lite .rank-emblem { animation: none !important; }

/* أجواء المبادرة: لون وشعار المنطقة التي يمر بها الخيط */
@property --zone { syntax: '<color>'; inherits: true; initial-value: rgb(232 72 79); }
#view:has(.tl-page) { --zone: rgb(232 72 79); transition: --zone .9s ease; }
.tl-aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tl-aura::before, .tl-aura::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.tl-aura::before { background: var(--bg); }
.tl-aura::after { background: radial-gradient(55% 60% at 88% 22%, color-mix(in srgb, var(--zone) 32%, transparent), transparent 70%),
    radial-gradient(45% 50% at 8% 88%, color-mix(in srgb, var(--zone) 20%, transparent), transparent 70%),
    radial-gradient(30% 30% at 50% 50%, color-mix(in srgb, var(--zone) 7%, transparent), transparent 70%); }
#view.in-zone .tl-aura::before { opacity: .72; }
#view.in-zone .tl-aura::after { opacity: 1; }
.tl-aura img { position: absolute; inset-inline-start: -6vw; top: 50%; width: min(56vw, 640px); height: auto; translate: 0 -50%; opacity: 0; filter: saturate(.9) blur(.5px); transition: opacity .5s ease, scale .9s var(--spring, ease); scale: .92; }
.tl-aura img { z-index: 1; }
.tl-aura img.on { opacity: .15; scale: 1; }
.tl-page { position: relative; z-index: 1; }
.tl-page .eyebrow { color: color-mix(in srgb, var(--zone) 70%, #fff); transition: color .6s; }
.needle svg path:first-child { stroke: color-mix(in srgb, var(--zone) 40%, #f1e6e3); }
.stitches .st-card { will-change: transform; }

/* مبادرات قيد التفكير والبناء: مخطط هندسي لم يكتمل */
.forge { position: relative; margin-top: 30px; padding-top: 90px; }
.forge::before { content: ''; position: absolute; top: 0; inset-inline-start: 50%; height: 80px; border-inline-start: 3px dashed rgba(255, 222, 218, .22); }
.forge-head { max-width: 640px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 34px; }
.forge-head h2 { font-size: clamp(30px, 4vw, 46px); }
.forge-head h2 b { font-family: var(--serif); color: var(--pink); font-size: 1.3em; }
.forge-head h2 em { font-style: normal; color: var(--muted); }
.forge-head p { color: var(--muted); }
.forge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.forge-card { position: relative; display: grid; gap: 10px; align-content: start; min-height: 190px; padding: 22px; border-radius: 22px; overflow: hidden;
  border: 1.5px dashed rgba(255, 222, 218, .2);
  background: linear-gradient(rgba(255, 222, 218, .035) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 222, 218, .035) 1px, transparent 1px) 0 0 / 22px 22px, rgba(23, 9, 9, .7); }
.forge-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 222, 218, .07) 50%, transparent 65%); translate: -100% 0; animation: forgeScan 3.6s ease-in-out infinite; animation-delay: calc(var(--d) * .4s); }
@keyframes forgeScan { 60%, 100% { translate: 100% 0; } }
.forge-no { justify-self: start; font-family: var(--serif); font-size: 44px; line-height: 1; color: rgba(255, 222, 218, .18); }
.forge-mark { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; fill: none; stroke: rgba(255, 222, 218, .35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.forge-mark .forge-suture { stroke-dasharray: 3 4; stroke: var(--pink); opacity: .7; }
.forge-bar { display: block; height: 10px; border-radius: 6px; background: rgba(255, 222, 218, .08); }
.forge-bar.w1 { width: 70%; height: 16px; } .forge-bar.w2 { width: 90%; } .forge-bar.w3 { width: 55%; }
.forge-card strong { margin-top: auto; font-size: 14px; color: var(--muted); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.forge-card strong::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: rkPulseDot 1.6s ease-in-out infinite; }
@keyframes rkPulseDot { 50% { opacity: .25; } }
@media (max-width: 820px) {
  .forge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forge::before { inset-inline-start: auto; right: 21px; }
  .tl-aura img { width: 90vw; inset-inline-start: -20vw; }
}
@media (max-width: 480px) { .forge-card { min-height: 160px; padding: 18px; } .forge-no { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .forge-card::after, .forge-card strong::before { animation: none; } }
.tl-page .st-card { background: color-mix(in srgb, var(--c) 7%, var(--panel-solid)); border-color: color-mix(in srgb, var(--c) 18%, transparent); }

/* هوية كل مبادرة داخل مربعها: ألوان شعارها، ملمسها، وعناصرها المرسومة */
.st-date b.st-name { font-family: var(--display); font-size: clamp(54px, 6vw, 92px); line-height: 1.1; color: var(--c); }
.tl-page .st-card.skin { isolation: isolate; background: var(--sk-bg); border-color: var(--sk-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 var(--sk-line); }
.st-card.skin > :not(.skin-layer) { position: relative; z-index: 1; }
.skin-layer { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 0; pointer-events: none; }
.st-card.skin h2 { width: fit-content; background: linear-gradient(to left, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-card.skin .st-meta svg { color: var(--acc); }
.skin-art { position: absolute; z-index: 0; pointer-events: none; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.skin-art .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.skin-art .fill { fill: var(--acc2, var(--g1)); stroke: none; }
.skin-art .node { fill: var(--acc); stroke: none; }
.skin-art .pix { fill: var(--acc2, var(--acc)); stroke: none; }
.skin-art .dash { stroke-dasharray: 4 5; }
.sk-motif { left: 8px; bottom: 6px; width: 210px; height: 144px; opacity: .5; transition: opacity .5s, translate .5s var(--spring, ease); }
.st-card.skin:hover .sk-motif { opacity: .85; translate: 0 -4px; }
.sk-corner { width: 26px; height: 26px; }
.sk-corner.tl { top: 10px; left: 10px; } .sk-corner.tr { top: 10px; right: 10px; }
.sk-corner.bl { bottom: 10px; left: 10px; } .sk-corner.br { bottom: 10px; right: 10px; }

.skin-academic { --g1: #91e0db; --g2: #397cbe; --acc: #91e0db; --acc2: #dcbe89; --sk-line: rgba(145, 224, 219, .22);
  --sk-bg: linear-gradient(165deg, rgba(57, 124, 190, .2), transparent 55%), repeating-linear-gradient(0deg, transparent 0 29px, rgba(145, 224, 219, .07) 29px 30px), #0b1317; }
.skin-academic::after { content: ''; position: absolute; top: 0; bottom: 0; right: 16px; width: 1px; background: rgba(220, 190, 137, .28); }

.skin-skills { --g1: #ff9b9b; --g2: #c52c57; --acc: #ff9b9b; --acc2: #d9dce2; --sk-line: rgba(255, 155, 155, .22);
  --sk-bg: radial-gradient(70% 80% at 0% 100%, rgba(197, 44, 87, .22), transparent 70%), #160a0d; }
.skin-skills .sk-edge { left: 0; right: 0; bottom: 8px; width: 100%; height: 34px; stroke: #eac38c; opacity: .55; }
.skin-skills .sk-motif { stroke: #eac38c; }

.skin-ai { --g1: #dac4ff; --g2: #8d63d7; --acc: #6cdbcb; --acc2: #78e1d2; --sk-line: rgba(218, 196, 255, .2);
  --sk-bg: radial-gradient(60% 70% at 100% 0%, rgba(141, 99, 215, .22), transparent 70%), radial-gradient(rgba(218, 196, 255, .1) 1px, transparent 1.6px) 0 0 / 18px 18px, #100c18; }

.skin-shadow { --g1: #f5d49b; --g2: #c28250; --acc: #d9a46c; --acc2: #f1d5b2; --sk-line: rgba(245, 212, 155, .2);
  --sk-bg: linear-gradient(170deg, rgba(245, 212, 155, .12), transparent 60%), #150f0b; }
.skin-shadow .sk-steps { inset: 0; width: 100%; height: 100%; fill: rgba(245, 212, 155, .07); stroke: none; }

.tl-page .st-card.skin-visit { border-radius: 50% 50% 22px 22px / 64px 64px 22px 22px; padding-top: 50px; }
.skin-visit { --g1: #b3e8cc; --g2: #399a85; --acc: #5fbf9f; --acc2: #d6c58d; --sk-line: rgba(179, 232, 204, .22);
  --sk-bg: radial-gradient(80% 60% at 50% 0%, rgba(57, 154, 133, .22), transparent 70%), #0a1310; }
.skin-visit::after { content: ''; position: absolute; inset: 8px; border-radius: inherit; border: 1px solid rgba(179, 232, 204, .16); pointer-events: none; }
.skin-visit .sk-floor { left: 0; right: 0; bottom: 0; width: 100%; height: 54px; opacity: .45; }
.skin-visit .sk-cross { top: 12px; left: calc(50% - 12px); width: 24px; height: 22px; }

.skin-research { --g1: #fff1e6; --g2: #ff6b70; --acc: #ff6b70; --acc2: #f3e2cf; --sk-line: rgba(255, 107, 112, .22);
  --sk-bg: radial-gradient(70% 80% at 100% 0%, rgba(232, 72, 79, .18), transparent 70%), #140a0b; }
.skin-research .sk-bars { left: 0; right: 0; bottom: 0; width: 100%; height: 46px; fill: rgba(243, 226, 207, .06); stroke: none; }

.skin-sukkarna { --g1: #e8f3ff; --g2: #1c6fe0; --acc: #4fb3ff; --acc2: #ff5db1; --sk-line: rgba(79, 179, 255, .22);
  --sk-bg: radial-gradient(80% 90% at 100% 0%, rgba(28, 111, 224, .26), transparent 70%), linear-gradient(160deg, #0b1046, #070a26); }
.skin-sukkarna .sk-ecg { left: 0; right: 0; bottom: 12px; width: 100%; height: 34px; stroke: #4fb3ff; opacity: .55; }
.skin-sukkarna .sk-motif { opacity: .55; }
.tl-page .st-card.skin-sukkarna { padding-bottom: 64px; }
.skin-vascular { --g1: #f6ead2; --g2: #e0283f; --acc: #e0283f; --acc2: #efe2c8; --sk-line: rgba(239, 226, 200, .2);
  --sk-bg: linear-gradient(170deg, rgba(224, 40, 63, .14), transparent 60%), #0c0606; }
.skin-vascular .sk-vessel { left: 0; right: 0; bottom: 10px; width: 100%; height: 34px; stroke: #efe2c8; opacity: .5; }
.skin-art .cell { fill: #e0283f; stroke: none; }
.tl-page .st-card.skin-vascular { padding-bottom: 70px; }
.st-card .ap-btns { position: relative; z-index: 1; }
.st-card .ap-btns .btn { background: var(--panel-solid); }
.skin-vascular .sk-motif { top: 64px; bottom: auto; width: 180px; height: 124px; }
@media (max-width: 820px) { .skin-vascular .sk-motif { display: none; } }

.skin-robot { --g1: #f2f2ef; --g2: #7dadd3; --acc: #73bce9; --sk-line: rgba(115, 188, 233, .22);
  --sk-bg: linear-gradient(rgba(115, 188, 233, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(115, 188, 233, .05) 1px, transparent 1px) 0 0 / 24px 24px, #0a1018; }
.skin-robot::after { content: ''; position: absolute; left: 44px; right: 44px; bottom: 0; height: 9px; background: repeating-linear-gradient(90deg, rgba(115, 188, 233, .45) 0 1px, transparent 1px 10px); }

@media (max-width: 820px) {
  .st-date b.st-name { font-size: 40px; }
  .sk-motif { width: 150px; height: 104px; }
  .tl-page .st-card.skin-visit { border-radius: 50% 50% 18px 18px / 44px 44px 18px 18px; padding-top: 40px; }
}
.tl-page .st-card.skin-skills { padding-bottom: 52px; }
.tl-page .st-card.skin-visit { padding-bottom: 62px; }
.st-top .tag { white-space: nowrap; flex: none; }

/* CaseLab: رسم مميز لكل حالة بلونها */
.case-card { --ca: var(--pink); }
.case-card:hover { border-color: color-mix(in srgb, var(--ca) 45%, transparent); }
.case-card .cc-art { height: 158px; overflow: hidden; color: var(--ca); border: 1px solid color-mix(in srgb, var(--ca) 18%, transparent);
  background: radial-gradient(80% 90% at 80% 0%, color-mix(in srgb, var(--ca) 20%, transparent), transparent 65%), radial-gradient(60% 70% at 0% 100%, color-mix(in srgb, var(--ca) 10%, transparent), transparent 70%), #0d0708; }
.case-card .cc-art.cc-instruments { background: linear-gradient(color-mix(in srgb, var(--ca) 8%, transparent) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, color-mix(in srgb, var(--ca) 8%, transparent) 1px, transparent 1px) 0 0 / 16px 16px, #0a0c12; }
.case-card .cc-art .case-svg { width: 100%; height: 100%; }
.case-card h2 { transition: color .3s; }
.case-card:hover h2 { color: color-mix(in srgb, var(--ca) 55%, #fff); }
.cc-no { position: absolute; top: 8px; right: 10px; z-index: 1; font-family: var(--serif); font-size: 11px; letter-spacing: .14em; color: color-mix(in srgb, var(--ca) 70%, #fff); opacity: .75; }
.cc-kinds i { background: color-mix(in srgb, var(--ca) 30%, #120808); color: #fff; border: 1px solid color-mix(in srgb, var(--ca) 45%, transparent); }
.case-svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.case-svg .cs-line { stroke: var(--ca); stroke-width: 2.2; }
.case-svg .cs-soft { fill: color-mix(in srgb, var(--ca) 10%, transparent); }
.case-svg .cs-fill { fill: color-mix(in srgb, var(--ca) 26%, transparent); }
.case-svg .cs-faint { stroke: rgba(255, 236, 232, .22); stroke-width: 1.2; }
.case-svg .cs-dash { stroke: rgba(255, 236, 232, .4); stroke-width: 1.4; stroke-dasharray: 3 4; }
.case-svg .cs-dot { fill: var(--ca); }
.case-svg .cs-ring { stroke: var(--ca); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.case-svg .cs-label { fill: rgba(255, 236, 232, .62); font: italic 500 11px var(--serif); stroke: none; }
.case-svg .cs-tag { fill: rgba(255, 255, 255, .7); font: 700 12px var(--serif); }
.case-svg .cs-fan { fill: color-mix(in srgb, var(--ca) 7%, transparent); stroke: color-mix(in srgb, var(--ca) 25%, transparent); }
.case-svg .cs-stone { fill: #fff6e6; }
.case-svg .cs-xray { fill: #060b10; }
.case-svg .cs-rib { stroke: rgba(220, 235, 245, .22); stroke-width: 5; }
.case-svg .cs-spine { fill: rgba(220, 235, 245, .14); }
.case-svg .cs-bone { stroke: rgba(230, 240, 248, .7); stroke-width: 3; }
.case-svg .cs-heart { fill: rgba(220, 235, 245, .12); }
.case-svg .cs-air { fill: var(--ca); }
.case-svg .cs-loop { fill: color-mix(in srgb, var(--ca) 10%, transparent); }
.case-svg .cs-loop-fluid { fill: rgba(220, 235, 245, .2); }
.case-svg .cs-level { stroke: #fff; stroke-width: 1.6; }
.case-svg .cs-grid { fill: none; stroke: color-mix(in srgb, var(--ca) 16%, transparent); stroke-width: .8; }
.case-svg .cs-trace { stroke: var(--ca); stroke-width: 2; stroke-dasharray: 1400; }
.case-svg .cs-tri { fill: color-mix(in srgb, var(--ca) 22%, transparent); stroke: var(--ca); stroke-width: 1.4; stroke-dasharray: 4 3; }
.case-svg .cs-duct { stroke: #8fd3c9; stroke-width: 5; }
.case-svg .cs-artery { stroke: #ff6b6b; stroke-width: 2.6; }
.case-svg .cs-nerve { stroke: var(--ca); stroke-width: 3; }
.case-svg .pulse { animation: csPulse 2.4s ease-in-out infinite; }
.case-svg .cs-ring.pulse { animation-name: csRing; }
.case-svg .glow { animation: csGlow 2.6s ease-in-out infinite; }
.case-svg .scan { animation: csScan 4s linear infinite; }
@keyframes csPulse { 50% { opacity: .45; } }
@keyframes csRing { 50% { scale: 1.35; opacity: .4; } }
@keyframes csGlow { 50% { filter: drop-shadow(0 0 6px var(--ca)); opacity: .75; } }
@keyframes csScan { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.lite .case-svg * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .case-svg * { animation: none !important; } }
.cc-kinds { top: 8px; bottom: auto; }
.case-svg .cs-needle { stroke: #f4ece9; stroke-width: 2.4; }
.case-svg .cs-suture { stroke: color-mix(in srgb, var(--ca) 70%, #fff); stroke-width: 1.4; }

/* التحديثات كتغريدات على زجاج سائل */
.upd-wrap { position: relative; isolation: isolate; }
.upd-orbs { position: absolute; inset: 120px 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.upd-orbs i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.upd-orbs i:nth-child(1) { width: 320px; height: 320px; top: 4%; inset-inline-start: -4%; background: radial-gradient(circle, #c2353c, transparent 70%); animation: orbDrift 18s ease-in-out infinite alternate; }
.upd-orbs i:nth-child(2) { width: 260px; height: 260px; top: 38%; inset-inline-end: -6%; background: radial-gradient(circle, #dfbd83, transparent 70%); opacity: .35; animation: orbDrift 22s ease-in-out infinite alternate-reverse; }
.upd-orbs i:nth-child(3) { width: 300px; height: 300px; top: 72%; inset-inline-start: 20%; background: radial-gradient(circle, #8f1820, transparent 70%); animation: orbDrift 26s ease-in-out infinite alternate; }
@keyframes orbDrift { to { transform: translate(40px, -60px) scale(1.15); } }

.glass { position: relative; border-radius: 26px; background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025) 45%, rgba(255, 255, 255, .05));
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 24px 50px -18px rgba(0, 0, 0, .65),
    inset 3px 3px .5px -3.5px rgba(255, 255, 255, .5), inset -3px -3px .5px -3.5px rgba(255, 255, 255, .55),
    inset 1px 1px 1px -.5px rgba(255, 255, 255, .35), inset -1px -1px 1px -.5px rgba(255, 255, 255, .2),
    inset 0 0 6px 6px rgba(255, 255, 255, .03), inset 0 0 2px 2px rgba(255, 255, 255, .03); }
/* لمعة علوية مثل حافة الزجاج */
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% -10%, rgba(255, 255, 255, .16), transparent 55%), radial-gradient(80% 50% at 110% 120%, rgba(255, 180, 170, .08), transparent 60%); }
.lite .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel-solid); }

.tw-feed { gap: 14px; }
.tweet { padding: 16px 18px 10px; transition: transform .35s var(--ease), box-shadow .35s; }
.tweet:hover { transform: translateY(-2px); }
.tweet.pinned { background: linear-gradient(155deg, rgba(223, 189, 131, .14), rgba(255, 255, 255, .03) 50%, rgba(223, 189, 131, .06)); }
.tw-pin { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding-inline-start: 34px; color: var(--gold); font-size: 13px; font-weight: 600; }
.tw-pin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.tw-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.tw-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #5e0f15, #2e080b 70%); box-shadow: inset 0 0 0 1px rgba(255, 220, 210, .2), 0 6px 16px -6px rgba(0, 0, 0, .7); }
.tw-av img { width: 28px; height: 28px; }
.tw-main { min-width: 0; }
.tw-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 15px; line-height: 1.4; }
.tw-head b { color: var(--text); font-weight: 700; }
.tw-verified { width: 18px; height: 18px; flex: none; }
.tw-verified path:first-child { fill: var(--gold); }
.tw-verified .tick { fill: none; stroke: #2e080b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tw-handle, .tw-dot, .tw-head time { color: var(--dim); font-size: 14px; }
.tw-handle { margin-inline-start: 2px; }
.tw-title { font-size: 17px; font-weight: 700; line-height: 1.55; margin: 4px 0 2px; color: var(--text); }
.tw-body { margin: 0; color: #e6d6d3; font-size: 15.5px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.tw-body a, .tw-title a { color: #ff9a92; text-decoration: none; }
.tw-body a:hover { text-decoration: underline; }
.tw-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 12px; border-radius: 14px; background: #120d10; border: 1px solid rgba(255, 255, 255, .08); object-fit: cover; }
.tw-hash { color: #ff9a92; }
.tw-tag { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: var(--gold); background: rgba(223, 189, 131, .1); box-shadow: inset 0 0 0 1px rgba(223, 189, 131, .25); }
.tw-actions { display: flex; gap: 6px; margin-top: 8px; margin-inline-start: -8px; }
.tw-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s; }
.tw-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tw-act:hover, .tw-act:focus-visible { background: rgba(255, 154, 146, .1); color: #ff9a92; }
@media (max-width: 560px) {
  .tweet { padding: 14px 14px 8px; border-radius: 22px; }
  .tw-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .tw-av { width: 40px; height: 40px; } .tw-av img { width: 24px; height: 24px; }
  .tw-pin { padding-inline-start: 26px; }
  .upd-orbs i { filter: blur(40px); }
}
@media (prefers-reduced-motion: reduce) { .upd-orbs i { animation: none; } }
.lite .upd-orbs { display: none; }

/* ===== لوحة الصدارة ===== */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 40px 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; background: var(--panel-solid); box-shadow: inset 0 0 0 1px var(--line); }
.lb-pos { font: 900 18px var(--display); color: var(--muted); text-align: center; }
.lb-emb svg { width: 34px; height: 34px; display: block; }
.lb-name { display: grid; min-width: 0; line-height: 1.35; }
.lb-name b { font: 700 16px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 8px; margin-inline-start: 6px; border-radius: 999px; background: var(--crimson); color: #fff; vertical-align: 2px; }
.lb-name small { font-size: 12.5px; color: var(--tc); }
.lb-xp { font: 700 15px var(--display); color: var(--text); }
.lb-row.top { background: linear-gradient(90deg, color-mix(in srgb, var(--medal) 16%, transparent), transparent 60%), var(--panel-solid); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--medal) 40%, transparent); }
.lb-row.top .lb-pos { color: var(--medal); font-size: 22px; }
.lb-row.t1 { --medal: #ffd76a; } .lb-row.t2 { --medal: #d9dde3; } .lb-row.t3 { --medal: #d79a6a; }
.lb-row.me { box-shadow: inset 0 0 0 2px var(--red, #e8484f); }
.lb-gap { text-align: center; color: var(--muted); letter-spacing: .3em; padding: 4px 0; }
@media (max-width: 600px) { .lb-row { grid-template-columns: 30px 30px 1fr auto; gap: 10px; padding: 9px 12px; } .lb-emb svg { width: 30px; height: 30px; } .lb-name b { font-size: 15px; } .lb-xp { font-size: 14px; } }
/* لوحة الصدارة الشكلية: صفوف بلا أسماء تتلاشى للأسفل ورسالة في المنتصف */
.lb-ghost { position: relative; }
.lb-ghost .lb { -webkit-mask-image: linear-gradient(#000 35%, transparent 100%); mask-image: linear-gradient(#000 35%, transparent 100%); pointer-events: none; }
.lb-bar { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); }
.lb-bar.sm { width: 26%; height: 8px; margin-top: 7px; background: color-mix(in srgb, var(--tc) 45%, transparent); }
.lb-ghost .lb-xp { color: var(--muted); }
.lb-ghost-msg { position: absolute; inset-inline: 0; bottom: 8%; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 16px; }
.lb-ghost-msg b { font: 900 clamp(20px, 2.4vw, 28px) var(--display); }
.lb-ghost-msg span { color: var(--muted); font-size: 14.5px; }
.lb-ghost-msg a { color: var(--pink); font-weight: 700; }

/* نماذج التسجيل الخاصة بمبادرة (المنظمون والمتحدثون، واللجان القيادية) */
.ap-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ap-btns .btn { border-color: color-mix(in srgb, var(--c, #e8484f) 40%, transparent); }
.ap-trial-chip { font-size: 12px; color: var(--c, #e8484f); border: 1px dashed color-mix(in srgb, var(--c, #e8484f) 55%, transparent); padding: 3px 10px; border-radius: 999px; }
.ap-page { padding-bottom: 120px; }
.ap-head .ap-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ap-head .ap-logo { height: 110px; width: auto; }
.ap-trial { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); border-style: dashed; }
.ap-head h1 em { color: var(--c); }
.ap-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 6px 0 22px; }
.ap-comm { grid-template-columns: repeat(3, 1fr); }
.ap-card { position: relative; padding: 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 6%, var(--panel-solid)); border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); }
.ap-card > svg { width: 26px; height: 26px; color: var(--c); }
.ap-card h3 { font-size: 19px; margin: 8px 0 6px; }
.ap-card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.8; }
.ap-card small { display: block; margin-top: 10px; color: var(--dim); font-size: 13px; }
.ap-card small b { color: var(--text); font-weight: 600; }
.ap-no { position: absolute; top: 16px; left: 18px; font-family: var(--serif, serif); font-size: 22px; color: color-mix(in srgb, var(--c) 45%, transparent); }
.ap-box { padding: clamp(18px, 3vw, 30px); }
.ap-lab { font-weight: 600; }
.ap-me { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); }
.ap-me > svg { width: 26px; height: 26px; color: var(--c); flex: none; }
.ap-me div { flex: 1; display: grid; gap: 2px; } .ap-me small { color: var(--dim); font-size: 13px; }
.ap-field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ap-field legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.req { color: var(--c); font-weight: 700; }
.ap-hint { color: var(--dim); font-size: 13px; font-weight: 400; }
.ap-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-opt { position: relative; cursor: pointer; }
.ap-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ap-opt span { display: inline-block; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.ap-opt input:checked + span { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: var(--text); }
.ap-opt input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.ap-count { justify-self: end; color: var(--dim); font-size: 12px; margin-top: -4px; }
.ap-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.ap-agree input { margin-top: 5px; accent-color: var(--c); width: 18px; height: 18px; flex: none; }
.ap-err { color: #ff8a8f; min-height: 1em; margin: 0; font-size: 14px; }
.ap-privacy { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0; } .ap-privacy svg { width: 16px; height: 16px; }
.ap-done { display: grid; gap: 10px; justify-items: start; }
.ap-done-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.ap-done-ic svg { width: 26px; height: 26px; }
.ap-done h2 { font-size: 24px; margin: 4px 0 0; }
.ap-sum { display: grid; gap: 10px; margin: 6px 0; width: 100%; }
.ap-sum dt { color: var(--dim); font-size: 13px; } .ap-sum dd { margin: 2px 0 0; }
.ap-switch { margin-top: 18px; } .ap-switch a { display: inline-flex; gap: 6px; align-items: center; color: var(--c); }
.ap-switch svg { width: 16px; height: 16px; transform: scaleX(-1); }
@media (max-width: 900px) { .ap-cards, .ap-comm { grid-template-columns: 1fr; } .ap-head .ap-logo { height: 84px; } }
.ap-note { display: flex; gap: 8px; align-items: center; color: var(--c) !important; font-size: 15px !important; }
.ap-note svg { width: 18px; height: 18px; flex: none; }
.ap-mine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 6px 0 0; font-size: 13.5px; }
.ap-mine dt { color: var(--dim); font-size: 12px; } .ap-mine dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ap-mine { grid-template-columns: 1fr; } .ap-me { flex-wrap: wrap; } }

/* ===== Surgical Theater · غرفة العمليات ===== */
.th { --th: #3a8590; --th-l: #7fd1c4; position: relative; }
.th-gate { position: relative; min-height: calc(100svh - 70px); display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 26px 16px 130px;
  background: radial-gradient(70% 45% at 50% 18%, rgba(255, 77, 94, .1), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 72px 72px, linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(#1c0c10, #120709); }
.th-gate-scene { position: relative; width: 100%; max-width: 1000px; height: clamp(320px, 50svh, 500px); perspective: 1600px; }
/* اللوحة المضيئة فوق الباب */
.th-gate-sign { position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 12px; white-space: nowrap;
  background: linear-gradient(#2a0a0f, #180507); border: 1px solid rgba(255, 77, 94, .55); box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 0 34px rgba(255, 77, 94, .35), inset 0 0 18px rgba(255, 77, 94, .18); }
.th-gate-sign b { color: #ffe1e4; font-size: 15px; text-shadow: 0 0 10px rgba(255, 77, 94, .7); }
.th-gate-sign span { color: #ff8d98; font-size: 11px; letter-spacing: 2px; padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 77, 94, .4); }
.th-gate-sign i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 12px #ff4d5e; animation: thBlink 1.6s infinite; }
/* إطار الباب الفولاذي والضوء خلفه */
.th-gate-frame { position: absolute; top: 64px; bottom: 17%; left: 50%; translate: -50% 0; width: min(88%, 560px); padding: 14px 14px 0; border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, #6b737d, #c9cfd6 18%, #8b939d 50%, #c9cfd6 82%, #6b737d); box-shadow: 0 30px 60px -20px #000, inset 0 2px 0 rgba(255, 255, 255, .4); perspective: 1100px; perspective-origin: 50% 45%; }
.th-gate-light { position: absolute; inset: 14px 14px 0; background: radial-gradient(60% 55% at 50% 30%, #fffaf0, #cfeee9 45%, #4d9fa3 100%); animation: thSeam 3.2s ease-in-out infinite; }
.th-gate-door { position: absolute; top: 14px; bottom: 0; width: calc(50% - 15px); overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 30%, rgba(255, 255, 255, .05) 60%, rgba(0, 0, 0, .18)), linear-gradient(#80303b, #66232d);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 0 50px rgba(0, 0, 0, .35); }
.th-gate-door.l { left: 14px; transform-origin: left center; border-radius: 2px 0 0 0; } .th-gate-door.r { right: 14px; transform-origin: right center; border-radius: 0 2px 0 0; }
.th-gate-win { position: absolute; top: 13%; left: 50%; translate: -50% 0; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #fffaf0, #bfe6e0 50%, #2f6f74); box-shadow: 0 0 0 6px #b9c0c8, 0 0 0 8px rgba(0, 0, 0, .35), inset 0 6px 14px rgba(0, 0, 0, .35); }
.th-gate-win svg { width: 100%; height: 100%; display: block; }
.th-gate-win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .45), transparent 40%); }
.th-gate-push { position: absolute; top: 46%; width: 9%; height: 22%; border-radius: 4px; background: linear-gradient(90deg, #8d959f, #e3e7ec, #9aa2ad); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.th-gate-door.l .th-gate-push { right: 9%; } .th-gate-door.r .th-gate-push { left: 9%; }
.th-gate-kick { position: absolute; inset: auto 0 0; height: 15%; background: repeating-linear-gradient(90deg, #aab2bb 0 2px, #c4cad1 2px 5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); }
/* الجدار والأرضية */
.th-gate-gel, .th-gate-plaque { position: absolute; top: 34%; z-index: 1; }
.th-gate-gel { right: calc(50% + min(44%, 280px) + 34px); width: 42px; height: 78px; border-radius: 12px 12px 16px 16px; background: linear-gradient(90deg, #cfd4da, #f2f4f6 50%, #b9c0c8); box-shadow: 0 10px 20px -8px #000; }
.th-gate-gel span { position: absolute; inset: 12px 9px 30px; border-radius: 6px; background: linear-gradient(#cdeee9, #7fd1c4); }
.th-gate-gel i { position: absolute; bottom: -9px; left: 50%; translate: -50% 0; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #7fd1c4; opacity: .8; }
.th-gate-plaque { left: calc(50% + min(44%, 280px) + 30px); display: grid; gap: 4px; width: 150px; padding: 12px 14px; border-radius: 12px; background: #f1e9dc; color: #2a0b10; box-shadow: 0 12px 24px -10px #000; border-top: 6px solid #c23544; }
.th-gate-plaque b { font-size: 15px; } .th-gate-plaque span { font-size: 12px; line-height: 1.6; color: #5a3a3e; }
.th-gate-floor { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: 100vw; height: 17%;
  background: radial-gradient(28% 70% at 50% 0, rgba(207, 238, 233, .16), transparent 70%), linear-gradient(#251217, #0d0607); box-shadow: inset 0 3px 0 #0a0405; }
.th-gate-line { position: absolute; top: 34%; left: 0; right: 0; height: 7px; background: #c23544; box-shadow: 0 0 18px rgba(194, 53, 68, .55); }
.th-gate-card { position: relative; z-index: 3; margin-top: -58px; max-width: 580px; text-align: center; padding: 26px 26px 24px; border-radius: 26px; background: rgba(14, 7, 9, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px #000; }
.th-gate-card h1 { font-size: clamp(28px, 4.6vw, 42px); margin: 8px 0; }
.th-gate-card p { color: var(--muted); margin: 0 0 18px; }
.th-gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* ضوء الغرفة ينسكب على الأرض عند فتح الباب */
.th-gate-beam { position: absolute; top: 0; left: 50%; width: min(70vw, 620px); height: 100%; translate: -50% 0; transform-origin: 50% 0; opacity: 0; pointer-events: none;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); background: linear-gradient(rgba(255, 250, 240, .55), rgba(207, 238, 233, .18) 60%, transparent); }
.th-gate.opening { cursor: progress; }
.th-gate.opening .th-gate-light { animation: none; }
.th-gate.opening .th-gate-btns { pointer-events: none; }
.th-gate.opening .th-gate-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.th-gate.opening .th-gate-door { will-change: transform, filter; }
/* ستار الضوء بين الباب والغرفة: لون إضاءة العمليات الدافئ، لا أبيض صارخ */
.th-veil { position: fixed; inset: 0; z-index: 30; opacity: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 42%, #fffaf0, #e3f3ef 45%, #a9d6cf 100%); }
.th-veil.on { pointer-events: auto; cursor: progress; }
@keyframes thSeam { 50% { filter: brightness(1.12); } }
@media (max-width: 760px) { .th-gate-gel, .th-gate-plaque { display: none; } }
@media (max-width: 560px) {
  .th-gate { padding-top: 18px; } .th-gate-scene { height: clamp(290px, 47svh, 420px); }
  .th-gate-frame { width: 92%; top: 56px; } .th-gate-sign { padding: 8px 14px; } .th-gate-sign b { font-size: 14px; }
  .th-gate-card { padding: 22px 18px; margin-top: -46px; } .th-gate-card h1 { font-size: 27px; }
}
@keyframes thBlink { 50% { opacity: .35; } }

.th-main { padding-bottom: 130px; }
.th-wide { width: min(1400px, 100% - 32px); }
.th-top { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; padding: clamp(14px, 2.4vw, 28px) 0 16px; }
.th-top h1 { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.th-top h1 em { font-style: normal; color: var(--th-l); }
.th-top p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 60ch; }
.th-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.th-top-actions #th-list[aria-pressed="true"] { background: color-mix(in srgb, var(--th) 26%, transparent); border-color: var(--th-l); }

/* لوحة الغرفة: المشهد وبطاقة الشرح وشريط الأنشطة في إطار واحد */
.th-console { display: grid; grid-template-columns: clamp(320px, 27vw, 380px) minmax(0, 1fr); grid-template-areas: "panel room" "modes modes";
  border-radius: 26px; overflow: hidden; background: radial-gradient(90% 70% at 40% 30%, #12303b, #08171d 70%);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -36px rgba(0, 0, 0, .9); }
.th-console.list { grid-template-columns: 1fr; grid-template-areas: "panel"; }
.th-stage { grid-area: room; position: relative; align-self: start; min-width: 0; }
.th-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--th-l) 40%, transparent) transparent; direction: ltr; }
.th-canvas { position: relative; aspect-ratio: 1200 / 700; min-width: 100%; }
.th-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.th-prompt { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: 7px 16px; border-radius: 999px; background: rgba(4, 16, 21, .82); color: #e6f6f9;
  font-size: 13.5px; white-space: nowrap; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(127, 220, 236, .22); }
.th-prompt:empty { display: none; }
.th-drag { display: none; position: absolute; top: 12px; left: 50%; translate: -50% 0; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(4, 16, 21, .82); color: #e6f6f9; font-size: 13px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.th-drag.gone { opacity: 0; }
/* البطاقة تطفو على الغرفة ولا تضيف طولًا للوحة؛ إن طال محتواها تُمرَّر داخلها */
.th-panel { grid-area: panel; contain: size; overflow-y: auto; padding: 14px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--th-l) 35%, transparent) transparent; }
.th-console.list .th-panel { contain: none; overflow: visible; }
.th-modes { grid-area: modes; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 4px; padding: 8px;
  overflow-x: auto; scrollbar-width: none; background: rgba(3, 12, 16, .55); box-shadow: inset 0 1px 0 var(--line); }
.th-modes::-webkit-scrollbar { display: none; }
.th-modes button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 10px 8px 9px; border: 0; border-radius: 16px; background: none;
  color: var(--muted); font-size: 13.5px; line-height: 1.3; white-space: nowrap; transition: color .25s; }
.th-modes button svg { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.th-modes button:hover { color: var(--text); } .th-modes button:hover svg { transform: translateY(-2px); }
.th-modes button[aria-pressed="true"] { color: #fff; }
.th-modes button:focus-visible { outline-offset: -2px; }
.th-mode-pill { position: absolute; z-index: 0; top: 8px; bottom: 8px; left: 0; width: 0; border-radius: 16px; opacity: 0; pointer-events: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--th-l) 30%, transparent), color-mix(in srgb, var(--th) 40%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -10px rgba(40, 170, 196, .7);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), width .4s cubic-bezier(.22, 1, .36, 1), opacity .25s; }
.th-mode-pill.on { opacity: 1; }
.th-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 -50px 60px -40px rgba(2, 10, 13, .65); }
.th-room .th-label { font: 700 15px Tahoma, sans-serif; fill: #efe2c8; } .th-room .th-label.s { font-size: 13px; } .th-room .th-label.xs { font-size: 11px; fill: rgba(239, 226, 200, .55); }
.th-room .th-deco { pointer-events: none; } .th-room.dim .th-deco { opacity: .4; transition: opacity .35s; }
.th-room .th-num { font: 700 22px Tahoma, sans-serif; } .th-room .th-num.s { font-size: 17px; }
.th-room .th-item { cursor: pointer; transition: opacity .35s, filter .35s; }
.th-room .th-item:hover { filter: brightness(1.15) drop-shadow(0 0 6px rgba(127, 209, 196, .45)); }
.th-room.dim .th-item:not(.on) { opacity: .32; }
.th-room .th-item.on { filter: drop-shadow(0 0 10px rgba(127, 209, 196, .55)); }
.th-room .th-part-on { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px #7fd1c4); animation: thPart 1.2s ease-in-out infinite alternate; }
@keyframes thPart { to { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 20px #7fd1c4); } }
.th-beam { pointer-events: none; mix-blend-mode: screen; }
.th-hots { pointer-events: none; }
.th-hot { pointer-events: all; cursor: pointer; }
.th-hot .r { fill: rgba(127, 209, 196, .18); stroke: #7fd1c4; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: thPulse 2s ease-out infinite; }
.th-hot .d { fill: #e9fbf7; stroke: #3a8590; stroke-width: 3; }
.th-hot .hit { fill: transparent; }
.th-hot .lbl { opacity: 0; transition: opacity .2s; pointer-events: none; }
.th-hot .lbl rect { fill: rgba(10, 5, 6, .9); stroke: rgba(127, 209, 196, .6); }
.th-hot .lbl text { font: 700 14px Tahoma, sans-serif; fill: #e9fbf7; }
.th-hot:hover .lbl, .th-hot:focus-visible .lbl { opacity: 1; }
.th-hot:focus { outline: none; } .th-hot:focus-visible .r { stroke: #fff; stroke-width: 3; }
.th-hot:hover .d { fill: #fff; }
@keyframes thPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.th-slot { pointer-events: all; cursor: pointer; } .th-slot circle { fill: rgba(255, 244, 226, .12); stroke: #ffe7bf; stroke-width: 2; stroke-dasharray: 5 5; }
.th-slot text { font: 700 12px Tahoma, sans-serif; fill: #ffe7bf; } .th-slot:hover circle { fill: rgba(255, 244, 226, .3); }

.th-card, .th-idle, .th-listview { position: relative; padding: 20px; border-radius: 20px; background: rgba(5, 19, 25, .86); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -22px rgba(0, 0, 0, .9); }
.th-card { animation: thCardIn .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes thCardIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.th-card h2, .th-idle h2, .th-listview h2 { font-size: 22px; margin: 6px 0 10px; }
.th-listview h2 + .th-chips { margin-bottom: 18px; }
.th-idle > svg { width: 30px; height: 30px; color: var(--th-l); }
.th-x { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--text); }
.th-x svg { width: 18px; height: 18px; }
.th-3 { display: grid; gap: 10px; margin: 10px 0 14px; } .th-3 dt { color: var(--th-l); font-size: 13px; font-weight: 700; } .th-3 dd { margin: 2px 0 0; line-height: 1.8; }
.th-note { font-size: 13px; color: var(--muted); padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--th) 12%, transparent); }
.th-tabs, .th-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.th-tabs button, .th-switch button, .th-chips button, .th-opts button, .th-roles button { border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text);
  border-radius: 12px; padding: 9px 13px; font-size: 14px; text-align: start; transition: background .2s, border-color .2s; }
.th-tabs button.on, .th-switch button.on, .th-roles button.on { background: color-mix(in srgb, var(--th) 32%, transparent); border-color: var(--th-l); }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.th-chips button.seen::after { content: " \2713"; color: var(--th-l); }
.th-opts { display: grid; gap: 8px; } .th-opts button.ok, .th-roles button.done { border-color: #5be38a; background: rgba(91, 227, 138, .12); }
.th-opts button.no { border-color: #ff6b78; background: rgba(255, 107, 120, .1); } .th-opts button:disabled { opacity: .7; }
.th-roles { display: grid; gap: 8px; margin: 10px 0; } .th-roles button.done { pointer-events: none; }
.th-q { font-weight: 700; margin: 4px 0 10px; }
.th-why, .th-fb { margin: 10px 0 0; font-size: 14px; line-height: 1.8; } .th-fb:empty { display: none; }
.th-fb.ok, .th-why { color: #a8f0c0; } .th-fb.no { color: #ffb4bb; }
.th-why svg, .th-fb svg, .th-fact svg { width: 16px; height: 16px; vertical-align: -3px; }
.th-fact { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--th) 14%, transparent); line-height: 1.8; margin: 8px 0; }
.th-parts { display: grid; gap: 8px; margin-top: 8px; }
.th-parts button { display: grid; gap: 2px; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text); }
.th-parts button span { color: var(--muted); font-size: 13px; } .th-parts button.on { border-color: var(--th-l); background: color-mix(in srgb, var(--th) 20%, transparent); }
.tag.th-ster { color: var(--th-l); border-color: color-mix(in srgb, var(--th-l) 45%, transparent); }
.th-day { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); } .th-day p { margin: 6px 0 12px; color: var(--muted); line-height: 1.8; }
.th-dots, .th-steps { display: flex; gap: 6px; margin-bottom: 10px; } .th-dots i, .th-steps i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.th-dots i.on, .th-steps i.on { background: var(--th-l); } .th-steps i.done { background: #5be38a; }
.th-nav { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.th-win { text-align: center; } .th-win > svg { width: 44px; height: 44px; color: #5be38a; }
.th-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.th-levels button { display: grid; gap: 4px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text); }
.th-levels button span { color: var(--dim); font-size: 12px; } .th-levels button.seen { border-color: #5be38a; }
.th-found { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.th-found li { padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.7; } .th-found li.no { background: rgba(255, 107, 120, .08); color: #ffb4bb; }
.th-found li.ok { background: rgba(91, 227, 138, .08); display: grid; gap: 2px; } .th-found li.ok span { color: var(--muted); }
.th-found li.win { color: #a8f0c0; } .th-found li svg { width: 16px; height: 16px; vertical-align: -3px; }
.th-quote { margin: 8px 0 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--th) 16%, transparent); font-size: 17px; line-height: 1.8; }
.th-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.th-tools button { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text); font-size: 13px; }
.th-tools button svg { width: 70px; height: 44px; fill: none; stroke: #d9dde3; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.th-tools button span { color: var(--dim); font-size: 11px; } .th-tools button.on { border-color: var(--th-l); background: color-mix(in srgb, var(--th) 20%, transparent); }
.th-tools button.seen b::after { content: " \2713"; color: var(--th-l); }
.th-tool h3 { margin: 4px 0; } .th-tool h3 span { font-size: 14px; }
.th-foot { margin-top: 18px; font-size: 13px; } .th-foot p { display: flex; gap: 8px; align-items: center; } .th-foot svg { width: 16px; height: 16px; flex: none; }
.th-foot details { margin-top: 6px; } .th-foot summary { cursor: pointer; color: var(--muted); } .th-foot a { color: var(--th-l); }
.th-pcard ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.th-pcard li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.th-pcard li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; } .th-pcard li svg { width: 18px; height: 18px; color: #5be38a; flex: none; }
.th-pcard li span { flex: 1; } .th-pcard li small { color: var(--dim); } .th-pcard li.ok { background: rgba(91, 227, 138, .08); }
.th-badge { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px dashed var(--line-2); opacity: .7; }
.th-badge svg { width: 30px; height: 30px; color: var(--th-l); flex: none; } .th-badge div { display: grid; } .th-badge small { color: var(--dim); }
.th-badge.got { opacity: 1; border-style: solid; border-color: #e8c47a; background: rgba(232, 196, 122, .08); } .th-badge.got svg { color: #e8c47a; }
.th-how ol { line-height: 2; padding-inline-start: 20px; }
@media (max-width: 980px) {
  .th-console { grid-template-columns: 1fr; grid-template-areas: "room" "modes" "panel"; border-radius: 22px; }
  .th-panel { contain: none; overflow: visible; padding: 12px; }
  .th-modes { grid-auto-columns: minmax(88px, 1fr); }
  .th-canvas { min-width: 780px; } .th-drag { display: block; }
  .th-levels, .th-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .th-hot .r, .th-gate-sign i, .th-room .th-part-on, .th-gate-light, .th-card { animation: none; } .th-mode-pill { transition: none; } }
.lite .th-hot .r { animation: none; }
/* ستة أقسام بثلاثة في الصف، وآخر قسمين بنصف الصف لكل واحد */
@media (min-width: 821px) { .hub-picker { grid-template-columns: repeat(6, 1fr) !important; } .hub-picker .glass-tile { grid-column: span 2; } .hub-picker .glass-tile.half { grid-column: span 3; } }

/* رسومات بطاقات الأقسام: لقطة من داخل كل قسم */
.glass-tile .tile-art { width: min(58%, 300px); }
.glass-tile.half .tile-art { width: min(52%, 420px); }
.glass-tile .tile-art svg text { font-family: Tahoma, sans-serif; }
.ta-thread { display: flex; gap: 6px; justify-content: flex-end; align-items: stretch; }
.ta-thread-line { width: 26px; height: 150px; flex: none; }
.ta-brands { display: grid; gap: 4px; justify-items: end; }
.ta-brands img { height: 44px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.ta-room { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); aspect-ratio: 560 / 330; }
.ta-room svg { width: 100%; height: 100%; display: block; }
.ta-mini .th-item { cursor: default; }
.ta-ecg { stroke-dasharray: 260; animation: taEcg 2.6s linear infinite; }
@keyframes taEcg { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ta-ecg { animation: none; stroke-dasharray: none; } }
.lite .ta-ecg { animation: none; stroke-dasharray: none; }
@media (max-width: 560px) { .glass-tile .tile-art, .glass-tile.half .tile-art { width: 62%; } .ta-brands img { height: 34px; } .ta-thread-line { height: 116px; } }
.glass-tile .tile-art { display: flex; justify-content: flex-end; }
.glass-tile .tile-art > svg { direction: ltr; width: auto !important; height: 128px !important; max-width: 100%; }
.glass-tile.half .tile-art > svg { height: 128px !important; }
.ta-room { height: 128px; width: auto; aspect-ratio: 520 / 300; max-width: 100%; }
.ta-thread-line { height: 128px; } .ta-brands img { height: 38px; }
@media (max-width: 560px) { .glass-tile .tile-art > svg, .glass-tile.half .tile-art > svg { height: 104px !important; } .ta-room { height: 112px; } }

/* شروط كلمة المرور عند إنشاء الحساب */
.pw-rules { list-style: none; margin: -6px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 210, 214, .18); color: var(--muted, #c9a9b0); transition: background .2s, border-color .2s, color .2s; }
.pw-rules li::before { content: '○'; margin-inline-end: 6px; }
.pw-rules li.ok { background: rgba(91, 227, 138, .1); border-color: rgba(91, 227, 138, .45); color: #b9f3cc; }
.pw-rules li.ok::before { content: '✓'; }

/* خطوط Google مستضافة على الموقع نفسه (بدون طلبات لخوادم خارجية) */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-600i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-600i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-700i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-700i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-300-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-500-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-arabic-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== داخل غرفة العمليات: الموقع كله يتحول لسماوي غامق كإضاءة الغرفة ===== */
html.or-theme {
  --bg: #051117; --bg-2: #0a1c24; --panel: rgba(9, 30, 39, .62); --panel-solid: #0a1d26;
  --line: rgba(176, 228, 240, .1); --line-2: rgba(176, 228, 240, .18);
  --wine: #072530; --burgundy: #0c3b49; --crimson: #13707f; --rose: #29a5ba; --pink: #5fd0e4; --blush: #e4f7fb;
  --text: #eaf6f9; --muted: #a6c6cf; --dim: #8daeb8;
}
.or-theme .th { --th: #2894a8; --th-l: #82dfee; }
.or-theme .atmosphere { background: radial-gradient(120% 80% at 80% -10%, #0a3442 0%, transparent 55%), radial-gradient(90% 70% at 0% 110%, #062430 0%, transparent 60%), var(--bg); }
.or-theme .atmosphere i:nth-child(1) { background: #0c4f60; } .or-theme .atmosphere i:nth-child(2) { background: #07303b; } .or-theme .atmosphere i:nth-child(3) { background: #13788a; }
.or-theme .topbar { background: linear-gradient(var(--bg) 0%, rgba(5, 17, 23, .72) 70%, transparent); }
.or-theme .eyebrow { color: #82dfee; }
.or-theme .btn:hover { border-color: rgba(130, 223, 238, .45); }
.or-theme .btn-primary { background: linear-gradient(135deg, #1f9bb1, #0f6170 60%, #083a46); border-color: rgba(170, 236, 248, .38); }
.or-theme .dock-glass { background: linear-gradient(160deg, rgba(20, 120, 140, .32), rgba(4, 34, 44, .32) 60%, rgba(16, 100, 120, .3));
  box-shadow: inset 0 1px 0 rgba(200, 244, 252, .42), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(170, 236, 248, .14),
    inset 0 18px 30px -18px rgba(170, 236, 248, .3), 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35); }
.or-theme .dock a { color: rgba(224, 246, 250, .74); }
.or-theme .dock-blob { background: linear-gradient(160deg, rgba(110, 214, 232, .4), rgba(16, 112, 132, .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 14px rgba(0, 40, 50, .35), 0 6px 20px -6px rgba(40, 180, 206, .7); }
.or-theme .hashtag { background-image: linear-gradient(100deg, #e4f7fb 0%, #82dfee 55%, #29a5ba 100%); }

/* ---------- الغرزة الأخيرة: بودكاست الفريق؛ الموقع كله يتحول إلى ليل الاستوديو ---------- */
html.ls-theme {
  --bg: #070a1c; --bg-2: #0b1030; --panel: rgba(16, 22, 58, .62); --panel-solid: #0d1233;
  --line: rgba(206, 214, 255, .1); --line-2: rgba(206, 214, 255, .18);
  --wine: #10164a; --burgundy: #1c2670; --crimson: #d23a4c; --rose: #ff5d6c; --pink: #ff7b88; --blush: #f4efe6;
  --text: #eef0fb; --muted: #aab1d8; --dim: #8e96c4;
}
.ls-theme .atmosphere { background: radial-gradient(110% 80% at 85% -10%, #1a2370 0%, transparent 55%), radial-gradient(80% 70% at 0% 110%, #2a0f3a 0%, transparent 60%), var(--bg); }
.ls-theme .atmosphere i:nth-child(1) { background: #283399; } .ls-theme .atmosphere i:nth-child(2) { background: #12185a; } .ls-theme .atmosphere i:nth-child(3) { background: #6b1f4a; }
.ls-theme .topbar { background: linear-gradient(var(--bg) 0%, rgba(7, 10, 28, .72) 70%, transparent); }
.ls-theme .btn-primary { background: linear-gradient(135deg, #ff5d6c, #c23048 60%, #7a1a33); border-color: rgba(255, 190, 196, .38); }
.ls-theme .dock-glass { background: linear-gradient(160deg, rgba(60, 74, 190, .3), rgba(10, 14, 50, .34) 60%, rgba(44, 56, 160, .3));
  box-shadow: inset 0 1px 0 rgba(214, 220, 255, .4), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(190, 200, 255, .14),
    inset 0 18px 30px -18px rgba(190, 200, 255, .28), 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .35); }
.ls-theme .dock a { color: rgba(232, 236, 255, .74); }
.ls-theme .dock-blob { background: linear-gradient(160deg, rgba(255, 123, 136, .45), rgba(150, 30, 60, .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -6px 14px rgba(40, 0, 20, .35), 0 6px 20px -6px rgba(255, 93, 108, .7); }
.ls-wash { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(120% 90% at 50% 100%, #1a2370, #070a1c 65%); }

.ls-page { position: relative; z-index: 1; padding-bottom: 30px; }
.ls-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: min(78svh, 760px); padding: 30px 0; }
.ls-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.ls-plate { position: relative; z-index: 1; width: 72%; aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center;
  background: radial-gradient(90% 90% at 30% 20%, #1b2366 0%, #0b1030 60%, #080b22 100%);
  box-shadow: inset 0 1px 0 rgba(214, 220, 255, .25), inset 0 0 0 1px rgba(190, 200, 255, .1), 0 50px 90px -40px rgba(0, 0, 0, .95), 0 30px 80px -50px rgba(255, 93, 108, .55); }
.ls-mark { width: 88%; height: auto; overflow: visible; }
.ls-mark .ls-inc { stroke: rgba(244, 239, 230, .42); fill: none; }
.ls-mark .ls-yoke, .ls-mark .ls-stem, .ls-mark .ls-chest, .ls-mark .ls-cap { stroke: #f4efe6; } .ls-mark .ls-ear { fill: #f4efe6; } .ls-mark .ls-chest-dot { fill: #ff4d5e; }
.ls-mark .ls-s line { stroke: #f4efe6; } .ls-mark .ls-s circle { fill: #f4efe6; }
.ls-mark .ls-last line { stroke: #ff4d5e; } .ls-mark .ls-last circle, .ls-mark .ls-knot { fill: #ff4d5e; }
.ls-mark .ls-tail { stroke: #ff4d5e; }
.ls-mark .ls-needle path { stroke: #cfd5ee; } .ls-mark .ls-needle .ls-needle-th { stroke: #ff4d5e; opacity: .8; }
.ls-stage { perspective: 900px; }
.ls-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.ls-rings span { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 30%; border: 1.5px solid rgba(255, 123, 136, .35); opacity: 0; }
.ls-stage.live .ls-rings span { animation: lsRing 3.6s cubic-bezier(.2, .7, .3, 1) infinite; }
.ls-stage.live .ls-rings span:nth-child(2) { animation-delay: 1.2s; }
.ls-stage.live .ls-rings span:nth-child(3) { animation-delay: 2.4s; }
@keyframes lsRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.42); opacity: 0; } }

.ls-copy { display: grid; gap: 14px; justify-items: start; }
.ls-air { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 16px; border-radius: 999px; font-size: 15px; color: #ffd7db;
  background: rgba(255, 93, 108, .1); box-shadow: inset 0 0 0 1px rgba(255, 93, 108, .35); }
.ls-air .ltr { font-family: var(--serif); font-weight: 700; letter-spacing: .14em; }
.ls-air i { width: 9px; height: 9px; border-radius: 50%; background: #ff5d6c; box-shadow: 0 0 0 0 rgba(255, 93, 108, .6); animation: lsAir 1.6s ease-out infinite; }
@keyframes lsAir { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 108, .6); } 100% { box-shadow: 0 0 0 10px rgba(255, 93, 108, 0); } }
.ls-title { margin: 0; display: grid; gap: 4px; }
.ls-en { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(54px, 7.4vw, 104px); line-height: .95; letter-spacing: -.02em; color: #f4efe6; }
.ls-ar { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; color: #ff7b88; }
.ls-sub { margin: 0; font-size: 17px; color: var(--muted); }
.ls-lead { margin: 4px 0 0; max-width: 58ch; font-size: 18px; line-height: 1.9; color: #d6daf2; }
.ls-wave { display: flex; align-items: center; gap: 4px; height: 54px; width: min(100%, 460px); margin-top: 8px; }
.ls-wave i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: linear-gradient(180deg, #ff7b88, #6a74d8); opacity: .75; transform-origin: 50% 50%;
  animation: lsBar 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.11s); }
@keyframes lsBar { 50% { transform: scaleY(.35); } }

.ls-formats { margin-top: 30px; }
.ls-formats h2 { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(30px, 3.2vw, 44px); margin: 0 0 18px; }
.ls-formats ol { list-style: none; margin: 0; padding: 0; display: grid; }
.ls-formats li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no body w" "no body soon"; gap: 4px 26px; align-items: center;
  padding: 26px 6px; border-top: 1px solid var(--line-2); }
.ls-formats li:last-child { border-bottom: 1px solid var(--line-2); }
.ls-no { grid-area: no; font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(44px, 5vw, 70px); line-height: 1; color: rgba(255, 123, 136, .5); }
.ls-formats li > div { grid-area: body; }
.ls-formats h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.ls-formats p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 60ch; }
.ls-w { grid-area: w; justify-self: end; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; color: #c6ccf2; }
.ls-soon { grid-area: soon; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dim); }
.ls-soon svg { width: 15px; height: 15px; }
.ls-foot { display: grid; justify-items: center; gap: 16px; margin-top: 54px; text-align: center; }
.ls-foot p { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); color: var(--muted); }
.ls-page ::selection { background: rgba(255, 93, 108, .45); color: #fff; }
@media (max-width: 900px) {
  .ls-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .ls-stage { width: min(78vw, 380px); }
  .ls-copy { justify-items: center; text-align: center; }
  .ls-wave { width: 100%; }
}
@media (max-width: 620px) {
  .ls-formats li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no body" "no w" "no soon"; gap: 6px 16px; }
  .ls-w, .ls-soon { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .ls-wave i, .ls-air i, .ls-stage.live .ls-rings span { animation: none; } }

/* بطاقة البودكاست في الرئيسية تمتد بعرض الصف */
@media (min-width: 821px) { .hub-picker .glass-tile.wide { grid-column: 1 / -1; min-height: 240px; } }
.glass-tile.wide { background: linear-gradient(120deg, rgba(26, 35, 112, .55), rgba(9, 12, 40, .7) 55%, rgba(120, 30, 60, .4)); border-color: rgba(190, 200, 255, .16); }

.ta-pod { display: flex; align-items: center; gap: 22px; }
.ta-pod img { width: 120px; height: 120px; border-radius: 30px; background: #0b1030; box-shadow: inset 0 0 0 1px rgba(190, 200, 255, .16), 0 20px 40px -20px rgba(0, 0, 0, .9); }
.ta-pod-wave { display: flex; align-items: center; gap: 4px; height: 70px; width: 240px; }
.ta-pod-wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #ff7b88, #6a74d8); opacity: .7; }
@media (max-width: 820px) { .ta-pod-wave { display: none; } .ta-pod img { width: 90px; height: 90px; border-radius: 22px; } }
/* الشريط السفلي على الجوال: عشرة أقسام تتمرّر جانبيًا بدل أن تتزاحم */
@media (max-width: 560px) {
  .dock { overflow: hidden; }
  .dock-items { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
  .dock-items::-webkit-scrollbar { display: none; }
  .dock a { flex: 0 0 auto; min-width: 64px; padding: 8px 6px 6px; scroll-snap-align: center; }
  .dock a span { white-space: nowrap; font-size: 11.5px; }
}

/* ---------- الخطة السنوية: ثلاثة أبواب زجاجية، وكل برنامج عالم بلونه ---------- */
/* داخل الخطة: الخلفية وحدها تأخذ لون النشاط الذي تقف عنده؛ ألوان الموقع (الشريطان والأزرار والنصوص) تبقى كما هي
   حتى تبقى لغرفة العمليات والغرزة الأخيرة عوالمهما الخاصة */
@property --pg { syntax: '<color>'; inherits: true; initial-value: #ff4f62; }
.pg-theme .atmosphere { background: radial-gradient(110% 80% at 85% -10%, color-mix(in srgb, color-mix(in srgb, var(--pg) 70%, #6b6060) 13%, transparent), transparent 55%), radial-gradient(80% 70% at 0% 110%, color-mix(in srgb, var(--pg) 7%, transparent), transparent 60%), var(--bg); }
.pg-theme .atmosphere i { background: color-mix(in srgb, color-mix(in srgb, var(--pg) 60%, #504848) 22%, #000) !important; opacity: .7; }
.pl-wash { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* خلفية حية خلف الزجاج: بقع لون تسبح، وشبكة خطوط دقيقة ينكسر عليها الزجاج */
.pl-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pl-aurora i { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; opacity: .32; --b: #ff4f62; background: radial-gradient(closest-side, var(--b), transparent) !important; }
.pl-aurora i:nth-child(1) { --b: #ff4f62; top: 10%; right: -16%; }
.pl-aurora i:nth-child(2) { --b: #2fd8c6; top: 30%; left: 20%; }
.pl-aurora i:nth-child(3) { --b: #ffb547; top: 12%; left: -18%; }
.pg-theme .pl-aurora i { --b: var(--pg); }
.pg-theme .pl-aurora i:nth-child(2) { --b: color-mix(in srgb, var(--pg) 60%, #fff); opacity: .16; }
.pg-theme .pl-aurora i:nth-child(3) { --b: color-mix(in srgb, var(--pg) 70%, #000); }
.pl-aurora::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); }
@keyframes plDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, -4vh) scale(1.12); } 100% { transform: translate(-5vw, 5vh) scale(.94); } }
.pl-page { position: relative; z-index: 1; padding-bottom: 60px; }

/* الزجاج السائل */
.lg { position: relative; isolation: isolate; border-radius: 44px; color: var(--text); text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, #fff) 18%, rgba(255, 255, 255, .07)), rgba(255, 255, 255, .025) 46%, color-mix(in srgb, var(--c, #fff) 12%, rgba(255, 255, 255, .03)));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 26px 44px -26px rgba(255, 255, 255, .26), inset 0 -40px 60px -40px color-mix(in srgb, var(--c, #fff) 45%, transparent),
    0 40px 80px -34px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .25);
  transition: transform .6s var(--spring), box-shadow .5s var(--ease); }
.lg.lg-live { background: linear-gradient(160deg, color-mix(in srgb, var(--c, #fff) 14%, rgba(255, 255, 255, .04)), rgba(255, 255, 255, .015) 46%, color-mix(in srgb, var(--c, #fff) 10%, rgba(255, 255, 255, .02))); }
.lg::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px 280px at var(--mx, 25%) var(--my, 0%), rgba(255, 255, 255, .2), transparent 70%); }
.lg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .06) 32%, transparent 58%, color-mix(in srgb, var(--c, #fff) 70%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
a.lg:focus-visible { outline: 3px solid var(--c, #fff); outline-offset: 4px; }

/* الرأس وأقرب موعد */
.pl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: clamp(28px, 5vw, 56px) 0 8px; }
.pl-title h1 { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(54px, 8vw, 112px); line-height: 1; margin: 0; }
.pl-title h1 em { font-style: normal; color: var(--pink); }
.pl-year { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); color: var(--blush); }
.pl-year i { width: 60px; height: 2px; background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 13px); }
.pl-lead { margin: 14px 0 0; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }

/* الأبواب الثلاثة */
.pl-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); margin-top: 34px; }
.pl-door-wrap { position: relative; }
.pl-blob { position: absolute; inset: 10% 6% 14%; border-radius: 40%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .45; pointer-events: none; }
.pl-door-wrap:nth-child(2) .pl-blob { animation-delay: -5s; } .pl-door-wrap:nth-child(3) .pl-blob { animation-delay: -10s; }
.pl-door { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: clamp(460px, 64vh, 620px); padding: 34px 34px 30px; overflow: hidden; }
.pl-door:hover { transform: translateY(-10px) scale(1.012); }
.pl-door-art { position: absolute; top: 30px; inset-inline-end: 26px; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--c) 70%, transparent)); transition: transform .8s var(--spring); }
.pl-door:hover .pl-door-art { transform: rotate(-8deg) scale(1.08); }
.pl-door-when { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); color: color-mix(in srgb, var(--c) 70%, #fff); }
.pl-door-when i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: rkPulseDot 1.8s ease-in-out infinite; }
.pl-door-n { position: absolute; bottom: 120px; inset-inline-end: 30px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 120px; line-height: .8; color: color-mix(in srgb, var(--c) 30%, transparent); pointer-events: none; }
.pl-door h2 { margin: auto 0 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(36px, 3.3vw, 52px); line-height: 1.08; text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.pl-door-en { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; color: color-mix(in srgb, var(--c) 65%, #fff); }
.pl-door-marks { display: flex; align-items: center; margin-top: 10px; }
.pl-door-marks svg { margin-inline-end: -10px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transition: transform .4s var(--spring); }
.pl-door:hover .pl-door-marks svg { margin-inline-end: -2px; }
.pl-door-marks b { position: relative; z-index: 1; margin-inline-start: 22px; font-style: normal; font-family: var(--serif); font-size: 20px; color: var(--muted); }
.pl-door-go { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 17px; color: var(--muted); }
.pl-door-go b { font-family: var(--serif); font-size: 30px; color: #fff; margin-inline-end: 6px; }
.pl-door-go span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; color: #fff; font-weight: 700;
  background: color-mix(in srgb, var(--c) 34%, rgba(0, 0, 0, .2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); transition: gap .3s var(--spring); }
.pl-door-go span svg { width: 18px; height: 18px; }
.lg:hover .pl-door-go span { gap: 14px; }

/* شريط التنقل بين البرامج */
.pl-switch { position: sticky; top: 78px; z-index: 30; display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 18px auto 0; padding: 7px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; --c: var(--pg); }
.pl-switch::-webkit-scrollbar { display: none; }
.pl-switch a { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--muted); transition: background .3s, color .3s; }
.pl-switch a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pl-switch a[aria-current] { color: #fff; font-weight: 700; background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.pl-back svg { width: 18px; height: 18px; transform: scaleX(-1); }
.pl-back { border-inline-end: 1px solid rgba(255, 255, 255, .12); border-radius: 999px 0 0 999px !important; }

/* رأس البرنامج */
.pg-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(30px, 5vw, 60px) 0 clamp(26px, 4vw, 46px); }
.pg-emb svg { width: clamp(96px, 10vw, 140px); height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px color-mix(in srgb, var(--pg) 40%, transparent)); }
.pg-when { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 500; color: var(--pink); }
.pg-when i { width: 9px; height: 9px; border-radius: 50%; background: var(--pg); animation: rkPulseDot 1.8s ease-in-out infinite; }
.pg-head h1 { margin: 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; text-wrap: balance; }
.pg-en { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(22px, 2vw, 30px); color: var(--pink); }
.pg-lead { margin: 12px 0 0; max-width: 62ch; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.85; color: var(--muted); }

/* أجزاء مشتركة */
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500; padding: 6px 15px; border-radius: 999px; color: var(--text);
  background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.pl-chip svg { width: 16px; height: 16px; color: var(--c); }
.pl-chip.on { background: color-mix(in srgb, var(--c) 24%, transparent); }
.pl-en { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; color: color-mix(in srgb, var(--c) 60%, #fff); direction: ltr; text-align: end; }
.pl-sum { margin: 4px 0 0; font-size: 19px; line-height: 1.85; color: var(--text); }
.pl-dl { margin: 6px 0 0; display: grid; gap: 14px; }
.pl-dl div { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--c) 18%, transparent); }
.pl-dl dt { font-size: 14.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #fff); }
.pl-dl dt.ltr { font-family: var(--serif); font-style: italic; font-size: 17px; }
.pl-dl dd { margin: 0; font-size: 17px; line-height: 1.85; color: var(--muted); }
.pl-note { margin: 0; font-size: 14.5px; color: var(--dim); line-height: 1.7; }
.pl-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 16px; margin-top: 4px; }
.pl-when-full { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.pl-when-full svg { width: 17px; height: 17px; color: var(--c); }
.pl-act a:not(.btn) { color: color-mix(in srgb, var(--c) 80%, #fff); text-decoration: underline; text-underline-offset: 3px; }
.pl-collab { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 15.5px; color: var(--muted); }
.pl-collab b { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 17px; color: color-mix(in srgb, var(--c) 85%, #fff); }

/* الشعار الكامل */
.lk { display: inline-flex; align-items: center; gap: 16px; }
.lk .emb { flex: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.lk-txt { display: grid; gap: 2px; justify-items: start; }
.lk-name { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: 36px; line-height: 1.1; color: color-mix(in srgb, var(--c) 72%, #fff); }
.lk-brand { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 19px; color: var(--muted); }
.lk-old { height: 58px; width: auto; max-width: 210px; }

/* الجراحة العامة: أربع محطات */
.gs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.gs-item { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); border-radius: 44px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, var(--panel-solid)), var(--panel-solid));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c) 40%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent), 0 44px 90px -44px #000; }
.gs-item:nth-child(even) .gs-visual { order: 2; }
.gs-visual { position: relative; display: grid; place-items: center; align-content: center; gap: 20px; padding: 56px 30px;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 38%, transparent), transparent 62%), linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #000), color-mix(in srgb, var(--c) 4%, #000)); }
.gs-emb { width: clamp(150px, 15vw, 220px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.gs-step { position: absolute; top: 22px; inset-inline-start: 30px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 72px; line-height: 1; color: color-mix(in srgb, var(--c) 45%, transparent); }
.gs-mark { display: grid; justify-items: center; gap: 2px; text-align: center; }
.gs-mark b { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(40px, 4vw, 58px); line-height: 1.1; color: color-mix(in srgb, var(--c) 70%, #fff); }
.gs-mark img { height: 76px; width: auto; }
.gs-mark i { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px; color: var(--muted); }
.gs-body { padding: clamp(30px, 4vw, 52px); display: grid; gap: 10px; align-content: center; --c: inherit; }
.gs-body h2 { margin: 6px 0 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.2; }
.gs-body .pl-en { text-align: start; direction: rtl; }

/* التخصصات: ستة أبواب */
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.sp-door { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 380px; padding: 30px; border-radius: 40px; overflow: hidden; }
.sp-door:hover { transform: translateY(-8px); }
.sp-ico { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 32px; margin-bottom: 10px;
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 8%, rgba(0, 0, 0, .3)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 16px 40px -14px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .7s var(--spring); }
.sp-door:hover .sp-ico { transform: rotate(-8deg) scale(1.06); }
.sp-door h2 { margin: 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; }
.sp-en { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; color: color-mix(in srgb, var(--c) 65%, #fff); }
.sp-marks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 18px; }
.sp-marks > span { display: grid; justify-items: center; gap: 4px; text-align: center; }
.sp-marks b { font-family: var(--display); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.sp-marks small { font-size: 12.5px; color: var(--muted); }
.sp-door .pl-door-go { justify-content: flex-end; }

/* داخل التخصص */
.sp-head .pg-emb svg { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px color-mix(in srgb, var(--c) 45%, transparent)); }
.sp-head .pg-when { color: var(--pink); }
.sp-head .pg-en { color: color-mix(in srgb, var(--c) 70%, #fff); }
.sp-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--text); --c: var(--pg); }
.sp-nav a svg { width: 17px; height: 17px; }
.sp-nav a:first-child svg { transform: scaleX(-1); }
.sp-nav a:hover { transform: translateY(-3px); }
.sp-items { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.sp-items.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-card { display: grid; gap: 10px; padding: clamp(26px, 3vw, 40px); border-radius: 40px; }
.sp-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.sp-card h2 { margin: 6px 0 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; }
.sp-card .pl-en { text-align: start; direction: rtl; }

/* المجتمع والبحث والمسار المهني */
.cm-group { margin-top: 50px; }
.cm-group:first-of-type { margin-top: 0; }
.cm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.cm-head svg { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.cm-head h2 { margin: 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(32px, 3vw, 44px); }
.cm-head span { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px; color: color-mix(in srgb, var(--c) 70%, #fff); }
.cm-row { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.cm-row.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(24px, 2.6vw, 34px); border-radius: 38px; }
.cm-card .lk { margin-bottom: 8px; }
.cm-card h3 { margin: 4px 0 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(24px, 2vw, 30px); line-height: 1.2; }
.cm-card .pl-en { text-align: start; direction: rtl; font-size: 19px; }
.cm-card .pl-sum { font-size: 17.5px; }
.cm-more { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--text);
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); transition: background .3s; }
.cm-more:hover { background: color-mix(in srgb, var(--c) 28%, transparent); }
.cm-more svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
.cm-card.open .cm-more svg { transform: rotate(45deg); }
.cm-detail { width: 100%; overflow: hidden; display: grid; gap: 12px; }
.pl-page ::selection { background: color-mix(in srgb, var(--pg, #e8484f) 45%, transparent); color: #fff; }

@media (max-width: 1100px) {
  .sp-items.n3, .cm-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pl-head { grid-template-columns: 1fr; gap: 24px; }
  .pl-next { min-width: 0; } .pl-next .clock div { min-width: 0; flex: 1; }
  .pl-doors { grid-template-columns: 1fr; }
  .pl-door { min-height: 340px; }
  .pl-door-n { font-size: 90px; bottom: auto; top: 30px; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-item { grid-template-columns: 1fr; }
  .gs-item:nth-child(even) .gs-visual { order: 0; }
  .gs-visual { padding: 44px 24px 34px; }
}
@media (max-width: 640px) {
  .pl-door { padding: 26px 22px 22px; min-height: 320px; border-radius: 34px; }
  .pl-door-art { position: static; margin-bottom: 6px; }
  .pl-door-art svg { width: 84px; height: 84px; }
  .pl-door h2 { margin-top: 18px; }
  .pl-door-marks svg { width: 34px; height: 34px; }
  .sp-grid, .sp-items, .sp-items.n3, .cm-row, .cm-row.n2 { grid-template-columns: 1fr; }
  .sp-door { min-height: 0; padding: 24px; }
  .pg-head { grid-template-columns: 1fr; justify-items: start; }
  .pl-switch { top: 70px; }
  .pl-switch a { padding: 9px 14px; font-size: 14px; }
  .pl-switch a svg { width: 20px; height: 20px; }
  .lk-name { font-size: 30px; }
  .lk .emb { width: 72px; height: 72px; }
  .pl-sum { font-size: 17.5px; }
}
@media (prefers-reduced-motion: reduce) { .pl-aurora i, .pl-blob, .pl-door-when i, .pg-when i { animation: none; } }

.pl-door-go em { font-style: normal; }
.pl-collab-en { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--dim); }

/* شعارات الخطة: الاسم المرسوم ورمزه بحجم يليق به */
.pl-logo { display: block; width: auto; height: auto; max-width: 100%; }
.gs-logo { width: min(100%, 440px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.gs-visual { min-height: 320px; }
.card-logo { height: 118px; max-width: 280px; object-fit: contain; object-position: right center; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45)); }
.pl-door-marks { gap: 6px; }
.pl-door-logo { height: 48px; max-width: 110px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.sp-mark-logo { height: 54px; max-width: 120px; object-fit: contain; }
.pg-emb { display: grid; place-items: center; width: clamp(104px, 10vw, 140px); aspect-ratio: 1; border-radius: 36px;
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--pg) 28%, transparent), color-mix(in srgb, var(--pg) 6%, rgba(0, 0, 0, .35)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px color-mix(in srgb, var(--pg) 45%, transparent), 0 24px 50px -20px color-mix(in srgb, var(--pg) 60%, transparent); }
.pg-emb svg { width: 62%; height: auto; filter: none; }
.sp-head .pg-emb { --pg: var(--c); }
.cm-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
@media (max-width: 640px) { .card-logo { height: 96px; } .pl-door-logo { height: 40px; } .gs-visual { min-height: 0; } }
.sp-mark-logo { height: 76px; max-width: 170px; }
.sp-marks { gap: 10px 18px; }
.pl-door-logo { height: 58px; max-width: 130px; }
.pl-door-marks { width: 100%; flex-wrap: nowrap; gap: 10px; overflow: hidden; }
.pl-door-logo { flex: 0 1 auto; min-width: 0; max-width: calc((100% - 60px) / 3); height: auto; max-height: 58px; }
.sp-mark-logo { max-width: 140px; height: auto; max-height: 76px; }
.sp-marks > span { flex: 0 1 140px; }
.sp-marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 6px 14px; }
.sp-marks > span { min-width: 0; }
.sp-mark-logo { width: 100%; max-width: none; max-height: none; margin-inline: 0; }

/* ---------- داخل البرامج: بلا صناديق، خيوط وحركة ---------- */
.it-title { margin: 6px 0 0; font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.2; }
.it-title + .pl-en { text-align: start; direction: rtl; }
.stop-logo { width: min(100%, 460px); filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .55)); }

/* ١) الجراحة العامة: الخيط والإبرة */
.th { position: relative; padding: 20px 0 80px; }
.th-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.th-ghost { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 2; stroke-dasharray: 8 9; }
.th-line { fill: none; stroke: url(#th-grad); stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pg) 60%, transparent)); }
.th-needle { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .5)); }
.th-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(90px, 12vw, 170px); }
.th-stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; grid-template-areas: "body knot logo"; }
.th-stop.flip { grid-template-areas: "logo knot body"; }
.th-logo { grid-area: logo; display: grid; place-items: center; }
.th-body { grid-area: body; display: grid; gap: 10px; max-width: 560px; justify-self: center; }
.th-knot { grid-area: knot; justify-self: center; position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); transition: box-shadow .6s, transform .7s var(--spring); }
.th-knot b { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--dim); transition: color .5s; }
.th-stop.on .th-knot { transform: scale(1.12); box-shadow: inset 0 0 0 3px var(--c), 0 0 0 8px color-mix(in srgb, var(--c) 14%, transparent), 0 10px 30px -6px var(--c); }
.th-stop.on .th-knot b { color: #fff; }
.th.anim .th-logo, .th.anim .th-body { transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s; }
.th.anim .th-stop:not(.on) .th-logo { opacity: 0; transform: scale(.82) rotate(-4deg); filter: blur(10px); }
.th.anim .th-stop:not(.on) .th-body { opacity: 0; transform: translateY(40px); filter: blur(8px); }

/* ٢) داخل التخصص: رحلة أفقية */
.hz { position: relative; }
.hz-track { display: grid; gap: 70px; }
.hz-slide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.hz-logo { display: grid; justify-items: center; gap: 12px; }
.hz-n { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px; color: var(--dim); }
.hz-body { display: grid; gap: 10px; max-width: 600px; }
.hz-rail { display: none; }
.hz.pinned { overflow: hidden; height: calc(100svh - 84px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hz.pinned .hz-track { display: flex; gap: 8vw; width: max-content; will-change: transform; }
.hz.pinned .hz-slide { width: min(1080px, calc(100vw - 160px)); flex: none; transition: opacity .6s, filter .6s; }
.hz.pinned .hz-slide:not(.on) { opacity: .28; filter: blur(3px) saturate(.6); }
.hz.pinned .hz-body { max-height: calc(100svh - 300px); overflow: auto; scrollbar-width: thin; padding-inline-end: 6px; }
.hz.pinned .hz-rail { display: block; position: relative; height: 110px; flex: none; }
.hz-svg { position: absolute; inset: 0 0 auto; overflow: visible; }
.hz-ghost { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; stroke-dasharray: 7 8; }
.hz-line { fill: none; stroke: var(--pg); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--pg)); }
.hz-needle { position: absolute; top: 0; left: 0; z-index: 2; }
.hz-stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 64px 0 0; display: flex; justify-content: space-between; }
.hz-stops li { display: grid; justify-items: center; gap: 2px; font-size: 15px; color: var(--dim); transition: color .4s; }
.hz-stops li i { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); transition: all .4s; }
.hz-stops li span { font-family: var(--display); font-weight: 700; font-size: 16px; }
.hz-stops li small { font-size: 12.5px; }
.hz-stops li.on { color: var(--text); }
.hz-stops li.on i { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }

/* ٣) المجتمع: طريق متعرّج وضوء يسري */
.wd { position: relative; padding: 10px 0 90px; }
.wd-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.wd-ghost { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 26; stroke-linecap: round; opacity: .35; }
.wd-line { fill: none; stroke: url(#wd-grad); stroke-width: 3; stroke-linecap: round; }
.wd-spark { fill: #fff; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 22px var(--pg)); }
.wd-group { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); margin-bottom: clamp(60px, 8vw, 110px); }
.wd-head { position: relative; z-index: 2; justify-self: center; display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 12px 26px 12px 20px; border-radius: 999px;
  font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(28px, 3vw, 40px);
  background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 50%, transparent), 0 20px 40px -20px #000; }
.wd-head small { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 18px; color: color-mix(in srgb, var(--c) 70%, #fff); }
.wd-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); }
.wd-stop { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; width: 64%; }
.wd-stop.right { justify-self: start; }
.wd-stop.left { justify-self: end; }
.wd-knot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; translate: 0 -50%; z-index: 2; background: var(--bg);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 55%, transparent); transition: all .5s var(--spring); }
.wd-stop.right .wd-knot { inset-inline-end: -26%; }
.wd-stop.left .wd-knot { inset-inline-start: -26%; }
.wd-stop.on .wd-knot { background: var(--c); box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 22%, transparent), 0 0 24px var(--c); }
.wd-logo { display: grid; place-items: center; }
.wd-body { display: grid; gap: 8px; }
.wd.anim .wd-logo, .wd.anim .wd-body, .wd.anim .wd-head { transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s; }
.wd.anim .wd-stop:not(.on) .wd-logo { opacity: 0; transform: translateY(30px) scale(.9); }
.wd.anim .wd-stop:not(.on) .wd-body { opacity: 0; transform: translateY(40px); }
.wd.anim .wd-head:not(.on) { opacity: 0; transform: scale(.85); }

@media (max-width: 899px) {
  .th-stop, .th-stop.flip { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "knot logo" "knot body"; gap: 16px 14px; align-items: start; }
  .th-knot { width: 46px; height: 46px; align-self: start; margin-top: 30px; } .th-knot b { font-size: 19px; }
  .th-logo { justify-items: start; } .stop-logo { width: min(100%, 340px); }
  .th-list { gap: 70px; }
  .hz-slide { grid-template-columns: 1fr; }
  .hz-logo { justify-items: start; }
  .wd-stop, .wd-stop.left, .wd-stop.right { width: auto; justify-self: stretch; grid-template-columns: 1fr; margin-inline-start: 44px; }
  .wd-stop.right .wd-knot, .wd-stop.left .wd-knot { inset-inline-start: -40px; inset-inline-end: auto; top: 40px; }
  .wd-head { justify-self: start; font-size: 26px; }
  .wd-logo { justify-items: start; }
}
/* تحسينات الحركة داخل البرامج */
.wd-group { gap: clamp(90px, 10vw, 140px); }
.wd-stop { align-items: start; }
.th-stop { align-items: start; }
.th-logo { position: sticky; top: 170px; align-self: start; }
.th-knot { align-self: start; margin-top: 70px; }
.hz.pinned { height: calc(100svh - 84px - 104px); }
.hz.pinned .hz-body { max-height: calc(100svh - 84px - 104px - 150px); }
@media (max-width: 899px) { .th-logo { position: static; } .th-knot { margin-top: 30px; } }
#hub { scroll-margin-top: 70px; }
/* محطات الطريق مرقّمة، والطريق نفسه لكل البرامج */
.wd-knot { width: 40px; height: 40px; display: grid; place-items: center; }
.wd-knot b { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px; line-height: 1; color: color-mix(in srgb, var(--c) 80%, #fff); transition: color .4s; }
.wd-stop.on .wd-knot b { color: #12070a; }
.wd-stop.right .wd-knot { inset-inline-end: calc(-26% - 9px); }
.wd-stop.left .wd-knot { inset-inline-start: calc(-26% - 9px); }
/* شريط البرامج: الإطار الزجاجي ثابت، والأزرار تتمرر داخله */
.pl-switch { overflow: hidden; display: block; }
.pl-sw-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; overscroll-behavior-x: contain; }
.pl-sw-in::-webkit-scrollbar { display: none; }
@media (max-width: 899px) {
  .wd-stop, .wd-stop.left, .wd-stop.right { margin-inline-start: 50px; }
  .wd-stop.right .wd-knot, .wd-stop.left .wd-knot { width: 34px; height: 34px; inset-inline-start: -46px; top: 34px; }
  .wd-knot b { font-size: 13px; }
}
@media (max-width: 640px) { .pl-back span { display: none; } .pl-back { padding-inline: 12px !important; } }
@media (max-width: 899px) { .pl-switch { background: rgba(14, 8, 10, .94); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* الغرزة الأخيرة: صفحة تشويقية */
.ls-lead em { font-style: normal; color: #ff7b88; }
.ls-coming { margin: 6px 0 0; display: flex; gap: .32em; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .02em; color: #f4efe6; }
.ls-coming .sp { width: .5em; }
.ls-coming span:not(.sp) { animation: lsFlick 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1s); }
.ls-coming span:nth-child(3n) { --d: .7; } .ls-coming span:nth-child(4n) { --d: 2.1; } .ls-coming span:nth-child(5n) { --d: 3.4; }
@keyframes lsFlick { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .25; } 96% { opacity: .9; } 97% { opacity: .35; } }
.ls-tease { margin-top: 26px; }
.ls-tease ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ls-tease li { position: relative; display: grid; gap: 14px; padding: 22px 20px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(60, 74, 190, .16), rgba(10, 14, 50, .3)); box-shadow: inset 0 0 0 1px rgba(190, 200, 255, .12); }
.ls-tease .ls-no { font-size: clamp(40px, 4vw, 58px); }
.ls-redact { display: grid; gap: 9px; }
.ls-redact b { font-family: var(--display); font-size: 18px; color: #e8ebff; }
.ls-redact i { display: block; height: 12px; border-radius: 4px; background: rgba(200, 206, 255, .16); }
.ls-redact i:last-child { width: 62%; }
.ls-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #ff9aa5; }
.ls-lock svg { width: 15px; height: 15px; }
.ls-tease li::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); transform: translateX(-100%); animation: lsShine 4.5s ease-in-out infinite; }
.ls-tease li:nth-child(2)::after { animation-delay: 1.2s; } .ls-tease li:nth-child(3)::after { animation-delay: 2.4s; }
@keyframes lsShine { 60%, 100% { transform: translateX(100%); } }
@media (max-width: 760px) { .ls-tease ol { grid-template-columns: 1fr; } .ls-coming { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .ls-coming span, .ls-tease li::after { animation: none; } }

/* الواجهة تذوب في الصفحة: الخلفية والمقص يتلاشيان عند الحافة السفلى */
.hs-plate, .hs-plate-m { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.hs-inst-in img { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.hs-stage { will-change: opacity; }
/* خيط الجراحة الممتد من الواجهة إلى الأقسام */
.hs-trail { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
.hs-trail path { fill: none; stroke-linecap: round; }
.hs-trail .tr-ghost { stroke: rgba(168, 23, 43, .14); stroke-width: 2; }
.hs-trail .tr-line { stroke: #b3172d; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 60, 80, .45)); }
.hs-trail .tr-head { fill: #ffd7dc; filter: drop-shadow(0 0 8px #ff4d5e); transition: opacity .3s; }
.hs-trail .tr-knot { fill: #12060a; stroke: #b3172d; stroke-width: 3; transition: fill .4s; }
.hs-trail .tr-knot.on { fill: #ff4d5e; }
#view > .section, #view > section.section, #view > .history-band, #view > .finale2, #view > footer { position: relative; z-index: 1; }

/* الخطة: ألوان أهدأ للعين، ورسم خطي خافت وحبيبات ناعمة تملأ الخلفية */
.pg-theme .pl-aurora { opacity: .4; }
.pl-bgart { position: fixed; z-index: 0; inset-inline-start: -6vw; bottom: -10vh; width: min(70vw, 760px); aspect-ratio: 1; display: grid; place-items: center; pointer-events: none;
  opacity: .045; }
.pl-bgart svg { width: 100%; height: 100%; }
@keyframes plArt { to { rotate: 360deg; } }
.pl-grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pg-theme .wd-line { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .pl-bgart { animation: none; } }

/* الواجهة 4K: الخيط جزء من الصورة، والمرور عليه يضيئه */
.hs.on-thread, .hs.on-thread .hs-inst { cursor: pointer; }
.hs.on-thread .hs-inst-in img { filter: drop-shadow(-14px 22px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 70, 90, .55)); }
.hs-inst-in img { transition: filter .3s; }
.hs-skip { position: absolute; z-index: 6; left: 50%; bottom: 2%; transform: translate(-50%, 140%); opacity: 0; padding: 8px 14px; border-radius: 999px; background: rgba(20, 5, 8, .9); color: #fff; font-size: 14px; text-decoration: none; }
.hs-skip:focus-visible { transform: translate(-50%, 0); opacity: 1; outline: 2px solid #ff8e9b; }
@media (max-width: 760px) {
  .hs-stage { max-height: 880px; }
  .hs-t1 { top: 6%; font-size: 13.5cqw; }
  .hs-t2 { top: auto; bottom: 15%; right: 0; left: 0; text-align: center; font-size: 12.5cqw; }
  .hs-hint { left: 0; right: 0; top: auto; bottom: 10.5%; text-align: center; }
  .hs-kicker { top: 14px; right: 16px; }
  .hs-inst { width: 150cqw !important; left: -26cqw !important; top: 36% !important; rotate: -28deg; }
  .hs-pulse { position: relative; left: auto; top: auto; }
  .hs-pulse-cap { position: static; }
}

/* ---------- باركود الحضور ---------- */
.ck-dlg .m-body { max-width: 380px; }
.ck { display: grid; gap: 14px; justify-items: center; text-align: center; }
.ck-qr { width: min(78vw, 300px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.ck-qr svg { width: 100%; height: 100%; display: block; }
.ck-wait svg { width: 34px; height: 34px; color: #999; }
.ck-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ck-meta span { display: grid; gap: 2px; }
.ck-meta b { font-size: 22px; color: var(--text); font-family: var(--serif); letter-spacing: .06em; }
.ck-code { font-variant-numeric: tabular-nums; }
.ck-timer { width: min(78vw, 300px); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ck-timer i { display: block; height: 100%; background: var(--pink, #ff4f62); transform-origin: right; }
.ck-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 32ch; line-height: 1.8; }
.ck-actions { display: flex; gap: 8px; }
/* ---------- صفحة مسح القائد ---------- */
.scan-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255, 79, 98, .22); box-shadow: inset 0 0 0 1px rgba(255, 140, 150, .4); }
.scan-link svg { width: 20px; height: 20px; }
.scan-page { padding-bottom: 120px; }
.scan-camps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.scan-camp { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.scan-camp img { height: 26px; width: auto; max-width: 70px; object-fit: contain; }
.scan-camp[aria-selected="true"] { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.scan-box { margin-top: 16px; padding: 18px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 16px; }
.scan-cam { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 62svh; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
.scan-stop { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); }
.scan-start { display: grid; gap: 16px; }
.scan-go { justify-self: start; font-size: 17px; padding: 14px 22px; }
.scan-tip { margin: 0; color: var(--muted); line-height: 1.9; }
.scan-tip svg { width: 18px; height: 18px; vertical-align: -3px; }
.scan-manual { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.scan-manual label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.scan-manual input { width: 150px; font: inherit; font-size: 18px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2, #120709); color: var(--text); letter-spacing: .1em; }
.scan-who { display: grid; gap: 4px; }
.scan-no { font-family: var(--serif); font-size: 15px; color: var(--muted); letter-spacing: .1em; }
.scan-who b { font-family: var(--display); font-size: 28px; }
.scan-who small { color: var(--muted); }
.scan-award { display: grid; gap: 14px; }
.scan-roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scan-roles legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.scan-roles label { position: relative; }
.scan-roles input { position: absolute; opacity: 0; }
.scan-roles span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; }
.scan-roles input:checked + span { background: var(--pink, #ff4f62); border-color: transparent; color: #fff; }
.scan-roles input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.scan-roles label.done span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.scan-nums { display: flex; gap: 12px; flex-wrap: wrap; }
.scan-nums label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.scan-nums input { width: 130px; font: inherit; font-size: 20px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2, #120709); color: var(--text); }
.scan-cap { margin: 0; font-size: 13px; color: var(--muted); }
.scan-do { display: flex; gap: 10px; }
.scan-recent { margin-top: 26px; }
.scan-recent h2 { font-size: 20px; margin: 0 0 10px; }
.scan-recent ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scan-recent li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--panel); }
.scan-recent li span { color: var(--muted); font-size: 13.5px; }
.scan-recent li button { margin-inline-start: auto; }

/* الخطة السنوية · صفحة البرامج الثلاثة بستايل أصيل الجراحي: مخمل عنابي، لون البرنامج لمسة فقط، والمحتوى مقروء */
.pl-head { display: block; padding: clamp(26px, 4vw, 48px) 0 0; }
.pl-kicker { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: .04em; color: #e6c88f; }
.pl-title h1 { font-size: clamp(46px, 6vw, 80px); }
.pl-title h1 em { color: #e6c88f; }
.pl-lead { margin-top: 12px; }
.pl-nextbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px; margin-top: 28px; padding: 16px 22px;
  border-radius: 22px; background: linear-gradient(90deg, rgba(143, 24, 32, .32), rgba(20, 9, 12, .7) 55%); border: 1px solid rgba(230, 200, 143, .18); }
.pl-nb-k { font-size: 14px; color: #e6c88f; padding-inline-end: 18px; border-inline-end: 1px solid rgba(230, 200, 143, .25); }
.pl-nb-brand { height: 46px; width: auto; }
.pl-nb-t { display: grid; gap: 2px; min-width: 0; }
.pl-nb-t strong { font-family: var(--display); font-weight: 400; font-size: 21px; }
.pl-nb-t small { font-size: 14px; color: var(--muted); }
.pl-nb-clock div { min-width: 56px; padding: 6px 4px; background: rgba(0, 0, 0, .4); }
.pl-nb-clock b { font-size: 28px; color: #fbeeea; }
.pl-doors { margin-top: 26px; }
.pl-door-wrap .pl-blob { display: none; }
.pl-door.lg { -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 28px; min-height: 0; padding: 26px 26px 22px; gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), #140a0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -36px rgba(0, 0, 0, .9); }
.pl-door.lg::before { background: radial-gradient(420px 220px at var(--mx, 85%) 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.pl-door.lg::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 80%, transparent), transparent); padding: 0; height: 2px; inset: 0 28px auto; border-radius: 0; -webkit-mask: none; mask: none; }
.pl-door:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 34px 60px -30px rgba(0, 0, 0, .9); }
.pl-door-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.pl-door-i { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; color: color-mix(in srgb, var(--c) 55%, #fff); }
.pl-door-when { font-size: 13px; padding: 5px 12px; background: rgba(0, 0, 0, .35); }
.pl-door-when i { animation: none; }
.pl-door-art { position: static; margin: 18px 0 4px; filter: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 12%, #0d0709); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.pl-door-art svg { width: 44px; height: 44px; }
.pl-door:hover .pl-door-art { transform: none; }
.pl-door h2 { margin: 10px 0 0; font-size: clamp(30px, 2.6vw, 40px); text-shadow: none; }
.pl-door-en { font-size: 18px; color: color-mix(in srgb, var(--c) 55%, #f4ece6); }
.pl-door-marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 18px; overflow: visible; }
.pl-door-tile { display: grid; place-items: center; height: 74px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pl-door-tile .pl-door-logo { max-width: 100%; max-height: 52px; height: auto; width: auto; filter: none; }
.pl-door-go { margin-top: 16px; padding-top: 14px; border-top-color: rgba(255, 255, 255, .08); font-size: 15px; }
.pl-door-go b { font-size: 26px; }
.pl-door-go .pl-more { font-style: normal; font-family: var(--serif); color: #f4ece6; }
.pl-door-go > span { padding: 9px 18px; background: color-mix(in srgb, var(--c) 22%, #1a0c10); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
@media (max-width: 899px) {
  .pl-nextbar { grid-template-columns: auto minmax(0, 1fr); }
  .pl-nb-k { grid-column: 1 / -1; border: 0; padding: 0; }
  .pl-nb-clock { grid-column: 1 / -1; }
  .pl-nb-clock div { flex: 1; min-width: 0; }
  .pl-door.lg { padding: 22px 20px 20px; }
  .pl-door-art { position: static; }
}
.pl-kicker { text-align: right; }
html:not(.pg-theme) .pl-aurora i:nth-child(1) { --b: #8f1820; }
html:not(.pg-theme) .pl-aurora i:nth-child(2) { --b: #4a0d14; opacity: .4; }
html:not(.pg-theme) .pl-aurora i:nth-child(3) { --b: #6b2a1c; opacity: .22; }
.pl-doors { align-items: stretch; }
.pl-door-wrap { display: flex; }
.pl-door-wrap > .pl-door { flex: 1; }
.pl-door-go { margin-top: auto; }
.pl-door-marks { margin-bottom: 16px; }

/* شريط التالي بهوية المبادرة */
.pl-nextbar.skin { position: relative; isolation: isolate; overflow: hidden; background: var(--sk-bg); border-color: var(--sk-line); }
.pl-nextbar.skin > :not(.skin-layer) { position: relative; z-index: 1; }
.pl-nextbar.skin .sk-motif { display: none; }
.pl-nextbar.skin .pl-nb-k { color: var(--acc); border-color: var(--sk-line); }
.pl-nextbar.skin .pl-nb-t strong { color: var(--g1); }
.pl-nextbar.skin .pl-nb-clock div { background: color-mix(in srgb, var(--g2) 22%, rgba(0, 0, 0, .45)); box-shadow: inset 0 0 0 1px var(--sk-line); }
.pl-nextbar.skin .pl-nb-clock b { color: var(--g1); }
.pl-nextbar.skin .pl-nb-clock span { color: color-mix(in srgb, var(--acc) 70%, #fff); }
/* أيقونات البرامج */
.pl-door-art { width: 76px; height: 76px; }
.pl-art-gs svg { width: 52px; height: 52px; }
.pl-art-sp { grid-template-columns: repeat(2, 30px); gap: 2px; place-content: center; }
.pl-art-sp svg, .pl-art-cm svg { width: 30px; height: 30px; }
.pl-art-cm { grid-template-columns: repeat(2, 30px); gap: 2px; place-content: center; }
.pl-art-cm svg:first-child { grid-column: 1 / -1; justify-self: center; }
.pl-art-gs svg { width: 72px; height: 72px; }
.pl-art-gs svg g { stroke-width: 6; }

/* الخطة السنوية · سماء نجوم: طبقات SVG ثابتة خلف الصفحة، وطبقة واحدة تومض بالشفافية فقط (خفيفة على الجوال) */
.pl-aurora { background: radial-gradient(70% 55% at 75% 0%, rgba(120, 18, 30, .35), transparent 70%), radial-gradient(60% 50% at 10% 100%, rgba(70, 14, 40, .3), transparent 70%), #07040a; }
.pl-aurora::after { background-image: url('../assets/stars-a.svg'), url('../assets/stars-b.svg'); background-size: 520px 520px, 900px 900px; mask-image: none; -webkit-mask-image: none; opacity: .85; }
.pl-aurora::before { content: ''; position: absolute; inset: 0; background: url('../assets/stars-c.svg') 0 0 / 700px 700px; animation: plTwinkle 6s ease-in-out infinite alternate; will-change: opacity; }
@keyframes plTwinkle { from { opacity: .25; } to { opacity: 1; } }
.pl-aurora i { opacity: .18; }
.pg-theme .pl-aurora { opacity: 1; }
.pg-theme .pl-aurora i { opacity: .14; }
.pl-grain { display: none; }
@media (prefers-reduced-motion: reduce) { .pl-aurora::before { animation: none; opacity: .7; } }
.pl-aurora { background:
  linear-gradient(115deg, transparent 30%, rgba(170, 60, 80, .10) 44%, rgba(230, 200, 143, .07) 50%, rgba(120, 30, 70, .10) 56%, transparent 70%),
  radial-gradient(70% 55% at 75% 0%, rgba(120, 18, 30, .38), transparent 70%), radial-gradient(60% 50% at 10% 100%, rgba(70, 14, 40, .32), transparent 70%), #07040a; }
.pl-aurora::after { opacity: 1; }
/* نجوم أهدأ */
.pl-aurora::after { background-image: url('../assets/stars-a.svg'); background-size: 640px 640px; opacity: .38; }
.pl-aurora::before { opacity: .35; animation: plTwinkleCalm 12s ease-in-out infinite alternate; }
@keyframes plTwinkleCalm { from { opacity: .12; } to { opacity: .4; } }
.pl-aurora { background:
  linear-gradient(115deg, transparent 32%, rgba(170, 60, 80, .05) 46%, rgba(230, 200, 143, .03) 50%, rgba(120, 30, 70, .05) 54%, transparent 68%),
  radial-gradient(70% 55% at 75% 0%, rgba(120, 18, 30, .34), transparent 70%), radial-gradient(60% 50% at 10% 100%, rgba(70, 14, 40, .28), transparent 70%), #07040a; }

/* الواجهة بالجوال: المسرح ينتهي فوق شريط التنقل، والشارة بلا تغبيش */
.hs-badge { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 760px) {
  .hs-stage { height: calc(100svh - 64px - 92px); min-height: 540px; }
  .hs-t2 { bottom: 13%; }
  .hs-hint { bottom: 7%; }
}

/* بطاقات الأقسام: الرسم في أعلى البطاقة ضمن التدفق فلا يغطي الاسم الإنجليزي، والاسم بلون ذهبي واضح */
.glass-tile .tile-art { position: relative; top: auto; inset-inline-end: auto; align-self: flex-end; margin-bottom: auto; padding-bottom: 14px; }
.glass-tile .num { color: #e6c88f; font-size: 15px; letter-spacing: .14em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* الجواز: اسم الحامل لا يتقاطع مع الشريحة، ونص أوضح على الجوال */
.pp-cover .emboss { padding-bottom: 62px; }
.pp-cover .t4 small { opacity: .85; font-size: 10.5px; }
.pp-face, .pp-back { -webkit-font-smoothing: antialiased; }
@media (max-width: 820px) {
  .pp-book { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .pp-book.open { transform: scale(.56) translateX(calc(var(--w) * -.5)); }
  .pp-cover .emboss { gap: 10px; padding-bottom: 58px; }
  .pp-cover .ts-foil { width: 52px; height: 80px; }
  .pp-cover .t1 { font-size: 25px; }
  .pp-cover .t4 { font-size: 20px; margin-top: 4px; }
  .pp-cover .chip-ico { bottom: 22px; }
}

/* رأس البرنامج: «على مدار السنة» والاسم الإنجليزي بلون البرنامج نفسه */
.pg-head .pg-when { color: color-mix(in srgb, var(--pg) 80%, #fff); }
.pg-head .pg-en { color: color-mix(in srgb, var(--pg) 75%, #fff); }
.sp-head .pg-when { color: color-mix(in srgb, var(--c) 80%, #fff); }

/* ---------- البوصلة: بطاقة السؤال ---------- */
.cq { position: relative; max-width: none; margin-top: 10px; padding: clamp(22px, 3.4vw, 44px); border-radius: 30px; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, rgba(120, 18, 28, .28), rgba(20, 5, 8, .72) 60%); box-shadow: inset 0 0 0 1px rgba(240, 150, 145, .14), 0 40px 80px -40px rgba(0, 0, 0, .8); }
.cq::before { content: ''; position: absolute; z-index: -1; inset-inline-end: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 72, 79, .22), transparent); }
.cq-top { display: flex; align-items: center; gap: 18px; }
.cq-num { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; color: #e6c88f; flex: none; }
.cq-num small { font-size: .42em; color: var(--muted); font-weight: 600; }
.cq-steps { flex: 1; display: flex; gap: 6px; direction: rtl; }
.cq-steps i { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); transition: background .4s; }
.cq-steps i.done { background: linear-gradient(90deg, #8f1820, #e8484f); }
.cq-steps i.cur { background: #e6c88f; box-shadow: 0 0 12px rgba(230, 200, 143, .55); }
.cq .q-title { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(28px, 3.4vw, 46px); margin: 26px 0 26px; line-height: 1.2; text-wrap: balance; }
.cq-opts { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-opts.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cq .opt-card { position: relative; justify-items: center; align-content: center; gap: 16px; min-height: 220px; padding: 34px 16px 24px; border-radius: 24px; font-size: 17px; font-weight: 500;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, rgba(255, 255, 255, .03)), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.cq .opt-card:hover { transform: translateY(-6px); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 24px 40px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.cq .opt-card:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.cq .oc-art { width: 108px; height: 108px; border-radius: 32px; color: var(--c);
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 7%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), inset 0 -10px 20px rgba(0, 0, 0, .25); }
.cq .opt-card:hover .oc-art { transform: scale(1.06) rotate(-4deg); }
.cq .oc-t { line-height: 1.5; text-wrap: balance; }
.cq .oc-key { position: absolute; top: 14px; inset-inline-start: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.cq .oc-check { position: absolute; top: 14px; inset-inline-end: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #160707;
  opacity: 0; transform: scale(.5); transition: opacity .25s, transform .35s var(--spring); }
.cq .oc-check svg { width: 16px; height: 16px; stroke-width: 3; }
.cq .opt-card[aria-pressed="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  box-shadow: inset 0 0 0 2px var(--c), 0 24px 44px -24px color-mix(in srgb, var(--c) 70%, transparent); }
.cq .opt-card[aria-pressed="true"] .oc-check { opacity: 1; transform: none; }
.cq-hint { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.cq-basis { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; opacity: .85; }
.cq-basis a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .cq-opts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cq-opts, .cq-opts.n4 { grid-template-columns: 1fr; gap: 10px; }
  .cq .opt-card { grid-template-columns: 72px 1fr; justify-items: start; text-align: start; min-height: 0; padding: 14px 16px 14px 46px; gap: 14px; }
  .cq .oc-art { width: 72px; height: 72px; border-radius: 22px; }
  .cq .oc-art svg { width: 42px; height: 42px; }
  .cq .oc-key { display: none; }
  .cq .oc-check { top: 50%; margin-top: -14px; inset-inline-end: 14px; }
  .cq-top { flex-wrap: wrap; } .cq-steps { order: 3; flex-basis: 100%; }
}

/* جرّاحين الشهر: قراءة كل فائز تحت فيلمه في نفس اللوح */
.xr-card { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); text-align: start; }
.xr-card .rx-form { margin: 0; gap: 12px; }
.xr-card .rx-form div { grid-template-columns: 64px 1fr; }
.xr-card .rx-note { margin: 14px 0 0; font-size: 13.5px; color: var(--dim); line-height: 1.6; }
.xr-who { margin: 0 0 10px; color: var(--muted); font-size: 14px; text-align: center; }
.xr-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xr-stats li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.xr-stats b { font: 700 26px/1 var(--display); color: var(--xr-light); font-variant-numeric: tabular-nums; }
.xr-stats span { color: var(--muted); font-size: 13px; }
.xr-stats p { margin: 0; grid-column: 1 / -1; font-size: 14.5px; }
/* ما الذي يضيء الفيلم */
.xr-crit { margin: clamp(56px, 8vw, 96px) 0 40px; }
.xc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.xc { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 20px 24px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(190, 215, 235, .10), rgba(16, 20, 24, .9) 70%); box-shadow: inset 0 0 0 1px rgba(200, 225, 245, .10); }
.xc::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, rgba(220, 236, 248, .55), transparent); }
.xc-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #dcecf8; background: rgba(200, 225, 245, .08); box-shadow: inset 0 0 0 1px rgba(200, 225, 245, .14); margin-bottom: 6px; }
.xc-n { position: absolute; top: 18px; inset-inline-end: 20px; font: 500 13px var(--mono); letter-spacing: .1em; color: rgba(214, 230, 242, .45); }
.xc b { font: 700 20px var(--display); }
.xc p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.xc-path { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: xp; }
.xc-path li { position: relative; display: grid; gap: 4px; padding: 18px 20px 18px 28px; counter-increment: xp; border-top: 1px dashed rgba(200, 225, 245, .18); }
.xc-path li::before { content: counter(xp); position: absolute; top: -13px; inset-inline-start: 18px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px var(--display); color: #0d1216; background: var(--xr-light, #dbe7ef); box-shadow: 0 0 14px rgba(200, 225, 245, .45); }
.xc-path b { font: 700 18px var(--display); margin-top: 6px; }
.xc-path span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .xc-grid { grid-template-columns: 1fr 1fr; } .xc-path { grid-template-columns: 1fr; } .xc-path li { border-top: 0; border-inline-start: 1px dashed rgba(200, 225, 245, .18); padding: 6px 30px 18px 0; } .xc-path li::before { top: 4px; inset-inline-start: -13px; } }
@media (max-width: 560px) { .xc-grid { grid-template-columns: 1fr; } .xr-card { padding: 12px; } .xr-card .rx-form div { grid-template-columns: 48px 1fr; } }

/* ملفات اللجان: نفس فكرة الملفات، بألوان أعمق وتباين أوضح، ومساحة فوق الألسنة، وكل اللجان متاحة على الجوال */
.folders { margin-top: 64px; }
.folder-tab { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 88%, #fff), var(--c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
  font-weight: 700; transition: filter .2s, transform .25s var(--spring); }
.folder-tab:hover { transform: translateY(-3px); }
.folder-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.folder::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #2a0a0e), color-mix(in srgb, var(--c) 46%, #12060a));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 -8px 16px -8px rgba(0, 0, 0, .55); }
.folder-body { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 96%, #fff), color-mix(in srgb, var(--c) 80%, #2a0a0e));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.fb-main p { color: rgba(23, 7, 7, .85); }
.person { background: rgba(23, 7, 7, .1); box-shadow: inset 0 0 0 1px rgba(23, 7, 7, .1); }
.person b.tba { opacity: .82; }
.person small { opacity: .8; }
.fb-members span.tba { box-shadow: inset 0 0 0 1.5px rgba(23, 7, 7, .45); opacity: 1; color: rgba(23, 7, 7, .8); }
@media (max-width: 820px) {
  .folders { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 6px; padding-top: 0; margin-top: 22px; }
  .folder:not(.front) { display: block; margin: 0; }
  .folder:not(.front)::after { display: none; }
  .folder-tab { display: inline-block; position: static; height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; clip-path: none; }
  .folder.front { order: 99; flex-basis: 100%; margin: 8px 0 0; }
  .folder.front .folder-tab { border-radius: 12px 12px 0 0; height: 42px; }
}
.folder::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 52%, #1c0609), color-mix(in srgb, var(--c) 26%, #0e0406) 80%); }

/* البوصلة: عبارة واحدة ومقياس من خمس درجات */
.cq-secs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cq-secs li { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--dim); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cq-secs li.done { color: var(--muted); }
.cq-secs li.cur { color: #160707; background: #e6c88f; box-shadow: none; font-weight: 700; }
.cq-stmt { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); margin: 28px 0 26px; }
.cq-stmt .oc-art { flex: none; width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; color: #ff8a8f;
  background: radial-gradient(circle at 35% 25%, rgba(255, 107, 112, .26), rgba(255, 107, 112, .06)); box-shadow: inset 0 0 0 1px rgba(255, 107, 112, .3); }
.cq-lead { margin: 0 0 6px; color: #e6c88f; font-size: 15px; }
.cq .cq-stmt .q-title { margin: 0; font-size: clamp(26px, 3vw, 40px); }
.cq-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cq-opt { display: grid; justify-items: center; gap: 12px; padding: 20px 8px 16px; border: 0; border-radius: 20px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: transform .3s var(--spring), background .25s, box-shadow .25s; }
.cq-opt i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c); transition: background .2s, transform .3s var(--spring); }
.cq-opt:nth-child(1) i, .cq-opt:nth-child(5) i { width: 34px; height: 34px; }
.cq-opt:nth-child(2) i, .cq-opt:nth-child(4) i { width: 30px; height: 30px; }
.cq-opt:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.cq-opt:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.cq-opt[aria-checked="true"] { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.cq-opt[aria-checked="true"] i { background: var(--c); transform: scale(1.1); }
.cq-steps { gap: 3px; } .cq-steps i { height: 5px; }
.res-all { padding: clamp(18px, 3vw, 30px); border-radius: 24px; background: rgba(255, 255, 255, .03); }
.res-all h3 { margin: 0 0 14px; font-size: 22px; }
.res-all ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.res-all li { display: grid; grid-template-columns: 160px 1fr 48px; gap: 12px; align-items: center; font-size: 15px; }
.res-all li i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.res-all li b { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.res-all li em { font-style: normal; color: var(--muted); text-align: end; }
.res-all p { margin: 14px 0 0; font-size: 13.5px; }
@media (max-width: 640px) {
  .cq-stmt { flex-direction: column; align-items: flex-start; }
  .cq-stmt .oc-art { width: 76px; height: 76px; border-radius: 22px; } .cq-stmt .oc-art svg { width: 44px; height: 44px; }
  .cq-scale { grid-template-columns: 1fr; gap: 8px; }
  .cq-opt { grid-template-columns: 34px 1fr; justify-items: start; align-items: center; padding: 12px 16px; text-align: start; }
  .cq-opt i { justify-self: center; }
  .res-all li { grid-template-columns: 110px 1fr 40px; font-size: 14px; }
  .cq-secs li { font-size: 12px; padding: 4px 10px; }
}
/* البوصلة: خمسة أو ستة خيارات في السؤال */
.cq-opts.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cq-opts.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-opts.n5 .opt-card, .cq-opts.n6 .opt-card { min-height: 190px; }
.cq-opts.n5 .oc-art { width: 92px; height: 92px; }
.cq-src { font-size: 12.5px; line-height: 1.8; } .cq-src a { color: #e6c88f; }
@media (max-width: 1100px) { .cq-opts.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cq-opts.n5, .cq-opts.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cq-opts.n5, .cq-opts.n6 { grid-template-columns: 1fr; } .cq-opts .opt-card { min-height: 0 !important; } }

/* الشريط السفلي: على الجوال والشاشات المتوسطة أربعة أقسام و«المزيد» بدل التمرير الجانبي */
.dock-more { display: none; }
@media (max-width: 860px) {
  .dock { left: 8px; right: 8px; transform: none; }
  .dock-items { overflow: visible; justify-content: space-between; -webkit-mask-image: none; mask-image: none; }
  .dock a.dock-x { display: none; }
  .dock a, .dock-more { flex: 1 1 0; min-width: 0; }
  .dock-more { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 6px; border: 0; border-radius: 20px; background: none;
    color: rgba(255, 232, 228, .72); font: inherit; font-size: 11.5px; line-height: 1.3; cursor: pointer; }
  /* زر «المزيد» مميز: حلقة ذهبية فيها شبكة أقسام، وشارة بعدد الأقسام المخفية */
  .dm-ring { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -4px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(230, 200, 143, .32), rgba(230, 200, 143, .08) 70%); box-shadow: inset 0 0 0 1.5px rgba(230, 200, 143, .75), 0 4px 14px -6px rgba(230, 200, 143, .6);
    transition: transform .35s var(--spring), box-shadow .3s; }
  .dm-ring svg { width: 19px; height: 19px; fill: #f3dcae; stroke: none; transition: transform .35s var(--spring); }
  .dm-n { position: absolute; top: -5px; inset-inline-end: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center;
    background: #e6c88f; color: #3a0d12; font: 700 10.5px/1 var(--body, inherit); box-shadow: 0 0 0 2px #2a070b; }
  .dock-more span { color: #f0d9a8; font-weight: 600; }
  .dock-more:hover .dm-ring { box-shadow: inset 0 0 0 1.5px #e6c88f, 0 6px 18px -6px rgba(230, 200, 143, .8); }
  .dock-more[aria-expanded="true"] .dm-ring { transform: scale(1.06); } .dock-more[aria-expanded="true"] .dm-ring svg { transform: rotate(45deg) scale(.92); }
  @media (prefers-reduced-motion: reduce) { .dm-ring, .dm-ring svg { transition: none; } }
  .dock-more.on, .dock-more[aria-expanded="true"] { color: #fff; }
}
.dock-sheet { position: fixed; inset: 0; z-index: 49; background: rgba(8, 2, 4, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dock-sheet[hidden] { display: none; }
.ds-in { position: absolute; left: 8px; right: 8px; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 84px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px;
  border-radius: 26px; background: linear-gradient(160deg, rgba(60, 12, 18, .96), rgba(22, 5, 8, .97)); box-shadow: inset 0 0 0 1px rgba(255, 200, 190, .14), 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: dsIn .3s var(--ease) both; }
@keyframes dsIn { from { opacity: 0; transform: translateY(14px); } }
.ds-in a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; color: #f1dcd9; font-size: 13px; text-align: center; background: rgba(255, 255, 255, .04); }
.ds-in a svg { width: 24px; height: 24px; }
.ds-in a.active { background: rgba(143, 24, 32, .55); color: #fff; }
@media (prefers-reduced-motion: reduce) { .ds-in { animation: none; } }

/* ابدأ من هنا */
.sh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sh-steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 22px; border-radius: 24px; background: linear-gradient(165deg, rgba(150, 22, 30, .22), rgba(34, 5, 7, .5));
  box-shadow: inset 0 0 0 1px rgba(240, 150, 145, .14); }
.sh-n { font: 700 30px/1 var(--serif); color: #e6c88f; }
.sh-steps b { font: 700 22px var(--display); }
.sh-steps p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.sh-steps .btn { justify-self: start; }
@media (max-width: 820px) { .sh-steps { grid-template-columns: 1fr; } }
.how-we-work { margin-top: 120px; }
.ls-topics { margin: 60px auto 0; max-width: 760px; }
.ls-topics h2 { font: 700 clamp(22px, 2.6vw, 30px) var(--display); margin: 0 0 14px; }
.ls-topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-topics li { padding: 10px 16px; border-radius: 999px; background: rgba(190, 200, 255, .08); box-shadow: inset 0 0 0 1px rgba(190, 200, 255, .16); font-size: 15px; }
.ls-topics p { margin: 14px 0 0; font-size: 14px; }
/* CaseLab: المراجع والقاموس */
.db-refs { margin: 22px 0; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.db-refs h3 { margin: 0 0 8px; font-size: 16px; }
.db-refs ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; }
.db-refs a { color: #e6c88f; }
.db-rev { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.lab-gloss { margin-top: 30px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.lab-gloss summary { cursor: pointer; font: 700 18px var(--display); }
.lab-gloss dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }
.lab-gloss div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lab-gloss dt { color: #e6c88f; } .lab-gloss dd { margin: 0; }
.res-kind { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(230, 200, 143, .08); color: #ead9b8; font-size: 14.5px; line-height: 1.7; }
.xr-thanks { margin-top: clamp(56px, 8vw, 96px); }
.xt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.xt-list li { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: rgba(200, 225, 245, .05); box-shadow: inset 0 0 0 1px rgba(200, 225, 245, .1); }
.xt-list b { font: 700 18px var(--display); } .xt-list span { color: var(--muted); font-size: 14.5px; }
.xt-empty { margin: 0; padding: 18px; border-radius: 16px; border: 1px dashed rgba(200, 225, 245, .2); color: var(--muted); }

/* ---------- الانتقال بين الأقسام ---------- */
.page-exit { animation: pageOut .21s cubic-bezier(.5, 0, .75, 0) both; pointer-events: none; }
@keyframes pageOut { to { opacity: 0; transform: translateX(calc(var(--pdir, 1) * -28px)); } }
.page-enter.dir { animation: pageInDir .62s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes pageInDir { from { opacity: 0; transform: translateX(calc(var(--pdir, 1) * 40px)); } }
#pg-stitch { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
#pg-stitch i { position: absolute; top: 0; bottom: 0; opacity: 0; }
.ps-wipe { width: 55vw; background: linear-gradient(90deg, transparent, rgba(70, 8, 16, .55) 35%, rgba(18, 3, 6, .82) 55%, transparent); }
.ps-line { width: 2px; background: linear-gradient(transparent 4%, #ff4d5e 22%, #ffb3ba 50%, #ff4d5e 78%, transparent 96%); box-shadow: 0 0 22px 4px rgba(255, 77, 94, .55); }
.ps-knot { top: 50% !important; bottom: auto !important; width: 12px; height: 12px; margin: -6px 0 0 -5px; border-radius: 50%; background: #ffd7dc; box-shadow: 0 0 16px 4px #ff4d5e; }
#pg-stitch[data-dir="f"] i { left: 100%; }
#pg-stitch[data-dir="b"] i { left: -55vw; }
#pg-stitch[data-dir="b"] .ps-line, #pg-stitch[data-dir="b"] .ps-knot { left: 0; }
#pg-stitch.run[data-dir="f"] i { animation: psF .78s cubic-bezier(.65, 0, .25, 1) both; }
#pg-stitch.run[data-dir="b"] i { animation: psB .78s cubic-bezier(.65, 0, .25, 1) both; }
#pg-stitch.run .ps-wipe { animation-delay: .03s !important; }
@keyframes psF { 0% { opacity: 1; transform: translateX(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-160vw); } }
@keyframes psB { 0% { opacity: 1; transform: translateX(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(160vw); } }
@media (prefers-reduced-motion: reduce) { #pg-stitch { display: none; } .page-exit, .page-enter.dir { animation: none; } }

/* فيديو التحديث كصورة متحركة */
.tw-vwrap { position: relative; margin-top: 12px; }
.tw-vwrap .tw-video { margin-top: 0; cursor: pointer; }
.tw-sound { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: rgba(14, 3, 6, .72); color: #f4e1e2; font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255, 200, 190, .18); }
.tw-sound svg { width: 18px; height: 18px; }
.tw-sound[aria-pressed="true"] { background: rgba(143, 24, 32, .85); color: #fff; }
.tw-sound:focus-visible { outline: 2px solid #e6c88f; outline-offset: 2px; }

/* ===== التخصصات: لوحة إرشاد الطابق الجراحي (بدل شبكة الأبواب) ===== */
.sp-dir { position: relative; border-radius: 34px; padding: clamp(14px, 2vw, 22px); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 40px 80px -40px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sp-dir-head { display: flex; align-items: center; gap: 14px; padding: 6px 14px 16px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.08); }
.sp-dir-floor { font: 600 12px/1 var(--mono, monospace); letter-spacing: .22em; color: var(--muted); padding: 7px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.sp-dir-count { margin-inline-start: auto; font-weight: 500; font-size: 14px; color: var(--muted); }
.sp-dir-list { list-style: none; margin: 0; padding: 0; }
.sp-dir-list li + li { border-top: 1px solid rgba(255,255,255,.06); }
.sp-row { position: relative; display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) auto 48px; align-items: center; gap: 18px; padding: 16px 18px 16px 14px; border-radius: 22px; color: var(--text); text-decoration: none; isolation: isolate; transition: background .35s, transform .35s var(--spring, ease); }
.sp-row::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 5px; border-radius: 4px; background: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent); transition: inset-block .35s; }
.sp-row::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; }
.sp-row:hover, .sp-row:focus-visible { transform: translateX(-4px); }
.sp-row:hover::after, .sp-row:focus-visible::after { opacity: 1; }
.sp-row:hover::before { inset-block: 6px; }
.sp-row-no { font: 600 15px var(--mono, monospace); color: color-mix(in srgb, var(--c) 75%, #fff); opacity: .8; text-align: center; }
.sp-row-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--c) 12%, rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .4s var(--spring, ease); }
.sp-row:hover .sp-row-ico { transform: rotate(-8deg) scale(1.06); }
.sp-row-name { display: grid; gap: 2px; min-width: 0; }
.sp-row-name b { font-family: 'Thmanyah Display', var(--display); font-weight: 900; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; }
.sp-row-name small { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 16px; color: color-mix(in srgb, var(--c) 65%, #fff); text-align: start; justify-self: start; }
.sp-row-marks { display: flex; align-items: center; justify-content: flex-start; gap: 22px; width: 322px; }
.sp-row-marks > span { display: grid; justify-items: center; gap: 4px; width: 150px; }
.sp-row-marks small { font-size: 12px; color: var(--muted); }
.sp-row-logo { width: 150px; height: 58px; object-fit: contain; transition: transform .4s var(--spring, ease); }
.sp-row:hover .sp-row-logo { transform: scale(1.05); }
.sp-row-go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--c); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); transition: background .3s, color .3s, transform .35s; }
.sp-row-go svg { width: 20px; height: 20px; }
.sp-row:hover .sp-row-go { background: var(--c); color: #120609; transform: translateX(-4px); }
@media (max-width: 980px) {
  .sp-row { grid-template-columns: 34px 52px minmax(0, 1fr) 42px; grid-template-areas: "no ico name go" "marks marks marks marks"; row-gap: 12px; }
  .sp-row-no { grid-area: no; } .sp-row-ico { grid-area: ico; width: 52px; height: 52px; border-radius: 16px; } .sp-row-name { grid-area: name; } .sp-row-go { grid-area: go; width: 42px; height: 42px; }
  .sp-row-marks { grid-area: marks; justify-content: flex-start; padding-inline-start: 104px; width: auto; }
}
@media (max-width: 560px) {
  .sp-dir { padding: 10px; border-radius: 26px; }
  .sp-dir-head { padding: 4px 8px 12px; font-size: 15px; }
  .sp-row { grid-template-columns: 26px 44px minmax(0, 1fr) 38px; gap: 12px; padding: 14px 12px 14px 8px; }
  .sp-row-ico { width: 44px; height: 44px; } .sp-row-ico svg { width: 30px; height: 30px; }
  .sp-row-no { font-size: 13px; }
  .sp-row-marks { padding-inline-start: 0; gap: 10px; }
  .sp-row-marks > span { width: auto; flex: 1 1 0; max-width: 150px; }
  .sp-row-logo { width: 100%; height: 48px; }
  .sp-row-go { width: 38px; height: 38px; }
}

/* ===== استوديو الدعوات: تبويبات البرامج ثم مجموعات صغيرة (بدل شبكة الـ21 المزدحمة) ===== */
.inv-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.inv-tabs button { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 0; background: rgba(255,255,255,.04); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .3s, color .3s, box-shadow .3s; }
.inv-tabs button b { font-family: var(--display); font-weight: 700; font-size: 16px; }
.inv-tabs button small { font-size: 12.5px; opacity: .8; }
.inv-tabs button:hover { color: var(--text); }
.inv-tabs button[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.inv-picker { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 26px; padding: 14px; border-radius: 26px; background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.inv-grp { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 20px; background: rgba(255,255,255,.025); }
.inv-grp.solo { background: none; padding: 0; }
.inv-grp-h { display: flex; align-items: center; gap: 8px; padding-inline: 6px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, #fff); }
.inv-grp-h::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.inv-grp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-picker button { width: 132px; display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 16px; border: 0; background: rgba(255,255,255,.035); color: var(--muted); font-size: 12.5px; transition: transform .3s var(--spring), background .3s, box-shadow .3s; }
.inv-picker button img { width: 100%; height: 40px; object-fit: contain; }
.inv-picker button:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.inv-picker button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 2px var(--c); color: var(--c); }
@media (max-width: 560px) {
  .inv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .inv-tabs button { flex: none; padding: 10px 16px; }
  .inv-picker { padding: 8px; gap: 8px; }
  .inv-grp { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 8px; gap: 6px; }
  .inv-grp.solo { flex-basis: 100%; }
  .inv-grp-h { font-size: 12px; padding-inline: 2px; }
  .inv-grp-row { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .inv-grp.solo .inv-grp-row { grid-template-columns: 1fr 1fr; }
  .inv-picker button { width: auto; padding: 8px 6px 7px; gap: 3px; font-size: 11.5px; border-radius: 12px; }
  .inv-picker button img { height: 30px; }
}

/* زر دعوة المبادرة داخل الخطة السنوية */
.pl-inv { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 18px; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--c) 10%, rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); transition: background .3s, transform .3s var(--spring); }
.pl-inv > svg:first-child { width: 22px; height: 22px; color: var(--c); flex: none; }
.pl-inv span { display: grid; flex: 1; font-weight: 700; font-size: 15px; line-height: 1.35; }
.pl-inv small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.pl-inv > svg:last-child { width: 18px; height: 18px; color: var(--c); flex: none; transition: transform .3s; }
.pl-inv:hover { background: color-mix(in srgb, var(--c) 18%, rgba(255,255,255,.02)); transform: translateY(-2px); }
.pl-inv:hover > svg:last-child { transform: translateX(-4px); }

/* استوديو الدعوات: خطوات مرقّمة، والبرامج بطاقات اختيار واضحة */
.inv-step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 12px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); }
.inv-step:first-of-type { margin-top: 6px; }
.inv-step > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #1a0607; background: var(--gold); box-shadow: 0 0 0 4px rgba(223, 189, 131, .14); }
.inv-step small { font-family: var(--body); font-weight: 400; font-size: 13.5px; color: var(--muted); }
.inv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 6px; }
.inv-tabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 72px; border-radius: 20px; border: 0; text-align: start; cursor: pointer; color: var(--muted);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--spring); }
.inv-tabs button:hover { color: var(--text); transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.inv-tab-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, transparent); opacity: .75; transition: opacity .3s, background .3s; }
.inv-tab-tx { display: grid; gap: 2px; min-width: 0; }
.inv-tabs button b { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.inv-tabs button small { font-size: 12.5px; opacity: .85; }
.inv-tab-tick { margin-inline-start: auto; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); color: transparent; transition: background .3s, color .3s, box-shadow .3s; }
.inv-tab-tick svg { width: 14px; height: 14px; }
.inv-tabs button[aria-selected="true"] { color: var(--text); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  box-shadow: inset 0 0 0 2px var(--c), 0 16px 34px -20px var(--c); }
.inv-tabs button[aria-selected="true"] .inv-tab-ico { opacity: 1; background: color-mix(in srgb, var(--c) 20%, transparent); }
.inv-tabs button[aria-selected="true"] .inv-tab-tick { background: var(--c); color: #120405; box-shadow: none; }
.inv-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 820px) {
  .inv-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .inv-tabs button { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px 10px; min-height: 0; border-radius: 16px; }
  .inv-tab-ico { width: 40px; height: 40px; border-radius: 12px; }
  .inv-tab-tx { justify-items: center; }
  .inv-tabs button b { font-size: 14px; }
  .inv-tabs button small { font-size: 11.5px; }
  .inv-tab-tick { position: absolute; top: 8px; inset-inline-end: 8px; width: 20px; height: 20px; margin: 0; }
  .inv-tab-tick svg { width: 12px; height: 12px; }
  .inv-step { font-size: 16.5px; margin-top: 22px; }
}
