/* =====================================================================
   ZMZM Technology — corporate site design system (dark / amber theme)
   Near-black ground, amber accent, Poppins + Roboto Mono, metallic display.
   Direction-agnostic (logical properties). Bilingual AR (RTL) + EN (LTR).
   ===================================================================== */

:root {
  /* Core dark palette */
  --bg:         #040410;   /* page background (near-black) */
  --bg-2:       #0a0a1c;   /* alternating section band */
  --surface:    #1a1a34;   /* cards / panels */
  --surface-2:  #12122a;   /* inputs / subtle panels */
  --text:       #EDEEF3;   /* body text */
  --muted:      #9EA0B4;   /* secondary text */
  --ink:        #ffffff;   /* strong / heading text */
  --ink-2:      #12122a;   /* dark gradient partner */
  --ink-3:      #1a1a34;

  /* Accent (amber / bronze) — legacy azure/gold aliases remap here so
     existing var() usages across views recolor automatically. */
  --amber:      #CC7B1D;
  --amber-2:    #E19A45;
  --amber-050:  rgba(204,123,29,.12);
  --azure:      #CC7B1D;   /* alias */
  --azure-600:  #E19A45;   /* alias */
  --azure-050:  rgba(204,123,29,.12);
  --gold:       #CC7B1D;   /* alias */
  --gold-050:   rgba(204,123,29,.12);

  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(255,255,255,.17);

  /* Semantic */
  --success:    #35C08A;
  --warning:    #E0A64A;

  /* Shape & depth */
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 12px 34px rgba(0,0,0,.5);
  --shadow-lg:  0 26px 60px rgba(0,0,0,.6);

  /* Rhythm */
  --container:  1160px;
  --gutter:     24px;
  --section-y:  96px;

  --font-body:  'Roboto Mono', 'Tajawal', ui-monospace, 'Segoe UI', monospace;
  --font-head:  'Poppins', 'Cairo', system-ui, sans-serif;

  /* ════════════════════════════════════════════════════════════════════════
     هوية زمزم على ZT — البديل (ج) المعتمد 2026-08-04
     ────────────────────────────────────────────────────────────────────────
     «لون موحّد مع البرنامج + لغة تسويقية حرّة»: الأزرق المؤسّسي والذهب نفساهما
     المعتمدان في ZG، والكحليّ ليس لوناً ثالثاً بل **الأزرق نفسه مُعتِماً**.

     ⚠ هذه رموز **جديدة الأسماء لا تُبدّل أي متغيّر قائم** ⇒ الصفحات الأخرى
       لم تتغيّر بحرف. تُستعمل عبر الأصناف المُنتقاة (.zt-light) وحدها،
       فتُرحَّل الصفحات واحدةً واحدة كما فعلنا في ZG.
     ════════════════════════════════════════════════════════════════════════ */
  --zt-navy:      #0B2440;   /* لوح الـHero — الأزرق مُعتِماً */
  --zt-blue:      #0F6CBD;   /* الأزرق المؤسّسي (نفسه في ZG) */
  --zt-blue-700:  #0B5296;
  --zt-blue-050:  #EAF2FB;
  --zt-gold:      #C9A227;   /* الذهب المعتمد (نفسه في ZG) */
  --zt-gold-rgb:  201, 162, 39;
  --zt-page:      #F6F7F9;
  --zt-card:      #FFFFFF;
  --zt-line:      #E5E7EB;
  --zt-ink:       #111827;
  --zt-muted:     #6B7280;
  --zt-ok:        #1a7f47;
  --zt-warn-bg:   #FEF6E7;
  --zt-warn-ink:  #8A5A00;
}

/* ════════════════════════════════════════════════════════════════════════════
   منطقة فاتحة مُنتقاة — تُطبَّق بإضافة الصنف على حاوية الصفحة وحدها
   (أول مستعمِل: صفحة تعذّر الدفع). لا شيء هنا يمسّ الصفحات غير الموسومة.
   ════════════════════════════════════════════════════════════════════════════ */
.zt-light{
  background: var(--zt-page); color: var(--zt-ink);
  min-height: calc(100vh - 74px);
  display: grid; place-items: center; padding: 40px 20px;
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', system-ui, sans-serif;
}
.zt-light *{ box-sizing: border-box; }
.zt-card{
  width: 100%; max-width: 520px; background: var(--zt-card);
  border: 1px solid var(--zt-line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17,24,39,.06); overflow: hidden;
}
.zt-card__top{ background: var(--zt-navy); color:#fff; padding: 18px 22px; }
.zt-card__top .lbl{ font-size:.68rem; letter-spacing:.06em; color: var(--zt-gold); font-weight:700; }
.zt-card__top h1{ font-size:1.2rem; margin:.35rem 0 0; color:#fff; line-height:1.4; }
.zt-card__body{ padding: 22px; }
.zt-lede{ font-size:.86rem; color: var(--zt-muted); margin:0 0 16px; line-height:1.7; }
.zt-assure{
  display:flex; gap:9px; align-items:flex-start; background: var(--zt-blue-050);
  border-radius:10px; padding:11px 13px; font-size:.8rem; color:#0B5296; margin-bottom:16px;
}
.zt-assure b{ color:#08386a; }
.zt-order{
  border:1px solid var(--zt-line); border-radius:12px; padding:13px 15px; margin-bottom:16px;
}
.zt-order .row{ display:flex; justify-content:space-between; gap:12px; font-size:.83rem; padding:4px 0; }
.zt-order .row span:first-child{ color: var(--zt-muted); }
.zt-order .row b{ font-variant-numeric: tabular-nums; }
.zt-order .hold{
  margin-top:9px; padding-top:9px; border-top:1px dashed var(--zt-line);
  font-size:.74rem; color: var(--zt-warn-ink); background:transparent;
}
.zt-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.zt-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:.62rem 1.15rem; border-radius:9px; font-size:.85rem; font-weight:700;
  border:1px solid transparent; cursor:pointer; text-decoration:none;
  font-family:inherit; transition: filter .15s ease, background .15s ease;
}
.zt-btn--primary{ background: var(--zt-blue); color:#fff; flex:1 1 auto; }
.zt-btn--primary:hover{ background: var(--zt-blue-700); color:#fff; }
.zt-btn--quiet{ background:#fff; color: var(--zt-ink); border-color: var(--zt-line); }
.zt-btn--quiet:hover{ border-color:#cfd4da; color: var(--zt-ink); }
.zt-help{
  margin-top:16px; padding-top:14px; border-top:1px solid var(--zt-line);
  font-size:.78rem; color: var(--zt-muted); text-align:center;
}
.zt-help a{ color: var(--zt-blue); font-weight:600; text-decoration:none; }
.zt-help a:hover{ text-decoration:underline; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); letter-spacing: -.4px; }
h3 { font-size: 1.28rem; }

/* Metallic silver display headings */
h1, h2 {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #8f909c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

p { margin: 0 0 1rem; }

a { color: var(--amber); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amber-2); }

img { max-width: 100%; display: block;
  -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none;
  -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
ul { margin: 0; padding: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 60px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--ink { background: #0a0a1c; color: var(--text); }
.section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section--ink .eyebrow { color: var(--amber-2); }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }
.section--ink .section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  font-size: .82rem; line-height: 1; padding: 15px 26px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: #040410; border-color: #fff; }
.btn-primary:hover { background: #fff; color: #040410; box-shadow: 0 12px 30px rgba(255,255,255,.16); }
.btn-outline { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber-2); }
.btn-ghost-light { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-ghost-light:hover { border-color: var(--amber); color: var(--amber-2); }
.btn-gold { background: var(--amber); color: #0a0a12; border-color: var(--amber); }
.btn-gold:hover { background: var(--amber-2); color: #0a0a12; box-shadow: 0 12px 30px rgba(204,123,29,.3); }
.btn-lg { padding: 16px 30px; font-size: .86rem; }
.btn-sm { padding: 11px 18px; font-size: .76rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,4,16,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 1.24rem; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand .mark { width: 42px; height: 42px; border-radius: 12px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 14px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: 9px;
  color: #D7D9E6; font-family: var(--font-body); font-weight: 400; font-size: .9rem;
}
.nav-links a:hover { background: rgba(255,255,255,.06); color: #fff; }

.nav-tail { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: .82rem; color: #D7D9E6; background: transparent;
}
.lang-toggle:hover { border-color: var(--amber); color: var(--amber-2); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1000px 520px at 78% -10%, rgba(204,123,29,.16) 0, transparent 60%), var(--bg);
  color: var(--text); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 500px at 75% 0, #000 0, transparent 70%);
  mask-image: radial-gradient(900px 500px at 75% 0, #000 0, transparent 70%);
  opacity: .7;
}
.hero__inner { position: relative; padding-block: clamp(72px, 10vw, 124px); max-width: 780px; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { font-family: var(--font-body); font-size: 1.06rem; color: #C7C9D8; margin-bottom: 34px; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--muted); font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { flex: none; color: var(--amber-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(204,123,29,.4); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--amber-050); color: var(--amber-2); border: 1px solid rgba(204,123,29,.28); margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; color: #fff; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--amber); }
.card .card-link .arw { transition: transform .15s ease; }
.card:hover .card-link .arw { transform: translateX(4px); }
[dir="rtl"] .card:hover .card-link .arw { transform: translateX(-4px); }

/* service card top accent */
.card--accent { position: relative; overflow: hidden; }
.card--accent::before { content:""; position:absolute; inset-inline:0; top:0; height:3px; background: linear-gradient(90deg, var(--amber), var(--amber-2)); opacity:0; transition:opacity .16s ease; }
.card--accent:hover::before { opacity:1; }

/* product card */
.product-card { display: flex; flex-direction: column; }
.product-card .tag { display:inline-block; align-self:flex-start; font-family:var(--font-body); font-weight:500; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--amber-2); background:var(--amber-050); border:1px solid rgba(204,123,29,.25); padding:5px 11px; border-radius:999px; margin-bottom:14px; }
.product-card .price { margin-top:auto; padding-top:18px; color:var(--muted); font-size:.9rem; }
.product-card .price b { color: #fff; font-size: 1.1rem; font-family: var(--font-head); }

/* feature list */
.feature { display:flex; gap:14px; align-items:flex-start; }
.feature .fico { flex:none; width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background:var(--amber-050); color:var(--amber-2); border:1px solid rgba(204,123,29,.24); }
.feature h4 { margin:2px 0 6px; font-family:var(--font-head); font-size:1.05rem; color:#fff; }
.feature p { color:var(--muted); font-size:.94rem; margin:0; }

/* ---------- Partner strip ---------- */
.partners { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:14px 36px; }
.partner-chip {
  font-family: var(--font-body); font-weight:500; letter-spacing:.06em; text-transform:uppercase;
  color:#B9BBCB; font-size:.92rem; transition:.15s; display:inline-flex; align-items:center; gap:9px;
}
.partner-chip:hover { color: #fff; }
.partner-chip .dot { width:7px; height:7px; border-radius:50%; background: var(--amber); }

/* ---------- Stats ---------- */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat { text-align:center; }
.stat .num { font-family:var(--font-head); font-weight:600; font-size:2.7rem; line-height:1;
  background:linear-gradient(180deg,#fff,#b98a4e); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stat .lbl { color:var(--muted); margin-top:10px; font-size:.8rem; font-family:var(--font-body); text-transform:uppercase; letter-spacing:.07em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(120% 150% at 50% 0, rgba(204,123,29,.16), transparent 60%), #0a0a1c;
  border: 1px solid var(--line); color:#fff; border-radius: 24px;
  padding: 56px 48px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2 { margin:0 0 8px; }
.cta-band p { color: #C7C9D8; margin:0; font-family: var(--font-body); }

/* ---------- Page hero ---------- */
.page-hero { background: radial-gradient(720px 320px at 80% -10%, rgba(204,123,29,.13), transparent 65%), var(--bg); color:var(--text); padding-block: 78px 66px; position:relative; overflow:hidden; border-bottom:1px solid var(--line); }
.page-hero::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:44px 44px; -webkit-mask-image:radial-gradient(700px 300px at 80% 0,#000,transparent 70%); mask-image:radial-gradient(700px 300px at 80% 0,#000,transparent 70%); }
.page-hero .container { position:relative; }
.page-hero h1 { margin-bottom:12px; }
.page-hero p { color:var(--muted); font-family:var(--font-body); font-size:1.02rem; margin:0; max-width:640px; }
.crumb { font-family:var(--font-body); font-size:.74rem; text-transform:uppercase; letter-spacing:.1em; color:#7d7f95; margin-bottom:16px; }
.crumb a { color:var(--amber-2); }

/* ---------- Prose (legal / article) ---------- */
.prose { max-width: 820px; color: var(--text); }
.prose h2 { margin-top: 2em; font-size:1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-inline-start: 1.3em; list-style: disc; margin-bottom:1rem; }
.prose li { margin-bottom:.4em; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display:block; font-family:var(--font-head); font-weight:600; font-size:.92rem; margin-bottom:7px; color:#D7D9E6; }
.form-control {
  width:100%; padding:13px 15px; font:inherit; color:var(--text);
  background:var(--surface-2); border:1px solid var(--line-2); border-radius:var(--radius-sm);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color:#6d6f86; }
.form-control:focus { outline:none; border-color:var(--amber); box-shadow:0 0 0 3px rgba(204,123,29,.18); }
textarea.form-control { min-height:130px; resize:vertical; }
.form-note { color:var(--muted); font-size:.88rem; }

/* ---------- Footer ---------- */
.site-footer { background: #06061a; color:var(--muted); padding-block: 60px 28px; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap:40px; }
.site-footer h4 { color:#fff; font-size:.82rem; margin-bottom:16px; font-family:var(--font-body); text-transform:uppercase; letter-spacing:.08em; }
.site-footer a { color:var(--muted); display:block; padding:5px 0; font-size:.92rem; }
.site-footer a:hover { color:#fff; }
.site-footer .brand { color:#fff; margin-bottom:14px; }
.site-footer .brand small { color:var(--muted); }
.footer-about { max-width: 320px; font-size:.92rem; line-height:1.8; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); margin-top:44px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color:#7E90AE; }

/* ---------- Utilities ---------- */
.text-center { text-align:center; }
.mt-0 { margin-top:0; } .mb-0 { margin-bottom:0; }
.lead { font-size:1.08rem; color:var(--muted); }
.chip-row { display:flex; flex-wrap:wrap; gap:10px; }
.chip { display:inline-flex; align-items:center; gap:7px; background:var(--amber-050); color:var(--amber-2); border:1px solid rgba(204,123,29,.25); font-weight:500; font-family:var(--font-body); text-transform:uppercase; letter-spacing:.05em; font-size:.78rem; padding:7px 14px; border-radius:999px; }
.divider-gold { width:56px; height:3px; border-radius:4px; background:var(--amber); margin:0 0 22px; }
.section-head.center .divider-gold { margin-inline:auto; }

/* image placeholders (until real imagery is supplied) */
.imgph { width:100%; border:1px dashed var(--line-2); border-radius:var(--radius); color:#6d6f86;
  background:repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 12px, rgba(255,255,255,.045) 12px 24px);
  display:grid; place-items:center; text-align:center; }
.imgph span { display:inline-flex; align-items:center; gap:9px; padding:14px; font-family:var(--font-body); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
.imgph svg { color:var(--amber-2); }
.hero-shot { width:100%; height:auto; border-radius:var(--radius); border:1px solid var(--line); box-shadow:0 24px 60px rgba(0,0,0,.5); }
/* Product screenshots gallery */
.shot-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:24px; }
.shot { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--surface); box-shadow:0 20px 50px rgba(0,0,0,.45); transition:transform .25s ease, box-shadow .25s ease; }
.shot:hover { transform:translateY(-4px); box-shadow:0 30px 70px rgba(0,0,0,.6); }
.shot img { display:block; width:100%; height:auto; }

/* ---------- Beta / preview banner ---------- */
.beta-bar {
  background: repeating-linear-gradient(45deg, rgba(204,123,29,.16) 0 14px, rgba(204,123,29,.09) 14px 28px);
  border-bottom: 1px solid rgba(204,123,29,.4);
  color: #F1C88A; font-family: var(--font-body); font-size: .76rem; letter-spacing: .04em;
  text-align: center; padding: 7px 14px;
}

/* ---------- Scroll reveal (added to elements by site.js) ---------- */
.rv { opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.rv.rv-in { opacity:1; transform:none; }
.rv.d1{transition-delay:.07s}.rv.d2{transition-delay:.14s}.rv.d3{transition-delay:.21s}.rv.d4{transition-delay:.28s}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); row-gap:34px; }
  .nav-links, .nav-tail .desktop-only { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 74px;
    background: #0a0a1c; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; }
}
@media (max-width: 760px) {
  :root { --section-y: 64px; }
  .nav-links, .nav-tail .desktop-only { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 74px;
    background: #0a0a1c; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; text-align:center; justify-content:center; }
  .footer-grid { grid-template-columns: 1fr; gap:28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity:1 !important; transform:none !important; }
}

/* =====================================================================
   Auth pages + customer portal
   ===================================================================== */

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: .92rem; border-inline-start: 4px solid var(--line-2); background: var(--surface); color: var(--text); }
.alert-info { border-color: var(--amber); background: var(--amber-050); color: #E7CDA6; }
.alert-ok { border-color: var(--success); background: rgba(53,192,138,.12); color: #86e2ba; }
.alert-warn { border-color: var(--warning); background: rgba(224,166,74,.12); color: #ecc78e; }
.alert-bad { border-color: #E0574D; background: rgba(224,87,77,.12); color: #f2a69e; }
.alert b { font-family: var(--font-head); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 48px var(--gutter);
  background: radial-gradient(900px 500px at 100% 0, rgba(204,123,29,.12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); margin: 0; font-size: .96rem; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); font-size: .92rem; }
.otp-input { letter-spacing: .5em; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; }
.field-target { font-family: var(--font-head); font-weight: 600; color: #fff; direction: ltr; }
/* Small phones: the 300px Turnstile widget + 40px card padding overflows narrow
   viewports. Trim padding and cap the card to the viewport (no horizontal scroll). */
@media (max-width: 480px) {
  .auth-wrap { padding: 26px 12px; min-height: auto; }
  .auth-card { padding: 26px 18px; max-width: 100%; }
}

/* ---------- Portal layout ---------- */
.portal { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 74px); }
.portal-side { background: #0a0a1c; color: #B9BBCB; padding: 26px 16px; border-inline-end: 1px solid var(--line); }
.portal-side .who { padding: 8px 12px 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.portal-side .who .nm { color: #fff; font-family: var(--font-head); font-weight: 600; }
.portal-side .who .co { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.pnav { display: flex; flex-direction: column; gap: 3px; }
.pnav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; color: #B9BBCB; font-family: var(--font-body); font-weight: 400; font-size: .9rem; }
.pnav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.pnav a.active { background: var(--amber); color: #120a02; box-shadow: 0 6px 16px rgba(204,123,29,.35); }
.pnav a svg { flex: none; opacity: .9; }
.pnav .sep { height: 1px; background: var(--line); margin: 12px 6px; }
.portal-main { padding: 38px 40px; background: var(--bg); }
.portal-main .phead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.portal-main .phead h1 { font-size: 1.7rem; margin: 0; }
.portal-main .phead p { color: var(--muted); margin: 4px 0 0; }

/* ---------- Portal widgets ---------- */
.pstat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.pstat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pstat .k { color: var(--muted); font-size: .88rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pstat .v { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; color: #fff; line-height: 1; }

.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.pcard h2 { font-size: 1.15rem; margin: 0 0 16px; }

.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { text-align: start; padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ptable th { color: var(--muted); font-weight: 500; font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .mono { font-family: ui-monospace, 'Consolas', monospace; direction: ltr; }
.table-scroll { overflow-x: auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-family: var(--font-body); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.pill.ok { background: rgba(53,192,138,.14); color: #86e2ba; }
.pill.warn { background: rgba(224,166,74,.14); color: #ecc78e; }
.pill.bad { background: rgba(224,87,77,.14); color: #f2a69e; }
.pill.muted { background: rgba(255,255,255,.08); color: #B9BBCB; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .eico { width: 64px; height: 64px; border-radius: 16px; background: var(--amber-050); color: var(--amber-2); border:1px solid rgba(204,123,29,.24); display: grid; place-items: center; margin: 0 auto 16px; }

/* license card */
.lic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lic { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.lic .lic-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lic .lic-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--amber-050); color: var(--amber-2); border:1px solid rgba(204,123,29,.24); display: grid; place-items: center; }
.lic dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.lic dt { color: var(--muted); font-size: .88rem; }
.lic dd { margin: 0; font-weight: 500; text-align: end; color: var(--text); }

/* messages (tickets) */
.msg { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 14px; max-width: 80%; }
.msg .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-family: var(--font-body); }
.msg.customer { background: var(--amber-050); border:1px solid rgba(204,123,29,.2); margin-inline-start: auto; }
.msg.staff { background: rgba(255,255,255,.05); border:1px solid var(--line); margin-inline-end: auto; }

@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .portal-side { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .pnav { flex-direction: row; flex-wrap: wrap; }
  .pstat-grid { grid-template-columns: 1fr; }
  .lic-grid { grid-template-columns: 1fr; }
  .portal-main { padding: 26px 20px; }
}

/* ---------- Cookie / privacy notice ---------- */
.cookie-notice {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 200;
  max-width: 660px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  font-size: .9rem; color: var(--text);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice a { font-weight: 500; color: var(--amber-2); }
@media (max-width: 520px) { .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; } }

/* ════════════════════════════════════════════════════════════════════════════
   صفحةٌ كاملة على هوية زمزم (ج) — تُفعَّل بوسم <html class="zt-page"> وحده
   (ViewData["PageTheme"]). كل ما يلي مقيَّد بهذا الوسم، فالصفحات التي لا تحمله
   لا يمسّها حرف. أول مستعمِل: الصفحة الرئيسية.
   ════════════════════════════════════════════════════════════════════════════ */

/* ① إعادة ربط رموز القالب القديمة بلوحة (ج) — فتتحوّل كل المكوّنات دفعةً واحدة
      بدل إعادة كتابتها واحداً واحداً. */
html.zt-page {
  --bg:        var(--zt-page);
  --bg-2:      #EEF1F5;
  --surface:   var(--zt-card);
  --surface-2: #F1F3F6;
  --text:      #374151;
  --muted:     var(--zt-muted);
  --ink:       var(--zt-ink);
  --line:      var(--zt-line);
  --line-2:    #D8DCE2;

  /* الأزرق يحلّ محلّ الكهرمانيّ في كل ما هو تفاعليّ أو بنيويّ… */
  --amber:     var(--zt-blue);
  --amber-2:   var(--zt-blue-700);
  --amber-050: var(--zt-blue-050);

  /* الأخضر الفاتح صُمّم لأرضية داكنة (2.3:1 على الأبيض) — يُعتِم على الفاتح. */
  --success:   var(--zt-ok);

  --shadow-sm: 0 1px 2px rgba(17,24,39,.06);
  --shadow:    0 12px 30px rgba(17,24,39,.09);
  --shadow-lg: 0 26px 60px rgba(17,24,39,.12);

  background: var(--zt-page);
}
html.zt-page body { background: var(--zt-page); color: var(--text); }

/* ⚠ التدرّج المعدنيّ (أبيض←رماديّ) على h1/h2 يجعل العناوين غير مرئية على أرضية
     فاتحة — يُلغى هنا لا في الأصل، فيبقى كما هو في بقيّة الصفحات. */
html.zt-page h1, html.zt-page h2 {
  background: none; -webkit-text-fill-color: var(--zt-ink); color: var(--zt-ink);
}
html.zt-page h3, html.zt-page h4 { color: var(--zt-ink); }

/* …والذهب يبقى للمساتٍ زخرفية وحدها — فيظلّ النظام لونين لا ثلاثة. */
html.zt-page .eyebrow        { color: var(--zt-blue-700); }
html.zt-page .divider-gold   { background: var(--zt-gold); }
html.zt-page .partner-chip .dot { background: var(--zt-gold); }

/* ② الترويسة والتذييل: اللوح الكحليّ — وروابطهما فاتحة كما هي أصلاً. */
html.zt-page .site-header { background: rgba(11,36,64,.94); border-bottom-color: rgba(255,255,255,.10); }
html.zt-page .nav-links.open { background: var(--zt-navy); }
html.zt-page .site-footer { background: var(--zt-navy); border-top-color: rgba(255,255,255,.10); color: #A9C3DD; }
html.zt-page .site-footer a { color: #A9C3DD; }
html.zt-page .site-footer a:hover { color: #fff; }
html.zt-page .site-footer .brand small { color: #A9C3DD; }
html.zt-page .site-footer h4 { color: #fff; }   /* وإلا ورثت حبر الجسم الداكن فوق الكحليّ */
html.zt-page .site-footer .brand { color: #fff; }  /* الاسم رابطٌ أيضاً — يستعيد بياضه */
html.zt-page .partner-chip { color: var(--zt-muted); }
html.zt-page .partner-chip:hover { color: var(--zt-ink); }
html.zt-page .footer-bottom { border-top-color: rgba(255,255,255,.12); }

/* شريط النسخة التجريبية: تحذير هادئ بدل التخطيط الكهرمانيّ. */
html.zt-page .beta-bar { background: var(--zt-warn-bg); border-bottom-color: #F0D9AE; color: var(--zt-warn-ink); }

/* ③ الأزرار: أزرار الترويسة تبقى فوق الكحليّ كما هي، وأزرار الجسم تتبع الأزرق. */
html.zt-page main .btn-primary { background: var(--zt-blue); color: #fff; border-color: var(--zt-blue); }
html.zt-page main .btn-primary:hover { background: var(--zt-blue-700); color: #fff; box-shadow: 0 12px 26px rgba(15,108,189,.28); }
html.zt-page main .btn-outline,
html.zt-page main .btn-ghost-light { color: var(--zt-ink); border-color: var(--line-2); }
html.zt-page main .btn-outline:hover,
html.zt-page main .btn-ghost-light:hover { border-color: var(--zt-blue); color: var(--zt-blue); }
html.zt-page .btn-gold { background: var(--zt-gold); color: #1a1200; border-color: var(--zt-gold); }
html.zt-page .btn-gold:hover { background: #DDB43A; color: #1a1200; box-shadow: 0 12px 30px rgba(201,162,39,.34); }

/* ④ البطاقات والمؤشّرات على أرضية فاتحة. */
html.zt-page .card { box-shadow: 0 1px 2px rgba(17,24,39,.04); }
html.zt-page .card:hover { border-color: rgba(15,108,189,.45); box-shadow: var(--shadow); }
html.zt-page .card .ico { border-color: rgba(15,108,189,.22); }
html.zt-page .card h3 { color: var(--zt-ink); }
html.zt-page .card--accent::before { background: linear-gradient(90deg, var(--zt-blue), var(--zt-gold)); }
html.zt-page .product-card .tag { border-color: rgba(15,108,189,.22); }
html.zt-page .product-card .price b { color: var(--zt-ink); }
html.zt-page .feature .fico { border-color: rgba(15,108,189,.22); }
html.zt-page .feature h4 { color: var(--zt-ink); }
html.zt-page .stat .num {
  background: none; -webkit-text-fill-color: var(--zt-navy); color: var(--zt-navy);
  font-variant-numeric: tabular-nums;
}
html.zt-page .hero-shot { box-shadow: 0 20px 44px rgba(17,24,39,.14); }

/* شريط الدعوة الختاميّ = اللوح الكحليّ نفسه (لا لون رابع). */
html.zt-page .cta-band { background: var(--zt-navy); border-color: rgba(255,255,255,.12); }
html.zt-page .cta-band h2 { color: #fff; -webkit-text-fill-color: #fff; }
html.zt-page .cta-band p { color: #A9C3DD; }
html.zt-page .cta-band .btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
html.zt-page .cta-band .btn-ghost-light:hover { color: #fff; border-color: #fff; }

/* ════════════════════════════════════════════════════════════════════════════
   لوح الافتتاح «المنتج أولاً» (.zh-*) — الزائر يرى البرنامج قبل أن يقرأ عنه
   ════════════════════════════════════════════════════════════════════════════ */
.zh-hero { position: relative; background: var(--zt-navy); color: #fff; overflow: hidden; }
.zh-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 460px at 78% 0, #000 0, transparent 72%);
  mask-image: radial-gradient(900px 460px at 78% 0, #000 0, transparent 72%);
}
.zh-hero .container { position: relative; }
.zh-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 46px; align-items: center; padding-block: clamp(44px, 6vw, 78px);
}
.zh-kicker {
  display: inline-block; font-family: var(--font-body); font-weight: 500;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--zt-gold); margin-bottom: 14px;
}
html.zt-page .zh-hero h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.85rem); line-height: 1.28; margin-bottom: 16px;
  color: #fff; -webkit-text-fill-color: #fff; background: none;
}
.zh-lead { font-family: var(--font-body); font-size: 1.02rem; color: #A9C3DD; margin-bottom: 26px; max-width: 56ch; }
.zh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.zh-trust {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-family: var(--font-body); font-size: .78rem; color: #A9C3DD;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px;
}
.zh-trust span { display: inline-flex; align-items: center; gap: 8px; }
.zh-trust i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #35C08A; }  /* على الكحليّ يبقى الفاتح */

/* الزرّ الثانويّ داخل اللوح الكحليّ يعود فاتحاً (قاعدة الجسم الفاتح تُبهته). */
html.zt-page .zh-hero .btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
html.zt-page .zh-hero .btn-ghost-light:hover { color: #fff; border-color: #fff; }

.zh-shot { border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 70px rgba(0,0,0,.42); }
.zh-shot img { display: block; width: 100%; height: auto; }
.zh-cap { font-family: var(--font-body); font-size: .72rem; color: #8FAECB; margin: 12px 0 0; text-align: center; }

/* بطاقة «النتيجة»: أيقونتها ذهبية لتمييزها عن بطاقات المنتجات والخدمات. */
html.zt-page .zh-o .ico {
  background: rgba(var(--zt-gold-rgb), .13); color: #8A6D12;
  border-color: rgba(var(--zt-gold-rgb), .32);
}

@media (max-width: 900px) {
  .zh-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .zh-lead { max-width: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   شاشات التحقّق على هوية ج — نفس ترميز `.auth-*` القائم، تُعاد تلوينه في النطاق
   ════════════════════════════════════════════════════════════════════════════ */
html.zt-page .auth-wrap { background: var(--zt-page); }
html.zt-page .auth-card {
  background: var(--zt-card); border-color: var(--zt-line);
  box-shadow: 0 10px 30px rgba(17,24,39,.07); border-radius: 18px;
}
html.zt-page .auth-head p { color: var(--zt-muted); }
html.zt-page .form-field label { color: var(--zt-ink); }
html.zt-page .form-control {
  background: #fff; color: var(--zt-ink); border-color: #D8DCE2;
}
html.zt-page .form-control::placeholder { color: #9AA1AC; }
html.zt-page .form-control:focus { border-color: var(--zt-blue); box-shadow: 0 0 0 3px rgba(15,108,189,.16); }
html.zt-page .field-target { color: var(--zt-ink); }
html.zt-page .alert { background: #F7F8FA; color: var(--zt-ink); border-inline-start-color: #D8DCE2; }
html.zt-page .alert-info { background: var(--zt-blue-050); border-color: var(--zt-blue); color: #0B5296; }
html.zt-page .alert-ok   { background: #E8F6EF; border-color: var(--zt-ok); color: #14663a; }
html.zt-page .alert-warn { background: var(--zt-warn-bg); border-color: #D9A441; color: var(--zt-warn-ink); }
html.zt-page .alert-bad  { background: #FDECEA; border-color: #D64545; color: #A02B22; }

/* مؤشّر الخطوات: أين هو الآن، وكم بقي — يمنع شعور «الطريق بلا نهاية». */
.zt-steps { display: flex; align-items: flex-start; gap: 0; margin: 0 0 24px; }
.zt-steps .s { flex: 1 1 0; text-align: center; position: relative; font-family: var(--font-body); }
.zt-steps .s::before {   /* الخطّ الواصل بين الخطوات */
  content: ""; position: absolute; top: 13px; inset-inline-start: -50%; width: 100%; height: 2px;
  background: var(--zt-line);
}
.zt-steps .s:first-child::before { display: none; }
.zt-steps .s.done::before, .zt-steps .s.now::before { background: var(--zt-blue); }
.zt-steps .n {
  position: relative; z-index: 1; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 7px;
  background: #fff; border: 2px solid var(--zt-line); color: var(--zt-muted);
  font-size: .78rem; font-weight: 700;
}
.zt-steps .s.done .n { background: var(--zt-blue); border-color: var(--zt-blue); color: #fff; }
.zt-steps .s.now  .n { background: #fff; border-color: var(--zt-blue); color: var(--zt-blue);
                       box-shadow: 0 0 0 4px rgba(15,108,189,.14); }
.zt-steps .t { font-size: .72rem; color: var(--zt-muted); }
.zt-steps .s.now .t { color: var(--zt-blue-700); font-weight: 700; }

/* صندوق الرمز: الرقم هو البطل — كبير ومتباعد وأرقامه متساوية العرض. */
html.zt-page .otp-input {
  font-family: var(--font-head); font-size: 1.75rem; letter-spacing: .55em;
  text-indent: .55em;                      /* يوازن التباعد الزائد على آخر رقم */
  font-variant-numeric: tabular-nums; padding-block: 14px;
}

/* صفّ إعادة الإرسال + المؤقّت */
.zt-resend {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--zt-line);
  font-family: var(--font-body); font-size: .8rem; color: var(--zt-muted);
}
.zt-resend form { margin: 0; }
.zt-resend .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.zt-count { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }

/* «رقم خاطئ؟» — تصحيحٌ في المكان بدل تسجيل حساب جديد */
.zt-fix { margin-top: 14px; text-align: center; font-family: var(--font-body); font-size: .82rem; }
.zt-fix > button {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--zt-blue); font-weight: 700; text-decoration: underline;
}
.zt-fix__panel {
  margin-top: 12px; text-align: start; border: 1px solid var(--zt-line);
  border-radius: 12px; padding: 14px; background: #FBFCFD;
}
.zt-fix__panel[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════════════════════
   شريط الخدمات المتحرّك (.zs-*) — تمرير أصليّ + التقاط، فالاتجاه واللمس ولوحة
   المفاتيح تعمل بلا حساب إحداثيات (وRTL بلا مفاجآت).
   ════════════════════════════════════════════════════════════════════════════ */
.zs { position: relative; }
.zs__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px; padding: 4px 2px 12px; margin: -4px -2px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.zs__track::-webkit-scrollbar { display: none; }
.zs__track > * { flex: 0 0 clamp(258px, 31.5%, 360px); scroll-snap-align: start; }
.zs__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.zs__btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--zt-card); border: 1px solid var(--zt-line); color: var(--zt-ink);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.zs__btn:hover { border-color: var(--zt-blue); color: var(--zt-blue); }
.zs__btn svg { display: block; }
.zs__btn--prev svg { transform: scaleX(-1); }          /* السهم نفسه معكوساً */
[dir="rtl"] .zs__btn--prev svg { transform: none; }    /* وفي العربية ينقلب المعنى */
[dir="rtl"] .zs__btn--next svg { transform: scaleX(-1); }
.zs__dots { display: flex; gap: 7px; }
.zs__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: #C9CDD4; cursor: pointer; transition: width .18s ease, background .18s ease;
}
.zs__dots button[aria-current="true"] { width: 20px; border-radius: 4px; background: var(--zt-blue); }
@media (max-width: 760px) { .zs__track > * { flex-basis: 84%; } }

/* ════════════════════════════════════════════════════════════════════════════
   صفحة المنتج (.zp-*) — بطاقات الأسعار والمتطلّبات وخطوات البدء
   ════════════════════════════════════════════════════════════════════════════ */
.zp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.zp-plan {
  position: relative; background: var(--zt-card); border: 1px solid var(--zt-line);
  border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column;
}
.zp-plan.is-best { border-color: var(--zt-blue); box-shadow: 0 12px 30px rgba(15,108,189,.10); }
.zp-plan__flag {
  position: absolute; top: -11px; inset-inline-start: 24px;
  background: var(--zt-gold); color: #1a1200; font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 11px; border-radius: 999px;
}
.zp-plan__term { font-family: var(--font-head); font-weight: 600; color: var(--zt-ink); margin-bottom: 10px; }
.zp-plan__price { display: flex; align-items: baseline; gap: 7px; }
.zp-plan__price b {
  font-family: var(--font-head); font-size: 2.1rem; line-height: 1; color: var(--zt-navy);
  font-variant-numeric: tabular-nums;
}
.zp-plan__price span { font-family: var(--font-body); font-size: .84rem; color: var(--zt-muted); }
.zp-plan__unit {
  margin-top: 9px; font-family: var(--font-body); font-size: .78rem; color: var(--zt-muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.zp-plan__save {
  background: rgba(var(--zt-gold-rgb), .15); color: #8A6D12; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.zp-plan .btn { margin-top: auto; }

/* المتطلّبات: ما يحتاجه المحلّ فعلاً — قيلَ صراحةً فلا يصير اعتراضاً صامتاً */
.zp-req { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.zp-req li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--zt-muted); }
.zp-req li svg { flex: none; margin-top: 3px; color: var(--zt-blue); }

.zp-how { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 16px; counter-reset: zp; }
.zp-how li { display: flex; gap: 13px; align-items: flex-start; }
.zp-how .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--zt-blue-050); color: var(--zt-blue-700);
  font-family: var(--font-head); font-weight: 700; font-size: .84rem;
}
.zp-how b { display: block; font-family: var(--font-head); color: var(--zt-ink); margin-bottom: 3px; }
.zp-how p { margin: 0; font-size: .9rem; color: var(--zt-muted); }

/* فتات الطريق: فاتحٌ فوق اللوح الكحليّ (صفحة المنتج)، وداكنٌ على الترويسة الفاتحة
   (الخدمات · المنتجات · القانونيّة · تواصل). القاعدة الأولى وحدها كانت تُعمّم فتبهت. */
html.zt-page .zh-hero .crumb { color: #8FAECB; }
html.zt-page .zh-hero .crumb a { color: #A9C3DD; }
html.zt-page .page-hero .crumb { color: var(--zt-muted); }
html.zt-page .page-hero .crumb a { color: var(--zt-blue-700); }

@media (max-width: 900px) { .zp-plans { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════════
   بوّابة العميل على هوية ج — الشريط الجانبي والترويسة كحليّان (هيكلٌ داكن حول
   محتوى فاتح)، والبطاقات والجداول تتبع لوحة الجسم. الترميز `.p*` كما هو.
   ════════════════════════════════════════════════════════════════════════════ */
html.zt-page .portal-side { background: var(--zt-navy); color: #A9C3DD; border-inline-end-color: rgba(255,255,255,.10); }
html.zt-page .portal-side .who { border-bottom-color: rgba(255,255,255,.14); }
html.zt-page .portal-side .who .nm { color: #fff; }
html.zt-page .portal-side .who .co { color: #A9C3DD; }
html.zt-page .pnav a { color: #A9C3DD; }
html.zt-page .pnav a:hover { background: rgba(255,255,255,.09); color: #fff; }
html.zt-page .pnav a.active { background: var(--zt-blue); color: #fff; box-shadow: 0 6px 16px rgba(15,108,189,.32); }
html.zt-page .pnav .sep { background: rgba(255,255,255,.14); }
html.zt-page .portal-main { background: var(--zt-page); }
html.zt-page .portal-main .phead p { color: var(--zt-muted); }

html.zt-page .pstat, html.zt-page .pcard, html.zt-page .lic { box-shadow: 0 1px 2px rgba(17,24,39,.04); }
html.zt-page .pstat .v { color: var(--zt-ink); font-variant-numeric: tabular-nums; }
html.zt-page .pstat .k { color: var(--zt-muted); }
html.zt-page .ptable th { color: var(--zt-muted); }
html.zt-page .lic dd { color: var(--zt-ink); }
html.zt-page .lic dt { color: var(--zt-muted); }
html.zt-page .empty { color: var(--zt-muted); }

/* ⚠ ألوان الشارات كانت مضبوطة على أرضية داكنة (نصّ فاتح على شفافية) —
     تُقلَب هنا: خلفية فاتحة ونصّ داكن، وإلا صارت غير مقروءة على الأبيض. */
html.zt-page .pill.ok    { background: #E8F6EF; color: #14663a; }
html.zt-page .pill.warn  { background: var(--zt-warn-bg); color: var(--zt-warn-ink); }
html.zt-page .pill.bad   { background: #FDECEA; color: #A02B22; }
html.zt-page .pill.muted { background: #EEF1F5; color: var(--zt-muted); }

html.zt-page .msg.customer { background: var(--zt-blue-050); border-color: rgba(15,108,189,.20); }
html.zt-page .msg.staff    { background: #F1F4F8; border-color: var(--zt-line); }
html.zt-page .msg .meta    { color: var(--zt-muted); }

/* لوح «برنامجك جاهز» — أوّل ما يبحث عنه العميل بعد الشراء */
.pready { background: var(--zt-navy); color: #fff; border-radius: 16px; padding: 26px 28px; margin-bottom: 22px; }
html.zt-page .pready h2 { color: #fff; -webkit-text-fill-color: #fff; margin: 0 0 6px; font-size: 1.3rem; }
.pready__sub { color: #A9C3DD; font-family: var(--font-body); font-size: .88rem; margin: 0 0 18px; max-width: 62ch; }
.pready__grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pready__box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 10px 14px; min-width: 168px;
}
.pready__box .lbl { font-family: var(--font-body); font-size: .68rem; letter-spacing: .06em; color: var(--zt-gold); margin-bottom: 3px; }
.pready__box .val { font-family: ui-monospace, Consolas, monospace; font-size: 1.02rem; color: #fff; direction: ltr; }
.pready__warn {
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(var(--zt-gold-rgb), .13); border: 1px solid rgba(var(--zt-gold-rgb), .3);
  border-radius: 10px; padding: 10px 13px; font-family: var(--font-body);
  font-size: .8rem; color: #F0DFA8; margin-bottom: 18px;
}
.pready__warn svg { flex: none; margin-top: 2px; }
/* الزرّ الثانويّ داخل اللوح الكحليّ يعود فاتحاً (قاعدة الجسم الفاتح تُبهته) */
html.zt-page .pready .btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
html.zt-page .pready .btn-ghost-light:hover { color: #fff; border-color: #fff; }
@media (max-width: 620px) { .pready__box { min-width: 0; flex: 1 1 100%; } }

/* ══════════ زرّ واتساب العائم (البيع المُساعَد 2026-08-23) ══════════ */
.wa-fab{position:fixed;bottom:22px;inset-inline-end:22px;z-index:1200;width:56px;height:56px;border-radius:50%;
  background:#25D366;color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.28);
  transition:transform .15s ease,box-shadow .15s ease;}
.wa-fab:hover{transform:scale(1.08);box-shadow:0 12px 30px rgba(0,0,0,.34);color:#fff;}
.wa-fab svg{width:30px;height:30px;}
@media (max-width:640px){.wa-fab{width:50px;height:50px;bottom:16px;inset-inline-end:16px;}.wa-fab svg{width:27px;height:27px;}}
@media print{.wa-fab{display:none;}}

/* ══ شارة الترويسة الداكنة (حزمة 2026-08-23): 56px حاسوباً و48px هاتفاً؛ للشارة حدُّها الخاص فلا حلقة إضافية ══ */
.site-header .brand .mark--badge{width:56px;height:56px;box-shadow:none;}
@media (max-width:640px){.site-header .brand .mark--badge{width:48px;height:48px;}}

/* ══════════ جولة داخل ZMZM Gold — عارض الشرائح (حزمة 2026-08-24) ══════════
   الأصل كان يعرّف :root و* وbody، وهي عامّة تصطدم بأنماط الموقع — فحُصرت كلها
   في `.zg-showcase` ولم يُمسّ سطرٌ من منطقها البصري. والخطّ يُورَّث من الموقع
   (Cairo/Tajawal المستضافة ذاتياً) بدل "Segoe UI" الذي كان يفرضه المكوّن. */
.zg-showcase { --zg-blue:#2b72ce; --zg-cyan:#38bdf8; --zg-gold:#c9a86a; }
.zg-showcase * { box-sizing: border-box; }

.zg-carousel {
  position: relative; padding: clamp(8px,1.4vw,14px);
  border: 1px solid rgba(74,146,226,.25); border-radius: 24px;
  background: linear-gradient(145deg, rgba(15,37,62,.96), rgba(6,18,32,.98));
  box-shadow: 0 28px 70px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.035);
}
.zg-carousel__viewport {
  position: relative; overflow: hidden; aspect-ratio: 16/10; border-radius: 17px;
  background: #050d17; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none;
}
.zg-carousel.is-dragging .zg-carousel__viewport { cursor: grabbing; }
.zg-carousel__track {
  display: flex; height: 100%; direction: ltr; transform: translate3d(0,0,0);
  transition: transform 680ms cubic-bezier(.22,.72,.16,1); will-change: transform;
}
.zg-carousel.is-dragging .zg-carousel__track { transition: none; }
.zg-slide { position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden; direction: rtl; background: #070f1a; }
.zg-slide img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.zg-slide__caption {
  position: absolute; inset: auto 0 0; display: grid; gap: 5px;
  padding: 54px clamp(18px,4vw,48px) clamp(18px,3vw,34px);
  background: linear-gradient(0deg, rgba(3,10,19,.96), rgba(3,10,19,.7) 48%, transparent);
  transform: translateY(8px); opacity: .3;
  transition: opacity 500ms ease, transform 600ms ease;
}
.zg-slide.is-active .zg-slide__caption { opacity: 1; transform: translateY(0); }
.zg-slide__caption strong { color: #fff; font-size: clamp(18px,2.6vw,31px); font-family: var(--font-head); font-weight: 600; }
.zg-slide__caption span { color: #c9d5e4; font-size: clamp(13px,1.8vw,17px); }
.zg-carousel__arrow {
  position: absolute; top: 50%; z-index: 3; width: clamp(40px,5vw,54px); aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.24); border-radius: 50%;
  background: rgba(5,17,30,.75); color: #fff; font: 400 clamp(28px,4vw,42px)/1 Arial, sans-serif;
  backdrop-filter: blur(12px); cursor: pointer; transform: translateY(-50%);
  transition: background 180ms ease, border-color 180ms ease, scale 180ms ease;
}
.zg-carousel__arrow:hover, .zg-carousel__arrow:focus-visible {
  background: rgba(43,114,206,.92); border-color: var(--zg-cyan); scale: 1.06; outline: none;
}
.zg-carousel__arrow--prev { right: 18px; }
.zg-carousel__arrow--next { left: 18px; }
.zg-carousel__status {
  position: absolute; z-index: 3; top: 16px; left: 16px; display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px;
  background: rgba(5,17,30,.7); color: #d9e4f2; direction: ltr; font-size: 13px; backdrop-filter: blur(10px);
}
.zg-carousel__status i { width: 20px; height: 1px; background: var(--zg-gold); }
.zg-carousel__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 8px 3px; }
.zg-carousel__dots { display: flex; align-items: center; gap: 8px; direction: ltr; }
.zg-carousel__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #516176;
  cursor: pointer; transition: width 240ms ease, background 240ms ease;
}
.zg-carousel__dot.is-active { width: 28px; background: linear-gradient(90deg, var(--zg-blue), var(--zg-cyan)); }
.zg-carousel__dot:focus-visible { outline: 2px solid var(--zg-gold); outline-offset: 3px; }
.zg-carousel__hint { margin: 0; color: #8598ad; font-size: 13px; }

@media (max-width: 640px) {
  .zg-carousel { border-radius: 16px; }
  .zg-carousel__viewport { border-radius: 11px; }
  .zg-carousel__arrow { top: auto; bottom: 68px; }
  .zg-carousel__arrow--prev { right: 10px; }
  .zg-carousel__arrow--next { left: 10px; }
  .zg-carousel__hint { display: none; }
  .zg-carousel__footer { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .zg-carousel__track, .zg-slide__caption, .zg-carousel__dot { transition: none !important; }
}
