/* ════════════════════════════════════════════════════════════════
   yellowline XL — موسم البطولات · سبتمبر 2026
   الهوية الحصرية:
     أصفر  #FFFF00 (40٪ — الفعل والتوكيد)
     بنفسجي #5F39FF (30٪ — الخلفيات والعناوين)
     سماوي #00FFFF (20٪ — الفواصل والحالات النشطة)
     ماجنتا #FF00FF (10٪ — التنبيهات والخطأ)
   + أبيض كسطح محايد، #1a1a1a للنص الداكن. لا ألوان أخرى.
   ════════════════════════════════════════════════════════════════ */

:root {
  --yellow:  #FFFF00;
  --purple:  #5F39FF;
  --cyan:    #00FFFF;
  --magenta: #FF00FF;
  --ink:     #1a1a1a;
  --paper:   #FFFFFF;

  --font-ar: "Brando Arabic", "Segoe UI", Tahoma, Arial, sans-serif;      /* الخط الرسمي — والبقية احتياط */
  --font-la: "PP Right Grotesk", "Arial Narrow", Arial, sans-serif;        /* الخط الرسمي — والبقية احتياط */

  --space: 1.25rem;
  --maxw: 1080px;
}

/* ─── الخطوط: ضع الملفات في assets/fonts/ بهذه الأسماء بالضبط ───
   البدائل المؤقتة أعلاه تعمل تلقائيًا إلى حين وصول الملفات. */
@font-face {
  font-family: "Brando Arabic";
  src: url("../fonts/BrandoArabic-Black.woff2") format("woff2");
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "Brando Arabic";
  src: url("../fonts/BrandoArabic-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Brando Arabic";
  src: url("../fonts/BrandoArabic-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "PP Right Grotesk";
  src: url("../fonts/PPRightGrotesk-WideBold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "PP Right Grotesk";
  src: url("../fonts/PPRightGrotesk-CompactMedium.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

/* ─── أساس ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 0 0 .75rem; }
p, ul { margin: 0 0 1rem; }
a { color: var(--purple); }
img { max-width: 100%; display: block; }
.latin { font-family: var(--font-la); font-weight: 700; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space); }
section { padding-block: 3.5rem; }
.section-title { font-size: 1.75rem; color: var(--purple); }
.section-sub { margin-bottom: 2rem; }

/* حواف حادة في كل مكان — لا دوائر */
button, .btn, input, select, table, .card { border-radius: 0; }

/* ─── إتاحة ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 99;
  background: var(--yellow); color: var(--ink); padding: .5rem 1rem; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.on-white :focus-visible, .on-white:focus-visible { outline-color: var(--purple); }

/* ─── أزرار ─── */
.btn {
  display: inline-block; padding: .9rem 2rem;
  font-family: var(--font-ar); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; text-align: center; cursor: pointer; border: 0;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--cyan); }
.btn-waitlist { background: var(--magenta); color: var(--ink); }
.btn-waitlist:hover { background: var(--cyan); }

/* ─── ترويسة ─── */
.site-head {
  background: var(--purple);
  padding: .9rem var(--space);
  display: flex; justify-content: center;
}
/* الشعارات الرسمية — تُستخدم كما هي، دون تعديل الألوان أو النسب
   الترويسة والفوتر: شعار العلامة الأم yellowline (logo-yellow.svg على البنفسجي)
   عند ذكر مكان البطولات: شعار الفرع yellowline XL
   (logo-xl-purple.svg للأسطح الفاتحة · logo-xl-bilingual-yellow.svg للبنفسجي) */
.logo { display: inline-block; line-height: 0; }
.logo img { height: 30px; width: auto; }
.site-foot .logo img { height: 36px; }
.venue-logo { height: 30px; width: auto; margin-bottom: .75rem; }

/* ─── Hero ─── */
.hero {
  background: var(--purple); color: var(--paper);
  text-align: center; position: relative; overflow: hidden;
  padding-block: 3rem 3.5rem;
  border-bottom: 4px solid var(--cyan);
}
/* لمسات هندسية ساكنة — بلا حركة */
.hero::before {
  content: ""; position: absolute; inset-inline-start: -60px; top: 40px;
  width: 160px; height: 160px; border: 3px solid var(--cyan);
  border-radius: 50%; opacity: .3; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: 60px;
  width: 120px; height: 120px; border: 3px solid var(--yellow);
  transform: rotate(20deg); opacity: .3; pointer-events: none;
}
.hero > .container { position: relative; }
.hero-kicker { color: var(--cyan); font-weight: 700; margin-bottom: .5rem; }
.hero-title {
  font-weight: 900; color: var(--yellow);
  font-size: clamp(2.6rem, 11vw, 4.5rem); margin-bottom: .25rem;
}
.hero-dates { font-size: 1.2rem; margin-bottom: 1.75rem; }
.hero-cta { font-size: 1.15rem; padding: 1rem 2.75rem; }

.count-label { margin: 2rem 0 .5rem; color: var(--paper); }
.count {
  display: flex; justify-content: center; gap: .5rem;
  font-family: var(--font-la);
}
.count-cell { min-width: 64px; }
.count-cell b {
  display: block; font-size: 2rem; font-weight: 700; color: var(--cyan);
  background: var(--ink); /* سطح وظيفي لأرقام العدّاد */
  padding: .35rem .25rem; line-height: 1.2;
}
.count-cell span { display: block; font-family: var(--font-ar); font-size: .8rem; margin-top: .3rem; }
.count-done { font-size: 1.3rem; font-weight: 700; color: var(--cyan); margin-top: 2rem; }

.stats {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.stats li {
  padding: .25rem 1.1rem; font-weight: 700;
  border-inline-start: 2px solid var(--cyan);
}
.stats li:first-child { border-inline-start: 0; }
.stats b { color: var(--yellow); font-weight: 900; }

/* ─── بطاقات البطولات ─── */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  border: 2px solid var(--purple);
  padding: 1.5rem; display: flex; flex-direction: column;
  background: var(--paper);
}
.card-title { font-size: 1.35rem; margin-bottom: .75rem; }
.card-title a { color: var(--purple); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
.card-meta { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.card-meta li { padding-block: .2rem; }
.card-meta b { font-weight: 700; }

.seatbar {
  height: 12px; border: 2px solid var(--purple); background: var(--paper);
  margin-bottom: .4rem;
}
.seatbar-fill { display: block; height: 100%; width: 100%; background: var(--cyan); transition: width .3s ease; }
.seatmeta { font-size: .95rem; margin-bottom: .4rem; }
.seat-count { font-weight: 900; color: var(--purple); }
.is-low .seat-count { color: var(--magenta); }          /* قرب الاكتمال */
.card-fee { font-size: .9rem; margin-bottom: 1.25rem; }
.card .btn { margin-top: auto; width: 100%; }

.is-full { border-color: var(--magenta); }
.is-full .seatbar { border-color: var(--magenta); }
.is-full .seatbar-fill { width: 0; }
.full-note { color: var(--magenta); font-weight: 700; font-size: .95rem; margin-bottom: .75rem; }

/* ─── كيف تشارك ─── */
.how { border-top: 4px solid var(--cyan); }
.steps { display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: step; }
.step { text-align: center; }
.step-shape { display: inline-block; width: 56px; height: 56px; margin-bottom: 1rem; }
.shape-circle { border: 4px solid var(--cyan); border-radius: 50%; }
.shape-square { border: 4px solid var(--yellow); background: var(--paper); }
.shape-triangle {
  width: 0; height: 0; border-radius: 0;
  border-inline-start: 32px solid transparent;
  border-inline-end: 32px solid transparent;
  border-bottom: 52px solid var(--magenta);
}
.step h3 { color: var(--purple); font-size: 1.15rem; }
.step h3::before {
  counter-increment: step; content: counter(step, arabic-indic) " · ";
  color: var(--ink);
}

/* ─── حفلات التتويج ─── */
.ceremonies { background: var(--purple); color: var(--paper); border-block: 4px solid var(--cyan); }
.ceremonies .section-title { color: var(--yellow); }
.ceremonies table { width: 100%; border-collapse: collapse; }
.ceremonies th, .ceremonies td { text-align: start; padding: .7rem .75rem; border-bottom: 1px solid var(--cyan); }
.ceremonies th { color: var(--cyan); font-weight: 700; }
.ceremonies .is-final td { color: var(--yellow); font-weight: 900; border: 3px solid var(--yellow); border-width: 3px 0; }

/* ─── الأسئلة الشائعة ─── */
.faq-item { border-bottom: 2px solid var(--cyan); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  font-family: var(--font-ar); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  text-align: start; padding: 1.1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--purple); }
.faq-icon { flex: none; width: 18px; height: 18px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--purple);
}
.faq-icon::before { inset-inline: 0; top: 8px; height: 3px; }
.faq-icon::after { inset-block: 0; inset-inline-start: 8px; width: 3px; transition: transform .15s ease; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-q[aria-expanded="true"] { color: var(--purple); }
.faq-a { padding-bottom: 1.1rem; }
.faq-a p { margin: 0; }

/* ─── الموقع والتواصل ─── */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding-block: .35rem; }
.contact-list b { color: var(--purple); }
.map-frame { border: 2px solid var(--purple); width: 100%; height: 300px; }
.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.socials a { font-weight: 700; }

/* ─── الفوتر ─── */
.site-foot {
  background: var(--purple); color: var(--paper);
  border-top: 4px solid var(--yellow);
  padding-block: 2.5rem; text-align: center;
}
.site-foot .logo { display: inline-block; margin-bottom: 1rem; }
.foot-nav { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.foot-nav a { color: var(--paper); text-decoration: none; }
.foot-nav a:hover { color: var(--cyan); }
.foot-legal { font-size: .85rem; margin: 0; }

/* ─── شاشات أوسع ─── */
@media (min-width: 768px) {
  section { padding-block: 4.5rem; }
  .section-title { font-size: 2.1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .map-frame { height: 380px; }
  .count-cell b { font-size: 2.5rem; }
}
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ─── صفحة البطولة ─── */
.t-hero {
  background: var(--purple); color: var(--paper);
  text-align: center; padding-block: 2rem 2.5rem;
  border-bottom: 4px solid var(--cyan);
}
.t-back { margin-bottom: 1.25rem; text-align: start; }
.t-back a { color: var(--cyan); text-decoration: none; font-weight: 700; }
.t-back a:hover { text-decoration: underline; }
.t-title { font-weight: 900; color: var(--yellow); font-size: clamp(2.2rem, 9vw, 3.5rem); margin-bottom: .25rem; }
.t-sub { font-size: 1.1rem; margin-bottom: 1.5rem; }
.t-hero .seatwrap { max-width: 420px; margin: 0 auto 1.25rem; }
.t-hero .seatbar { border-color: var(--paper); }
.t-hero .seat-count { color: var(--yellow); }
.t-hero .full-note { color: var(--paper); background: var(--magenta); display: inline-block; padding: .2rem .75rem; }

.t-page section { padding-block: 2.75rem; }
.t-page .section-title { font-size: 1.45rem; }

.t-facts { border: 2px solid var(--purple); padding: 1.5rem; margin: 0; display: grid; gap: 1rem 1.5rem; grid-template-columns: 1fr 1fr; }
.t-facts div { margin: 0; }
.t-facts dt { color: var(--purple); font-weight: 700; font-size: .9rem; }
.t-facts dd { margin: 0; font-weight: 700; }

.t-system { padding-inline-start: 1.25rem; margin: 0; }
.t-system li { padding-block: .35rem; }
.t-system li::marker { color: var(--purple); font-weight: 900; }

.rules-pending {
  border: 2px dashed var(--magenta); padding: 1.25rem; font-weight: 700;
}
.prize-box { border: 2px solid var(--cyan); padding: 1.25rem; font-weight: 700; margin: 0; }

/* زر التسجيل الثابت أسفل الجوال */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  background: var(--purple); border-top: 3px solid var(--cyan);
  padding: .6rem var(--space);
}
.sticky-cta .btn { width: 100%; display: block; }
.t-page main { padding-bottom: 84px; }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
  .t-page main { padding-bottom: 0; }
  .t-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ─── تدفّق التسجيل ─── */
.r-container { max-width: 640px; padding-block: 2rem 3.5rem; }
.rsteps {
  list-style: none; padding: 0; margin: 0 0 2.25rem;
  display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap;
}
.rsteps li {
  font-size: .82rem; font-weight: 700; padding: .3rem .65rem;
  border-bottom: 3px solid var(--purple); opacity: .45;
}
.rsteps li.current { opacity: 1; background: var(--yellow); border-color: var(--purple); }
.rsteps li.done { opacity: 1; border-color: var(--cyan); color: var(--purple); }

.rstep { display: none; }
.rstep.active { display: block; }
.r-page .section-title { font-size: 1.5rem; }

.choice-grid { display: grid; gap: .9rem; }
.choice-card {
  border: 2px solid var(--purple); background: var(--paper); cursor: pointer;
  padding: 1rem 1.25rem; text-align: start; font-family: inherit; width: 100%;
  display: flex; flex-direction: column; gap: .2rem;
}
.choice-card:hover { outline: 3px solid var(--cyan); outline-offset: 0; }
.cc-name { font-size: 1.1rem; color: var(--purple); }
.cc-meta { font-size: .9rem; }
.cc-seats { font-size: .9rem; font-weight: 700; }
.choice-card.full { border-color: var(--magenta); }
.cc-full { color: var(--magenta); font-weight: 700; font-size: .9rem; }

.f-set { border: 2px solid var(--cyan); padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; }
.f-set legend { font-weight: 700; color: var(--purple); padding-inline: .5rem; }
.f-group { margin-bottom: 1.1rem; }
.f-label { display: block; font-weight: 700; margin-bottom: .35rem; }
.f-label small { font-weight: 400; }
.f-input {
  width: 100%; padding: .7rem .9rem; font-family: var(--font-ar); font-size: 1rem;
  border: 2px solid var(--purple); background: var(--paper); color: var(--ink);
}
.latin-input { font-family: var(--font-la); direction: ltr; }
.f-input.err { border-color: var(--magenta); }
.f-err { color: var(--magenta); font-weight: 700; font-size: .85rem; margin: .3rem 0 0; }
.f-radio-row { display: flex; gap: 2rem; font-weight: 400; }
.f-radio-row input { accent-color: var(--purple); width: 20px; height: 20px; }

.summary { border: 2px solid var(--purple); padding: 1.25rem; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dt { font-weight: 700; color: var(--purple); }
.summary dd { margin: 0; text-align: end; }

.checkline { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1rem; font-weight: 700; }
.checkline input { width: 22px; height: 22px; flex: none; accent-color: var(--purple); }
.checkline label { line-height: 1.5; }

.banner-wait { background: var(--magenta); color: var(--ink); font-weight: 700; padding: .7rem 1rem; margin-bottom: 1.5rem; }
.banner-demo { background: var(--cyan); color: var(--ink); font-weight: 700; padding: .7rem 1rem; margin-bottom: 1.5rem; }

/* بطاقة المشارك */
.p-card { max-width: 400px; margin-inline: auto; border: 3px solid var(--purple); }
.p-card-head { background: var(--purple); text-align: center; padding: 1.25rem 1rem 1rem; }
.p-card-head img { height: 24px; margin-inline: auto; }
.p-card-head p { color: var(--cyan); font-weight: 700; margin: .6rem 0 0; font-size: .9rem; }
.p-card-body { background: var(--paper); text-align: center; padding: 1.5rem 1.25rem; }
.p-name { font-size: 1.25rem; font-weight: 900; margin-bottom: .2rem; }
.p-tour { color: var(--purple); font-weight: 700; margin-bottom: 1rem; }
.p-regno {
  display: inline-block; font-family: var(--font-la); font-weight: 700;
  font-size: 1.4rem; letter-spacing: .04em; direction: ltr;
  background: var(--yellow); padding: .15rem .9rem; margin-bottom: 1rem;
}
.p-qr { display: flex; justify-content: center; margin-bottom: 1rem; }
.p-qr svg { width: 150px; height: 150px; }
.p-meta { font-size: .88rem; margin: 0 0 .3rem; }
.p-note { text-align: center; margin-top: 1.25rem; }
.r-actions { display: flex; gap: 1.25rem; justify-content: center; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-link { font-weight: 700; color: var(--purple); }

/* ─── لوحة الإدارة ─── */
.a-container { max-width: 1000px; }
.a-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 2rem; }
.a-stat { border: 2px solid var(--purple); padding: .75rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.a-stat span { font-family: var(--font-la); font-weight: 700; direction: ltr; text-align: end; }
.a-stat .a-wl { color: var(--magenta); font-family: var(--font-ar); direction: rtl; text-align: start; font-size: .85rem; }
.a-controls { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin-bottom: 2rem; }
.a-controls .f-group { flex: 1 1 180px; margin: 0; }
.a-settings h2 { font-size: 1.15rem; color: var(--purple); }
.a-setrow {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  border-bottom: 2px solid var(--cyan); padding-block: .75rem;
}
.a-setrow b { flex: 1 1 140px; }
.a-setrow label { font-weight: 700; font-size: .9rem; }
.a-setrow .a-cap { width: 90px; padding: .35rem .5rem; margin-inline-start: .4rem; }
.a-toggle input { width: 20px; height: 20px; accent-color: var(--purple); }
.a-setrow .btn { padding: .4rem 1.1rem; font-size: .9rem; }
.a-tablewrap { overflow-x: auto; margin-top: 2rem; border: 2px solid var(--purple); }
.a-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.a-table th { background: var(--purple); color: var(--paper); text-align: start; padding: .6rem .75rem; }
.a-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--cyan); }
.st-paid { color: var(--purple); font-weight: 700; }
.st-pending_payment, .st-waitlist { color: var(--magenta); font-weight: 700; }

/* طباعة البطاقة فقط */
@media print {
  body * { visibility: hidden; }
  .p-card, .p-card * { visibility: visible; }
  .p-card { position: absolute; inset-inline-start: 50%; transform: translateX(50%); top: 20px; }
  .p-card-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .p-regno { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ─── تقليل الحركة ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* yl-logo-left-rule */
.site-head{display:flex!important;align-items:center!important;direction:ltr!important;justify-content:flex-start!important}
.site-head .logo{order:0}
