/* Layout: one 72rem column on a warm paper ground, framed top and bottom by maroon bands with a serrated (Qatari-flag) edge */
:root {
  --paper: #FBF8F3;
  --sand: #F4ECE1;
  --card: #FFFFFF;
  --ink: #2A1A1F;
  --muted: #6E5B5F;
  --line: #E8DDD1;
  --field: #FFFFFF;
  --field-line: #D9CBBE;

  --maroon: #8A1538;
  --maroon-hover: #721030;
  --maroon-ink: #8A1538;
  --maroon-soft: #F6E6EA;

  --band-top: #4A0A1F;
  --band-mid: #7A1332;
  --band-low: #9E3149;
  --band-glow: #E2A06E;
  --on-band: #FCF6EE;
  --on-band-muted: rgba(252, 246, 238, .8);
  --glass: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .24);
  --glass-dark: rgba(20, 2, 8, .18);
  --skyline: #36061A;
  --lattice: rgba(255, 255, 255, .05);

  --gold: #EBC98A;
  --ok: #2E7A57;
  --ok-soft: #E4F1E9;
  --warn: #9A5D0C;
  --warn-soft: #FBF0DC;
  --danger: #B42318;
  --shadow: 0 1px 2px rgba(42, 26, 31, .05), 0 10px 28px -14px rgba(42, 26, 31, .22);

  --font-display: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 12px;
  --content: 72rem;
  --reading: 44rem;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161012; --sand: #1F1619; --card: #1E1518; --ink: #F3EAE3; --muted: #B8A5A4; --line: #36272C;
    --field: #1A1215; --field-line: #4A363C;
    --maroon: #A61E48; --maroon-hover: #BD2A57; --maroon-ink: #EE93AE; --maroon-soft: #3A1621;
    --band-top: #2A0511; --band-mid: #520C22; --band-low: #742036; --band-glow: #B9774F;
    --skyline: #1A0209; --glass-dark: rgba(0, 0, 0, .25);
    --ok: #6CCB98; --ok-soft: #173326; --warn: #E9B25C; --warn-soft: #382A12; --danger: #F07A6E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161012; --sand: #1F1619; --card: #1E1518; --ink: #F3EAE3; --muted: #B8A5A4; --line: #36272C;
  --field: #1A1215; --field-line: #4A363C;
  --maroon: #A61E48; --maroon-hover: #BD2A57; --maroon-ink: #EE93AE; --maroon-soft: #3A1621;
  --band-top: #2A0511; --band-mid: #520C22; --band-low: #742036; --band-glow: #B9774F;
  --skyline: #1A0209; --glass-dark: rgba(0, 0, 0, .25);
  --ok: #6CCB98; --ok-soft: #173326; --warn: #E9B25C; --warn-soft: #382A12; --danger: #F07A6E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.faq a { color: var(--maroon-ink); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap {
  max-width: var(--content);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.ph { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 .3em; font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: plaintext; }
.ref-code { font-family: var(--font-mono); font-weight: 600; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.9rem; padding: 0 1.35rem; border-radius: 10px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 3.3rem; padding: 0 1.75rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--maroon); color: var(--on-band); }
.btn-primary:hover { background: var(--maroon-hover); }
.btn-light { background: var(--on-band); color: var(--band-mid); }
.btn-light:hover { background: var(--gold); color: var(--band-top); }
.btn-ghost-light { border-color: var(--glass-line); color: var(--on-band); background: var(--glass); }
.btn-ghost-light:hover { border-color: var(--on-band); }
.btn-outline { border-color: var(--field-line); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--maroon-ink); color: var(--maroon-ink); }
.btn-icon { min-height: 2.4rem; padding: 0 .75rem; font-size: .9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 11px; background: var(--maroon); color: var(--on-band);
}
.brand-mark .ic { width: 1.35rem; height: 1.35rem; }
.brand-text { display: grid; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.3; white-space: nowrap; }
.brand-tag { font-size: .8rem; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: .15rem; margin-inline-start: auto; }
.nav a { padding: .45rem .8rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { color: var(--maroon-ink); font-weight: 700; }
.nav .nav-cta { display: none; }
.menu-btn {
  display: none; place-items: center; width: 2.75rem; height: 2.75rem; margin-inline-start: auto;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding-block: .75rem 1rem;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .8rem; }
  .nav .nav-cta { display: inline-flex; margin-top: .4rem; color: var(--on-band); }
  .nav .nav-cta:hover { background: var(--maroon-hover); }
}

/* ---------- maroon bands ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-band);
  background: linear-gradient(180deg, var(--band-top) 0%, var(--band-mid) 55%, var(--band-low) 92%, var(--band-glow) 135%);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--lattice) 25%, transparent 25%, transparent 75%, var(--lattice) 75%),
    linear-gradient(45deg, var(--lattice) 25%, transparent 25%, transparent 75%, var(--lattice) 75%);
  background-size: 30px 30px; background-position: 0 0, 15px 15px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.skyline { position: absolute; inset: auto 0 0 0; width: 100%; height: min(70%, 380px); z-index: -1; pointer-events: none; display: block; }
.edge {
  --edge: var(--paper);
  position: absolute; inset-inline: 0; bottom: -1px; height: 14px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(-45deg, var(--edge) 7px, transparent 0) 0 100% / 14px 14px repeat-x,
    linear-gradient(45deg, var(--edge) 7px, transparent 0) 0 100% / 14px 14px repeat-x;
}
.edge-top { bottom: auto; top: -1px; transform: scaleY(-1); }

/* hero */
.hero .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 9vw, 7rem); }
.hero-copy { max-width: 37rem; display: grid; gap: 1.35rem; justify-items: start; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); font-size: .9rem; font-weight: 500;
}
.chip .ic { width: 1.05rem; height: 1.05rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.15; }
.hero h1 .gold { display: block; color: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-band-muted); max-width: 34rem; }
.note-glass {
  display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--glass-line); background: var(--glass-dark); font-size: .98rem;
}
.note-glass .ic { margin-top: .3rem; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: var(--on-band-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points .ic { color: var(--gold); width: 1.1rem; height: 1.1rem; }
@media (max-width: 720px) {
  .hero .wrap { padding-bottom: 10rem; }
  .skyline { height: 190px; }
  .actions .btn { flex: 1 1 12rem; }
}

/* inner page band */
.page-band .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 6vw, 4.5rem); display: grid; gap: .6rem; justify-items: center; text-align: center; }
.page-band h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-band p { color: var(--on-band-muted); max-width: 40rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5rem); }
.section-alt { background: var(--card); border-top: 1px solid var(--line); }
.eyebrow { color: var(--maroon-ink); font-weight: 700; font-size: .95rem; }
.section-head { display: grid; gap: .55rem; max-width: var(--reading); margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.meta-note { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.meta-note .ic { margin-top: .3rem; color: var(--maroon-ink); width: 1.1rem; height: 1.1rem; }

/* categories */
.cats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cat {
  display: flex; align-items: center; gap: .8rem; padding: .95rem 1.05rem; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700;
  line-height: 1.4;
}
.ico {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 10px;
  background: var(--maroon-soft); color: var(--maroon-ink);
}
@media (max-width: 860px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cats { grid-template-columns: minmax(0, 1fr); } }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step {
  position: relative; overflow: hidden; display: grid; gap: .7rem; align-content: start;
  padding: 1.75rem 1.5rem 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.step-num {
  position: absolute; inset-inline-end: 1.1rem; top: .2rem;
  font: 800 5.5rem/1 var(--font-display); color: var(--line); pointer-events: none;
}
.step-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--maroon); color: var(--on-band); position: relative; }
.step h3 { font-size: 1.2rem; position: relative; }
.step p { color: var(--muted); position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* CTA + ticket */
.cta { background: var(--sand); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-copy { display: grid; gap: .8rem; justify-items: start; }
.cta-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.cta-copy p:not(.eyebrow) { color: var(--muted); max-width: 32rem; margin-bottom: .6rem; }
.ticket {
  margin: 0; position: relative; display: grid; gap: 1rem; padding: 1.35rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  max-width: 26rem; width: 100%; justify-self: center; transform: rotate(-1.5deg);
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; color: var(--muted); }
.ticket-id { display: grid; gap: .1rem; }
.ticket-label { font-size: .85rem; color: var(--muted); }
.ticket .ref-code { font-size: 1.55rem; color: var(--maroon-ink); }
.ticket-cut { position: relative; border-top: 2px dashed var(--line); margin-inline: -1.5rem; }
.ticket-cut::before, .ticket-cut::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); border: 1px solid var(--line);
}
.ticket-cut::before { inset-inline-start: -12px; }
.ticket-cut::after { inset-inline-end: -12px; }
.rows { display: grid; gap: .55rem; margin: 0; }
.rows div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rows dt { color: var(--muted); font-size: .92rem; }
.rows dd { margin: 0; font-weight: 700; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--maroon); }
@media (max-width: 820px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } .ticket { transform: none; } }

/* pills */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pill .ic { width: 1rem; height: 1rem; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-muted { background: var(--sand); color: var(--muted); }

/* rights */
.rights { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rights .section-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6rem); margin-bottom: 0; }
.rights-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.right {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1.15rem 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
}
.right .ico { width: 2.3rem; height: 2.3rem; }
.right h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.right p { color: var(--muted); font-size: .97rem; }
.law-ref { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 900px) {
  .rights { grid-template-columns: minmax(0, 1fr); }
  .rights .section-head { position: static; }
}
@media (max-width: 600px) { .rights-list { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 50rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem .25rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--maroon-ink); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 .25rem 1.25rem; color: var(--muted); max-width: 44rem; }

/* footer */
.site-footer .wrap { padding-block: clamp(3.5rem, 7vw, 5rem) 1.5rem; }
.site-footer .skyline { opacity: .45; height: 240px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.footer-grid h2 { font-size: 1.1rem; margin-bottom: .9rem; color: var(--gold); }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-brand .brand-mark { background: var(--on-band); color: var(--band-mid); }
.footer-brand .brand-tag { color: var(--on-band-muted); }
.footer-brand p, .footer-note p { color: var(--on-band-muted); font-size: .97rem; }
.footer-links { list-style: none; display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; color: var(--on-band-muted); }
.footer-links a:hover { color: var(--on-band); text-decoration: underline; }
.footer-note { display: grid; gap: .8rem; }
.copy-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.copy-row .email { font-family: var(--font-mono); font-size: .92rem; direction: ltr; }
.site-footer .ph { background: var(--glass); color: var(--gold); }
.copy-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 8px; cursor: pointer;
  font: 500 .85rem var(--font-body); border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-band);
}
.copy-btn .ic { width: 1rem; height: 1rem; }
.copy-btn.on-paper { border-color: var(--field-line); background: var(--card); color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--glass-line); font-size: .9rem; color: var(--on-band-muted);
}
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a { color: var(--on-band-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-band); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3.5vw, 2.25rem); min-width: 0; }
.tips { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); display: grid; gap: 1rem; padding: 1.4rem; background: var(--sand); border: 1px solid var(--line); border-radius: 18px; }
@media (max-width: 960px) { .tips { position: static; } }
.tips h2 { font-size: 1.1rem; }
.check-list { list-style: none; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .97rem; line-height: 1.6; }
.check-list .ic { color: var(--maroon-ink); margin-top: .2rem; width: 1.1rem; height: 1.1rem; }
.check-list.no .ic { color: var(--muted); }
.tip-box { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .95rem; line-height: 1.6; }
.tip-box .ic { color: var(--maroon-ink); margin-top: .15rem; }

.form { display: grid; gap: 2rem; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.15rem; min-width: 0; }
.fieldset + .fieldset { border-top: 1px solid var(--line); padding-top: 2rem; }
.legend { display: flex; align-items: center; gap: .7rem; padding: 0; margin-bottom: .2rem; font: 800 1.25rem/1.4 var(--font-display); }
.legend .n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--maroon); color: var(--on-band); font-size: .95rem; flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.label, .field > label { font-weight: 700; font-size: .97rem; }
.req { color: var(--maroon-ink); }
.opt { color: var(--muted); font-weight: 400; font-size: .88rem; }
.hint { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.input {
  width: 100%; min-height: 3rem; padding: .6rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--field-line); background: var(--field); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); opacity: .75; }
.input:focus { outline: none; border-color: var(--maroon-ink); box-shadow: 0 0 0 4px var(--maroon-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 10rem; resize: vertical; }
input.ltr { text-align: right; }
input.ltr:placeholder-shown { direction: ltr; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group .suffix { display: grid; place-items: center; padding: 0 .9rem; border: 1.5px solid var(--field-line); border-inline-start: 0; border-start-end-radius: 10px; border-end-end-radius: 10px; background: var(--sand); color: var(--muted); font-weight: 700; font-size: .92rem; }
.counter { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-foot { display: flex; justify-content: space-between; gap: 1rem; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.05rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--field-line); background: var(--field); font-weight: 500; transition: all .15s;
}
.choice input:checked + span { border-color: var(--maroon-ink); background: var(--maroon-soft); color: var(--maroon-ink); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice span { border-color: var(--danger); }

.drop {
  display: grid; justify-items: center; gap: .3rem; text-align: center; cursor: pointer;
  padding: 1.4rem 1rem; border: 1.5px dashed var(--field-line); border-radius: 14px; background: var(--paper); transition: all .15s;
}
.drop:hover, .drop.is-over { border-color: var(--maroon-ink); background: var(--maroon-soft); }
.drop .ic { width: 1.8rem; height: 1.8rem; color: var(--maroon-ink); }
.drop strong { font-size: .98rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.files { list-style: none; display: grid; gap: .4rem; }
.files li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .8rem; border-radius: 8px; background: var(--sand); font-size: .9rem; }
.files span:last-child { color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }

.notice { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 12px; background: var(--warn-soft); font-size: .95rem; line-height: 1.65; }
.notice .ic { color: var(--warn); margin-top: .2rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; line-height: 1.65; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: none; accent-color: var(--maroon); }
.check a { color: var(--maroon-ink); font-weight: 700; }
.form-error { display: flex; gap: .5rem; align-items: flex-start; color: var(--danger); font-weight: 500; font-size: .95rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.demo-flag { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .85rem; }
.demo-flag .ic { width: 1rem; height: 1rem; }

/* success */
.success { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 1.5rem; }
.success-mark { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.success-mark .ic { width: 2.2rem; height: 2.2rem; }
.success h2 { font-size: 1.7rem; font-weight: 800; }
.success p { color: var(--muted); max-width: 30rem; }
.ref-box { display: inline-flex; align-items: center; gap: .75rem; padding: .55rem .6rem .55rem 1.1rem; border: 2px dashed var(--maroon-ink); border-radius: 14px; }
.ref-box .ref-code { font-size: 1.45rem; color: var(--maroon-ink); }

/* track */
.track-wrap { max-width: 48rem; margin-inline: auto; display: grid; gap: 1.5rem; }
.track-form { display: grid; gap: 1.15rem; }
.result { display: grid; gap: 1.5rem; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.result-head > div { display: grid; gap: .1rem; }
.result-label { font-size: .88rem; color: var(--muted); }
.result-head .ref-code { font-size: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.facts div { padding: .8rem 1rem; border-radius: 12px; background: var(--sand); min-width: 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
@media (max-width: 600px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; display: grid; }
.tl { position: relative; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.5rem; }
.tl::before { content: ""; position: absolute; inset-inline-start: calc(1.2rem - 1px); top: 2.6rem; bottom: .2rem; width: 2px; background: var(--line); }
.tl:last-child { padding-bottom: 0; }
.tl:last-child::before { display: none; }
.tl-dot { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--muted); }
.tl-dot .ic { width: 1.1rem; height: 1.1rem; }
.tl.done::before { background: var(--ok); }
.tl.done .tl-dot { background: var(--ok); border-color: var(--ok); color: var(--card); }
.tl.now .tl-dot { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--warn-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tl h3 { font-size: 1.05rem; }
.tl time { display: block; font-size: .86rem; color: var(--muted); }
.tl p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.tl:not(.done):not(.now) h3 { color: var(--muted); }

/* prose pages */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 1.1rem; max-width: var(--reading); }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-top: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: .4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-inline-start: 1.25rem; display: grid; gap: .4rem; }
.prose a { color: var(--maroon-ink); font-weight: 700; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > div { padding: 1.25rem 1.3rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; gap: .8rem; align-content: start; }
.split h3 { margin: 0; font-size: 1.08rem; }
.values { list-style: none; display: grid; gap: .9rem; }
.values li { display: grid; gap: .15rem; padding-inline-start: 1rem; border-inline-start: 3px solid var(--maroon); }
.values strong { font-family: var(--font-display); font-size: 1.05rem; }
.values span { color: var(--muted); }

.side-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 6rem); display: grid; gap: 1rem; padding: 1.4rem; border-radius: 18px; background: var(--sand); border: 1px solid var(--line); }
@media (max-width: 960px) { .side-card { position: static; } }
.side-card h2 { font-size: 1.1rem; }
.info-list { list-style: none; display: grid; gap: 1rem; margin: 0; }
.info-list li { display: flex; gap: .75rem; align-items: flex-start; min-width: 0; }
.info-list .ico { width: 2.3rem; height: 2.3rem; }
.info-list div { display: grid; min-width: 0; }
.info-list small { color: var(--muted); font-size: .85rem; }
.info-list strong { font-weight: 700; overflow-wrap: anywhere; }
.toc { list-style: none; display: grid; gap: .2rem; counter-reset: toc; }
.toc a { display: block; padding: .35rem .6rem; border-radius: 8px; text-decoration: none; color: var(--muted); }
.toc a:hover { background: var(--card); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid .side-card { position: static; }

/* ---------- الحجب الجغرافي ---------- */
.geo-overlay {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; text-align: center;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 2rem max(1.5rem, env(safe-area-inset-left));
  background: var(--paper); color: var(--ink);
}
.geo-overlay .box { max-width: 30rem; display: grid; gap: 1.1rem; justify-items: center; }
.geo-overlay .ic { width: 3.5rem; height: 3.5rem; color: var(--maroon-ink); }
.geo-overlay h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; line-height: 1.5; }
.geo-banner {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 70;
  background: var(--warn-soft); color: var(--warn); font-weight: 700; text-align: center;
  padding: .65rem max(1rem, env(safe-area-inset-left)) .65rem max(1rem, env(safe-area-inset-right));
}
