/* صفحات المنصة الحية: التفعيل، الدخول، صفحة الطالب، شاشة القاعة، لوحة الفريق */
/* IBM Plex Sans Arabic (رخصة OFL) محلي: لا يعتمد على اتصال خارجي */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex/arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex/latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("/assets/fonts/plex/arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap; src: url("/assets/fonts/plex/latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex/arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex/latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plex/arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plex/latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Zain Rounded"; src: url("/assets/fonts/zain-rounded.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
:root {
  --accent: #146356; --accent-deep: #0f4b41; --gold: #c39432;
  --mint: #38c7b1; --mint-soft: #ddf6ee; --sun-soft: #fff5d6; --peach-soft: #ffe8de;
  --ground: #f7faf8; --surface: #fff; --ink: #173b35; --ink-2: #566f68; --line: #dfe9e3; --line-2: #cbd8d3;
  --warn: #a3541f; --bad: #b3261e; --r: 18px;
  --shadow: 0 1px 2px rgb(23 59 53 / .05), 0 4px 14px rgb(23 59 53 / .06);
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;   /* خط واحد للعناوين والنص كما في منسك */
  font-family: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 16px; line-height: 1.75; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }   /* الأرقام لاتينية ومعزولة داخل النص العربي */

.lv { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; display: grid; gap: 1rem; outline: none; }
.lv--narrow { max-width: 28rem; padding-top: 2.5rem; }
.lv-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.lv-head__brand { display: flex; align-items: center; gap: .6rem; margin-inline-end: auto; text-decoration: none; color: inherit; }
.lv-head__brand img { width: 2.6rem; height: auto; padding: .25rem; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.lv-head__brand b { font-family: var(--display); font-size: 1.2rem; }
.lv-title { font-family: var(--display); font-size: 1.7rem; line-height: 1.3; }
.lv-sub { color: var(--ink-2); }
.lv-muted { color: var(--ink-2); font-size: .92rem; }
.linkish { background: none; border: 0; padding: .2rem 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.lv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; box-shadow: var(--shadow); display: grid; gap: .8rem; }
.lv-card h2 { font-family: var(--display); font-size: 1.25rem; line-height: 1.35; }
.lv-card--accent { background: var(--accent); color: #fff; border-color: transparent; }
.lv-card--accent .lv-muted, .lv-card--accent .lv-sub { color: rgb(255 255 255 / .8); }
.lv-card--warn { background: var(--sun-soft); border-color: #f1dc9c; }
.lv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.lv-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.lv-tabs { display: flex; gap: .3rem; padding: .3rem; background: var(--mint-soft); border-radius: 14px; overflow-x: auto; }
.lv-tabs button { border: 0; background: none; padding: .45rem .9rem; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.lv-tabs button[aria-selected="true"] { background: #fff; box-shadow: var(--shadow); font-weight: 600; }

.fld { display: grid; gap: .3rem; }
.fld > span { font-size: .9rem; color: var(--ink-2); }
.inp, .sel, .ta { width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: .7rem .85rem; background: #fff; }
.ta { min-height: 7rem; resize: vertical; }
.inp--big { font-size: 1.6rem; letter-spacing: .3em; text-align: center; direction: ltr; font-variant-numeric: tabular-nums; }
.inp--ltr { direction: ltr; text-align: right; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 12px; padding: .7rem 1.2rem; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--line-2); }
.btn--small { padding: .4rem .8rem; font-size: .9rem; border-radius: 10px; }
.btn--wide { width: 100%; padding: .85rem; font-size: 1.05rem; }
.btn--danger { background: var(--bad); }
.err { color: var(--bad); font-size: .95rem; }
.ok { color: var(--accent); font-weight: 600; }

.pin { font-size: 2.6rem; font-weight: 700; letter-spacing: .25em; direction: ltr; text-align: center; font-variant-numeric: tabular-nums;
  background: var(--mint-soft); color: var(--accent-deep); border-radius: 16px; padding: .7rem; }
.pill { display: inline-block; padding: .05rem .65rem; border-radius: 99px; background: var(--mint-soft); font-size: .8rem; color: var(--accent-deep); }
.pill--warn { background: var(--peach-soft); color: var(--warn); }
.pill--sun { background: var(--sun-soft); color: #7a5a00; }

.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: start; padding: .5rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--ink-2); font-weight: 500; font-size: .85rem; }
.tbl-wrap { overflow-x: auto; }
.bar { height: .55rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--mint); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; }
.stat { background: var(--ground); border-radius: 14px; padding: .7rem .9rem; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--display); line-height: 1.2; }
.stat span { font-size: .85rem; color: var(--ink-2); }

/* شاشة القاعة */
body[data-page="hall"] { background: var(--accent); color: #fff; }
.hall { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 1.5rem; padding: 2rem; text-align: center; }
.hall__title { font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 3rem); line-height: 1.3; }
.hall__code { font-size: clamp(5rem, 16vw, 13rem); font-weight: 700; letter-spacing: .12em; line-height: 1; direction: ltr; font-variant-numeric: tabular-nums;
  background: #fff; color: var(--accent-deep); border-radius: 32px; padding: 1.5rem 2.5rem; }
.hall__ring { width: min(24rem, 70vw); height: .6rem; border-radius: 99px; background: rgb(255 255 255 / .2); overflow: hidden; }
.hall__ring > i { display: block; height: 100%; background: var(--gold); transition: width 1s linear; }
.hall__counts { display: flex; gap: 2.5rem; font-size: 1.3rem; flex-wrap: wrap; justify-content: center; }
.hall__counts b { display: block; font-size: 2.6rem; font-family: var(--display); }
.hall__prep { display: grid; grid-template-columns: auto minmax(10rem, 22rem); gap: .5rem 1rem; align-items: center; font-size: 1.15rem; background: rgb(255 255 255 / .1); border-radius: 18px; padding: .8rem 1.4rem; }
.hall__prep b { font-family: var(--display); font-size: 1.6rem; }
.hall__bar { display: block; height: .55rem; border-radius: 99px; background: rgb(255 255 255 / .2); overflow: hidden; }
.hall__bar > i { display: block; height: 100%; background: var(--gold); transition: width .8s ease; }
.hall__bar--att > i { background: #fff; }
@media (max-width: 640px) { .hall__prep { grid-template-columns: 1fr; } }
.hall__act { background: rgb(255 255 255 / .12); border-radius: 24px; padding: 1rem 2rem; display: grid; gap: .3rem; }
.hall__act b { font-size: 4rem; letter-spacing: .15em; direction: ltr; }

/* حفل الإطلاق على شاشة القاعة */
.ln-root { overflow: hidden; padding: 0; }
.ln { position: relative; min-height: 100vh; width: 100%; display: grid; align-content: center; justify-items: center; gap: 1.2rem; padding: 2rem 2rem 6rem; text-align: center; }
.ln--ready, .ln--count { background: radial-gradient(ellipse at 50% 30%, rgb(255 255 255 / .12), transparent 60%); }
.ln--live { background: linear-gradient(180deg, rgb(12 74 64 / .55), rgb(12 74 64 / .9)), url('/assets/sea-islands/1.webp') center / cover no-repeat; }
.ln-brand { display: grid; justify-items: center; gap: .4rem; }
.ln-brand img { width: clamp(5rem, 9vw, 8rem); height: auto; filter: drop-shadow(0 6px 18px rgb(0 0 0 / .25)); background: #fff; border-radius: 22px; padding: .5rem .7rem; }
.ln-brand p { font-size: clamp(.95rem, 1.4vw, 1.2rem); opacity: .9; max-width: 46rem; }
.ln-title { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.15; margin: .2rem 0; text-shadow: 0 4px 24px rgb(0 0 0 / .25); }
.ln--live .ln-title { color: var(--gold); animation: ln-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.ln-sub { font-size: clamp(1.2rem, 2.4vw, 1.9rem); opacity: .95; }
.ln-quote { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--gold); max-width: 50rem; }
.ln-pre { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.ln-n { font-family: var(--display); font-size: clamp(9rem, 32vw, 24rem); line-height: 1; color: #fff; animation: ln-pulse 1s ease-out both; text-shadow: 0 10px 40px rgb(0 0 0 / .3); }
.ln-join { display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; background: rgb(255 255 255 / .1); border-radius: 28px; padding: 1.2rem 1.6rem; backdrop-filter: blur(4px); animation: ln-rise 1s .3s cubic-bezier(.2, .8, .2, 1) both; }
.ln-qr { background: #fff; border-radius: 18px; padding: .6rem; width: clamp(11rem, 18vw, 15rem); }
.ln-qr svg { display: block; width: 100%; height: auto; }
.ln-how { text-align: start; display: grid; gap: .45rem; font-size: clamp(1.05rem, 1.8vw, 1.45rem); }
.ln-how b { color: var(--gold); }
.ln-next { opacity: .9; font-size: .9em; }
.ln-count { display: grid; grid-template-columns: auto auto; gap: .2rem 1rem; align-items: center; justify-content: center; animation: ln-rise 1s .6s both; }
.ln-count b { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; }
.ln-count span { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.ln-count .hall__bar { grid-column: 1 / -1; width: min(28rem, 80vw); }
.ln-ctl { position: absolute; inset-block-end: 0; inset-inline: 0; }
.ln-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ln-confetti i { position: absolute; top: -5vh; left: calc(var(--x) * 1%); width: .6rem; height: 1.1rem; background: var(--c); border-radius: 2px; transform: rotate(var(--r)); animation: ln-fall var(--d) var(--w) linear 2 both; opacity: .9; }
@keyframes ln-fall { to { transform: translateY(112vh) rotate(calc(var(--r) + 540deg)); } }
@keyframes ln-pulse { from { transform: scale(1.35); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes ln-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ln-n, .ln-title, .ln-join, .ln-count { animation: none; } }
@media (max-width: 640px) { .ln-how { text-align: center; } }

/* البطاقات للطباعة */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.card { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: .9rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; background: #fff; break-inside: avoid; }
.card__name { font-weight: 700; font-size: 1.05rem; }
.card__pin { font-size: 1.5rem; font-weight: 700; letter-spacing: .15em; direction: ltr; text-align: right; }
.card__qr { grid-row: 1 / span 4; grid-column: 2; width: 6.5rem; height: 6.5rem; }
.card__qr svg, .card__qr img { width: 100%; height: 100%; }
@media print {
  body { background: #fff; }
  .no-print, .toast { display: none !important; }
  .lv { max-width: none; padding: 0; }
  .lv-card { box-shadow: none; border: 0; padding: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
}

.toast { position: fixed; inset-inline: 0; bottom: 1.2rem; margin: 0 auto; width: max-content; max-width: 90vw; padding: .65rem 1.2rem; border-radius: 14px;
  background: var(--ink); color: #fff; opacity: 0; transform: translateY(1rem); transition: .25s; pointer-events: none; z-index: 10; }
.toast.is-on { opacity: 1; transform: none; }

/* الشهادة: A4 أفقي بهوية براعة */
.cert { width: 297mm; max-width: 100%; aspect-ratio: 297 / 210; margin: 0 auto; background: #fff; border-radius: 6px; position: relative; overflow: hidden;
  display: grid; align-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 6% 9%; box-shadow: var(--shadow);
  border: 10px solid var(--accent); outline: 2px solid var(--gold); outline-offset: -22px; }
.cert__logo { width: 5.5rem; height: auto; }
.cert__program { font-family: var(--display); color: var(--accent); font-size: 1.3rem; }
.cert__title { font-family: var(--display); font-size: 2.3rem; line-height: 1.3; color: var(--accent-deep); }
.cert__name { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1.3; border-bottom: 2px solid var(--line); padding: 0 2rem .3rem; }
.cert__line { font-size: 1.15rem; max-width: 40rem; }
.cert__foot { display: flex; justify-content: space-between; align-items: end; width: 100%; margin-top: 1rem; gap: 1rem; font-size: .85rem; }
.cert__signers { display: flex; gap: 2.5rem; }
.cert__signers div { display: grid; gap: .2rem; min-width: 9rem; border-top: 1px solid var(--line-2); padding-top: .3rem; }
.cert__qr { width: 4.6rem; height: 4.6rem; }
.cert__qr svg { width: 100%; height: 100%; }
.cert__serial { direction: ltr; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media print { @page { size: A4 landscape; margin: 0; } .cert { width: 297mm; height: 210mm; box-shadow: none; border-radius: 0; page-break-after: always; } }
.likert { display: flex; gap: .3rem; flex-wrap: wrap; }
.likert label { border: 1.5px solid var(--line-2); border-radius: 10px; padding: .3rem .6rem; cursor: pointer; font-size: .9rem; }
.likert input { margin-inline-end: .3rem; }

/* لوحة الفريق: قائمة جانبية بمجموعات (على الجوال تُفتح من زر «القائمة») */
body.has-side .lv { max-width: 82rem; }
.lv-shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.lv-main { display: grid; gap: 1rem; min-width: 0; }
.lv-side { position: sticky; top: 1rem; display: grid; gap: .9rem; padding: .9rem .7rem; border-radius: 20px; background: var(--accent-deep); color: #fff; max-height: calc(100vh - 2rem); overflow-y: auto; }
.lv-side__group { display: grid; gap: .15rem; }
.lv-side__group h3 { font-size: .78rem; font-weight: 500; color: rgb(255 255 255 / .62); padding: 0 .7rem .2rem; }
.lv-side button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 2.75rem; padding: .45rem .7rem; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.lv-side button:hover { background: rgb(255 255 255 / .1); }
.lv-side button[aria-current="page"] { background: #fff; color: var(--accent-deep); font-weight: 600; }
.lv-side__badge { min-width: 1.5rem; padding: 0 .4rem; border-radius: 99px; background: #ffd9c7; color: #8a3b12; font-size: .8rem; font-weight: 700; text-align: center; }
.lv-side .btn { background: rgb(255 255 255 / .12); color: #fff; border-color: transparent; justify-content: center; }
.lv-side__toggle { display: none; }
.lv-todo { display: grid; gap: .5rem; padding: 0; list-style: none; }
.lv-todo li { display: grid; gap: .35rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 900px) {
  .lv-shell { grid-template-columns: 1fr; }
  .lv-side { display: none; position: static; max-height: none; }
  .lv-side.is-open { display: grid; }
  .lv-side__toggle { display: inline-flex; }
}
@media print { .lv-shell { display: block; } }

/* لوحة المؤشرات */
.st-kpis { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); } .st-kpis small { font-size: .55em; font-weight: 500; color: var(--ink-2); }
.stat.is-warn { background: var(--peach-soft); }
.st-bar { display: block; height: .5rem; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 3rem; }
.st-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.st-bar--pre i { background: var(--gold); }
.st-pair { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; }
.st-pair > span { display: grid; gap: .15rem; } .st-pair small { color: var(--ink-2); font-size: .8rem; } .st-pair b { font-size: 1.3rem; }
.st-gain { padding: .15rem .6rem; border-radius: 99px; background: var(--mint-soft); color: var(--accent-deep); font-size: 1rem !important; }
.st-gain.is-down { background: var(--peach-soft); color: var(--warn); }
.st-impact { display: grid; gap: .6rem; max-width: 34rem; }
.st-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; }
.st-stage { display: grid; gap: .5rem; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; }
.st-scroll { overflow-x: auto; }
.st-tbl td:first-child { display: grid; gap: .25rem; min-width: 15rem; } .st-tbl td small { display: block; }
.st-tbl tr.is-future { opacity: .6; }
.st-reqs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .25rem; } .st-reqs small { font-size: .68rem; color: var(--ink-2); white-space: nowrap; }
.st-reqs .st-bar { min-width: 0; height: .35rem; }
.st-teams { display: grid; gap: .5rem; padding: 0; list-style: none; }
.st-teams li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 14px; }
.st-rank { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); font-weight: 700; }
.st-team__main { flex: 1; min-width: 10rem; display: grid; gap: .3rem; }
.st-team__nums { display: flex; gap: .9rem; font-size: .82rem; color: var(--ink-2); flex-wrap: wrap; } .st-team__nums b { color: var(--ink); }
.tm-dot { width: .9rem; height: .9rem; border-radius: 50%; flex: none; display: inline-block; }

/* الصلاحيات الفردية */
.pm { gap: .9rem; }
.pm-people { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; }
.pm-people button { flex: none; display: grid; text-align: start; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; min-height: 2.75rem; }
.pm-people button[aria-selected="true"] { border-color: var(--accent); background: var(--mint-soft); } .pm-people small { color: var(--ink-2); font-size: .78rem; }
.pm-list { display: grid; gap: .5rem; padding: 0; list-style: none; }
.pm-list li { display: flex; gap: .8rem 1.2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 14px; border-inline-start: 4px solid var(--line-2); }
.pm-list li.is-on { border-inline-start-color: var(--accent); }
.pm-main { display: grid; gap: .1rem; flex: 1; min-width: 14rem; } .pm-main small { color: var(--ink-2); font-size: .82rem; } .pm-role { font-size: .76rem !important; }
.pm-ctl { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pm-seg { display: inline-flex; padding: .2rem; border-radius: 11px; background: var(--ground); }
.pm-seg button { border: 0; background: none; padding: .4rem .75rem; border-radius: 9px; cursor: pointer; font: inherit; font-size: .88rem; min-height: 2.5rem; }
.pm-seg button[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow); font-weight: 600; } .pm-seg button:disabled { opacity: .4; cursor: not-allowed; }
.pm-exp { display: grid; font-size: .72rem; color: var(--ink-2); } .pm-exp .inp { padding: .3rem .5rem; font-size: .85rem; max-width: 9.5rem; }
.pill.jr-pill--mute { background: var(--ground); color: var(--ink-2); }

/* التذييل: شعارا الشريكين */
.lv-foot { display: flex; align-items: center; justify-content: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1.25rem 1rem .5rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; }
.lv-foot img { height: 5.5rem; width: auto; }
.lv-foot__dark { height: 4rem !important; }
@media print { .lv-foot { break-inside: avoid; } }
.lv-ask { border: 0; border-radius: 18px; padding: 0; max-width: 28rem; width: 94vw; } .lv-ask::backdrop { background: rgb(15 35 30 / .45); }
.lv-ask .pill { border: 0; cursor: pointer; font: inherit; font-size: .85rem; min-height: 2.25rem; }

/* قائمة الطلاب وملف المتدرب */
.dlink-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent-deep); cursor: pointer; text-align: start; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.dlink-name:hover { text-decoration-color: var(--accent); }
.sf-bar { justify-content: space-between; }
.sf-head { gap: 1rem; } .sf-head__id { display: flex; gap: .9rem; align-items: center; } .sf-head__id > div { display: grid; gap: .3rem; }
.sf-av { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--accent-deep); font-size: 1.6rem; font-weight: 700; }
.sf-head .stat small { font-size: .55em; font-weight: 500; color: var(--ink-2); }
.sf-gaps, .sf-subs { display: grid; gap: .5rem; padding: 0; list-style: none; } .sf-gaps li, .sf-subs li { display: grid; gap: .35rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 14px; }
.sf-subs li.lv-row { display: flex; } .sf-subs p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.sf-courses { display: grid; gap: .5rem; }
.sf-course { border: 1px solid var(--line); border-radius: 14px; border-inline-start: 4px solid var(--line-2); } .sf-course[open] { padding-bottom: .7rem; }
.sf-course--done { border-inline-start-color: var(--accent); } .sf-course--in_progress, .sf-course--available { border-inline-start-color: var(--gold); } .sf-course.is-late { border-inline-start-color: #b4532f; }
.sf-course summary { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; padding: .65rem .8rem; cursor: pointer; min-height: 2.75rem; }
.sf-course__title { display: grid; } .sf-course__title small { color: var(--ink-2); font-size: .78rem; } .sf-course__meta { display: flex; align-items: center; gap: .45rem; }
.sf-course > .lv-row { padding: .2rem .8rem 0; }
.sf-reqs { display: grid; gap: .1rem; padding: 0 .8rem; list-style: none; }
.sf-reqs li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sf-reqs__dot { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-size: .75rem; color: #fff; }
.sf-reqs li.is-done .sf-reqs__dot { background: var(--accent); border-color: var(--accent); }
.sf-reqs__main { flex: 1; min-width: 11rem; display: grid; } .sf-reqs__main small { color: var(--ink-2); font-size: .78rem; }
.sf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; align-items: start; }
.sf-dl { display: grid; gap: .1rem; } .sf-dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); } .sf-dl dt { color: var(--ink-2); } .sf-dl dd { font-weight: 500; text-align: end; }
@media print { .sf-course { break-inside: avoid; } details.sf-course > *:not(summary) { display: block; } }

.sf-gaps li > .pill { justify-self: start; }

/* نقاطي ولوحة الأفضل */
.lb { gap: .9rem; } .lb-me { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; color: #fff; background: linear-gradient(125deg, #17705f, var(--accent-deep)); }
.lb-me .lv-muted { color: rgb(255 255 255 / .8); } .lb-me__pts { font-size: 2.6rem; font-family: var(--display); line-height: 1; color: #f3dc9c; }
.lb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; } .lb-cols h3 { font-size: .95rem; margin-bottom: .4rem; }
.lb-top { display: grid; gap: .3rem; padding: 0; list-style: none; } .lb-top li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .4rem .6rem; border-radius: 11px; }
.lb-top li.is-me { background: var(--mint-soft); } .lb-top small { display: block; color: var(--ink-2); font-size: .76rem; }
.lb-rank { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--ground); font-weight: 700; font-size: .85rem; }
.lb-top li:nth-child(1) .lb-rank { background: #f1d47c; } .lb-top li:nth-child(2) .lb-rank { background: #dcdcdc; } .lb-top li:nth-child(3) .lb-rank { background: #e5bd9a; }
.lb details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* المتطلبات الناقصة */
.mx-keys .pill, .pill.is-on { border: 0; cursor: pointer; font: inherit; font-size: .85rem; min-height: 2.25rem; } .pill.is-on { background: var(--accent); color: #fff; }
.mx-list { display: grid; gap: .5rem; padding: 0; list-style: none; }
.mx-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; margin: .4rem 0 .2rem; align-items: stretch; }
.mx-preset { display: grid; gap: .1rem; text-align: start; border: 1.5px solid var(--line, #e3e0d8); background: var(--ground, #f7f5ef); border-radius: 14px; padding: .6rem .8rem; cursor: pointer; font: inherit; color: inherit; }
.mx-preset b { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.mx-preset small { color: var(--ink-2); font-size: .8rem; }
.mx-preset.is-on { border-color: var(--accent); background: var(--mint-soft, #e6f2ee); box-shadow: 0 0 0 2px rgb(20 99 86 / .15); }
.mx-preset:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mx-list li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: .6rem 1rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 14px; border-inline-start: 4px solid var(--gold); }
.mx-list li.is-late { border-inline-start-color: #b4532f; } .mx-who { display: grid; } .mx-who small { color: var(--ink-2); font-size: .78rem; }
.mx-items { display: grid; gap: .35rem; } .mx-items p { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .9rem; } .mx-act { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: end; }
@media (max-width: 860px) { .mx-list li { grid-template-columns: 1fr; } .mx-act { justify-content: start; } }
/* تقويم الفريق */
.cal { display: grid; gap: .3rem; } .cal__head, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; } .cal__head span { text-align: center; font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.cal__day { min-height: 5.4rem; padding: .3rem; border-radius: 10px; background: var(--ground); display: grid; gap: .15rem; align-content: start; overflow: hidden; } .cal__day > span { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.cal__day.is-out { opacity: .45; } .cal__day.is-today { background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal__ev { display: block; font-style: normal; font-size: .68rem; line-height: 1.45; padding: .1rem .35rem; border-radius: 6px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__ev--session { background: #146356; } .cal__ev--saturday { background: #c39432; } .cal__ev--deadline { background: #b4532f; } .cal__dot { width: .65rem; height: .65rem; border-radius: 50%; flex: none; }
@media (max-width: 700px) { .cal__day { min-height: 3.6rem; } .cal__ev { font-size: 0; height: .45rem; padding: 0; } }

.cert__partners { display: flex; justify-content: center; align-items: center; gap: 2.2rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); } .cert__partners img { height: 3.8rem; width: auto; } .cert__partners img:last-child { height: 2.9rem; }
.rpend { display: grid; gap: .35rem; padding: .7rem .85rem; border-radius: 12px; background: var(--sun-soft); }

/* بنك الأسئلة */
.qb { gap: .8rem; } .qb-list { display: grid; gap: .35rem; padding: 0; list-style: none; max-height: 30rem; overflow: auto; }
.qb-list label { display: flex; gap: .6rem; align-items: start; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; } .qb-list label:has(input:checked) { border-color: var(--accent); background: var(--mint-soft); }
.qb-list input { margin-top: .35rem; flex: none; width: 1.1rem; height: 1.1rem; } .qb-list span { display: grid; gap: .15rem; } .qb-list small { font-size: .82rem; color: var(--ink-2); } .qb-list small span { display: inline; } .qb-list .is-right { color: var(--accent); font-weight: 700; }
.qb-bar { align-items: end; position: sticky; bottom: 0; background: #fff; padding-top: .6rem; }

/* دليل الاستخدام */
.gd-list { display: grid; gap: .5rem; } .gd { border: 1px solid var(--line); border-radius: 14px; padding: 0 .9rem; } .gd[open] { padding-bottom: .8rem; border-color: var(--accent); }
.gd summary { cursor: pointer; font-weight: 700; min-height: 3rem; display: flex; align-items: center; } .gd ol { display: grid; gap: .4rem; padding-inline-start: 1.3rem; margin-bottom: .6rem; line-height: 1.9; }
.gd-rules { display: grid; gap: .35rem; padding-inline-start: 1.2rem; line-height: 1.9; }
@media print { .gd { break-inside: avoid; } .gd > *:not(summary) { display: block !important; } }

/* مسابقة الجمعيات */
.as-list { display: grid; gap: .45rem; padding: 0; list-style: none; } .as-list li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 14px; }
.as-list li:nth-child(1) .lb-rank { background: #f1d47c; } .as-list li:nth-child(2) .lb-rank { background: #dcdcdc; } .as-list li:nth-child(3) .lb-rank { background: #e5bd9a; }
.as-main { display: grid; gap: .2rem; min-width: 0; } .as-main small { color: var(--ink-2); font-size: .78rem; } .as-pts { display: grid; justify-items: center; } .as-pts b { font-size: 1.15rem; } .as-pts small { font-size: .7rem; color: var(--ink-2); }
.as-act { display: flex; gap: .3rem; } @media (max-width: 700px) { .as-list li { grid-template-columns: 1.8rem minmax(0, 1fr) auto; } .as-act { grid-column: 2 / -1; } }

/* ============================================================
   تحديث المظهر (ديسمبر): زخرفة هندسية خفيفة، صفحة دخول بعمودين، وقائمة جانبية بأقسام قابلة للطي
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body { background-color: var(--ground); }
/* شريط زخرفة خفيف أعلى كل صفحة، يتلاشى تدريجيًا */
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 22rem; z-index: -1; pointer-events: none;
  background: url("/assets/img/pattern.svg") center top / 92px repeat; opacity: .32;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
body[data-page="hall"]::before { display: none; }
.lv-head { padding: .45rem .6rem; border-radius: 18px; background: rgb(255 255 255 / .82); backdrop-filter: blur(6px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lv-card { transition: box-shadow .2s, border-color .2s; }
.lv-card h2 { color: var(--accent-deep); }
.btn { transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 1px 0 rgb(0 0 0 / .04); }
.btn:hover:not(:disabled) { background: var(--accent-deep); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--ghost:hover:not(:disabled) { background: var(--mint-soft); color: var(--accent-deep); }
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(20 99 86 / .14); }

/* ---------- صفحة الدخول ---------- */
body.is-login .lv { max-width: 78rem; padding-top: 1rem; }
body.is-login::before { height: 100%; opacity: .26; -webkit-mask-image: none; mask-image: none; }
.lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: stretch; min-height: min(44rem, calc(100vh - 12rem)); }
.lg-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px; color: #fff; background: linear-gradient(150deg, #1a7563 0%, var(--accent) 38%, #0b3b33 100%); box-shadow: 0 18px 40px -18px rgb(15 75 65 / .55); }
.lg-intro::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/pattern-light.svg") center / 110px repeat; opacity: .14; pointer-events: none; }
.lg-intro::after { content: ""; position: absolute; inset: auto -20% -35% auto; width: 75%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(195 148 50 / .35), transparent); pointer-events: none; }
.lg-intro > * { position: relative; z-index: 1; }
.lg-logo { width: fit-content; padding: .7rem 1rem; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .15); }
.lg-logo img { display: block; width: clamp(5.5rem, 10vw, 8rem); height: auto; }
.lg-eyebrow { display: inline-block; font-size: .85rem; color: #f3dc9c; font-weight: 600; margin-bottom: .8rem; border-inline-start: 3px solid var(--gold); padding-inline-start: .6rem; }
.lg-intro h1 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.45; font-weight: 700; }
.lg-intro__lead { margin-top: 1rem; max-width: 26rem; color: rgb(255 255 255 / .82); line-height: 1.9; }
.lg-intro__foot { font-size: .85rem; color: rgb(255 255 255 / .7); }
.lg-side { display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
.lg-box { width: 100%; max-width: 27rem; display: grid; gap: .55rem; }
.lg-kicker { font-size: .8rem; font-weight: 700; color: #8a6418; letter-spacing: .02em; }
.lg-title { font-family: var(--display); font-size: 2rem; line-height: 1.3; color: var(--accent-deep); }
.lg-card { margin-top: .6rem; padding: 1.4rem; gap: 1rem; border-top: 4px solid var(--gold); }
.lg-form { display: grid; gap: .85rem; }
.lg-help { text-align: center; margin-top: .4rem; }
body.is-login .lv-foot { margin-top: 2rem; background: #fbf8f1; border-top: 3px solid var(--gold); border-radius: 22px 22px 0 0; }
@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; min-height: 0; gap: 1rem; }
  .lg-intro { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 22px; }
  .lg-intro h1 { font-size: 1.15rem; line-height: 1.6; }
  .lg-intro__lead, .lg-intro__foot, .lg-eyebrow { display: none; }
  .lg-logo { padding: .45rem .6rem; border-radius: 14px; } .lg-logo img { width: 4.2rem; }
  .lg-side { padding: 0; }
}

/* ---------- القائمة الجانبية: أقسام قابلة للطي ---------- */
.lv-side { gap: .35rem; padding: .8rem .6rem; background: linear-gradient(180deg, var(--accent-deep), #0b3a32); box-shadow: 0 14px 30px -18px rgb(11 58 50 / .7); }
.lv-side::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("/assets/img/pattern-light.svg") center / 84px repeat; opacity: .06; pointer-events: none; }
.lv-side > * { position: relative; }
.lv-side__search input { width: 100%; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; padding: .5rem .75rem; background: rgb(255 255 255 / .08); color: #fff; margin-bottom: .35rem; }
.lv-side__search input::placeholder { color: rgb(255 255 255 / .55); }
.lv-side__search input:focus { outline: none; border-color: #f3dc9c; background: rgb(255 255 255 / .12); }
.lv-side__group { gap: .1rem; border-radius: 14px; }
.lv-side__group.has-current { background: rgb(255 255 255 / .05); }
.lv-side .lv-side__ghead { min-height: 2.6rem; font-weight: 600; color: #fff; justify-content: flex-start; gap: .55rem; }
.lv-side .lv-side__ghead svg:first-child { flex: none; color: #f3dc9c; }
.lv-side__glabel { flex: 1; }
.lv-side__count { font-size: .72rem; font-weight: 500; color: rgb(255 255 255 / .55); }
.lv-side__chev { flex: none; transition: transform .2s; opacity: .7; }
.lv-side__group.is-open .lv-side__chev, .lv-side__group.is-filtered .lv-side__chev { transform: rotate(180deg); }
.lv-side__items { display: none; gap: .1rem; padding: .1rem .2rem .35rem; margin-inline-start: .9rem; border-inline-start: 1px solid rgb(255 255 255 / .14); }
.lv-side__group.is-open .lv-side__items, .lv-side__group.is-filtered .lv-side__items { display: grid; }
.lv-side .lv-side__items button { min-height: 2.35rem; font-size: .93rem; color: rgb(255 255 255 / .88); padding: .35rem .65rem; }
.lv-side .lv-side__items button[aria-current="page"] { color: var(--accent-deep); }
.lv-side__empty { font-size: .85rem; color: rgb(255 255 255 / .7); padding: .3rem .7rem; }
.lv-side > .btn { margin-top: .4rem; }
@media (prefers-reduced-motion: reduce) { .lv-side__chev, .btn, .lv-card { transition: none; } }

/* لوحة الشرف على شاشة القاعة */
.hall__board { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; width: min(70rem, 94vw); text-align: start; }
.hall__board section { background: rgb(255 255 255 / .1); border-radius: 20px; padding: 1rem 1.25rem; }
.hall__board h3 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.5rem; }
.hall__board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.hall__board li { display: grid; grid-template-columns: 2rem 1fr auto; gap: .5rem; align-items: baseline; font-size: 1.15rem; }
.hall__board li small { grid-column: 2; opacity: .75; font-size: .9rem; margin-top: -.3rem; }
.hall__board li > span:last-child { grid-column: 3; grid-row: 1; font-weight: 700; }

/* المسابقة الحية */
.lg-q { font-family: var(--display); font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.5; margin: .5rem 0 1rem; }
.lg-q--sm { font-size: 1.25rem; }
.lg-time { height: .55rem; border-radius: 99px; background: rgb(127 127 127 / .2); overflow: hidden; margin: .5rem 0 1rem; }
.lg-time > i { display: block; height: 100%; background: var(--gold, #c0892b); transition: width 1.2s linear; }
.lg-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .75rem; text-align: start; }
.lg-opts li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; background: var(--c); color: #fff; font-size: clamp(1.05rem, 2vw, 1.5rem); }
.lg-opts li.is-dim { opacity: .45; }
.lg-opts li.is-right { outline: 4px solid #fff; box-shadow: 0 0 0 8px rgb(255 255 255 / .25); }
.lg-let { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgb(255 255 255 / .22); font-weight: 700; }
.lg-dist { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; }
.lg-dist i { display: block; height: .5rem; border-radius: 99px; background: rgb(255 255 255 / .85); min-width: 2px; }
.lg-meta { margin: .75rem 0 0; font-size: 1.05rem; }
.lg-hall { width: min(70rem, 94vw); }
.lg-hall .lg-meta, .lg-hall h3 { color: #fff; }
.lg-lobby { display: grid; gap: .5rem; justify-items: center; }
.lg-big { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.4rem); margin: 0; }
.lg-top { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; width: min(36rem, 100%); text-align: start; }
.lg-top li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: baseline; gap: .5rem; padding: .45rem .75rem; border-radius: 12px; background: rgb(127 127 127 / .12); }
.lg-top li small { grid-column: 2; opacity: .75; font-size: .85rem; }
.lg-top li .lg-pts { grid-column: 3; grid-row: 1; font-weight: 700; }
.lg-top li.is-me { outline: 2px solid var(--gold, #c0892b); }
.lg-card { border: 2px solid var(--gold, #c0892b); }
.lg-btns { display: grid; gap: .6rem; }
.lg-btn { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.6rem; padding: .7rem 1rem; border: 0; border-radius: 14px; background: var(--c); color: #fff; font: inherit; font-size: 1.1rem; text-align: start; cursor: pointer; }
.lg-btn:disabled { cursor: default; opacity: .55; }
.lg-btn.is-mine { opacity: 1; outline: 3px solid var(--ink, #173b35); }
.lg-btn.is-right { opacity: 1; box-shadow: 0 0 0 4px #fff inset; }
.lg-btn.is-wrong { opacity: .8; text-decoration: line-through; }
.lg-banner { position: fixed; inset-inline: 1rem; bottom: 5.5rem; z-index: 40; padding: .9rem 1rem; border: 0; border-radius: 14px; background: var(--gold, #c0892b); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgb(0 0 0 / .2); cursor: pointer; }
@media (min-width: 900px) { .lg-banner { inset-inline: auto 2rem; bottom: 2rem; max-width: 26rem; } }
.lv-live .lg-opts li { font-size: 1.05rem; }

/* سحب الهدية */
.dr-stage { min-height: 12rem; display: grid; place-content: center; text-align: center; margin: 1rem 0; border-radius: 20px; background: var(--ground, #f7faf8); }
.dr-name { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 3.2rem); margin: 0; }
.dr-spin { opacity: .7; }
.dr-win { color: var(--gold, #c0892b); animation: dr-pop .6s ease-out; }
.dr-kicker { margin: 0; font-size: 1.1rem; color: var(--ink-2, #566f68); }
@keyframes dr-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dr-win { animation: none; } .lg-time > i, .hall__ring > i { transition: none; } }
.lg-hall .lg-top, .lg-lobby .lg-top { margin-inline: auto; }
/* أدوات شاشة القاعة: شريط صغير أسفل الشاشة للتحكم في التحضير */
.hall__ctrl { position: fixed; inset-inline: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; padding: .5rem 1rem; background: rgb(0 0 0 / .18); opacity: .35; transition: opacity .2s; font-size: .95rem; }
.hall__ctrl:hover, .hall__ctrl:focus-within { opacity: 1; }
.hall__ctrl button { font: inherit; padding: .35rem .8rem; border-radius: 99px; border: 1px solid rgb(255 255 255 / .5); background: transparent; color: #fff; cursor: pointer; }
.hall__ctrl button[aria-pressed="true"] { background: var(--gold, #c0892b); border-color: transparent; }

/* تحكيم مشاريع المجموعات */
.jp-team { border-top: 1px dashed var(--line, #e3e0d8); padding-top: .7rem; margin-top: .7rem; display: grid; gap: .4rem; }
.jp-team h3 { font-size: 1rem; margin: 0; }
/* رسائل الدخول الجاهزة (واتساب) */
.msg-box { display: grid; gap: .5rem; margin-top: .5rem; }
.msg-box .ta { min-height: 9rem; font-size: .95rem; line-height: 1.7; background: var(--ground, #f7f5ef); }

/* دخول مباشر للحساب التجريبي */
.demo-login { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.demo-login .card__qr { width: 9.5rem; background: #fff; border-radius: 12px; padding: .4rem; }
.demo-login > div { flex: 1; min-width: 14rem; display: grid; gap: .4rem; }
