/* TMG by THO - واجهات المرحلة الأولى.
   المرجع الوحيد للشكل: TMG_Brand_Guidelines.pdf و TMG_Colors_Fonts.txt.
   الألوان الخمسة معرّفة هنا مرة واحدة بأسماء الدليل، ولا يُكتب لون خارجها في أي ملف.
   كل درجة أفتح أو أغمق مشتقة من هذه الخمسة بالمزج (color-mix)، لا قيمة لون جديدة. */

:root{
  --brand-black: #050000;      /* Black - RGB 5 0 0 */
  --brand-gold: #BF9B30;       /* Gold, current standard. لا يُستخدم نصاً على خلفية فاتحة */
  --brand-gold-2024: #F5B700;  /* Gold, Brand Guide 2024 - Pantone 3514 C */
  --brand-white: #FFFFFF;      /* White */
  --accent: #8A6D16;           /* Gold for text on light - بديل الذهبي في النص على الأبيض */
}

/* مشتقات من الألوان الخمسة فقط (شفافية للحدود والنص الثانوي والخلفيات الهادئة). */
:root{
  --ink: var(--brand-black);
  --ink-2: color-mix(in srgb, var(--brand-black) 72%, transparent);
  --ink-3: color-mix(in srgb, var(--brand-black) 55%, transparent);
  --line: color-mix(in srgb, var(--brand-black) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--brand-black) 28%, transparent);
  --wash: color-mix(in srgb, var(--brand-black) 4%, var(--brand-white));
  --wash-gold: color-mix(in srgb, var(--brand-gold) 10%, var(--brand-white));
  --on-dark-2: color-mix(in srgb, var(--brand-white) 72%, transparent);
  --on-dark-line: color-mix(in srgb, var(--brand-white) 18%, transparent);
  --veil: color-mix(in srgb, var(--brand-black) 55%, transparent);
  --radius: 3px;
  --font-ar: 'TMG Cairo', sans-serif;
  --font-en: 'TMG Serif', serif;          /* Liberation Serif: البديل المطابق لـ Times New Roman */
  --font-mono: 'TMG Playfair', serif;     /* Playfair Display لحروف TMG فقط */
}

/* الخطوط محلية من 1_Brand_Kit/Fonts، لا من خدمة خارجية. */
@font-face{ font-family:'TMG Cairo'; src:url('assets/fonts/Cairo.ttf') format('truetype'); font-weight:200 1000; font-display:swap; }
@font-face{ font-family:'TMG Serif'; src:url('assets/fonts/LiberationSerif-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face{ font-family:'TMG Serif'; src:url('assets/fonts/LiberationSerif-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face{ font-family:'TMG Playfair'; src:url('assets/fonts/PlayfairDisplay.ttf') format('truetype'); font-weight:400 900; font-display:swap; }
/* أيقونات الواجهة: الخط المحلي الموجود أصلاً في المنصة (public/vendor/fonts). */
@font-face{ font-family:'Material Symbols Outlined'; src:url('/vendor/fonts/material-symbols-outlined.woff2') format('woff2'); font-weight:100 700; font-display:block; }

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--brand-white); color:var(--ink);
  font-family:var(--font-ar); font-weight:400; font-size:15.5px; line-height:1.75;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
html[lang="en"] body{ font-family:var(--font-en); font-size:16.5px; line-height:1.6; }
html[lang="en"] .ar-only{ display:none !important; }
html[lang="ar"] .en-only{ display:none !important; }
a{ color:inherit; }
img{ max-width:100%; }
button,input,select,textarea{ font:inherit; color:inherit; }
h1,h2,h3,h4{ margin:0; font-weight:600; line-height:1.3; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3{ font-weight:700; }
p{ margin:0 0 .8em; }
small,.cap{ font-weight:300; font-size:13px; color:var(--ink-2); }
.mi{ font-family:'Material Symbols Outlined'; font-weight:400; font-style:normal; font-size:20px; line-height:1; display:inline-block; vertical-align:middle; font-feature-settings:'liga'; -webkit-font-feature-settings:'liga'; user-select:none; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.dark :focus-visible{ outline-color:var(--brand-gold-2024); }
.wrap{ max-width:1160px; margin:0 auto; padding:0 24px; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; animation:none !important; } }

/* ---------- عناوين بنمط الدليل: سطر صغير بحروف متباعدة ثم عنوان ثم خط ذهبي قصير ---------- */
.eyebrow{ font-family:var(--font-en); font-size:12.5px; letter-spacing:.32em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:10px; }
.dark .eyebrow{ color:var(--brand-gold-2024); }
/* السطر الصغير لاتيني دائماً: يُعزل اتجاهه حتى لا تنقلب الأرقام في الصفحة العربية */
.eyebrow{ direction:ltr; unicode-bidi:isolate; }
html[dir=rtl] .eyebrow{ text-align:right; }
.center .eyebrow{ text-align:center !important; }
.h-display{ font-size:clamp(30px, 4.6vw, 52px); font-weight:600; line-height:1.2; }
.h-sec{ font-size:clamp(24px, 3vw, 34px); }
.rule{ display:block; width:96px; height:2px; background:var(--brand-gold); margin:16px 0 22px; border:0; }
.center .rule{ margin-inline:auto; }
.lead{ font-size:17.5px; color:var(--ink-2); max-width:680px; }
.dark .lead{ color:var(--on-dark-2); }
.serif{ font-family:var(--font-en); }

/* ---------- الأسطح ---------- */
.dark{ background:var(--brand-black); color:var(--brand-white); }
.dark small,.dark .cap{ color:var(--on-dark-2); }
.pat{ position:relative; isolation:isolate; }
.pat::before{ content:''; position:absolute; inset:0; z-index:-1; background-repeat:repeat; background-size:280px; opacity:.2; pointer-events:none; }
.pat-p1::before{ background-image:url('assets/patterns/tmg-p1-lens-grid-black-gold-tile.png'); }
.pat-p2::before{ background-image:url('assets/patterns/tmg-p2-signature-lines-black-gold-tile.png'); opacity:.3; }
.pat-p3::before{ background-image:url('assets/patterns/tmg-p3-monogram-black-gold-tile.png'); opacity:.35; }
.pat-p4::before{ background-image:url('assets/patterns/tmg-p4-guests-black-gold-tile.png'); opacity:.16; }
.pat-p3-light::before{ background-image:url('assets/patterns/tmg-p3-monogram-white-gold-tile.png'); opacity:.45; }
.section{ padding:72px 0; }
.section + .section{ border-top:1px solid var(--line); }
.wash{ background:var(--wash); }

/* ---------- الأزرار ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 20px; border-radius:var(--radius); border:1.5px solid transparent; font-weight:600; font-size:15px; text-decoration:none; cursor:pointer; transition:background .15s, color .15s, border-color .15s; white-space:nowrap; }
.btn .mi{ font-size:19px; }
.btn-black{ background:var(--brand-black); color:var(--brand-white); }
.btn-black:hover{ background:color-mix(in srgb, var(--brand-black) 82%, var(--brand-white)); }
.btn-gold{ background:var(--brand-gold-2024); color:var(--brand-black); }
.btn-gold:hover{ background:var(--brand-gold); }
.btn-line{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-line:hover{ border-color:var(--brand-black); }
.dark .btn-line{ color:var(--brand-white); border-color:var(--on-dark-line); }
.dark .btn-line:hover{ border-color:var(--brand-white); }
.btn-text{ background:none; border:0; color:var(--accent); padding:6px 4px; min-height:auto; text-decoration:underline; text-underline-offset:4px; }
.dark .btn-text{ color:var(--brand-gold-2024); }
.btn-sm{ min-height:36px; padding:6px 14px; font-size:13.5px; }
.btn-block{ width:100%; }
.btn[disabled],.btn.is-disabled{ opacity:.4; cursor:not-allowed; }
.btn-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

/* ---------- حالات بلا ألوان جديدة: تعبئة سوداء، إطار ذهبي، تعبئة ذهبية، رمادي من الأسود ---------- */
.st{ display:inline-flex; align-items:center; gap:5px; padding:2px 10px 3px; border-radius:2px; font-size:12.5px; font-weight:600; line-height:1.6; white-space:nowrap; border:1px solid var(--line-strong); color:var(--ink); background:var(--brand-white); }
.st .mi{ font-size:15px; }
.st-ok{ background:var(--brand-black); color:var(--brand-white); border-color:var(--brand-black); }
.st-wait{ border-color:var(--brand-gold); color:var(--accent); background:var(--wash-gold); }
.st-alert{ background:var(--brand-gold-2024); border-color:var(--brand-gold-2024); color:var(--brand-black); }
.st-muted{ background:var(--wash); color:var(--ink-2); border-color:var(--line); }
.st-off{ color:var(--ink-3); border-style:dashed; text-decoration:line-through; text-decoration-color:var(--ink-3); }
.dark .st{ background:transparent; color:var(--brand-white); border-color:var(--on-dark-line); }

/* ---------- البطاقات والجداول ---------- */
.card{ background:var(--brand-white); border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.card h3{ font-size:18px; }
.card-gold{ border-top:3px solid var(--brand-gold); }
.grid{ display:grid; gap:18px; }
.g2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.g3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.g4{ grid-template-columns:repeat(4, minmax(0,1fr)); }
@media (max-width:900px){ .g3,.g4{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:620px){ .g2,.g3,.g4{ grid-template-columns:minmax(0,1fr); } }
.kv{ display:grid; grid-template-columns:minmax(120px, 38%) 1fr; gap:6px 16px; margin:0; }
.kv dt{ color:var(--ink-2); font-size:14px; }
.kv dd{ margin:0; font-weight:600; overflow-wrap:anywhere; }
.tbl-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:var(--radius); }
table.tbl{ width:100%; border-collapse:collapse; font-size:14px; min-width:640px; }
.tbl th{ text-align:start; font-weight:600; font-size:12.5px; color:var(--ink-2); padding:10px 12px; background:var(--wash); border-bottom:1px solid var(--line); white-space:nowrap; }
.tbl td{ padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.tbl tr:last-child td{ border-bottom:0; }
.tbl tr.row-link{ cursor:pointer; }
.tbl tr.row-link:hover td{ background:var(--wash); }
.num{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.muted{ color:var(--ink-2); }
.tiny{ font-size:12.5px; color:var(--ink-2); font-weight:300; }
.divider{ height:1px; background:var(--line); margin:18px 0; border:0; }
.stack > * + *{ margin-top:14px; }
.flex{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.between{ justify-content:space-between; }
.empty{ padding:28px; text-align:center; color:var(--ink-2); border:1px dashed var(--line-strong); border-radius:var(--radius); }

/* تنبيه ثابت ومكان محجوز لمدخل ناقص */
.note{ display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:var(--radius); border:1px solid var(--line); background:var(--wash); font-size:14.5px; }
.note .mi{ color:var(--accent); margin-top:2px; }
.note-gold{ border-color:var(--brand-gold); background:var(--wash-gold); }
.note-strong{ background:var(--brand-black); color:var(--brand-white); border-color:var(--brand-black); }
.note-strong .mi{ color:var(--brand-gold-2024); }
.placeholder{ border:1.5px dashed var(--brand-gold); background:var(--wash-gold); padding:14px 16px; border-radius:var(--radius); font-size:14px; }
.placeholder b{ color:var(--accent); }
.dark .placeholder{ background:transparent; color:var(--on-dark-2); }
.dark .placeholder b{ color:var(--brand-gold-2024); }

/* ---------- النماذج ---------- */
.field{ display:flex; flex-direction:column; gap:6px; }
.field > label,.lbl{ font-weight:600; font-size:14px; }
.field .hint{ font-size:12.5px; color:var(--ink-2); font-weight:300; }
.input, select.input, textarea.input{ width:100%; min-height:44px; padding:9px 12px; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--brand-white); }
textarea.input{ min-height:96px; resize:vertical; }
.input:focus{ outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); }
.input.err{ border-color:var(--brand-black); border-width:2px; }
.err-msg{ font-size:13px; font-weight:600; display:flex; gap:6px; align-items:center; }
.err-msg .mi{ font-size:17px; color:var(--accent); }
.choice{ display:flex; gap:10px; align-items:flex-start; padding:14px; border:1px solid var(--line-strong); border-radius:var(--radius); cursor:pointer; background:var(--brand-white); }
.choice:has(input:checked){ border-color:var(--brand-black); box-shadow:inset 0 0 0 1px var(--brand-black); }
.choice input{ margin-top:5px; accent-color:var(--brand-black); }
.checks{ display:flex; flex-wrap:wrap; gap:8px; }
.check{ display:inline-flex; gap:8px; align-items:center; padding:7px 12px; border:1px solid var(--line-strong); border-radius:var(--radius); cursor:pointer; font-size:14px; }
.check:has(input:checked){ border-color:var(--brand-black); background:var(--wash); }
.check input{ accent-color:var(--brand-black); }
input[type=checkbox],input[type=radio]{ accent-color:var(--brand-black); width:17px; height:17px; }
.file-pick{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.file-pick .fname{ font-size:13px; color:var(--ink-2); }

/* ---------- شريط المراجعة (أداة مراجعة فقط، ليس جزءاً من الواجهة النهائية) ---------- */
.review-bar{ position:sticky; top:0; z-index:60; background:var(--brand-black); color:var(--brand-white); border-bottom:2px solid var(--brand-gold); font-size:13px; }
.review-bar .wrap{ display:flex; align-items:center; gap:10px; min-height:44px; flex-wrap:wrap; padding-block:6px; max-width:none; }
.review-bar .tag{ font-family:var(--font-en); letter-spacing:.24em; text-transform:uppercase; color:var(--brand-gold-2024); font-size:11px; }
.review-bar .roles{ display:flex; gap:4px; flex-wrap:wrap; }
.review-bar button{ background:transparent; border:1px solid var(--on-dark-line); color:var(--brand-white); padding:3px 12px; border-radius:2px; cursor:pointer; font-size:13px; min-height:30px; }
.review-bar button[aria-pressed=true]{ background:var(--brand-gold-2024); color:var(--brand-black); border-color:var(--brand-gold-2024); font-weight:600; }
.review-bar select{ background:var(--brand-black); color:var(--brand-white); border:1px solid var(--on-dark-line); border-radius:2px; min-height:30px; font-size:13px; }
.review-bar .spacer{ flex:1; }

/* ---------- رأس موقع TMG ---------- */
.site-head{ background:var(--brand-black); color:var(--brand-white); position:sticky; top:44px; z-index:50; border-bottom:1px solid var(--on-dark-line); }
.site-head .wrap{ display:flex; align-items:center; gap:20px; min-height:76px; }
.brand-link{ display:inline-flex; padding:8px 0; flex:none; }
.brand-link img{ height:46px; width:auto; display:block; }
.site-nav{ display:flex; gap:4px; flex:1; flex-wrap:wrap; }
.site-nav a{ text-decoration:none; padding:8px 10px; color:var(--on-dark-2); font-size:14.5px; border-bottom:2px solid transparent; }
.site-nav a:hover,.site-nav a[aria-current=page]{ color:var(--brand-white); border-bottom-color:var(--brand-gold); }
.head-actions{ display:flex; gap:8px; align-items:center; }
.lang-btn{ background:none; border:1px solid var(--on-dark-line); color:var(--brand-white); border-radius:2px; min-height:36px; padding:0 12px; cursor:pointer; font-family:var(--font-en); }
.menu-btn{ display:none; }
@media (max-width:1020px){
  .site-nav{ display:none; position:absolute; inset-inline:0; top:100%; background:var(--brand-black); flex-direction:column; padding:8px 24px 18px; border-bottom:2px solid var(--brand-gold); }
  .site-nav.open{ display:flex; }
  .menu-btn{ display:inline-flex; }
  .head-actions .btn-gold{ display:none; }
}

/* ---------- الواجهة الأولى ---------- */
.hero{ padding:96px 0 88px; }
.hero .h-display{ max-width:780px; }
.hero .btn-row{ margin-top:28px; }
.page-hero{ padding:64px 0 54px; }
.video-slot{ aspect-ratio:16/9; border:1px solid var(--on-dark-line); display:grid; place-items:center; text-align:center; padding:20px; color:var(--on-dark-2); background:var(--brand-black); }
.video-slot .mi{ font-size:48px; color:var(--brand-gold-2024); }
.steps-line{ counter-reset:s; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:0; }
.steps-line li{ list-style:none; padding:0 18px 0 0; border-inline-start:1px solid var(--line); padding-inline:18px; }
.steps-line li::before{ counter-increment:s; content:counter(s, decimal-leading-zero); font-family:var(--font-en); color:var(--accent); letter-spacing:.2em; display:block; margin-bottom:6px; }
@media (max-width:820px){ .steps-line{ grid-template-columns:1fr 1fr; row-gap:24px; } }
@media (max-width:520px){ .steps-line{ grid-template-columns:1fr; } }
.plan{ display:flex; flex-direction:column; gap:12px; }
.plan .price{ font-size:34px; font-weight:700; line-height:1.1; }
.plan .price small{ font-size:14px; }
.plan ul{ margin:0; padding-inline-start:18px; color:var(--ink-2); }
.plan.featured{ border:1.5px solid var(--brand-black); }
.faq details{ border-bottom:1px solid var(--line); padding:14px 0; }
.faq summary{ cursor:pointer; font-weight:600; list-style:none; display:flex; justify-content:space-between; gap:12px; }
.faq summary::after{ content:'+'; color:var(--accent); font-size:20px; line-height:1; }
.faq details[open] summary::after{ content:'–'; }
.faq details p{ margin-top:10px; color:var(--ink-2); }

.site-foot{ background:var(--brand-black); color:var(--on-dark-2); padding:48px 0 28px; font-size:14px; }
.site-foot .cols{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:28px; }
.site-foot a{ text-decoration:none; color:var(--on-dark-2); display:block; padding:3px 0; }
.site-foot a:hover{ color:var(--brand-white); }
.site-foot .base{ margin-top:28px; padding-top:18px; border-top:1px solid var(--on-dark-line); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-family:var(--font-en); letter-spacing:.18em; font-size:11.5px; text-transform:uppercase; }
@media (max-width:760px){ .site-foot .cols{ grid-template-columns:1fr; } }

/* ---------- مسار الطلب ---------- */
.wizard{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; align-items:start; }
@media (max-width:980px){ .wizard{ grid-template-columns:minmax(0,1fr); } .summary{ position:static; } }
.stepper{ display:flex; gap:0; margin-bottom:26px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.stepper a{ flex:1; display:flex; gap:8px; align-items:center; padding:10px 12px; text-decoration:none; font-size:14px; color:var(--ink-2); border-inline-end:1px solid var(--line); min-width:0; }
.stepper a:last-child{ border-inline-end:0; }
.stepper b{ font-family:var(--font-en); color:var(--accent); }
.stepper a[aria-current=step]{ background:var(--brand-black); color:var(--brand-white); }
.stepper a[aria-current=step] b{ color:var(--brand-gold-2024); }
.stepper a.done{ color:var(--ink); }
@media (max-width:620px){ .stepper span.lbl-txt{ display:none; } .stepper a{ justify-content:center; } }
.summary{ position:sticky; top:140px; }
.sum-line{ display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--line); font-size:14px; }
.sum-line.total{ border-bottom:0; font-size:18px; font-weight:700; padding-top:12px; }
.fac-card{ border:1px solid var(--line-strong); border-radius:var(--radius); }
.fac-card > header{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; background:var(--wash); border-bottom:1px solid var(--line); }
.fac-card > .body{ padding:18px 16px; }

/* ---------- واجهات الحساب والفريق والمعتمِد ---------- */
.shell{ display:grid; grid-template-columns:264px minmax(0,1fr); min-height:calc(100vh - 44px); }
.side{ background:var(--brand-black); color:var(--brand-white); padding:22px 14px; position:sticky; top:44px; height:calc(100vh - 44px); overflow-y:auto; }
.side .brand-link{ padding:6px 10px 18px; }
.side .brand-link img{ height:48px; }
.side .who{ padding:12px 10px; border-top:1px solid var(--on-dark-line); border-bottom:1px solid var(--on-dark-line); margin-bottom:12px; font-size:13.5px; }
.side .who b{ display:block; font-weight:600; }
.side nav a{ display:flex; gap:10px; align-items:center; padding:9px 10px; border-radius:2px; text-decoration:none; color:var(--on-dark-2); font-size:14.5px; border-inline-start:2px solid transparent; }
.side nav a:hover{ color:var(--brand-white); }
.side nav a[aria-current=page]{ color:var(--brand-white); background:color-mix(in srgb, var(--brand-white) 8%, transparent); border-inline-start-color:var(--brand-gold-2024); }
.side nav a .mi{ font-size:19px; }
.side nav .badge{ margin-inline-start:auto; background:var(--brand-gold-2024); color:var(--brand-black); font-size:11.5px; font-weight:700; border-radius:2px; padding:0 6px; }
.side .grp{ font-family:var(--font-en); letter-spacing:.24em; font-size:10.5px; text-transform:uppercase; color:var(--brand-gold-2024); padding:14px 10px 6px; }
.main{ padding:28px 32px 64px; min-width:0; }
.topline{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.topline h1{ font-size:26px; }
.kpi{ padding:18px; border:1px solid var(--line); border-radius:var(--radius); }
.kpi b{ display:block; font-size:28px; font-weight:700; line-height:1.2; }
.kpi span{ font-size:13.5px; color:var(--ink-2); }
.tabs{ display:flex; gap:0; border-bottom:1px solid var(--line); margin-bottom:18px; overflow-x:auto; }
.tabs button{ background:none; border:0; border-bottom:2px solid transparent; padding:10px 14px; cursor:pointer; white-space:nowrap; color:var(--ink-2); font-size:14.5px; }
.tabs button[aria-selected=true]{ color:var(--ink); border-bottom-color:var(--brand-gold); font-weight:600; }
.track{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:4px; margin-top:12px; }
.track div{ font-size:12px; padding-top:8px; border-top:3px solid var(--line); color:var(--ink-3); line-height:1.4; }
.track div.done{ border-top-color:var(--brand-black); color:var(--ink-2); }
.track div.now{ border-top-color:var(--brand-gold-2024); color:var(--ink); font-weight:600; }
.locked{ text-align:center; padding:28px 18px; border:1.5px dashed var(--line-strong); border-radius:var(--radius); background:var(--wash); }
.locked .mi{ font-size:40px; color:var(--accent); }
.chat{ display:flex; flex-direction:column; gap:10px; }
.bubble{ max-width:78%; padding:10px 14px; border-radius:var(--radius); border:1px solid var(--line); background:var(--brand-white); }
.bubble.mine{ align-self:flex-end; background:var(--brand-black); color:var(--brand-white); border-color:var(--brand-black); }
.bubble.mine .tiny{ color:var(--on-dark-2); }
.stars{ display:flex; gap:6px; }
.stars label{ display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line-strong); border-radius:var(--radius); cursor:pointer; font-weight:700; }
.stars label:has(input:checked){ background:var(--brand-black); color:var(--brand-white); border-color:var(--brand-black); }
.stars input{ position:absolute; opacity:0; width:1px; height:1px; }
.drawer-veil{ position:fixed; inset:0; background:var(--veil); z-index:80; display:flex; justify-content:flex-end; }
.drawer{ background:var(--brand-white); width:min(560px, 100%); height:100%; overflow-y:auto; padding:24px; border-inline-start:3px solid var(--brand-gold); }
html[dir=rtl] .drawer-veil{ justify-content:flex-start; }
.drawer .close{ float:inline-end; }
@media (max-width:900px){
  .shell{ grid-template-columns:minmax(0,1fr); }
  .side{ position:static; height:auto; padding:12px 14px; }
  .side .who,.side .grp{ display:none; }
  .side nav{ display:flex; overflow-x:auto; gap:2px; }
  .side nav a{ white-space:nowrap; border-inline-start:0; border-bottom:2px solid transparent; }
  .side nav a[aria-current=page]{ border-bottom-color:var(--brand-gold-2024); }
  .main{ padding:20px 16px 48px; }
}

/* ---------- بوابة المفتش (جوال) ---------- */
.mobile{ max-width:460px; margin:0 auto; min-height:calc(100vh - 44px); border-inline:1px solid var(--line); display:flex; flex-direction:column; background:var(--brand-white); }
.m-top{ background:var(--brand-black); color:var(--brand-white); padding:10px 16px; display:flex; align-items:center; gap:10px; position:sticky; top:44px; z-index:20; }
.m-top img{ height:34px; width:auto; }
.m-top h1{ font-size:16.5px; flex:1; }
.m-top .back{ color:var(--brand-white); text-decoration:none; display:inline-flex; }
.m-body{ padding:16px; flex:1; padding-bottom:90px; }
.m-nav{ position:sticky; bottom:0; display:grid; grid-template-columns:repeat(4, 1fr); background:var(--brand-black); border-top:2px solid var(--brand-gold); }
.m-nav a{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 4px 10px; color:var(--on-dark-2); text-decoration:none; font-size:12px; }
.m-nav a[aria-current=page]{ color:var(--brand-gold-2024); }
.task{ display:block; text-decoration:none; padding:14px; border:1px solid var(--line); border-radius:var(--radius); }
.task + .task{ margin-top:10px; }
.cond{ display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--line); font-size:14.5px; }
.cond .mi{ font-size:20px; }
.cond.ok .mi{ color:var(--brand-black); }
.cond.no .mi{ color:var(--accent); }

/* ---------- صفحة الدفع التجريبية ---------- */
.paybox{ max-width:520px; margin:40px auto; }
.pay-method{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }

/* على الجوال يلتف شريط المراجعة أكثر من سطر، فلا يبقى ثابتاً */
@media (max-width:760px){
  .review-bar{ position:static; }
  .site-head,.m-top{ top:0; }
  .main .grid[style*="grid-template-columns"]{ grid-template-columns:minmax(0,1fr) !important; }
}

/* ---------- تنبيه عابر ---------- */
.toast{ position:fixed; bottom:22px; inset-inline-start:50%; transform:translateX(-50%); z-index:100; background:var(--brand-black); color:var(--brand-white); padding:12px 18px; border-radius:var(--radius); border-inline-start:3px solid var(--brand-gold-2024); font-size:14.5px; max-width:min(560px, calc(100vw - 32px)); }
html[dir=rtl] .toast{ transform:translateX(50%); }

/* ---------- الوضع الحي: لا شريط مراجعة، فلا إزاحة للرؤوس الثابتة ---------- */
body.live .site-head, body.live .m-top { top:0; }
body.live .side { top:0; height:100vh; }
body.live .shell, body.live .mobile { min-height:100vh; }
.acct{ display:flex; align-items:center; gap:8px; }
.sig-pad{ width:100%; height:150px; border:1px dashed var(--line-strong); border-radius:var(--radius); touch-action:none; background:var(--brand-white); }

/* الأدلة: الطباعة إلى PDF تُظهر نص الدليل وحده */
.guide code{ direction:ltr; unicode-bidi:isolate; font-size:.9em; }
@media print{
  body *{ visibility:hidden; }
  .guide, .guide *{ visibility:visible; }
  .guide{ position:absolute; inset:0 auto auto 0; width:100%; padding:0 12mm; }
  .no-print{ display:none !important; }
}

/* المرحلة الثانية: شهادة الموظف النجم (أسود وذهبي #BF9B30، والذهبي نصاً على الأسود فقط) وموضع نموذج ميسر */
.cert{ background:var(--brand-black); color:var(--brand-white); border-radius:var(--radius); padding:14px; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.cert-in{ border:1.5px solid var(--brand-gold); outline:1px solid var(--brand-gold); outline-offset:-8px; padding:44px 28px; text-align:center; display:grid; gap:10px; justify-items:center; }
.cert h2{ color:var(--brand-gold); font-size:32px; font-weight:700; margin:4px 0; }
.cert p{ margin:0; color:var(--on-dark-2); }
.cert .cert-name{ font-size:30px; font-weight:700; color:var(--brand-white); border-bottom:1px solid var(--brand-gold); padding:0 24px 8px; }
.cert .cert-lead{ max-width:560px; }
.cert-foot{ display:flex; gap:22px; flex-wrap:wrap; justify-content:center; margin-top:18px; font-size:13px; color:var(--brand-gold-2024); }
.moyasar-slot{ display:grid; justify-items:center; gap:6px; padding:34px 16px; border:1.5px dashed var(--brand-gold); border-radius:var(--radius); background:var(--wash-gold); text-align:center; }
.moyasar-slot .mi{ font-size:30px; color:var(--accent); }
