/* دانوب — نظام التصميم
   الألوان من نهر الدانوب وسقوف براشوف وأصفر العلم الروماني */
:root {
  --deep: #0f3a47;
  --river: #1c6e7d;
  --mist: #e6efee;
  --paper: #fbfcfa;
  --ink: #15232b;
  --muted: #56666d;
  --wheat: #e8b53a;
  --brick: #b8402c;
  --line: #cfdcda;
  --ok: #1f7a4d;
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--river); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem var(--display); padding: .8em 1.5em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--wheat); color: var(--ink); }
.btn-primary:hover { background: #f2c552; }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--river); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-line { border-color: var(--line); color: var(--deep); background: #fff; }
.btn-line:hover { border-color: var(--river); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-wa:hover { background: #17924b; }
.btn-danger { background: #fff; color: var(--brick); border-color: var(--brick); }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* الشعار */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo svg { width: 22px; height: 44px; flex: none; }
.logo b { font: 800 1.55rem/1 var(--display); display: block; }
.logo small { font-size: .74rem; opacity: .8; display: block; margin-top: 4px; }

/* الشريط العلوي */
.top { position: sticky; top: 0; z-index: 50; background: var(--deep); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top nav a { color: #fff; text-decoration: none; font-size: .95rem; opacity: .86; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--wheat); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font: 600 1rem var(--display); cursor: pointer; margin-inline-start: auto; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; inset-inline: 0; top: 72px; background: var(--deep); flex-direction: column; padding: 12px 24px 24px; gap: 14px; }
  .top nav.open { display: flex; }
  .top .cta-top { display: none; }
}

/* الواجهة */
.hero { position: relative; color: #fff; background: var(--deep); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(15,58,71,.96) 0%, rgba(15,58,71,.86) 42%, rgba(15,58,71,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 140px) clamp(56px, 8vw, 110px); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.25; max-width: 13em; margin-bottom: .45em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; opacity: .93; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero cite { position: absolute; z-index: 1; bottom: 10px; inset-inline-end: 16px; font-size: .72rem; font-style: normal; opacity: .75; }
@media (max-width: 700px) { .hero::after { background: rgba(15,58,71,.86); } }

.facts { background: var(--deep); color: #fff; border-top: 1px solid rgba(255,255,255,.16); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px; border-inline-start: 1px solid rgba(255,255,255,.16); font-size: .95rem; line-height: 1.6; }
.facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.facts b { display: block; font: 700 1.05rem var(--display); color: var(--wheat); }
@media (max-width: 860px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li { border-inline-start: 0; padding-inline-start: 0; } }

section.block { padding-block: clamp(56px, 8vw, 104px); }
section.tint { background: var(--mist); }
section.dark { background: var(--deep); color: #fff; }
section.dark .lede { color: rgba(255,255,255,.8); }

/* الخدمات */
.services { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.services figure { margin: 0; position: sticky; top: 100px; }
.services figure img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
figcaption { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.svc { list-style: none; margin: 28px 0 0; padding: 0; }
.svc li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11em 1fr; gap: 18px; }
.svc li:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { margin: 0; color: var(--deep); }
.svc p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .services figure { position: static; } .services figure img { aspect-ratio: 16/10; } .svc li { grid-template-columns: 1fr; gap: 4px; } }

/* العمود اللانهائي: خطوات القبول */
.column { list-style: none; margin: 40px 0 0; padding: 0; max-width: 780px; }
.column li { display: grid; grid-template-columns: 76px 1fr; gap: 26px; align-items: center; min-height: 104px; }
.column .mod { width: 76px; height: 104px; background: var(--wheat); color: var(--ink); display: grid; place-items: center; font: 800 1.5rem var(--display);
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%); }
.column li:nth-child(even) .mod { background: #d59f24; }
.column h3 { margin: 0 0 2px; color: #fff; }
.column p { margin: 0; color: rgba(255,255,255,.8); font-size: .98rem; }
.steps-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.steps-grid figure { margin: 0; }
.steps-grid img { border-radius: 6px; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.steps-grid figcaption { color: rgba(255,255,255,.65); }
@media (max-width: 980px) { .steps-grid { grid-template-columns: 1fr; } .steps-grid figure { display: none; } }
@media (max-width: 520px) { .column li { grid-template-columns: 54px 1fr; gap: 16px; } .column .mod { width: 54px; height: 104px; font-size: 1.15rem; } }

/* جداول */
.table-scroll { overflow-x: auto; margin-top: 28px; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.data th { font: 600 .88rem var(--display); color: var(--muted); background: var(--mist); white-space: nowrap; }
table.data td:first-child { font-weight: 600; color: var(--deep); }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* الجامعات */
.filters { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr 1fr; gap: 12px; margin: 28px 0 14px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-q { grid-column: 1 / -1; } }
.count { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.unis { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 32px; }
.uni { padding: 18px 0; border-top: 1px solid var(--line); }
.uni h3 { margin: 0; font-size: 1.08rem; color: var(--deep); }
.uni .ro { font-size: .84rem; color: var(--muted); direction: ltr; text-align: right; margin: 2px 0 8px; }
.uni .meta { font-size: .88rem; color: var(--ink); margin: 0; }
.uni .meta span { color: var(--muted); }
.tag { display: inline-block; font-size: .76rem; padding: 1px 10px; border-radius: 999px; background: var(--mist); color: var(--deep); margin-inline-start: 6px; vertical-align: middle; }
.tag.private { background: #f6ead0; color: #6d4c05; }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; grid-column: 1/-1; }

/* اللغات */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 30px; }
.langs h3 { color: var(--deep); padding-bottom: 10px; border-bottom: 3px solid var(--wheat); display: inline-block; }
@media (max-width: 860px) { .langs { grid-template-columns: 1fr; gap: 20px; } }

/* الأوراق */
.docs-list { list-style: none; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 48px; }
.docs-list li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line); padding-inline-start: 34px; position: relative; }
.docs-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 21px; width: 14px; height: 8px; border: solid var(--river); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.docs-list b { display: block; color: var(--deep); }
.docs-list span { color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .docs-list { columns: 1; } }

/* المعرض */
.gallery { columns: 3; column-gap: 14px; margin-top: 30px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; margin: 0 0 14px; cursor: zoom-in; position: relative; break-inside: avoid; border-radius: 6px; overflow: hidden; font: inherit; }
.gallery img { width: 100%; }
.gallery span { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 9px; color: #fff; font-size: .86rem; text-align: start; background: linear-gradient(transparent, rgba(10,30,38,.86)); }
@media (max-width: 860px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); color: #fff; }
dialog.lightbox::backdrop { background: rgba(8,24,30,.92); }
dialog.lightbox img { max-height: 82vh; margin-inline: auto; border-radius: 4px; }
dialog.lightbox p { text-align: center; margin: 10px 0 0; font-size: .92rem; }
dialog.lightbox small { opacity: .7; display: block; }
dialog.lightbox form { text-align: center; margin-top: 10px; }

/* الأسئلة */
.faq { max-width: 820px; margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1.08rem var(--display); color: var(--deep); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--river); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 66ch; }

/* الدعوة الأخيرة والتذييل */
.final { text-align: start; }
.final h2 { max-width: 16em; }
.final .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
footer.site { background: #0a2a34; color: rgba(255,255,255,.78); padding: 44px 0 30px; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer.site a { color: #fff; }
footer.site h4 { color: #fff; font-size: 1rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; font-size: .8rem; opacity: .8; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1faa59; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(8,40,25,.35); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* نماذج */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; color: var(--deep); }
label i { color: var(--brick); font-style: normal; }
input, select, textarea { width: 100%; font: 400 1rem var(--body); padding: .68em .9em; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--river); box-shadow: 0 0 0 3px rgba(28,110,125,.18); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.msg { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-size: .95rem; }
.msg.err { background: #fbe9e5; color: #8a2413; }
.msg.ok { background: #e3f3ea; color: #145a37; }
.msg.info { background: var(--mist); color: var(--deep); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 3vw, 32px); margin-bottom: 22px; }
.panel > h2 { font-size: 1.35rem; }
.panel > h2 + p { color: var(--muted); margin-top: -6px; }
.ltr { direction: ltr; text-align: right; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* اللغات */
.lang-switch { width: auto; flex: none; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; padding: .32em .8em; font: 500 .88rem var(--body); cursor: pointer; }
.lang-switch option { color: var(--ink); background: #fff; }
[dir=ltr] body { line-height: 1.65; }
[dir=ltr] .hero::after { background: linear-gradient(to right, rgba(15,58,71,.96) 0%, rgba(15,58,71,.86) 42%, rgba(15,58,71,.25) 100%); }
[dir=ltr] .hero h1 { line-height: 1.15; max-width: 15em; }
[dir=ltr] .ltr, [dir=ltr] .uni .ro { text-align: left; }
[dir=ltr] h1, [dir=ltr] h2, [dir=ltr] h3 { line-height: 1.2; }
:lang(zh) body, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .btn { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
:lang(hi) body, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) .btn { font-family: "Noto Sans Devanagari", "Nirmala UI", sans-serif; line-height: 1.7; }
:lang(zh) .logo b, :lang(hi) .logo b { font-family: var(--display); }
@media (max-width: 700px) { [dir=ltr] .hero::after { background: rgba(15,58,71,.86); } }
@media (max-width: 980px) { .lang-switch { order: 2; } }

/* ===================== الحركة ===================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

:root { --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.56,.64,1); }

/* أزرار وروابط */
.btn { transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(15,58,71,.45); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.top nav a { position: relative; text-decoration: none !important; padding-block: 6px; }
.top nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--wheat); transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease); }
.top nav a:hover::after { transform: scaleX(1); }
.top { transition: box-shadow .3s; }
.top .wrap { transition: min-height .3s var(--ease); }
.top.scrolled { box-shadow: 0 6px 24px -10px rgba(4,20,26,.7); }
.top.scrolled .wrap { min-height: 58px; }
.logo svg path { transform-origin: center; transform-box: fill-box; transition: transform .35s var(--spring); }
.logo:hover svg path:nth-child(1) { transform: translateY(-2px); }
.logo:hover svg path:nth-child(3) { transform: translateY(2px); }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }

/* شريط تقدّم القراءة */
@supports (animation-timeline: scroll()) {
  .top::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--wheat); transform-origin: 100% 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
  [dir=ltr] .top::after { transform-origin: 0 50%; }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* الواجهة: دخول مرتّب مرة واحدة */
.motion .hero-photo { animation: kenburns 16s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.motion .hero h1, .motion .hero p, .motion .hero .actions, .motion .hero cite { animation: rise .9s var(--ease) both; }
.motion .hero h1 { animation-delay: .15s; }
.motion .hero p { animation-delay: .35s; }
.motion .hero .actions { animation-delay: .52s; }
.motion .hero cite { animation: fade 1.2s 1.2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes fade { from { opacity: 0; } }
.motion .top .logo, .motion .top nav, .motion .top .cta-top, .motion .top .lang-switch { animation: fade .7s both; }

/* ظهور عند التمرير */
.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .services figure.rv { transform: translateY(0) scale(.96); clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease), transform 1s var(--ease), opacity .4s; }
.motion .services figure.rv.in { clip-path: inset(0); transform: none; }
.motion .steps-grid figure.rv { clip-path: inset(100% 0 0 0); transform: none; transition: clip-path 1.1s var(--ease), opacity .4s; }
.motion .steps-grid figure.rv.in { clip-path: inset(0); }

/* العمود اللانهائي يُبنى قطعة قطعة */
.motion .column li.rv { transform: none; transition: opacity .5s; transition-delay: calc(var(--i, 0) * 140ms); }
.motion .column li .mod { transform: translateY(-46px) scale(.5) rotate(-12deg); opacity: 0; transition: transform .7s var(--spring), opacity .35s; transition-delay: calc(var(--i, 0) * 140ms); }
.motion .column li.in .mod { transform: none; opacity: 1; }
.motion .column li > div { transform: translateX(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; transition-delay: calc(var(--i, 0) * 140ms + 120ms); }
[dir=ltr].motion .column li > div { transform: translateX(-24px); }
.motion .column li.in > div { transform: none; opacity: 1; }
.column li:hover .mod { animation: wobble .5s var(--ease); }
@keyframes wobble { 40% { transform: scale(1.08) rotate(4deg); } }

/* الخدمات والجداول والبطاقات */
.svc li { transition: background .25s, padding-inline .25s var(--ease); }
.svc li:hover { background: var(--mist); padding-inline: 14px; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover td { background: #f3f8f7; }
.uni { animation: uni-in .45s var(--ease) both; animation-delay: calc(min(var(--n, 0), 14) * 28ms); transition: padding-inline .25s var(--ease); position: relative; }
.uni::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 2px; width: 0; background: var(--wheat); transition: width .35s var(--ease); }
.uni:hover::before { width: 100%; }
.uni:hover { padding-inline-start: 8px; }
@keyframes uni-in { from { opacity: 0; transform: translateY(12px); } }
.langs > div { transition: transform .3s var(--ease); }
.langs > div:hover { transform: translateY(-4px); }
.docs-list li::before { transition: transform .3s var(--spring); }
.docs-list li:hover::before { transform: rotate(-45deg) scale(1.35); }

/* المعرض */
.gallery button { animation: uni-in .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
.gallery img { transition: transform .8s var(--ease), filter .4s; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.07); }
.gallery span { transform: translateY(6px); opacity: .85; transition: transform .35s var(--ease), opacity .35s; }
.gallery button:hover span { transform: none; opacity: 1; }
dialog[open] { animation: dlg-in .35s var(--ease); }
dialog[open]::backdrop { animation: fade .3s both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* الأسئلة */
.faq summary { transition: color .2s, padding-inline .25s var(--ease); }
.faq summary:hover { color: var(--river); padding-inline-start: 8px; }
.faq summary::after { transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] p { animation: faq-open .4s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } }

/* واتساب العائم */
.wa-float { transition: transform .25s var(--spring); }
.wa-float:hover { transform: scale(1.1); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; animation: ring 2.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* البوابة ولوحة الإدارة */
.msg:not([hidden]) { animation: msg-in .35s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(-6px); } }
.tabs button, .tabs2 button { transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
form:not([hidden]) > .field, #tab-apps:not([hidden]), #tab-unis:not([hidden]), #tab-fields:not([hidden]), #tab-gallery:not([hidden]), #tab-admins:not([hidden]), #tab-settings:not([hidden]) { animation: msg-in .35s var(--ease) both; }
.track li::before { transition: background .5s; animation: track-in .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms); transform-origin: 100% 50%; }
[dir=ltr] .track li::before { transform-origin: 0 50%; }
@keyframes track-in { from { transform: scaleX(0); } }
.track li.now::before { animation: track-in .6s var(--ease) both, now-pulse 2.2s 1s ease-in-out infinite; }
@keyframes now-pulse { 50% { filter: brightness(1.35); } }
.save-bar:not([hidden]) { animation: bar-up .45s var(--ease); }
@keyframes bar-up { from { transform: translateY(100%); } }
.toast:not([hidden]) { animation: toast-in .45s var(--spring); }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.95); } }
.doc { transition: background .2s; }
.doc .have { animation: pop .4s var(--spring); display: inline-block; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.stats div { transition: transform .25s var(--ease), box-shadow .25s; }
.stats div:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(15,58,71,.5); }
table.data tr.fresh td { animation: fresh 1.6s ease-in-out 3; }
@keyframes fresh { 50% { background: #f8e3a0; } }
.live.on::before { animation: now-pulse 1.8s ease-in-out infinite; }
.gal-admin figure { transition: transform .25s var(--ease), box-shadow .25s; }
.gal-admin figure:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(15,58,71,.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* الأعلام: شريط ثلاثي أعلى الصفحة وشارتا رومانيا والاتحاد الأوروبي */
.top::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(to right, #002B7F 0 33.33%, #FCD116 33.33% 66.66%, #CE1126 66.66%); }
.top .wrap { padding-top: 4px; }
.flags { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 22px; font: 600 .95rem var(--display); max-width: none !important; }
.flags span { display: inline-flex; align-items: center; gap: 9px; }
.flags img { height: 22px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.3); }
.hero .flags span { background: rgba(8,36,45,.55); padding: 6px 14px 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
footer.site .flags { margin: 14px 0 0; font-size: .86rem; font-weight: 500; }
footer.site .flags img { height: 18px; }
.motion .hero .flags { animation: rise .9s var(--ease) both; }

/* روابط القائمة لا تنكسر على سطرين */
.top nav a { white-space: nowrap; }
[dir=ltr] .top nav { gap: 16px; }
[dir=ltr] .top nav a { font-size: .88rem; }
@media (max-width: 1240px) {
  [dir=ltr] .menu-btn { display: block; }
  [dir=ltr] .top nav { display: none; position: absolute; inset-inline: 0; top: 72px; background: var(--deep); flex-direction: column; padding: 12px 24px 24px; gap: 14px; }
  [dir=ltr] .top nav.open { display: flex; }
  [dir=ltr] .top .cta-top { display: none; }
}
#tech .services figure { position: static; }
.btn, .logo small, .logo b { white-space: nowrap; }
@media (max-width: 1400px) {
  [dir=ltr] .menu-btn { display: block; }
  [dir=ltr] .top nav { display: none; position: absolute; inset-inline: 0; top: 72px; background: var(--deep); flex-direction: column; padding: 12px 24px 24px; gap: 14px; }
  [dir=ltr] .top nav.open { display: flex; }
}
@media (max-width: 560px) { .logo small { display: none; } .hero .btn { white-space: normal; } }
