/* الموقع العام: صفحة تحريرية من اليمين لليسار، عتبة البيت المديني في الواجهة، ثم المسارات والرحلة والتسجيل */
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body { font-size: 16px; line-height: 1.85; }
html { scroll-behavior: smooth; }
header.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--display); font-size: 1.6rem; color: var(--palm); text-decoration: none; line-height: 1.1; display: grid; }
.brand small { font-family: var(--body); font-size: .68rem; color: var(--muted); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.nav ul a:hover { color: var(--palm); }
.nav .cta { display: flex; gap: 8px; }
.nav .cta { flex-shrink: 0; }
.account-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 44px; }
.account-action svg { width: 20px; height: 20px; flex-shrink: 0; }
.account-action:focus-visible { outline: 3px solid var(--date); outline-offset: 3px; }
@media (max-width: 1100px) { .nav ul { display: none; } }
@media (max-width: 540px) {
  .nav .wrap { flex-wrap: wrap; gap: 12px; }
  .nav .cta { width: 100%; }
  .nav .cta .account-action { flex: 1; padding-inline: 8px; }
}

.hero { padding-block: 64px 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .84rem; letter-spacing: .03em; color: var(--date); font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); color: var(--palm); margin-block: 6px 12px; font-weight: 700; }
.hero h1 small { display: block; font-size: .36em; color: var(--ink); font-family: var(--body); font-weight: 400; margin-top: 8px; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero .ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .btn { padding: 12px 24px; font-size: 1rem; }
.facts-row { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.facts-row div { display: grid; }
.facts-row b { font-family: var(--display); font-size: 1.7rem; color: var(--date); line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts-row span { font-size: .82rem; color: var(--muted); }
.arch { aspect-ratio: 3/4; max-width: 100%; border-radius: 999px 999px 10px 10px; background: var(--palm); position: relative; overflow: hidden; }
.arch canvas { width: 100%; height: 100%; display: block; }
.arch .q { position: absolute; inset: auto 0 20% 0; text-align: center; font-family: var(--display); font-size: clamp(3rem, 9vw, 5.6rem); color: var(--on-palm); line-height: 1; }
.arch .q small { display: block; font-size: .2em; font-family: var(--body); opacity: .85; margin-top: 10px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-block: 36px; } .arch { max-width: 240px; margin-inline: auto; order: -1; } }

section { padding-block: 64px; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.sec-head p { color: var(--muted); max-width: 38em; }

.idea { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.idea blockquote { margin: 0; font-family: var(--display); font-size: 1.55rem; color: var(--date); line-height: 1.65; border-inline-start: 4px solid var(--saffron); padding-inline-start: 20px; }
.terms { display: grid; gap: 12px; }
.term { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px dashed var(--line); }
.term b { font-family: var(--display); color: var(--palm); font-weight: 600; }
.term span { color: var(--muted); }
@media (max-width: 760px) { .idea { grid-template-columns: 1fr; } .term { grid-template-columns: 1fr; gap: 2px; } }

.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.track .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.track h3 { font-size: 1.35rem; }
.track .en { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.track p { color: var(--muted); font-size: .95rem; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cats span { background: var(--palm-soft); color: var(--palm); font-size: .82rem; padding: 3px 12px; border-radius: 999px; font-weight: 500; }
.track .for { font-size: .84rem; color: var(--date); }
.track .scope { font-size: .86rem; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }

.standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.standards div { padding: 20px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.standards div:first-child { border-inline-start: 0; }
.standards b { font-family: var(--display); color: var(--palm); font-weight: 600; }
.standards p { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .standards { grid-template-columns: 1fr 1fr; } .standards div:nth-child(3) { border-inline-start: 0; } .standards div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .standards { grid-template-columns: 1fr; } .standards div { border-inline-start: 0; border-top: 1px solid var(--line); } .standards div:first-child { border-top: 0; } }

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 46px 18px 0 18px; min-width: 0; }
.step::before { content: ""; position: absolute; top: 14px; right: 0; left: 0; height: 2px; background: var(--line); }
.step:first-child::before { right: 18px; }
.step:last-child::before { left: auto; width: 32px; }
.step .dot { position: absolute; top: 0; right: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 2px solid var(--palm); display: grid; place-items: center; font: 600 .82rem var(--body); color: var(--palm); }
.step .story { font-size: .8rem; color: var(--date); font-weight: 600; }
.step h3 { font-size: 1.15rem; margin-block: 2px 6px; }
.step p { color: var(--muted); font-size: .92rem; }
.step .when { display: inline-block; margin-top: 10px; font-size: .8rem; color: var(--palm); background: var(--palm-soft); border-radius: 4px; padding: 1px 8px; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 26px; }
  .step { padding: 0 50px 0 0; }
  .step::before, .step:first-child::before { top: 0; bottom: -26px; right: 14px; left: auto; width: 2px; height: auto; }
  .step:last-child::before { display: none; }
  .step .dot { right: 0; }
}

.scoring { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scoring > div { min-width: 0; }
.wtable { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.wtable table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.wtable th, .wtable td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.wtable th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .78rem; white-space: nowrap; }
.wtable td.n { text-align: center; font-variant-numeric: tabular-nums; }
.wtable tr:last-child td { border-bottom: 0; }
.stage-bars { display: grid; gap: 12px; }
.stage-bars div { display: grid; grid-template-columns: 1fr 3em; gap: 4px 12px; align-items: center; font-size: .92rem; }
.stage-bars i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.stage-bars i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--palm); }
.stage-bars b { text-align: end; font-variant-numeric: tabular-nums; color: var(--palm); }
@media (max-width: 860px) { .scoring { grid-template-columns: 1fr; } }

.rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reward { border-top: 3px solid var(--saffron); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.reward h3 { font-size: 1.1rem; }
.reward p { color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .rewards { grid-template-columns: 1fr; } }

.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.partner { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.partner small { display: block; color: var(--date); font-size: .78rem; font-weight: 600; }
.partner b { font-family: var(--display); font-size: 1.05rem; font-weight: 500; }

details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--palm); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 8px; max-width: 62em; }

.cta-band { background: var(--palm); color: var(--on-palm); border-top: 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-band p { opacity: .85; }
.cta-band .btn { background: var(--on-palm); color: var(--palm); padding: 12px 26px; }
.cta-band .btn.ghost { background: transparent; color: var(--on-palm); box-shadow: inset 0 0 0 1.5px var(--on-palm); }

footer.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .85rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); }

/* صفحات النماذج */
.page { padding-block: 40px 64px; }
.page-head { display: grid; gap: 8px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--palm); }
.page-head p { color: var(--muted); max-width: 46em; }
.steps-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; counter-reset: s; }
.steps-nav span { font-size: .84rem; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.steps-nav span.on { background: var(--palm); color: var(--on-palm); }
.steps-nav span.done { background: var(--palm-soft); color: var(--palm); }
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; gap: 18px; }
.formcard h2 { font-size: 1.25rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .formcard { padding: 18px; } }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice label { position: relative; border: 1.5px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; background: var(--bg); }
.choice input { position: absolute; opacity: 0; }
.choice label:has(input:checked) { border-color: var(--palm); background: var(--palm-soft); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--saffron); }
.choice b { font-family: var(--display); font-weight: 600; }
.choice small { color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.err { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); border-radius: 6px; padding: 10px 14px; font-size: .9rem; }
.success { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 30px 10px; }
.success .ref { font-family: var(--display); font-size: 2rem; color: var(--palm); letter-spacing: .04em; font-variant-numeric: tabular-nums; direction: ltr; }
.hintbox { font-size: .86rem; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 10px 14px; }
.crit-field { display: grid; gap: 6px; }
.crit-field b { color: var(--palm); }
.status-card { display: grid; gap: 12px; }
.status-card .big { font-family: var(--display); font-size: 1.5rem; }

/* الصفحة الرئيسية — مشهد المدينة المتحوّل وواجهة متجاوبة */
body { overflow-x: hidden; }
.site-head.over {
  position: absolute; inset: 0 0 auto; z-index: 20;
  color: #fbf3e2; background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; transition: background .25s ease, box-shadow .25s ease;
}
.site-head.over.scrolled {
  position: fixed; background: rgba(12, 30, 28, .9);
  box-shadow: 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(14px);
}
.site-head .wrap { min-height: 76px; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-head .logo { display: inline-flex; align-items: center; gap: 12px; flex: none; color: inherit; text-decoration: none; }
.site-head .wordmark, .hero .wordmark { font-family: "Aref Ruqaa", "Noto Kufi Arabic", serif; font-weight: 700; }
.site-head .logo .wordmark { font-size: 2rem; line-height: 1; }
.logo-sep { width: 1px; height: 34px; background: rgba(255,255,255,.36); }
.site-head .tag { display: grid; gap: 1px; font-size: .7rem; line-height: 1.5; color: rgba(255,248,230,.76); }
.site-head .tag b { color: #fff8e8; font-weight: 600; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.7vw, 26px); flex: 1; }
.site-nav a { color: inherit; text-decoration: none; font-size: .85rem; font-weight: 500; white-space: nowrap; opacity: .88; transition: opacity .2s, color .2s; }
.site-nav a:hover { opacity: 1; color: #e5b548; }
.head-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.site-head .btn { color: #f7f0df; border-radius: 8px; }
.site-head .btn:not(.ghost) { color: #271d0b; background: #d6a333; }
.site-head .btn.ghost { color: #f7f0df; box-shadow: inset 0 0 0 1px rgba(255,255,255,.74); }
.menu-btn { display: none; color: inherit; border: 0; background: none; width: 42px; height: 42px; padding: 9px; cursor: pointer; }
.menu-btn svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.hero {
  position: relative; isolation: isolate; display: block; min-height: 710px;
  padding: 0; overflow: hidden; color: #fbf3e2; border: 0;
  background: #102d24;
}
.hero-scene { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.scene-shade {
  position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(270deg, rgba(5,18,20,.7) 0%, rgba(7,22,23,.48) 37%, rgba(9,22,24,.08) 76%),
    linear-gradient(0deg, rgba(9,28,22,.52), transparent 30%);
}
.hero-inner { position: relative; z-index: 1; min-height: 710px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-copy { grid-column: 1; max-width: 570px; padding: 104px 0 120px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  color: #fff4de; background: rgba(45,55,54,.54); border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px; font-size: .83rem; letter-spacing: 0;
}
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #d7a633; box-shadow: 0 0 0 3px rgba(215,166,51,.16); }
.hero h1 { display: grid; gap: 0; margin: 25px 0 0; color: #fff2dc; font-size: inherit; line-height: 1.1; }
.hero h1 .wordmark { font-size: clamp(5.8rem, 10vw, 8.5rem); letter-spacing: -.04em; line-height: .95; text-shadow: 0 8px 35px rgba(0,0,0,.16); }
.hero h1 .official { margin-top: 10px; font-family: "Noto Kufi Arabic", var(--body); font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 600; }
.hero .meaning { margin-top: 18px; color: #e0b748; font-size: .94rem; font-weight: 600; }
.hero .lead { max-width: 35em; margin-top: 16px; color: rgba(255,248,231,.86); font-family: "IBM Plex Sans Arabic", var(--body); font-size: 1rem; line-height: 1.95; }
.hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn { padding: 11px 22px; border-radius: 8px; font-size: .95rem; }
.hero .btn.gold { color: #271d0b; background: #d6a333; box-shadow: 0 7px 22px rgba(0,0,0,.16); }
.hero .btn.gold span { margin-inline-start: 10px; }
.hero .btn.ghost { color: #fff4df; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.83); background: rgba(12,22,22,.08); }
.countdown {
  display: flex; align-items: center; gap: 15px; width: fit-content; max-width: 100%;
  margin-top: 16px; padding: 9px 15px; color: #fff7e8;
  background: rgba(18,27,25,.77); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.count-label { display: grid; gap: 1px; font-size: .7rem; line-height: 1.4; }
.count-label b { color: #e7bb56; font-size: .72rem; }
.count-unit { display: grid; justify-items: center; min-width: 36px; line-height: 1.1; }
.count-unit b { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.count-unit small { margin-top: 4px; color: rgba(255,248,230,.7); font-size: .62rem; }
.scene-ctl { position: absolute; z-index: 2; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 48px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; direction: ltr; }
.scene-now { padding: 4px 10px; border-radius: 99px; background: rgba(20,29,25,.7); color: #fff1d9; font-size: .7rem; direction: rtl; }
.periods { display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 99px; background: rgba(18,27,25,.62); direction: rtl; }
.periods button { border: 0; border-radius: 99px; padding: 5px 10px; color: rgba(255,247,231,.8); background: transparent; font: 500 .69rem var(--body); cursor: pointer; transition: color .2s, background .2s; }
.periods button:hover, .periods button[aria-pressed="true"] { color: #262014; background: #f4e8c7; }
.scene-hint { margin-inline-start: 4px; color: rgba(255,245,221,.66); font-size: .65rem; direction: rtl; }

.figures { position: relative; z-index: 3; margin-top: -28px; }
.figures-row { display: grid; grid-template-columns: repeat(5, 1fr); min-height: 120px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(25,35,27,.12); }
.figure { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 18px 12px; text-align: center; border-inline-start: 1px solid var(--line); }
.figure:last-child { border-inline-start: 0; }
.figure b { color: var(--palm); font-family: "Noto Kufi Arabic", var(--display); font-size: 2rem; line-height: 1.2; }
.figure span { color: var(--muted); font-size: .78rem; }

@media (max-width: 1020px) {
  .site-head .wrap { gap: 14px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .78rem; }
  .site-head .tag { display: none; }
  .logo-sep { display: none; }
}
@media (max-width: 800px) {
  .site-head .wrap { min-height: 64px; justify-content: space-between; }
  .site-head .logo .wordmark { font-size: 2.15rem; }
  .site-nav { display: none; position: absolute; top: calc(100% - 1px); inset-inline: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(10,30,27,.97); box-shadow: 0 16px 35px rgba(0,0,0,.25); }
  .site-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .site-nav a { padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
  .site-nav a:hover { background: rgba(255,255,255,.08); }
  .head-cta .ghost { display: inline-flex; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .head-cta { margin-inline-start: auto; }
  .hero { min-height: 850px; }
  .hero-inner { min-height: 850px; display: block; }
  .hero-scene { height: 535px; bottom: auto; }
  .scene-shade { background: linear-gradient(180deg, rgba(7,16,29,.12) 0%, rgba(7,20,25,.04) 34%, #0c3326 62%, #0c3326 100%); }
  .hero-copy { max-width: none; padding: 395px 0 145px; }
  .hero .eyebrow { padding: 7px 12px; font-size: .74rem; }
  .hero h1 { margin-top: 24px; }
  .hero h1 .wordmark { font-size: clamp(5rem, 16vw, 6.3rem); }
  .hero h1 .official { margin-top: 8px; font-size: 1.25rem; }
  .hero .meaning { margin-top: 17px; }
  .hero .lead { margin-top: 14px; font-size: .98rem; line-height: 1.9; }
  .scene-ctl { top: 86px; bottom: auto; left: 50%; width: calc(100% - 32px); display: grid; justify-items: center; gap: 6px; }
  .periods { max-width: 100%; gap: 1px; overflow-x: auto; }
  .periods button { padding: 5px 8px; font-size: .65rem; }
  .scene-hint { display: none; }
  .figures { margin-top: -22px; }
  .figures-row { grid-template-columns: repeat(3, 1fr); }
  .figure { min-height: 92px; padding: 14px 7px; border-bottom: 1px solid var(--line); }
  .figure:nth-child(3) { border-inline-start: 0; }
  .figure:nth-child(n+4) { border-bottom: 0; }
  .figure b { font-size: 1.65rem; }
  .figure span { font-size: .68rem; }
}
@media (max-width: 420px) {
  .site-head .wrap { padding-inline: 16px; flex-wrap: wrap; padding-block: 10px; }
  .head-cta { order: 4; width: 100%; margin-inline-start: 0; }
  .head-cta .account-action { flex: 1; padding-inline: 8px; }
  .scene-ctl { top: 126px; }
  .site-head .logo .wordmark { font-size: 1.9rem; }
  .site-head .btn:not(.ghost) { padding: 7px 13px; font-size: .82rem; }
  .menu-btn { width: 38px; height: 38px; padding: 8px; }
  .hero { min-height: 875px; }
  .hero-inner { min-height: 875px; }
  .hero-copy { padding-top: 390px; }
  .hero .lead { font-size: .92rem; }
  .hero-ctas { gap: 8px; }
  .hero .btn { padding: 10px 14px; font-size: .83rem; }
  .countdown { gap: 10px; padding: 8px 10px; }
  .count-unit { min-width: 31px; }
  .count-unit b { font-size: 1.08rem; }
  .count-label { font-size: .63rem; }
  .periods button { padding: 5px 7px; font-size: .61rem; }
  .figures-row { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(3) { border-inline-start: 1px solid var(--line); }
  .figure:nth-child(2n) { border-inline-start: 0; }
  .figure:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .figure:last-child { grid-column: 1 / -1; border-bottom: 0; border-inline-start: 0; }
}

/* صفحات التسجيل والتتبع والدخول — هوية الواجهة: ترويسة نخيل داكنة وذهب، ونماذج كريمية */
body.qform {
  --display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --gold: #d6a333; --night: #0f3325;
  background-image: radial-gradient(1200px 380px at 85% -120px, color-mix(in srgb, var(--saffron) 9%, transparent), transparent 70%);
}
@media not (prefers-color-scheme: dark) {
  body.qform { --bg: #f6efdf; --surface: #fffaf0; --surface-2: #f0e6d0; --line: #e1d5bb; --palm: #1a5240; --palm-soft: #e4ece2; }
}
:root[data-theme="light"] body.qform { --bg: #f6efdf; --surface: #fffaf0; --surface-2: #f0e6d0; --line: #e1d5bb; --palm: #1a5240; --palm-soft: #e4ece2; }
:root[data-theme="dark"] body.qform { --bg: #111915; --surface: #19231F; --surface-2: #212D28; --line: #2E3C35; --palm: #5DB38E; --palm-soft: #1F3329; }
body.qform .qhead { position: sticky; top: 0; z-index: 20; color: #fbf3e2; background: linear-gradient(180deg, #0c2b20, var(--night)); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(8,24,18,.18); }
body.qform .qhead .wrap { min-height: 68px; justify-content: space-between; }
body.qform .qhead .head-cta { margin-inline-start: auto; }
body.qform .qhead .head-cta .ghost { display: inline-flex; }
body.qform .qhead .btn { transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
body.qform .qhead .btn:hover { transform: translateY(-1px); }
body.qform .qhead .btn[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.74), 0 0 0 2px rgba(214,163,51,.35); }
body.qform .qhead .btn.ghost[aria-current="page"] { background: rgba(255,255,255,.08); }
@media (max-width: 420px) {
  body.qform .qhead .wrap { gap: 8px; padding-inline: 12px; }
  body.qform .qhead .logo .wordmark { font-size: 1.7rem; }
  body.qform .qhead .btn { padding: 6px 10px; font-size: .78rem; }
}
@media (max-width: 340px) { body.qform .qhead .btn { padding: 6px 8px; font-size: .72rem; } }

body.qform .page { padding-block: 44px 72px; }
body.qform .page-apply { max-width: 880px; }
body.qform .page-status { max-width: 700px; }
body.qform .page-head { position: relative; padding-inline-start: 18px; border-inline-start: 3px solid var(--gold); }
body.qform .page-head h1 { font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.5rem); }
body.qform .steps-nav { gap: 6px; padding: 5px; border-radius: 99px; background: var(--surface-2); width: fit-content; max-width: 100%; }
body.qform .steps-nav span { background: transparent; font-weight: 500; transition: background-color .25s ease, color .25s ease; }
body.qform .steps-nav span.on { background: var(--night); color: #fbf3e2; box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 560px) { body.qform .steps-nav { border-radius: 14px; width: 100%; } body.qform .steps-nav span { font-size: .76rem; padding: 4px 9px; } }
body.qform .formcard { border-radius: 16px; padding: clamp(18px, 4vw, 30px); box-shadow: 0 14px 40px rgba(25,35,27,.07); animation: qrise .35s ease both; }
body.qform .formcard h2 { font-weight: 700; color: var(--palm); }
body.qform input, body.qform select, body.qform textarea { border-radius: 9px; padding: 10px 12px; min-height: 44px; transition: border-color .2s ease, box-shadow .2s ease; }
body.qform input[type="checkbox"] { min-height: 0; accent-color: var(--palm); width: 18px; height: 18px; }
body.qform input[type="file"] { background: var(--surface-2); border-style: dashed; cursor: pointer; }
body.qform .choice label { border-radius: 12px; background: var(--surface); transition: border-color .2s ease, background-color .2s ease; }
body.qform .choice label:hover { border-color: color-mix(in srgb, var(--palm) 45%, var(--line)); }
body.qform .choice label:has(input:checked) { box-shadow: inset 0 0 0 1px var(--palm); }
body.qform .hintbox { border-radius: 10px; border-inline-start: 3px solid var(--gold); line-height: 1.9; }
body.qform .crit-field { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
body.qform .crit-field b { font-family: var(--display); }
body.qform .btn { border-radius: 9px; padding: 10px 22px; transition: filter .2s ease, transform .2s ease; }
body.qform .btn.sm { padding: 6px 13px; }
body.qform main .btn:not(.ghost):not(.quiet), body.qform .panel .btn { background: var(--night); color: #fbf3e2; box-shadow: inset 0 -2px 0 var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.qform main .btn:not(.ghost):not(.quiet), :root:not([data-theme="light"]) body.qform .panel .btn { background: var(--gold); color: #271d0b; box-shadow: none; } }
body.qform .err { border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); font-weight: 500; }
body.qform .success .ref { font-family: "Noto Kufi Arabic", var(--display); font-weight: 700; padding: 8px 22px; border: 1px dashed var(--gold); border-radius: 12px; background: var(--surface-2); }
body.qform .success h2 { font-size: 1.6rem; }
body.qform .status-card .big { font-size: 1.3rem; font-weight: 700; line-height: 1.6; }
body.qform .formcard, body.qform .fgrid > *, body.qform .term > * { min-width: 0; }
body.qform .formcard, body.qform .hintbox, body.qform .term { overflow-wrap: anywhere; }
body.qform .success .ref { max-width: 100%; font-size: clamp(1.1rem, 4vw, 2rem); }
body.qform input, body.qform select, body.qform textarea { min-width: 0; max-width: 100%; font-size: 1rem; }
body.qform .term b { font-family: var(--display); }
body.qform footer.foot { margin-top: 0; }
@keyframes qrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* دخول الفريق */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: #0f3325; position: relative; overflow: hidden; display: grid; align-content: end; padding: clamp(24px, 5vw, 56px); color: #fbf3e2; isolation: isolate; }
.login .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.login .art-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,22,18,.88), rgba(9,28,22,.25) 60%, transparent); }
.login .art-copy { position: relative; display: grid; gap: 10px; }
.login .art .eyebrow { justify-self: start; padding: 6px 13px; border-radius: 99px; background: rgba(45,55,54,.54); border: 1px solid rgba(255,255,255,.18); color: #fff4de; font-size: .8rem; }
.login .art h1 { font-family: "Aref Ruqaa", "Noto Kufi Arabic", serif; font-weight: 700; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: #fff2dc; }
.login .art p { color: rgba(255,248,231,.86); max-width: 26em; }
.login .panel { display: grid; place-items: center; padding-block: 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login form { width: min(400px, 100%); display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 14px 40px rgba(25,35,27,.08); animation: qrise .35s ease both; }
.login form h2 { font-size: 1.45rem; font-weight: 700; color: var(--palm); }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; } .login .art { min-height: 230px; } }
