/* =========================================================
   ClickMatrix — الطراز العام
   ========================================================= */
:root {
  --ice: #EEF1F8;
  --paper: #FFFFFF;
  --ink: #171B45;
  --ink-2: #4A5078;
  --ink-3: #7A80A3;
  --line: #D5DAEA;
  --ultra: #3B3FE6;
  --ultra-deep: #1D2070;
  --ultra-soft: #E3E4FD;
  --saffron: #FFB627;
  --saffron-soft: #FFF1D1;
  --ok: #17946B;

  --f-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.2rem, 4vw, 3rem);
  --step-5: clamp(2.6rem, 6vw, 4.4rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-cell: 8px;
  --r-panel: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }
/* Alexandria للعناوين الكبيرة؛ العناوين الصغيرة بخط النص لوضوح القراءة */
.cell h3, .steps h3, .included-list h3, .fgroup h3, .deliver-table th, .faq-item summary, .other-svcs b, .site-footer h4 {
  font-family: var(--f-body) !important; font-weight: 600 !important;
}
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 var(--step-0)/1 var(--f-body);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ultra); color: #fff; }
.btn-primary:hover { background: var(--ultra-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #ffc757; }
.btn svg { width: 1.15em; height: 1.15em; }

.link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--ultra); text-decoration: none;
  border-bottom: 2px solid var(--ultra-soft);
  padding-bottom: 2px;
}
.link-more:hover { border-color: var(--ultra); }
.link-more svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 241, 248, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #13294B; direction: ltr; }
.brand svg { width: 40px; height: 40px; flex: none; overflow: visible; }
.brand-name { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; direction: ltr; }
.brand-name span { color: #1DA6C6; }

.nav { display: flex; gap: .25rem; margin-inline-start: auto; }
.nav a { white-space: nowrap;
  text-decoration: none; font-weight: 500; color: var(--ink-2);
  padding: .5rem .85rem; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.header-cta { padding: .75rem 1.3rem; font-size: var(--step--1); white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex; margin-inline-start: auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--paper); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: absolute; inset-inline: 0; top: 76px;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.7; }

/* =========================================================
   HERO — المصفوفة
   ========================================================= */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  /* شبكة خفيفة في الخلفية */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  opacity: .55;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-top { max-width: 52rem; }
.hero h1 { font-size: var(--step-5); line-height: 1.35; font-weight: 700; }
.hero-lead { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-2); max-width: 40rem; }

.matrix {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(29, 32, 112, .25);
}
.matrix-q { font-family: var(--f-display); font-size: var(--step-2); font-weight: 600; }
.biz-picker { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.biz-picker button {
  font: 500 var(--step-0)/1 var(--f-body);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: var(--r-cell);
  border: 1.5px solid var(--line);
  background: var(--ice);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.biz-picker button svg { width: 20px; height: 20px; }
.biz-picker button:hover { border-color: var(--ink-3); }
.biz-picker button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.matrix-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cell {
  position: relative;
  display: flex; flex-direction: column; gap: .4rem;
  min-height: 150px;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: var(--r-cell);
  background: var(--ice);
  border: 1.5px solid transparent;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .35s, color .35s, opacity .35s, border-color .35s;
}
.cell-icon { width: 30px; height: 30px; color: var(--ultra); transition: color .35s; }
.cell h3 { font-size: var(--step-1); }
.cell-why { font-size: var(--step--1); line-height: 1.6; color: var(--ink-2); transition: color .35s; }
.cell-dot {
  position: absolute; top: 1rem; inset-inline-end: 1rem;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--line);
  transition: background-color .35s, transform .35s;
}
.matrix.has-pick .cell { opacity: .42; }
.matrix.has-pick .cell.on {
  opacity: 1; background: var(--ultra); color: #fff;
}
.matrix.has-pick .cell.on .cell-icon,
.matrix.has-pick .cell.on .cell-why { color: #fff; }
.matrix.has-pick .cell.on .cell-dot { background: var(--saffron); transform: rotate(45deg); }
.cell:hover { border-color: var(--ultra); }

.matrix-foot {
  margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.25rem; border-top: 1px dashed var(--line);
}
.matrix-summary { color: var(--ink-2); max-width: 44rem; }
.matrix-summary strong { color: var(--ink); }

/* لحظة التحميل: الخلايا تضيء بالتتابع مرة واحدة */
@media (prefers-reduced-motion: no-preference) {
  .matrix-grid .cell { animation: cell-in .6s both; }
  .matrix-grid .cell:nth-child(1) { animation-delay: .15s; }
  .matrix-grid .cell:nth-child(2) { animation-delay: .25s; }
  .matrix-grid .cell:nth-child(3) { animation-delay: .35s; }
  .matrix-grid .cell:nth-child(4) { animation-delay: .45s; }
  .matrix-grid .cell:nth-child(5) { animation-delay: .55s; }
  .matrix-grid .cell:nth-child(6) { animation-delay: .65s; }
  @keyframes cell-in {
    0% { opacity: 0; background: var(--ice); }
    50% { opacity: 1; background: var(--ultra-soft); }
    100% { opacity: 1; }
  }
}

@media (max-width: 860px) {
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .matrix-grid { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
}

/* =========================================================
   الحلول — صفوف الخدمات
   ========================================================= */
.family { padding-top: clamp(2.5rem, 5vw, 4rem); }
.family + .family { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.family-title {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.family-title h2 { font-size: var(--step-3); }
.family-title p { color: var(--ink-3); }

.solution {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.solution + .solution { border-top: 1px dashed var(--line); }
.solution:nth-of-type(even) .solution-visual { order: -1; }
.solution h3 { font-size: var(--step-4); }
.solution-for { margin-top: .5rem; color: var(--ultra); font-weight: 600; }
.solution-desc { margin-top: 1rem; color: var(--ink-2); max-width: 36rem; }
.ticks { list-style: none; margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em;
  width: 10px; height: 10px; border-radius: 2px; background: var(--ultra);
}
.solution .link-more { margin-top: 1.75rem; }

@media (max-width: 900px) {
  .solution { grid-template-columns: 1fr; }
  .solution:nth-of-type(even) .solution-visual { order: 0; }
}
@media (max-width: 520px) { .ticks { grid-template-columns: 1fr; } }

/* =========================================================
   المجسّمات (mockups) — مبنية بالـ CSS
   ========================================================= */
.mock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 30px 60px -35px rgba(29, 32, 112, .35);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  user-select: none;
}
.mock-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; background: var(--ink); color: #fff;
  font-size: 12px;
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); display: block; }
.mock-bar b { margin-inline-start: auto; font-weight: 500; opacity: .8; }

/* POS مطاعم */
.pos { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 290px; }
.pos-main { padding: .9rem; display: flex; flex-direction: column; gap: .7rem; }
.pos-cats { display: flex; gap: .4rem; flex-wrap: wrap; }
.pos-cats span { padding: .3rem .7rem; border-radius: 6px; background: var(--ice); }
.pos-cats span.on { background: var(--ink); color: #fff; }
.pos-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.pos-items div { background: var(--ice); border-radius: 6px; padding: .55rem; }
.pos-items div b { display: block; font-weight: 600; }
.pos-items div small { color: var(--ink-3); }
.pos-items div.on { background: var(--ultra-soft); outline: 1.5px solid var(--ultra); }
.pos-side { background: var(--ice); padding: .9rem; display: flex; flex-direction: column; gap: .35rem; border-inline-start: 1px solid var(--line); }
.pos-side .row { display: flex; justify-content: space-between; }
.pos-side .tag { display: inline-block; font-size: 11px; padding: .1rem .5rem; border-radius: 4px; background: var(--saffron-soft); color: #7a4d00; margin-bottom: .3rem; }
.pos-side .total { margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--line); font-weight: 700; font-size: 15px; }
.pos-side .pay { margin-top: .5rem; background: var(--ultra); color: #fff; text-align: center; border-radius: 6px; padding: .5rem; font-weight: 600; }

/* ماركت */
.scan { padding: .9rem; }
.scan-input { display: flex; align-items: center; gap: .5rem; background: var(--ice); border-radius: 6px; padding: .5rem .7rem; color: var(--ink-3); direction: ltr; justify-content: flex-end; }
.scan-input .bars { display: flex; gap: 2px; height: 16px; }
.scan-input .bars i { display: block; width: 2px; background: var(--ink); }
.scan-input .bars i:nth-child(3n) { width: 1px; }
.scan table { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.scan th { text-align: start; font-weight: 500; color: var(--ink-3); padding: .35rem 0; border-bottom: 1px solid var(--line); }
.scan td { padding: .45rem 0; border-bottom: 1px solid var(--ice); }
.scan tr.new td { background: var(--saffron-soft); }
.scan .alert { margin-top: .7rem; display: flex; gap: .5rem; align-items: center; padding: .5rem .7rem; border-radius: 6px; background: #FDECEC; color: #9b1c1c; }
.scan .sum { margin-top: .7rem; display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }

/* متجر — موبايل */
.phone-stage { display: flex; justify-content: center; padding: 1.5rem; background: var(--ultra-soft); border-radius: var(--r-panel); }
.phone {
  width: 230px; border-radius: 28px; background: var(--paper);
  border: 6px solid var(--ink); overflow: hidden; font-size: 12px;
  box-shadow: 0 30px 50px -25px rgba(29, 32, 112, .5);
}
.phone-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem .8rem; border-bottom: 1px solid var(--ice); font-weight: 600; }
.phone-img { height: 150px; margin: .7rem; border-radius: 12px; background:
  radial-gradient(circle at 50% 55%, var(--saffron) 0 28%, transparent 29%),
  linear-gradient(160deg, #dcdffb, #c6c9f7); }
.phone-body { padding: 0 .8rem .8rem; }
.phone-body b { display: block; font-size: 14px; }
.phone-body .price { color: var(--ultra); font-weight: 700; font-size: 15px; margin-top: .2rem; }
.sizes { display: flex; gap: .3rem; margin-top: .5rem; }
.sizes span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); }
.sizes span.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pays { display: flex; gap: .3rem; margin-top: .6rem; flex-wrap: wrap; }
.pays span { font-size: 10px; padding: .15rem .45rem; border-radius: 4px; background: var(--ice); }
.phone .buy { margin-top: .7rem; background: var(--ultra); color: #fff; text-align: center; padding: .6rem; border-radius: 10px; font-weight: 600; }

/* موقع شركة — متصفح */
.browser .url { flex: 1; background: rgba(255,255,255,.12); border-radius: 5px; padding: .15rem .6rem; direction: ltr; text-align: left; }
.site-prev { padding: 1rem; display: grid; gap: .7rem; }
.site-nav { display: flex; justify-content: space-between; align-items: center; }
.site-nav .lg { width: 70px; height: 12px; border-radius: 3px; background: var(--ink); }
.site-nav .lk { display: flex; gap: .4rem; }
.site-nav .lk i { display: block; width: 34px; height: 7px; border-radius: 3px; background: var(--line); }
.site-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: .8rem; align-items: center; padding: .8rem; border-radius: 10px; background: var(--ice); }
.site-hero .t1 { height: 14px; border-radius: 3px; background: var(--ink); width: 90%; }
.site-hero .t2 { height: 14px; border-radius: 3px; background: var(--ink); width: 60%; margin-top: .35rem; }
.site-hero .t3 { height: 7px; border-radius: 3px; background: var(--line); width: 85%; margin-top: .7rem; }
.site-hero .bt { height: 20px; width: 70px; border-radius: 99px; background: var(--ultra); margin-top: .7rem; }
.site-hero .im { height: 90px; border-radius: 8px; background: linear-gradient(135deg, var(--ultra) 0 50%, var(--saffron) 50%); }
.site-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.site-cols div { height: 54px; border-radius: 8px; border: 1px solid var(--line); }
.lang { display: flex; gap: .35rem; justify-content: flex-end; }
.lang span { font-size: 10px; padding: .1rem .45rem; border-radius: 4px; border: 1px solid var(--line); }
.lang span.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* أتمتة — واتساب */
.chat { background: #E9EDF5; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; min-height: 300px; }
.chat .msg { max-width: 78%; padding: .5rem .75rem; border-radius: 12px; background: var(--paper); }
.chat .msg.me { align-self: flex-start; background: #D8F5DF; border-start-start-radius: 3px; }
.chat .msg.bot { align-self: flex-end; border-start-end-radius: 3px; }
.chat .opts { display: flex; gap: .35rem; flex-wrap: wrap; align-self: flex-end; }
.chat .opts span { background: var(--paper); border: 1px solid var(--ultra); color: var(--ultra); padding: .2rem .6rem; border-radius: 99px; font-size: 12px; }
.chat .sys { align-self: center; font-size: 11px; background: var(--saffron-soft); color: #7a4d00; padding: .2rem .7rem; border-radius: 99px; }
.flow-strip { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-top: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.flow-strip span { padding: .2rem .55rem; background: var(--ice); border-radius: 5px; }
.flow-strip svg { width: 12px; height: 12px; color: var(--ink-3); transform: scaleX(-1); }

/* =========================================================
   طريقة الشغل
   ========================================================= */
.process { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps li { counter-increment: s; padding: 0 1.25rem 0 0; position: relative; }
.steps li:first-child { padding-inline-start: 0; }
.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: var(--r-cell);
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 700;
  background: var(--ice); color: var(--ultra);
  border: 1.5px solid var(--line);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.steps li:last-child::before { background: var(--ultra); color: #fff; border-color: var(--ultra); }
.steps::before {
  content: ""; position: absolute; top: 26px; inset-inline: 26px 12%;
  border-top: 2px dashed var(--line);
}
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: .5rem; color: var(--ink-2); padding-inline-end: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   مع كل مشروع
   ========================================================= */
.included { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.included-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.included-list li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.included-list h3 { font-size: var(--step-1); }
.included-list p { margin-top: .4rem; color: var(--ink-2); }
@media (max-width: 860px) { .included { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .included-list { grid-template-columns: 1fr; } }

/* =========================================================
   المجالات
   ========================================================= */
.sectors { background: var(--ink); color: #fff; }
.sectors .section-head p { color: rgba(255,255,255,.7); }
.sector-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.sector-cloud li {
  font-family: var(--f-display); font-size: var(--step-2); font-weight: 500;
  padding: .5rem 1.2rem; border-radius: var(--r-cell);
  border: 1.5px solid rgba(255,255,255,.18);
}
.sector-cloud li:nth-child(4n+1) { background: var(--ultra); border-color: var(--ultra); }
.sector-cloud li:nth-child(7n+3) { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }

/* =========================================================
   الأسئلة الشائعة
   ========================================================= */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--f-display); font-size: var(--step-1); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm {
  flex: none; width: 32px; height: 32px; border-radius: 6px; border: 1.5px solid var(--line);
  display: grid; place-items: center; transition: background-color .2s, transform .25s;
}
.faq-item summary .pm svg { width: 14px; height: 14px; }
.faq-item[open] summary .pm { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }
.faq-item .ans { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 44rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* =========================================================
   التواصل
   ========================================================= */
.contact { background: var(--ultra-deep); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); }
.contact h2 { font-size: var(--step-4); }
.contact-lead { margin-top: 1rem; color: rgba(255,255,255,.75); font-size: var(--step-1); }
.contact-ways { list-style: none; margin-top: 2.5rem; display: grid; gap: 1rem; }
.contact-ways a, .contact-ways span.v {
  display: flex; align-items: center; gap: .9rem; text-decoration: none;
  font-size: var(--step-1); font-weight: 500;
}
.contact-ways .ic {
  width: 46px; height: 46px; border-radius: var(--r-cell); flex: none;
  display: grid; place-items: center; background: rgba(255,255,255,.1);
}
.contact-ways .ic svg { width: 22px; height: 22px; }
.contact-ways small { display: block; font-size: var(--step--1); color: rgba(255,255,255,.6); font-weight: 400; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-panel); padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem;
}
.form h3 { grid-column: 1 / -1; font-size: var(--step-2); }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: .8rem 1rem; border-radius: var(--r-cell);
  border: 1.5px solid var(--line); background: var(--ice);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ultra); background: #fff; }
.field .err { color: #b42318; font-size: var(--step--1); display: none; }
.field.invalid input { border-color: #b42318; }
.field.invalid .err { display: block; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.form-note { color: var(--ink-3); font-size: var(--step--1); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* =========================================================
   الفوتر
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: #3CC6E0; }
.footer-about { margin-top: 1rem; max-width: 22rem; }
.site-footer h4 { color: #fff; font-size: var(--step-0); margin-bottom: .9rem; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--step--1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* زر واتساب العائم */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1FAF5A; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(31, 175, 90, .7);
}
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================
   صفحات الخدمات
   ========================================================= */
.crumbs { font-size: var(--step--1); color: var(--ink-3); padding-top: 2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.svc-hero { padding-block: 1.5rem clamp(3.5rem, 7vw, 5.5rem); }
.svc-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-hero h1 { font-size: var(--step-5); line-height: 1.35; font-weight: 700; }
.svc-hero .lead { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-2); }
.for-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.for-chips li { padding: .35rem .85rem; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-size: var(--step--1); font-weight: 500; }
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 900px) { .svc-hero .wrap { grid-template-columns: 1fr; } }

.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); }
.fgroup { padding-block: 2rem; border-top: 1px solid var(--line); }
.fgroup-head { display: flex; align-items: center; gap: .85rem; }
.fgroup-head .ic {
  width: 44px; height: 44px; border-radius: var(--r-cell); flex: none;
  display: grid; place-items: center; background: var(--ultra-soft); color: var(--ultra);
}
.fgroup-head .ic svg { width: 22px; height: 22px; }
.fgroup h3 { font-size: var(--step-2); }
.fgroup ul { list-style: none; margin-top: 1rem; display: grid; gap: .55rem; }
.fgroup li { position: relative; padding-inline-start: 1.5rem; color: var(--ink-2); }
.fgroup li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--ultra);
}
.fgroup li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .feature-groups { grid-template-columns: 1fr; } }

.deliver { background: var(--paper); border-block: 1px solid var(--line); }
.deliver-table { width: 100%; border-collapse: collapse; }
.deliver-table th, .deliver-table td { text-align: start; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.deliver-table th { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); width: 32%; }
.deliver-table td { color: var(--ink-2); }

.cta-band { background: var(--ultra); color: #fff; border-radius: var(--r-panel); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { margin-top: .5rem; color: rgba(255,255,255,.8); }

.other-svcs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.other-svcs a { display: block; padding: 1.25rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-cell); text-decoration: none; height: 100%; }
.other-svcs a:hover { border-color: var(--ultra); }
.other-svcs b { font-family: var(--f-display); font-size: var(--step-1); font-weight: 600; display: block; }
.other-svcs span { color: var(--ink-3); font-size: var(--step--1); }
@media (max-width: 860px) { .other-svcs { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   مجسّم الأتمتة — لوحة سير العمل
   ========================================================= */
.wf-bar { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 12px; }
.wf-bar b { font-weight: 600; font-size: 13px; }
.wf-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); font-weight: 600; }
.wf-live i { width: 26px; height: 15px; border-radius: 99px; background: var(--ok); position: relative; display: block; }
.wf-live i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.wf-canvas {
  position: relative; height: 270px;
  background-color: #F6F7FB;
  background-image: radial-gradient(#CCD2E3 1px, transparent 1px);
  background-size: 16px 16px;
}
.wf-canvas svg.wf-links { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-links path { fill: none; stroke: #9AA3C2; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wf-links path.hot { stroke: var(--ultra); stroke-dasharray: 6 5; }
.wf-node {
  position: absolute; width: 27%; height: 62px;
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .5rem; border-radius: 10px; overflow: visible;
  background: var(--paper); border: 1.5px solid var(--line);
  box-shadow: 0 6px 14px -8px rgba(29, 32, 112, .35);
  font-size: 11.5px; line-height: 1.35;
}
.wf-node .ni { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.wf-node .ni svg { width: 16px; height: 16px; }
.wf-node > span:last-child { min-width: 0; }
.wf-node b { display: block; font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-node small { display: block; color: var(--ink-3); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-node .ok { position: absolute; top: -8px; inset-inline-start: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.wf-node .ok svg { width: 10px; height: 10px; }
.wf-node.trigger { border-color: var(--saffron); }
.wf-n1 { right: 3%; top: 38.5%; }
.wf-n2 { right: 36.5%; top: 38.5%; }
.wf-n3 { right: 70%; top: 11%; }
.wf-n4 { right: 70%; top: 66%; }
.wf-runs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .65rem .9rem; border-top: 1px solid var(--line); font-size: 11.5px; background: var(--paper); }
.wf-runs span { padding: .2rem .6rem; border-radius: 5px; background: var(--ice); }
.wf-runs span.good { background: #E3F5EE; color: #0d6b4d; }
@media (max-width: 560px) {
  .wf-canvas { height: auto; padding: 1rem; display: grid; gap: 1.1rem; }
  .wf-canvas svg.wf-links { display: none; }
  .wf-node { position: relative; inset: auto; width: 100%; }
  .wf-node:not(:last-of-type)::after { content: ""; position: absolute; bottom: -1.1rem; right: 50%; height: 1.1rem; border-inline-start: 2px solid #9AA3C2; }
}

/* =========================================================
   خيارات النماذج (اختيار متعدد / واحد)
   ========================================================= */
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: var(--step--1); padding: 0; margin-bottom: .4rem; }
.choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: var(--r-cell);
  border: 1.5px solid var(--line); background: var(--ice);
  font-size: var(--step--1); font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice span::before {
  content: ""; width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--ink-3);
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice:hover span { border-color: var(--ink-3); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:checked + span::before { background: var(--saffron); border-color: var(--saffron); }
.choice input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
fieldset.field.invalid .choice span { border-color: #b42318; }
fieldset.field.invalid .err { display: block; }
.form-done { grid-column: 1 / -1; padding: .8rem 1rem; border-radius: var(--r-cell); background: #E3F5EE; color: #0d6b4d; font-weight: 500; }
.form-done a { color: inherit; font-weight: 700; }

/* =========================================================
   صفحة الأسعار
   ========================================================= */
.price-head { padding-block: 1.5rem 2.5rem; }
.price-head h1 { font-size: var(--step-5); line-height: 1.35; font-weight: 700; max-width: 48rem; }
.price-head .lead { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-2); max-width: 44rem; }
.price-tabs { position: sticky; top: 76px; z-index: 5; padding-block: .9rem; background: rgba(238, 241, 248, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.price-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; }
.price-intro h2 { font-size: var(--step-4); }
.factors { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; max-width: 44rem; }
.factors-label { color: var(--ink-3); font-size: var(--step--1); }
.factors ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.factors li { font-size: var(--step--1); padding: .25rem .7rem; border-radius: 6px; border: 1px dashed var(--ink-3); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2rem; }
.tier {
  display: flex; flex-direction: column;
  padding: 1.6rem; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.tier h3 { font-size: var(--step-2); }
.tier-for { color: var(--ink-3); margin-top: .2rem; font-size: var(--step--1); }
.tier-price { margin-top: 1.1rem; padding-block: .9rem; border-block: 1px solid var(--line); font-weight: 600; color: var(--ultra); }
.tier-price b { font-family: var(--f-display); font-size: var(--step-3); }
.tier-price span, .tier-price small { color: var(--ink-3); font-weight: 400; font-size: var(--step--1); }
.tier ul { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; flex: 1; }
.tier li { position: relative; padding-inline-start: 1.4rem; color: var(--ink-2); line-height: 1.6; }
.tier li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--ultra); }
.tier .btn { margin-top: 1.4rem; width: 100%; font-size: var(--step--1); padding: .8rem 1rem; }
.tier.picked { border-color: var(--ultra); box-shadow: 0 0 0 3px var(--ultra-soft); }
.tier.picked .btn { background: var(--ultra); border-color: var(--ultra); color: #fff; }
.tier-more { margin-top: 1.5rem; color: var(--ink-2); }
.quote-box { margin-top: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 160px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* قسم عرض السعر في صفحات الخدمات */
.quote-sec { background: var(--paper); border-block: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote-sec .form { border: 1.5px solid var(--line); background: var(--ice); }
.quote-sec .field input, .quote-sec .field select, .quote-sec .field textarea, .quote-sec .choice span { background: var(--paper); }
.quote-sec .choice input:checked + span { background: var(--ink); }
.quote-points { list-style: none; margin-top: 1.5rem; display: grid; gap: .6rem; }
.quote-points li { position: relative; padding-inline-start: 1.5rem; color: var(--ink-2); }
.quote-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--saffron); }
.quote-sec .link-more { margin-top: 1.5rem; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

.link-more + .link-more { margin-inline-start: 1.5rem; }

/* =========================================================
   معرض الشاشات — لقطات من داخل الأنظمة (مبنية بالـ CSS)
   ========================================================= */
:root { --c1: #3B3FE6; --c2: #D4870A; --c3: #17946B; --grid: #E6E9F2; --bad: #B42318; }
.screens .section-head { margin-bottom: 2.5rem; }
.scr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
.scr { margin: 0; min-width: 0; }
.scr.wide { grid-column: 1 / -1; }
.scr figcaption { margin-top: 1rem; max-width: 40rem; }
.scr figcaption h3 { font-family: var(--f-body); font-weight: 600; font-size: var(--step-1); }
.scr figcaption p { color: var(--ink-2); margin-top: .25rem; }
.scr-stage { background: var(--ultra-soft); border-radius: var(--r-panel); padding: clamp(1rem, 3vw, 1.75rem); display: flex; justify-content: center; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.scr .mock { font-size: 12px; }
@media (max-width: 860px) { .scr-grid { grid-template-columns: minmax(0, 1fr); } }

/* إطار تطبيق بقائمة جانبية */
.app-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 300px; }
.app-side { background: #F6F7FB; border-inline-end: 1px solid var(--line); padding: .8rem .6rem; display: flex; flex-direction: column; gap: .2rem; }
.app-side span { padding: .4rem .6rem; border-radius: 6px; color: var(--ink-2); display: flex; align-items: center; gap: .45rem; }
.app-side span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--line); }
.app-side span.on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.app-side span.on::before { background: var(--c1); }
.app-main { padding: .9rem; display: grid; gap: .7rem; align-content: start; min-width: 0; }
.app-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.app-title b { font-size: 14px; }
.app-title small { color: var(--ink-3); }
.app-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: .7rem; }
@media (max-width: 640px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-row { grid-template-columns: minmax(0, 1fr); }
}

/* مؤشرات */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; background: var(--paper); }
.kpi small { display: block; color: var(--ink-3); font-size: 11px; }
.kpi b { display: block; font-size: 16px; margin-top: .1rem; }
.kpi .d { font-size: 10.5px; color: var(--c3); font-weight: 600; }
.kpi .d.down { color: var(--bad); }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* بطاقة رسم بياني */
.cc { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; background: var(--paper); min-width: 0; }
.cc-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .55rem; flex-wrap: wrap; }
.cc-h b { font-size: 12.5px; }
.lg { display: flex; gap: .7rem; color: var(--ink-2); font-size: 11px; }
.lg span { display: inline-flex; align-items: center; gap: .3rem; }
.lg span::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--k, var(--c1)); }
.lg span.dot::before { width: 8px; height: 8px; border-radius: 2px; }

.lc { position: relative; }
.lc svg { width: 100%; height: 120px; display: block; }
.lc .gl { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc .s1, .lc .s2 { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lc .s1 { stroke: var(--c1); }
.lc .s2 { stroke: var(--c2); }
.lc .ar { fill: var(--c1); opacity: .1; }
.lc .tag { position: absolute; font-size: 10.5px; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem; transform: translate(50%, -120%); white-space: nowrap; }
.lc .yl { position: absolute; inset-inline-end: 0; font-size: 10px; color: var(--ink-3); transform: translateY(-50%); background: var(--paper); padding-inline-start: 2px; }
.xl { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 10px; margin-top: .3rem; direction: rtl; }

.vb { display: flex; align-items: flex-end; gap: 6px; height: 118px; border-bottom: 1px solid var(--ink-3); padding-top: 14px; }
.vb i { position: relative; flex: 1; background: var(--c1); border-radius: 4px 4px 0 0; min-height: 3px; }
.vb i.mut { background: #B9BCF4; }
.vb i em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 600; white-space: nowrap; margin-bottom: 2px; color: var(--ink); }

.hbs { display: grid; gap: .45rem; }
.hb { display: grid; grid-template-columns: 86px minmax(0, 1fr) 44px; align-items: center; gap: .5rem; font-size: 11px; }
.hb span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb i { display: block; height: 9px; background: var(--c1); border-radius: 4px 0 0 4px; }
.hb b { text-align: end; font-weight: 600; }

.dn { display: flex; align-items: center; gap: .9rem; }
.dn svg { width: 92px; height: 92px; flex: none; transform: rotate(-90deg); }
.dn circle { fill: none; stroke-width: 5; }
.dn-l { display: grid; gap: .3rem; font-size: 11px; }
.dn-l span { display: flex; align-items: center; gap: .35rem; }
.dn-l span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--k); }
.dn-l b { margin-inline-start: auto; padding-inline-start: .6rem; }

/* جداول صغيرة وحالات */
.tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tbl th { text-align: start; color: var(--ink-3); font-weight: 500; padding: .35rem .3rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .45rem .3rem; border-bottom: 1px solid #EEF0F6; white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .45rem; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: #E3F5EE; color: #0d6b4d; }
.st.warn { background: #FFF1D1; color: #8a5600; }
.st.bad { background: #FDECEC; color: var(--bad); }
.st.info { background: var(--ultra-soft); color: var(--ultra-deep); }

/* لوحة المطبخ / مراحل */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding: .8rem; background: #F6F7FB; }
.col-h { display: flex; justify-content: space-between; font-weight: 600; font-size: 11.5px; padding: .2rem .2rem .45rem; }
.col-h small { color: var(--ink-3); font-weight: 500; }
.tk { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .55rem; margin-bottom: .45rem; font-size: 11px; line-height: 1.55; }
.tk-h { display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-weight: 700; font-size: 12px; margin-bottom: .2rem; }
.tk .who { color: var(--ink-3); }
.tk.late { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
.tk.on { border-color: var(--c1); box-shadow: inset 3px 0 0 var(--c1); }
.board-arrow { display: flex; justify-content: space-between; padding: .5rem .9rem; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-2); gap: .5rem; flex-wrap: wrap; }
@media (max-width: 640px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* التابلت والطاولات */
.tablet { width: 100%; max-width: 640px; border: 9px solid var(--ink); border-radius: 22px; background: var(--paper); overflow: hidden; font-size: 12px; box-shadow: 0 30px 50px -30px rgba(29, 32, 112, .5); }
.tablet-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); min-height: 300px; }
.tmap { padding: .8rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; align-content: start; background: #F6F7FB; }
.tmap-h { grid-column: 1 / -1; display: flex; justify-content: space-between; font-weight: 600; }
.tmap-h small { font-weight: 400; color: var(--ink-3); }
.tb { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; text-align: center; border: 1.5px solid var(--line); background: var(--paper); font-size: 10.5px; line-height: 1.3; padding: .2rem; }
.tb b { display: block; font-size: 14px; }
.tb.busy { background: var(--ultra-soft); border-color: #B9BCF4; }
.tb.bill { background: #FFF1D1; border-color: var(--c2); }
.tb.call { background: #FDECEC; border-color: var(--bad); }
.tb.sel { outline: 3px solid var(--c1); outline-offset: 1px; }
.tside { padding: .8rem; display: flex; flex-direction: column; gap: .35rem; border-inline-start: 1px solid var(--line); }
.tside .row { display: flex; justify-content: space-between; gap: .4rem; }
.tside .sum { border-top: 1px dashed var(--line); padding-top: .4rem; margin-top: auto; font-weight: 700; font-size: 13px; }
.tside .acts { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .4rem; }
.tside .acts span { text-align: center; padding: .45rem; border-radius: 6px; background: var(--ice); font-weight: 600; }
.tside .acts span.p { background: var(--c1); color: #fff; }
.alert-bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: 6px; font-weight: 600; font-size: 11px; }
.alert-bar.bill { background: #FFF1D1; color: #8a5600; }
.alert-bar.call { background: #FDECEC; color: var(--bad); }
.legend-tb { grid-column: 1 / -1; display: flex; gap: .7rem; flex-wrap: wrap; font-size: 10.5px; color: var(--ink-2); margin-top: .2rem; }
.legend-tb span { display: inline-flex; align-items: center; gap: .3rem; }
.legend-tb span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--b, var(--line)); background: var(--f, var(--paper)); }
@media (max-width: 640px) { .tablet-in { grid-template-columns: minmax(0, 1fr); } .tside { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* الموبايل: منيو، إشعارات، شات */
.scr .phone { width: 236px; flex: none; }
.menu-list { padding: .2rem .7rem .7rem; display: grid; gap: .5rem; }
.menu-cats { display: flex; gap: .3rem; padding: .6rem .7rem .3rem; overflow: hidden; }
.menu-cats span { padding: .2rem .6rem; border-radius: 99px; background: var(--ice); white-space: nowrap; font-size: 11px; }
.menu-cats span.on { background: var(--ink); color: #fff; }
.mi { display: grid; grid-template-columns: 46px 1fr auto; gap: .5rem; align-items: center; }
.mi .ph { width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(140deg, #F6D9A8, #E9A84A); }
.mi .ph.b { background: linear-gradient(140deg, #D4D6FA, #8E92F0); }
.mi .ph.c { background: linear-gradient(140deg, #CFEBDD, #5FB892); }
.mi b { display: block; font-size: 12px; }
.mi small { color: var(--ink-3); }
.mi .add { width: 26px; height: 26px; border-radius: 8px; background: var(--c1); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mi .qty { font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: .35rem; }
.mi .qty i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; }
.cart-bar { margin: .2rem .7rem .8rem; background: var(--ink); color: #fff; border-radius: 12px; padding: .6rem .75rem; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; }
.cart-bar b { background: var(--saffron); color: var(--ink); padding: .25rem .6rem; border-radius: 8px; }
.table-tag { margin: .5rem .7rem 0; padding: .35rem .6rem; border-radius: 8px; background: var(--ultra-soft); color: var(--ultra-deep); font-weight: 600; font-size: 11px; }

.lock { background: linear-gradient(170deg, #2A2E86, #12154A); color: #fff; padding: 1rem .65rem 1.2rem; min-height: 430px; }
.lock-time { text-align: center; font-family: var(--f-display); font-size: 40px; font-weight: 600; line-height: 1.1; direction: ltr; }
.lock-date { text-align: center; opacity: .75; font-size: 11px; margin-bottom: .9rem; }
.ntf { background: rgba(255, 255, 255, .93); color: var(--ink); border-radius: 14px; padding: .5rem .6rem; margin-bottom: .45rem; font-size: 11px; line-height: 1.45; }
.ntf-h { display: flex; align-items: center; gap: .35rem; color: var(--ink-3); font-size: 10px; margin-bottom: .1rem; }
.ntf-h i { width: 14px; height: 14px; border-radius: 4px; background: conic-gradient(var(--c1) 0 25%, var(--saffron) 0 50%, var(--c1) 0 75%, var(--ink) 0); display: block; }
.ntf-h em { margin-inline-start: auto; font-style: normal; }
.ntf b { display: block; font-size: 11.5px; }
.ntf.hot { box-shadow: inset 3px 0 0 var(--bad); }

.scr .chat { min-height: 0; font-size: 11.5px; }
.wa-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: #0E5E4E; color: #fff; font-size: 12px; }
.wa-head i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: block; }
.wa-head small { display: block; opacity: .75; font-size: 10px; }
.chat .msg.bot b { display: block; }
.mini-rows { margin-top: .3rem; display: grid; gap: .15rem; }
.mini-rows span { display: flex; justify-content: space-between; gap: 1rem; }

/* فورم داخل الشاشات (الدفع، المحرر) */
.ff { display: grid; gap: .45rem; padding: .7rem; font-size: 11px; }
.ff label { color: var(--ink-3); font-size: 10.5px; }
.ff .in { border: 1px solid var(--line); border-radius: 7px; padding: .4rem .55rem; background: var(--paper); }
.ff .opt { display: flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 8px; padding: .45rem .55rem; }
.ff .opt::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.ff .opt.on { border-color: var(--c1); background: var(--ultra-soft); }
.ff .opt.on::before { border: 3.5px solid var(--c1); }
.ff .tot { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; padding-top: .3rem; border-top: 1px dashed var(--line); }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split2 > * + * { border-inline-start: 1px solid var(--line); }
@media (max-width: 640px) { .split2 { grid-template-columns: minmax(0, 1fr); } .split2 > * + * { border-inline-start: 0; border-top: 1px solid var(--line); } }

.var-grid { display: grid; grid-template-columns: 70px repeat(4, minmax(0, 1fr)); font-size: 11px; text-align: center; }
.var-grid span { padding: .4rem .2rem; border-bottom: 1px solid #EEF0F6; }
.var-grid .h { color: var(--ink-3); font-weight: 500; }
.var-grid .lo { color: #8a5600; font-weight: 700; }
.var-grid .zero { color: var(--bad); font-weight: 700; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-inline-end: .3rem; border: 1px solid var(--line); }

.rcpt { background: var(--paper); width: 236px; flex: none; padding: 1rem .9rem; border-radius: 6px; font-size: 11.5px; box-shadow: 0 20px 40px -25px rgba(29, 32, 112, .5); }
.rcpt h4 { font-family: var(--f-body); font-size: 13px; text-align: center; }
.rcpt .sub { text-align: center; color: var(--ink-3); font-size: 10.5px; margin-bottom: .5rem; }
.rcpt .row { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.rcpt .row.t { font-weight: 700; font-size: 13px; border-bottom: 0; padding-top: .45rem; }

.steps-log { padding: .8rem; display: grid; gap: .4rem; font-size: 11.5px; }
.lg-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.lg-row .ic { width: 18px; height: 18px; border-radius: 50%; background: var(--c3); color: #fff; display: grid; place-items: center; }
.lg-row .ic svg { width: 10px; height: 10px; }
.lg-row small { color: var(--ink-3); display: block; }
.lg-row em { font-style: normal; color: var(--ink-3); font-size: 10.5px; direction: ltr; }

.wf-list { display: grid; gap: .4rem; }
.wf-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; background: var(--paper); }
.wf-item small { display: block; color: var(--ink-3); font-size: 10.5px; }
.tog { width: 26px; height: 15px; border-radius: 99px; background: var(--c3); position: relative; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.tog.off { background: var(--line); }
.tog.off::after { left: auto; right: 2px; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: 280px; }
.editor .prev { background: #F6F7FB; padding: .8rem; display: grid; gap: .5rem; align-content: start; }
.editor .prev .ph { height: 80px; border-radius: 8px; background: linear-gradient(135deg, var(--c1) 0 55%, var(--saffron) 55%); }
.editor .prev h5 { margin: 0; font-family: var(--f-body); font-size: 14px; }
.editor .prev p { font-size: 11px; color: var(--ink-2); }
.editor .save { justify-self: start; background: var(--c1); color: #fff; padding: .35rem .8rem; border-radius: 6px; font-weight: 600; }
@media (max-width: 640px) { .editor { grid-template-columns: minmax(0, 1fr); } }
section[id], .family[id], .fgroup[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
