:root {
  --bg: #0B2B25;
  --bg-deep: #071E1A;
  --tile: #123A32;
  --tile-2: #1A4A40;
  --chip: #17443A;
  --line: #2F6155;
  --line-2: #4E8575;
  --lilac: #CFE9DF;
  --soft: #E3F2EC;
  --muted: #A9CFC1;
  --peach: #D8B35F;
  --rose: #D9695F;
  --mint: #6EE0B0;
  --mint-bg: #134A3A;
  --mint-ink: #BFF3DD;
  --field: #F4F8F6;
  --ink: #0B2B25;
  --display: 'Readex Pro', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0; min-height: 100vh; background: var(--bg); color: #fff;
  font-family: var(--body); font-size: 16px; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.4; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.page { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 22px 16px 36px; display: flex; flex-direction: column; gap: 14px; position: relative; }
@media (min-width: 560px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #11483D 0%, var(--bg) 60%); }
  .page { padding-top: 34px; }
}

/* الترويسة */
.bar { display: flex; align-items: center; gap: 12px; }
.back { width: 46px; height: 46px; border-radius: 16px; background: var(--chip); color: var(--peach); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; }
.bar h1 { font-size: 26px; font-weight: 700; flex: 1; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* البطاقات */
.card { background: var(--tile); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 17px; font-weight: 700; }
.card.peach { background: var(--peach); color: var(--ink); }
.card .lead { color: var(--soft); font-size: 15px; line-height: 1.95; margin: 0; text-wrap: pretty; white-space: pre-line; }
.chip { width: 48px; height: 48px; border-radius: 16px; background: var(--lilac); color: var(--tile); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip.dark { background: var(--ink); color: var(--peach); }
.row { display: flex; align-items: center; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.empty { background: var(--tile); border-radius: 26px; padding: 28px 20px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.9; }

/* الأزرار */
.btn { height: 60px; border-radius: 20px; border: 0; background: var(--peach); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; width: 100%; }
.btn[disabled] { background: var(--line); color: var(--lilac); cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line-2); color: #fff; font-family: var(--body); font-size: 15px; font-weight: 500; height: 52px; }
.btn.sm { height: 46px; font-size: 15px; border-radius: 16px; width: auto; padding: 0 18px; }
.btn.mint { background: var(--mint); }

/* الحقول */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--lilac); }
.inp { height: 54px; border: 0; border-radius: 16px; padding: 0 16px; background: var(--field); color: var(--ink); width: 100%; }
textarea.inp { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.7; }
.inp.num { direction: ltr; text-align: right; letter-spacing: 2px; font-size: 18px; }
.inp.big { height: 60px; font-size: 22px; font-weight: 700; letter-spacing: 4px; border-radius: 18px; }
.err { background: #4A2420; color: #FFD8D2; border-radius: 16px; padding: 12px 14px; font-size: 14.5px; line-height: 1.7; }
.ok { background: var(--mint-bg); color: var(--mint-ink); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; line-height: 1.7; }

/* الصفحة الأولى */
.hero { min-height: 100vh; justify-content: flex-end; padding-bottom: 34px; overflow: hidden; }
.orb { position: absolute; top: 90px; left: -110px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #D8B35F 0%, #3E9B80 45%, #0F5C4A 80%, rgba(11,43,37,0) 100%); opacity: .9; pointer-events: none; }
.orb-ring { position: absolute; top: 120px; left: 20px; width: 210px; height: 210px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); pointer-events: none; }
.eyebrow { position: absolute; top: 30px; right: 28px; left: 28px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--peach); }
.hero h1 { font-size: clamp(48px, 15vw, 64px); font-weight: 700; line-height: 1.25; position: relative; padding: 0 12px; }
.hero .sub { font-size: 20px; font-weight: 700; color: var(--lilac); margin: 8px 12px 24px; position: relative; }
.hero .btn { position: relative; }
.hero .foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; position: relative; }

/* شبكة الأقسام */
.notice { background: var(--peach); color: var(--ink); border-radius: 22px; padding: 14px 18px; font-size: 14.5px; font-weight: 600; line-height: 1.8; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--tile); border-radius: 24px; padding: 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tile.alt { background: var(--tile-2); }
.tile.hero-t { grid-column: span 2; background: var(--peach); color: var(--ink); min-height: 150px; }
.tile.wide { grid-column: span 2; min-height: 84px; flex-direction: row; align-items: center; }
.tile .chip { width: 48px; height: 48px; }
.tile.hero-t .chip { background: var(--ink); color: var(--peach); }
.tile .t { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.5; }

/* التقدم */
.steps { display: flex; gap: 5px; }
.steps i { width: 18px; height: 6px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--peach); }

/* التوقيع */
.pad { position: relative; height: 150px; border: 2px dashed var(--line-2); border-radius: 20px; background: var(--field); touch-action: none; overflow: hidden; }
.pad.signed { border-color: var(--mint); }
.pad canvas { width: 100%; height: 100%; display: block; }
.pad .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #2F6155; font-size: 14px; font-weight: 700; pointer-events: none; }
.pad-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.linkbtn { background: none; border: 0; color: var(--lilac); font-size: 14px; text-decoration: underline; padding: 8px 4px; }
.ack { min-height: 58px; border: 2px solid var(--line-2); border-radius: 18px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; text-align: right; background: transparent; color: #fff; font-size: 14px; line-height: 1.6; width: 100%; }
.ack .box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); }
.ack .box svg { opacity: 0; width: 18px; height: 18px; stroke-width: 3; }
.ack[aria-pressed="true"] { border-color: var(--mint); background: var(--mint-bg); }
.ack[aria-pressed="true"] .box { background: var(--mint); border-color: var(--mint); }
.ack[aria-pressed="true"] .box svg { opacity: 1; }
.sec-head { padding: 13px 20px; margin: -20px -20px 4px; background: var(--tile-2); border-radius: 26px 26px 0 0; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--peach); display: flex; align-items: center; gap: 10px; }
.stu-card { background: var(--peach); color: var(--ink); border-radius: 26px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stu-card .av { width: 52px; height: 52px; border-radius: 18px; background: var(--ink); color: var(--peach); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; font-weight: 700; flex-shrink: 0; }
.stu-card .nm { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.4; }

/* تم الاعتماد */
.ticket { background: var(--tile); border-radius: 30px; padding: 70px 22px 22px; position: relative; display: flex; flex-direction: column; gap: 16px; margin-top: 44px; }
.stamp { position: absolute; top: -44px; left: 20px; width: 124px; height: 124px; transform: rotate(-9deg); animation: press .7s cubic-bezier(.2,.9,.3,1) both; }
@keyframes press { 0% { transform: scale(2.2) rotate(-24deg); opacity: 0; } 60% { transform: scale(.94) rotate(-9deg); opacity: 1; } 100% { transform: scale(1) rotate(-9deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }
.docno { white-space: nowrap; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: 1px; direction: ltr; text-align: right; }
.dash { border-top: 2px dashed var(--line); padding-top: 16px; }
.qrbox { width: 112px; height: 112px; background: #fff; border-radius: 16px; padding: 6px; flex-shrink: 0; }
.qrbox svg { width: 100%; height: 100%; display: block; }

/* الأسئلة الشائعة */
.acc { background: var(--tile); border-radius: 24px; overflow: hidden; }
.acc.open { background: var(--peach); color: var(--ink); }
.acc button { width: 100%; min-height: 66px; border: 0; background: transparent; color: inherit; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-family: var(--display); font-size: 16px; font-weight: 600; text-align: right; line-height: 1.6; }
.acc .ans { padding: 0 18px 18px; font-size: 14.5px; line-height: 1.95; white-space: pre-line; }
.acc.open .chev { transform: rotate(180deg); }

/* الجداول والقوائم */
.table { background: var(--tile); border-radius: 26px; overflow: hidden; }
.table .th, .table .tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 0 18px; align-items: center; }
.table .th { background: var(--tile-2); min-height: 48px; font-size: 13px; font-weight: 700; color: var(--peach); }
.table .tr { min-height: 56px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--tile); color: #fff; font-size: 14.5px; font-weight: 700; }
.pill[aria-pressed="true"] { background: var(--peach); color: var(--ink); }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 14.5px; }
.bar-row .track { height: 14px; border-radius: 9px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar-row .fill { height: 100%; background: var(--peach); border-radius: 9px; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photos a { height: 170px; border-radius: 24px; background: var(--tile-2); background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 10px; }
.photos span { font-size: 13px; font-weight: 700; background: rgba(11,43,37,.75); padding: 4px 10px; border-radius: 10px; }
.date-chip { width: 58px; height: 58px; border-radius: 18px; background: var(--lilac); color: var(--tile); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.35; flex-shrink: 0; padding: 4px; }
.org-node { background: var(--tile); border-radius: 22px; padding: 16px; min-height: 96px; display: flex; flex-direction: column; gap: 4px; }
.org-top { background: var(--peach); color: var(--ink); border-radius: 26px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.vline { align-self: center; width: 3px; height: 18px; background: var(--line-2); }

/* الخريطة */
.mapbox { background: var(--tile-2); border-radius: 26px; height: 200px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mapbox svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* التحقق */
.verify-card { text-align: center; align-items: center; padding: 30px 20px; }
.badge { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.badge.ok { background: var(--mint); color: var(--ink); }
.badge.no { background: var(--rose); color: var(--ink); }
.badge .ic { width: 44px; height: 44px; stroke-width: 3; }

/* الطباعة */
.printdoc { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; color: #000 !important; }
  .screen, .noprint { display: none !important; }
  .printdoc { display: block !important; }
  .pd { font-family: var(--body); color: #000; font-size: 13px; line-height: 1.9; }
  .pd-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
  .pd-qr { width: 90px; height: 90px; } .pd-qr svg { width: 100%; height: 100%; }
  .pd h1 { font-size: 22px; text-align: center; margin: 8px 0 12px; }
  .pd h2 { font-size: 15px; margin: 14px 0 4px; }
  .pd-t { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
  .pd-t th, .pd-t td { border: 1px solid #555; padding: 5px 8px; text-align: right; }
  .pd-t th { background: #eee; width: 16%; }
  .pd img { height: 70px; border-bottom: 1px solid #000; }
  .pd-foot { margin-top: 18px; font-size: 11.5px; color: #333; }
}

.card.peach .steps i { background: rgba(11,43,37,.25); }
.card.peach .steps i.on { background: var(--ink); }
.steps.row-steps { margin: 0 4px; }

/* ===== صفحة الأقسام (تصميم موسّع للكمبيوتر) ===== */
.page.wide { max-width: 1080px; padding-top: 18px; gap: 22px; }
.page.wide::before { content: ""; position: absolute; top: -120px; left: 0; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(216,179,95,.35), rgba(46,140,112,.18) 45%, rgba(11,43,37,0) 70%); pointer-events: none; z-index: 0; }
.page.wide > * { position: relative; z-index: 1; }
.ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 46px; height: 46px; border-radius: 16px; background: var(--peach); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.brand b { font-family: var(--display); font-size: 20px; line-height: 1.3; }
.brand small { color: var(--muted); font-size: 13px; }
.sm-back { display: none; }
.ghero { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gh-text h1 { font-size: clamp(24px, 5.2vw, 33px); font-weight: 700; line-height: 1.45; }
.gh-text p { color: var(--soft); margin: 10px 0 16px; font-size: 16px; max-width: 520px; }
.search { position: relative; max-width: 460px; }
.search input { width: 100%; height: 56px; border: 1.5px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.06); color: #fff; padding: 0 52px 0 16px; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { background: rgba(255,255,255,.1); border-color: var(--peach); outline: none; }
.search .s-ic { position: absolute; right: 16px; top: 16px; color: var(--muted); }
.feature { display: flex; align-items: center; gap: 18px; background: var(--peach); color: var(--ink); border-radius: 30px; padding: 22px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(216,179,95,.25); }
.feature .f-seal { width: 108px; height: 108px; flex-shrink: 0; color: var(--ink); }
.feature .seal { width: 100%; height: 100%; }
.feature .f-body { display: flex; flex-direction: column; gap: 6px; }
.feature small { font-weight: 700; font-size: 12.5px; background: var(--ink); color: var(--peach); align-self: flex-start; padding: 2px 10px; border-radius: 10px; }
.feature b { font-family: var(--display); font-size: 22px; line-height: 1.4; }
.feature .f-body > span:not(.f-cta) { font-size: 14.5px; line-height: 1.8; font-weight: 500; }
.f-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 16px; align-self: flex-start; }
.ggroup { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.ggroup h2 { font-size: 18px; color: var(--peach); display: flex; align-items: center; gap: 12px; }
.ggroup h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.gtile { display: flex; align-items: center; gap: 14px; background: var(--tile); border: 1px solid transparent; border-radius: 22px; padding: 14px 16px; min-height: 88px; transition: transform .18s, border-color .18s, background .18s; }
.gtile:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--tile-2); }
.gtile .chip { width: 52px; height: 52px; border-radius: 18px; }
.gtile .gt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gtile .gt b { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.5; }
.gtile .gt small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.gtile .arr { color: var(--line-2); transition: transform .18s, color .18s; }
.gtile:hover .arr { color: var(--peach); transform: translateX(-4px); }
.gfoot { text-align: center; color: var(--muted); font-size: 13px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .ghero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; padding: 18px 0 6px; }
  .feature { padding: 30px; }
  .feature .f-seal { width: 130px; height: 130px; }
  .feature b { font-size: 26px; }
}
@media (max-width: 520px) {
  .feature { flex-direction: column; align-items: flex-start; }
  .feature .f-seal { width: 84px; height: 84px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .feature, .gtile, .gtile .arr { transition: none; } }

/* الصفحة الأولى على الشاشات الكبيرة */
@media (min-width: 900px) {
  .hero { max-width: 1080px; justify-content: center; }
  .hero h1 { font-size: 104px; padding: 0 12px; }
  .hero .sub { font-size: 26px; }
  .hero .btn { max-width: 380px; margin-inline: 12px 0; }
  .hero .foot { text-align: right; padding: 0 12px; }
  .orb { width: 560px; height: 560px; left: 0; top: 14vh; }
  .orb-ring { width: 330px; height: 330px; left: 115px; top: calc(14vh + 115px); }
  .eyebrow { right: 12px; }
}
@media (min-width: 560px) { .page:not(.wide):not(.hero) { max-width: 560px; } }

/* ===== نموذج التوقيع: خطوات وتخطيط عمودين ===== */
.stepper { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.05); font-weight: 500; min-width: 0; }
.stepper li i { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.stepper li i .ic { width: 15px; height: 15px; stroke-width: 3; }
.stepper li.cur { background: var(--tile-2); color: #fff; font-weight: 700; }
.stepper li.cur i { background: var(--peach); color: var(--ink); }
.stepper li.done i { background: var(--mint); color: var(--ink); }
.stepper li.done { color: var(--soft); }
@media (max-width: 440px) { .stepper li span { display: none; } .stepper li.cur span { display: inline; } .stepper li.cur { flex: 2; } }
.cgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cside, .cmain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .cgrid { grid-template-columns: minmax(300px, 380px) 1fr; gap: 22px; align-items: start; }
  .cside { position: sticky; top: 18px; }
}

/* ===== الصفحة الأولى ثلاثية الأبعاد ===== */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero > * { position: relative; z-index: 1; }
.hero .orb, .hero .orb-ring { position: absolute; z-index: 0; }
.has3d .orb, .has3d .orb-ring { display: none; }
.hero .eyebrow { position: absolute; z-index: 1; }
.hero h1 { overflow: visible; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .ln > span { display: block; transform: translateY(115%); animation: rise .95s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .14s; }
.hero .eyebrow { opacity: 0; animation: fadeUp .8s .05s ease forwards; }
.hero .sub { opacity: 0; transform: translateY(14px); animation: fadeUp .8s .5s cubic-bezier(.2,.8,.2,1) forwards; }
.hero .btn.go { opacity: 0; transform: translateY(14px); animation: fadeUp .8s .68s cubic-bezier(.2,.8,.2,1) forwards; overflow: hidden; }
.hero .foot { opacity: 0; animation: fadeUp .8s .9s ease forwards; }
.hero .btn.go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: shine 4.5s 2s ease-in-out infinite; }
.hero .btn.go .ic { transition: transform .25s; }
.hero .btn.go:hover .ic { transform: translateX(-6px); }
.hero .btn.go:hover { box-shadow: 0 14px 40px rgba(216,179,95,.35); }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .ln > span, .hero .eyebrow, .hero .sub, .hero .btn.go, .hero .foot { animation: none; transform: none; opacity: 1; }
  .hero .btn.go::after { display: none; }
}
@media (max-width: 899px) {
  .hero { justify-content: flex-end; }
  .hero .eyebrow { position: absolute; }
}

/* ===== الأقسام الداخلية (تصميم موسّع) ===== */
.page.sec { gap: 20px; }
.chipl { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 16px; background: var(--tile); color: #fff; font-size: 14px; font-weight: 500; transition: background .18s, transform .18s; }
.chipl:hover { background: var(--tile-2); transform: translateY(-1px); }
.chipl .ic { width: 18px; height: 18px; }
.sbanner { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #1A4A40 0%, #123A32 62%); border: 1px solid var(--line); border-radius: 32px; padding: 26px; position: relative; overflow: hidden; }
.sbanner::after { content: ""; position: absolute; left: -70px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(216,179,95,.5), rgba(46,140,112,.22) 50%, transparent 72%); pointer-events: none; }
.sb-chip { width: 80px; height: 80px; border-radius: 28px; flex-shrink: 0; background: linear-gradient(145deg, #EBD28F, #3E9B80); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px rgba(46,140,112,.38), inset 0 2px 0 rgba(255,255,255,.45); position: relative; z-index: 1; }
.sb-chip .ic { width: 38px; height: 38px; }
.sb-t { position: relative; z-index: 1; }
.sb-t small { color: var(--peach); font-weight: 700; font-size: 13px; }
.sb-t h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 700; line-height: 1.35; }
.sb-t p { margin: 2px 0 0; color: var(--soft); font-size: 15.5px; }
.sbody { display: flex; flex-direction: column; gap: 16px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.sgrid.s3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.sgrid.s4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.s2 { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .s2 { grid-template-columns: 1fr 1.15fr; } }
.s-card { background: var(--tile); border: 1px solid transparent; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .18s, transform .18s; }
.s-card:hover { border-color: var(--line-2); }
.s-card.s-big .lead { font-size: 16.5px; line-height: 2.05; }
.s-card.accent { border-inline-start: 0; position: relative; padding-top: 26px; }
.s-card.accent::before { content: ""; position: absolute; top: 0; right: 24px; width: 46px; height: 5px; border-radius: 0 0 6px 6px; background: var(--peach); }
.s-card.peachcard { background: var(--peach); color: var(--ink); }
.s-card.peachcard small { font-weight: 700; font-size: 13px; }
.s-card .big-n { font-family: var(--display); font-size: 30px; line-height: 1.3; }
.pill-d { align-self: flex-start; background: var(--tile-2); color: var(--lilac); font-weight: 700; font-size: 12.5px; padding: 3px 12px; border-radius: 10px; }
.pill-dk { align-self: flex-start; background: var(--ink); color: var(--peach); font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 12px; }
.btn.dark { background: var(--ink); color: var(--peach); align-self: flex-start; }
.linkcard { flex-direction: row; align-items: center; gap: 16px; }
.linkcard:hover { transform: translateY(-2px); }
.s-card.peachcard .chip { background: var(--ink); color: var(--peach); }
.narrow { width: 100%; max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.seg { display: flex; gap: 8px; background: var(--tile); padding: 6px; border-radius: 22px; }
.seg .pill { flex: 1; background: transparent; }
.seg .pill[aria-pressed="true"] { background: var(--peach); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.gallery a { aspect-ratio: 4 / 3; border-radius: 24px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; position: relative; transition: transform .25s; }
.gallery a:hover { transform: scale(1.02); }
.gallery span { font-size: 13px; font-weight: 700; background: rgba(11,43,37,.78); padding: 4px 12px; border-radius: 12px; }
.tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.tree .org-top { min-width: min(100%, 360px); }
.tree .sgrid { width: 100%; }
.tree .vline { height: 24px; }
.tline { list-style: none; margin: 0; padding: 0 28px 0 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.tline::before { content: ""; position: absolute; right: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tline li { display: flex; align-items: center; gap: 14px; background: var(--tile); border-radius: 24px; padding: 14px 16px; position: relative; min-height: 76px; }
.tl-dot { position: absolute; right: -28px; width: 18px; height: 18px; border-radius: 50%; background: var(--peach); border: 4px solid var(--bg); box-sizing: border-box; }
.snav { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.snav h2 { font-size: 16px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.page.sec .table .th, .page.sec .table .tr { padding: 0 22px; }
@media (max-width: 520px) {
  .sbanner { padding: 20px; gap: 16px; border-radius: 28px; }
  .sb-chip { width: 64px; height: 64px; border-radius: 22px; }
  .sb-chip .ic { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .chipl, .s-card, .gallery a { transition: none; } }

/* ===== شاشة «تم الاعتماد» ===== */
.done-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 4px; }
.done-hero h1 { font-size: clamp(30px, 8vw, 40px); font-weight: 700; margin-top: -8px; }
.done-hero p { margin: 0; font-size: 16px; }
.seal3d { width: min(320px, 82vw); height: min(300px, 78vw); position: relative; display: flex; align-items: center; justify-content: center; }
.seal3d canvas { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.seal3d .seal-fb { width: 150px; height: 150px; }
.seal3d.has3d { margin-bottom: -6px; }
.ticket.flat { padding: 22px; margin-top: 8px; }
@media (min-width: 900px) { .seal3d { width: 360px; height: 330px; } }

/* ===== الهيكل التنظيمي (مخطط شجري) ===== */
.otree { display: flex; flex-direction: column; align-items: center; width: 100%; --lw: 2px; --lc: var(--line-2); }
.onode { background: var(--tile); border: 1px solid var(--line); border-radius: 22px; padding: 14px 18px; min-width: 190px; max-width: 260px; text-align: center; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; transition: border-color .18s, transform .18s; }
.onode:hover { border-color: var(--peach); transform: translateY(-2px); }
.onode .orole { color: var(--muted); font-size: 13px; }
.onode b { font-family: var(--display); font-size: 16px; line-height: 1.5; }
.onode.top { flex-direction: row; align-items: center; gap: 14px; text-align: right; background: var(--peach); color: var(--ink); border: 0; padding: 16px 22px; min-width: 280px; max-width: none; box-shadow: 0 16px 36px rgba(216,179,95,.22); }
.onode.top .orole { color: var(--ink); font-weight: 500; }
.onode.top b { font-size: 20px; }
.olevel { display: flex; justify-content: center; align-items: flex-start; position: relative; padding-top: 30px; width: 100%; }
.olevel::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--lw); height: 30px; background: var(--lc); transform: translateX(-50%); }
.obranch { position: relative; padding: 30px 10px 0; display: flex; flex-direction: column; align-items: center; gap: 0; flex: 1 1 0; max-width: 250px; min-width: 150px; }
.obranch::before, .obranch::after { content: ""; position: absolute; top: 0; height: var(--lw); width: 50%; background: var(--lc); }
.obranch::before { right: 0; }
.obranch::after { left: 0; }
.obranch:first-child::before { display: none; }
.obranch:last-child::after { display: none; }
.olevel.one .obranch::before, .olevel.one .obranch::after { display: none; }
.obranch .stem { position: absolute; top: 0; left: 50%; width: var(--lw); height: 30px; background: var(--lc); transform: translateX(-50%); }
.obranch.soft .onode { background: transparent; border-style: dashed; }
.ounits { display: flex; flex-direction: column; gap: 8px; position: relative; padding-top: 22px; width: 100%; align-items: stretch; }
.ounits::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--lw); height: 22px; background: var(--lc); transform: translateX(-50%); }
.ounit { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; text-align: center; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.6; }
.ounit b { font-family: var(--body); font-weight: 700; font-size: 14px; }
.ounit span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .otree { align-items: stretch; }
  .onode.top { min-width: 0; }
  .olevel { flex-direction: column; align-items: stretch; padding: 22px 26px 0 0; gap: 14px; }
  .olevel::before { top: 0; left: auto; right: 13px; width: var(--lw); height: calc(100% - 38px); transform: none; }
  .obranch { max-width: none; min-width: 0; padding: 0; align-items: stretch; }
  .obranch::before { display: block !important; right: -13px; left: auto; top: 28px; width: 13px; height: var(--lw); }
  .obranch::after { display: none !important; }
  .obranch .stem { display: none; }
  .onode { max-width: none; text-align: right; }
  .ounits { width: auto; padding-top: 10px; padding-right: 14px; border-right: var(--lw) solid var(--lc); margin-right: 18px; }
  .ounits::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .onode { transition: none; } }

/* ===== التقويم الخارجي: رسوم دائرية ===== */
.evhero { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.evhero .col { gap: 6px; }
.sgrid.rings { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.ringcard { align-items: center; text-align: center; gap: 12px; padding: 22px 16px; }
.ringcard > span { font-size: 15px; font-weight: 500; line-height: 1.6; }
.ringbox { position: relative; width: 132px; height: 132px; }
.ringc { width: 100%; height: 100%; }
.ringc circle:nth-child(2) { stroke-dashoffset: 0; animation: ringIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ringIn { from { stroke-dasharray: 0 400; } }
.ringbox b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 28px; }
@media (prefers-reduced-motion: reduce) { .ringc circle:nth-child(2) { animation: none; } }

/* ===== الشريط الإخباري ===== */
.ticker { position: sticky; top: 0; z-index: 60; display: flex; align-items: stretch; height: 46px; background: rgba(7,30,26,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tk-badge { display: flex; align-items: center; gap: 9px; background: var(--peach); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 14px; padding: 0 18px; flex-shrink: 0; position: relative; z-index: 2; box-shadow: -8px 0 18px rgba(0,0,0,.25); }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: #B3261E; box-shadow: 0 0 0 0 rgba(179,38,30,.6); animation: tkPulse 1.8s infinite; }
@keyframes tkPulse { 0% { box-shadow: 0 0 0 0 rgba(179,38,30,.55); } 70% { box-shadow: 0 0 0 9px rgba(179,38,30,0); } 100% { box-shadow: 0 0 0 0 rgba(179,38,30,0); } }
.tk-view { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.tk-track { display: flex; width: max-content; height: 100%; animation: tkMove linear infinite; will-change: transform; }
.tk-group { display: flex; align-items: center; white-space: nowrap; height: 100%; }
@keyframes tkMove { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-item { font-size: 15px; font-weight: 500; color: #fff; padding: 0 6px; display: inline-flex; align-items: center; gap: 10px; }
.tk-item.urgent { color: #FFE9C2; font-weight: 700; }
.tk-tag { background: #C0392B; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 8px; letter-spacing: .3px; }
.tk-sep { width: 8px; height: 8px; background: var(--peach); transform: rotate(45deg); margin: 0 26px; border-radius: 2px; flex-shrink: 0; opacity: .85; }
.tk-all { background: var(--tile-2); color: #fff; border: 0; padding: 0 16px; font-size: 13.5px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 2; box-shadow: 8px 0 18px rgba(0,0,0,.25); }
.tk-all:hover { background: var(--line-2); }
body.has-ticker .hero { min-height: calc(100vh - 46px); }
.tk-modal { position: fixed; inset: 0; z-index: 90; background: rgba(3,14,12,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tk-box { background: var(--tile); border: 1px solid var(--line-2); border-radius: 28px; width: 100%; max-width: 560px; max-height: 84vh; display: flex; flex-direction: column; overflow: hidden; }
.tk-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tk-head h2 { font-size: 20px; }
.tk-x { width: 40px; height: 40px; border-radius: 14px; border: 0; background: var(--tile-2); color: #fff; font-size: 24px; line-height: 1; }
.tk-list { overflow: auto; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.tk-card { background: var(--chip); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-inline-start: 0; position: relative; }
.tk-card::before { content: ""; position: absolute; top: 14px; bottom: 14px; right: 0; width: 4px; border-radius: 4px; background: var(--peach); }
.tk-card.urgent::before { background: #C0392B; }
.tk-card p { margin: 0; font-size: 15.5px; line-height: 1.9; white-space: pre-line; }
@media (max-width: 520px) { .ticker { height: 44px; } .tk-badge { padding: 0 12px; } .tk-all { padding: 0 12px; } .tk-sep { margin: 0 18px; } }
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; width: auto; }
  .tk-view { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .tk-group + .tk-group { display: none; }
  .tk-dot { animation: none; }
}
@media print { .ticker, .tk-modal { display: none !important; } }
