/* ==========================================================================
   كاشف (KASHIF) — kashifksa.com (V6 Flagship)
   High-Contrast Sunlit Light Theme, Real Hardware Stage & Editorial Precision
   ========================================================================== */

:root {
  /* تناوب سطوح فاتحة مدروس لخلق عمق وفخامة (صفر أقسام سوداء) */
  --surface-ivory: #FAF9F4;
  --surface-sand: #F1EEE5;
  --surface-white: #FFFFFF;
  --surface-champagne: #FDF9F0;

  /* الهوية المؤسسية بتباين حاد */
  --ink-primary: #0B1524;
  --ink-secondary: #334155;
  --ink-muted: #526275;
  --color-navy: #162534;
  --color-gold: #B68F4C;
  --color-gold-deep: #8F6A2E;
  --color-gold-bright: #DFC289;

  /* حدود وظلال معمارية واضحة (لا بطاقات ذائبة في الخلفية) */
  --border-crisp: rgba(14, 26, 43, 0.11);
  --border-input: rgba(14, 26, 43, 0.18);
  --border-gold: rgba(182, 143, 76, 0.36);
  --shadow-card: 0 12px 30px rgba(14, 26, 43, 0.06);
  --shadow-card-hover: 0 20px 44px rgba(14, 26, 43, 0.10);
  --shadow-device: 0 28px 68px rgba(11, 21, 36, 0.22);

  /* حالات الالتزام */
  --status-ok: #16A34A;
  --status-ok-bright: #22C55E;
  --status-alert: #DC2626;
  --status-alert-bright: #EF4444;

  /* المقاسات والخطوط */
  --font-sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --header-h: 76px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-ivory);
  color: var(--ink-primary);
  line-height: 1.68;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

svg {
  direction: ltr;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.22s var(--ease-out), color 0.22s var(--ease-out);
}

button, input {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Section Surfaces & Executive Typography
   ========================================================================== */
section[id] {
  scroll-margin-top: 96px;
}

section:not(.hero-fullbleed) {
  padding-block: clamp(68px, 8vw, 108px);
  position: relative;
  overflow-x: clip;
}

.section-ivory {
  background-color: var(--surface-ivory);
}

.section-white {
  background-color: var(--surface-white);
}

.section-sand {
  background-color: var(--surface-sand);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(34px, 4.5vw, 52px);
}

.head-compact {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-deep);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.section-lead {
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  color: var(--ink-secondary);
  margin-top: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s var(--ease-out);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, #E2C68D 0%, #BA9654 100%);
  color: #0B1524;
  box-shadow: 0 10px 26px rgba(182, 143, 76, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(182, 143, 76, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-gold:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Crisp Light Fixed Header (3 روابط هادئة + شعار النسخة الفاتحة)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 220;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(14, 26, 43, 0.08);
  transition: box-shadow 0.25s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(14, 26, 43, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-secondary);
  padding-block: 4px;
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
  transition: width 0.24s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 26, 43, 0.06);
  color: var(--ink-primary);
  font-size: 0.82rem;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

.lang-btn:hover {
  background: rgba(182, 143, 76, 0.18);
}

.lang-btn:active {
  transform: scale(0.96);
}

.header-cta {
  display: none;
  padding: 9px 20px;
  font-size: 0.88rem;
}

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 26, 43, 0.06);
  color: var(--ink-primary);
}

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .brand-logo img { height: 44px; }
}

/* Light Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: rgba(11, 21, 36, 0.30);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  inset-inline: 16px;
  z-index: 210;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-crisp);
  box-shadow: 0 24px 56px rgba(11, 21, 36, 0.14);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease-out), opacity 0.22s var(--ease-out);
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-inner {
  padding: 14px 20px 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-nav-list a {
  display: block;
  width: 100%;
  padding: 14px 4px;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-crisp);
}

/* ==========================================================================
   1. Unified Full-Bleed Edge-to-Edge Hero (فيديو واحد موحّد بلا حجز وبلا إطار)
   ========================================================================== */
.hero-fullbleed {
  position: relative;
  margin-top: var(--header-h);
  width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: 540px;
  max-height: 920px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-color: #0B1524;
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bottom-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(10, 18, 30, 0.66) 0%,
    rgba(10, 18, 30, 0.22) 28%,
    transparent 52%
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.65s var(--ease-out);
}

.hero-corner-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-bottom: clamp(32px, 5.5vw, 62px);
}

.hero-corner-copy {
  max-width: 620px;
  text-align: start;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

/* خلال أول 3.5 ثوانٍ (ظهور الشعار الشفاف داخل الفيديو): يختفي النص لعدم تغطية الشعار */
.hero-fullbleed.is-intro-phase .hero-corner-copy,
.hero-fullbleed.is-intro-phase .hero-bottom-scrim {
  opacity: 0;
  pointer-events: none;
}

.hero-fullbleed.is-intro-phase .hero-corner-copy {
  transform: translateY(14px);
}

/* احتياط: العنوان والزر يطلعون بعد مقدمة الشعار (4.3 ث) حتى لو تأخر السكربت أو النت ضعيف أو JavaScript مطفي */
@keyframes heroCopyIn {
  to { opacity: 1; transform: none; pointer-events: auto; }
}
.hero-fullbleed.is-intro-phase .hero-corner-copy,
.hero-fullbleed.is-intro-phase .hero-bottom-scrim {
  animation: heroCopyIn 0.6s var(--ease-out) 4.3s forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.85rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(10, 18, 30, 0.55);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(10, 18, 30, 0.55);
  max-width: 500px;
  margin-bottom: 24px;
}

/* ==========================================================================
   2. Open Interactive Editorial Showcase — What It Detects (#detects)
      تخطيط تحريري مفتوح بلا أي مربعات أو بطاقات مكدّسة
   ========================================================================== */
.detects-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 100%;
}

.detects-showcase > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .detects-showcase {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    gap: clamp(32px, 4.2vw, 56px);
  }
}

.detects-list {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(11, 21, 36, 0.09);
}

@media (min-width: 900px) {
  .detects-list {
    display: flex;
  }
}

.detect-row {
  position: relative;
  width: 100%;
  text-align: start;
  padding: 16px 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(11, 21, 36, 0.09);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.22s var(--ease-out), transform 0.16s var(--ease-out);
}

.detect-row:hover {
  background: transparent;
}

.detect-row:active {
  transform: scale(0.992);
}

.detect-row:hover .detect-row-title {
  color: var(--ink-primary);
}

.detect-row:hover .free-icon {
  opacity: 1;
}

.detect-row.is-active {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom-color: rgba(11, 21, 36, 0.09);
}

.detect-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detect-num {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-gold-deep);
  letter-spacing: 0.04em;
  min-width: 22px;
}

.free-icon {
  color: var(--ink-primary);
  flex-shrink: 0;
  opacity: 0.82;
  transition: opacity 0.22s var(--ease-out);
}

.detect-row.is-active .free-icon {
  opacity: 1;
}

.detect-row-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-secondary);
  line-height: 1.3;
  transition: color 0.22s var(--ease-out);
}

.detect-row.is-active .detect-row-title {
  color: var(--ink-primary);
}

.detect-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

.detect-row.is-active .detect-row-body {
  grid-template-rows: 1fr;
}

.detect-row-body p {
  overflow: hidden;
  padding-inline-start: 70px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.detect-row.is-active .detect-row-body p {
  padding-top: 8px;
}

/* خط التقدم الذهبي الرفيع 2px أسفل العنصر النشط */
.detect-progress {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2px;
  background: rgba(186, 153, 93, 0.14);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}

.detect-row.is-active .detect-progress {
  opacity: 1;
}

.detect-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #BA995D;
  border-radius: 2px;
}

.detect-row.is-active .detect-progress-fill {
  animation: detectProgress 4.5s linear forwards;
}

.detects-showcase.is-paused .detect-row.is-active .detect-progress-fill {
  animation: none;
  width: 100%;
}

@keyframes detectProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* عارض المشهد البانورامي الحي (16:10 بظل سينمائي ناعم بلا إطار سميك) */
.detects-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 28px 64px rgba(11, 21, 36, 0.14);
}

.detect-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
  direction: ltr;
}

.detect-slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.detect-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 21, 36, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

html[dir="rtl"] .stage-live-pill {
  left: auto;
  right: 14px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-ok-bright);
  box-shadow: 0 0 8px var(--status-ok-bright);
}

.stage-detect-frame {
  position: absolute;
  border-radius: 12px;
  border: 1.5px dashed var(--status-ok-bright);
  background: rgba(34, 197, 94, 0.08);
}

.stage-detect-frame.frame-prep { left: 40%; top: 18%; width: 44%; height: 68%; }
.stage-detect-frame.frame-cashier { left: 26%; top: 18%; width: 46%; height: 66%; }
.stage-detect-frame.frame-empty { left: 16%; bottom: 12%; width: 68%; height: 58%; }
.stage-detect-frame.frame-warehouse { left: 14%; bottom: 12%; width: 70%; height: 56%; }
.stage-detect-frame.frame-store { left: 9%; top: 8%; width: 62%; height: 76%; }
.stage-detect-frame.frame-crowding { left: 14%; top: 22%; width: 72%; height: 64%; }

.stage-detect-frame.is-amber {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.10);
}

.stage-detect-frame.is-gold {
  border-color: var(--color-gold-bright);
  background: rgba(223, 194, 137, 0.12);
}

.stage-detect-frame.is-alert {
  border-style: solid;
  border-width: 2px;
  border-color: var(--status-alert-bright);
  background: rgba(239, 68, 68, 0.14);
}

.stage-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

html[dir="rtl"] .stage-badge {
  direction: rtl;
  left: auto;
  right: 10px;
}

.stage-badge.badge-ok { background: rgba(22, 163, 74, 0.92); }
.stage-badge.badge-amber { background: rgba(180, 83, 9, 0.92); }
.stage-badge.badge-gold { background: rgba(143, 106, 46, 0.94); }
.stage-badge.badge-alert { background: rgba(220, 38, 38, 0.94); }

/* شريط الجوال الأفقي تحت العارض (< 900px) — صفر تكديس لمربعات */
.detects-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .detects-mobile-nav {
    display: none;
  }
}

.detects-mobile-pills {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  padding-inline-end: 24px;
  scrollbar-width: none;
  mask-image: linear-gradient(to left, #000 0%, #000 calc(100% - 22px), transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 calc(100% - 22px), transparent 100%);
}

html[dir="ltr"] .detects-mobile-pills {
  mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 22px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 22px), transparent 100%);
}

.detects-mobile-pills::-webkit-scrollbar {
  display: none;
}

.mobile-detect-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-crisp);
  color: var(--ink-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

.mobile-detect-pill:active {
  transform: scale(0.96);
}

.mobile-detect-pill span:first-child {
  color: var(--color-gold-deep);
  font-size: 0.78rem;
}

.mobile-detect-pill.is-active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
}

.mobile-detect-pill.is-active span:first-child {
  color: var(--color-gold-bright);
}

.detects-mobile-caption {
  padding-inline: 2px;
  min-height: 76px;
}

.detects-mobile-caption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.detects-mobile-caption p {
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

/* سطر تحريري هادئ لتخصيص التنبيهات أسفل قسم القدرات — بلا أي صندوق */
.detects-custom-note {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 16px;
  border-top: 1px solid rgba(11, 21, 36, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.detects-custom-link {
  font-weight: 700;
  color: var(--color-gold-deep);
  border-bottom: 1.5px solid rgba(182, 143, 76, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.detects-custom-link:hover {
  color: var(--ink-primary);
  border-bottom-color: var(--color-gold);
}

/* ==========================================================================
   3. Real Hardware Stage — MacBook Pro + Full-Height iPhone 16 Pro (#app-view)
   ========================================================================== */
.app-section {
  padding-top: clamp(78px, 8.5vw, 114px);
  background:
    radial-gradient(ellipse at 50% 60%, rgba(223, 194, 137, 0.20) 0%, transparent 62%),
    var(--surface-white);
}

.app-stage-wrap {
  max-width: 1088px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* شريط التبويبات الخطي البسيط والأنيق بلا صندوق ثقيل */
.app-linear-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: clamp(14px, 3.8vw, 40px);
  border-bottom: 1px solid rgba(11, 21, 36, 0.10);
  padding-inline: 8px;
}

.app-linear-tab {
  position: relative;
  min-height: 44px;
  padding: 12px 6px;
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s var(--ease-out), transform 0.16s var(--ease-out);
}

.app-linear-tab:hover {
  color: var(--ink-primary);
}

.app-linear-tab:active {
  transform: scale(0.97);
}

.app-linear-tab.is-active {
  color: var(--ink-primary);
}

.app-linear-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.26s var(--ease-out);
}

.app-linear-tab.is-active::after {
  transform: scaleX(1);
}

.app-display-stage {
  width: 100%;
}

.app-pane { display: none; }
.app-pane.is-active { display: block; }

/* --------------------------------------------------------------------------
   أ. مجسم MacBook Pro بقاعدة ألمنيوم فضية منحوتة + جدار مراقبة متصل 2×2
   -------------------------------------------------------------------------- */
.hardware-duo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

@media (min-width: 980px) {
  .hardware-duo {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 550px;
    padding-inline-end: 244px;
    padding-block: 16px;
  }
}

.macbook-pro {
  width: 100%;
  margin-inline: auto;
  position: relative;
}

@media (min-width: 980px) {
  .macbook-pro {
    width: 100%;
  }
}

.macbook-lid {
  background: #0D1117;
  padding: 10px 10px 12px;
  border-radius: 18px 18px 0 0;
  border: 1px solid #262E3A;
  border-bottom: none;
  box-shadow: 0 24px 60px rgba(11, 21, 36, 0.22);
}

.macbook-camera {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2C3542;
  margin: 0 auto 6px;
}

.laptop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 10px;
}

.laptop-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
}

.laptop-brand img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.laptop-hint {
  display: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.56);
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 640px) {
  .laptop-hint {
    display: inline-block;
  }
}

.live-inline-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
}

.live-mode-btn {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

.live-mode-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.live-mode-btn:active {
  transform: scale(0.96);
}

.live-mode-btn.is-active[data-live-mode="ok"] {
  background: var(--status-ok);
  color: #FFFFFF;
}

.live-mode-btn.is-active[data-live-mode="alert"] {
  background: var(--status-alert);
  color: #FFFFFF;
}

/* شاشة مراقبة متصلة 2×2 — فواصل شعرية 2px وبدون حواف دائرية داخلية للمربعات الأربع */
.cam-matrix-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #06080C;
  border-radius: 4px;
  overflow: hidden;
}

.cam-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: start;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: #0B1524;
  direction: ltr;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.cam-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.cam-tile:hover::after {
  box-shadow: inset 0 0 0 2px rgba(223, 194, 137, 0.58);
}

.cam-tile:focus-visible::after {
  box-shadow: inset 0 0 0 2.5px #DFC289;
}

.cam-tile.is-selected::after {
  box-shadow: inset 0 0 0 2.5px #BA995D;
}

.cam-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out), filter 0.25s var(--ease-out);
}

.cam-tile:hover img {
  transform: scale(1.02);
}

.cam-tile:active img {
  filter: brightness(0.93);
}

.tile-live {
  position: absolute;
  top: 7px;
  left: 7px;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(11, 21, 36, 0.78);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
}

html[dir="rtl"] .tile-live {
  left: auto;
  right: 7px;
  direction: rtl;
}

@media (min-width: 600px) {
  .tile-live {
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    font-size: 0.72rem;
  }
  html[dir="rtl"] .tile-live {
    left: auto;
    right: 8px;
  }
}

.detect-box {
  position: absolute;
  display: block;
  border-radius: 8px;
  border: 1.5px dashed var(--status-ok-bright);
  background: rgba(34, 197, 94, 0.08);
  transition: all 0.25s var(--ease-out);
}

.detect-box.box-prep { left: 42%; top: 26%; width: 44%; height: 62%; }
.detect-box.box-hall { left: 10%; bottom: 8%; width: 44%; height: 58%; }
.detect-box.box-cashier { left: 26%; top: 28%; width: 46%; height: 60%; }
.detect-box.box-warehouse { left: 14%; bottom: 12%; width: 68%; height: 52%; }

@media (min-width: 600px) {
  .detect-box.box-prep { top: 20%; height: 68%; }
  .detect-box.box-cashier { top: 20%; height: 66%; }
}

.detect-box.is-neutral {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.detect-box.is-zone {
  border-color: var(--color-gold-bright);
  background: rgba(223, 194, 137, 0.10);
}

.detect-box.is-alert {
  border-style: solid;
  border-width: 2px;
  border-color: var(--status-alert-bright);
  background: rgba(239, 68, 68, 0.18);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.35);
}

.detect-chip {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  color: #FFFFFF;
  background: rgba(22, 163, 74, 0.92);
}

@media (min-width: 600px) {
  .detect-chip {
    top: -12px;
    bottom: auto;
    left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
  }
}

html[dir="rtl"] .detect-chip {
  direction: rtl;
}

.detect-box.is-neutral .detect-chip { background: rgba(11, 21, 36, 0.86); }
.detect-box.is-zone .detect-chip { background: rgba(143, 106, 46, 0.92); }
.detect-box.is-alert .detect-chip { background: var(--status-alert); }

/* قاعدة MacBook Pro الفضية المنحوتة مع تجويف الفتح الأوسط */
.macbook-base {
  width: 100%;
  margin-inline: 0;
  height: 15px;
  background: linear-gradient(180deg, #E8EAEE 0%, #C7CDD6 68%, #969EA9 100%);
  border-radius: 2px 2px 14px 14px;
  position: relative;
  box-shadow: 0 18px 42px rgba(11, 21, 36, 0.18);
}

@media (min-width: 900px) {
  .macbook-base {
    width: 108%;
    margin-inline: -4%;
  }
}

.macbook-notch {
  width: 78px;
  height: 5px;
  background: #858D99;
  border-radius: 0 0 6px 6px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   ب. مجسم iPhone 16 Pro حقيقي (9:19.4 كامل غير مقصوص — إطار تيتانيوم داكن)
   -------------------------------------------------------------------------- */
.iphone-16-pro {
  position: relative;
  width: 248px;
  aspect-ratio: 9 / 19.4;
  padding: 3px;
  border-radius: 46px;
  background: linear-gradient(145deg, #434852 0%, #181B20 48%, #2E333C 100%);
  box-shadow:
    0 32px 72px rgba(11, 21, 36, 0.28),
    0 6px 16px rgba(11, 21, 36, 0.14);
  flex-shrink: 0;
}

/* أزرار جانبية معدنية دقيقة للـ iPhone 16 Pro */
.iphone-16-pro::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 108px;
  width: 3px;
  height: 36px;
  border-radius: 2px 0 0 2px;
  background: #30353E;
  box-shadow: 0 46px 0 #30353E, 0 -30px 0 -0.5px #30353E;
}

.iphone-16-pro::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 132px;
  width: 3px;
  height: 54px;
  border-radius: 0 2px 2px 0;
  background: #30353E;
}

@media (min-width: 980px) {
  .iphone-overlap {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }
}

.iphone-bezel {
  background: #06080C;
  padding: 7px;
  border-radius: 43px;
  width: 100%;
  height: 100%;
}

.iphone-screen {
  background: #FFFFFF;
  border-radius: 36px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink-primary);
}

/* شريط حالة iOS الحقيقي (9:41 + Dynamic Island + شبكة/Wi-Fi/بطارية) */
.ios-status-bar {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px 8px;
  color: #0B1524;
  flex-shrink: 0;
}

.ios-clock {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  width: 44px;
}

.ios-dynamic-island {
  width: 72px;
  height: 20px;
  border-radius: 99px;
  background: #050608;
  flex-shrink: 0;
}

.ios-sys-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 54px;
}

/* رأس تطبيق كاشف داخل شاشة iPhone */
.ios-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px;
  border-bottom: 1px solid rgba(11, 21, 36, 0.07);
}

.ios-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.ios-app-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.ios-live-dot-pill,
.ios-alert-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
}

.ios-live-dot-pill {
  background: rgba(22, 163, 74, 0.12);
  color: #15803D;
}

.ios-live-dot-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-ok);
}

.ios-alert-dot-pill {
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
}

.ios-alert-dot-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-alert);
}

/* بطاقة التنبيه/المعاينة الحية داخل شاشة iOS */
.ios-live-card {
  margin: 12px 12px 10px;
  padding: 10px;
  border-radius: 16px;
  background: #F7F5EE;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.25s var(--ease-out), transform 0.16s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.ios-live-card[role="button"] {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ios-live-card[role="button"]:hover {
  box-shadow: inset 0 0 0 1px rgba(186, 153, 93, 0.42);
}

.ios-live-card[role="button"]:active {
  transform: scale(0.985);
}

.ios-live-card.is-alert {
  background: #FEF2F2;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.28);
}

.ios-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ios-card-time {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ios-state-badge {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.61rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--status-ok);
  white-space: nowrap;
  flex-shrink: 0;
}

.ios-state-badge.tag-alert {
  background: var(--status-alert);
}

.ios-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.4;
}

.ios-live-card.is-alert .ios-card-title {
  color: #B91C1C;
}

.ios-card-thumb {
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0B1524;
}

.ios-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* سجل حالة المواقع أسفل البطاقة لملء طول الهاتف بأناقة */
.ios-feed-section {
  padding: 6px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-section-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.ios-site-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: start;
  padding: 4px 6px 8px;
  margin-inline: -6px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(11, 21, 36, 0.06);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-primary);
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

button.ios-site-row {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button.ios-site-row:hover {
  background: rgba(186, 153, 93, 0.10);
}

button.ios-site-row.is-selected {
  background: rgba(186, 153, 93, 0.15);
  color: var(--ink-primary);
}

.ios-site-row:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.ios-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ios-dot.ok { background: var(--status-ok); }
.ios-dot.alert { background: var(--status-alert); }
.ios-dot.gold { background: var(--color-gold); }

.ios-bottom-dock {
  margin-top: auto;
  background: #FAF9F6;
  border-top: 1px solid rgba(11, 21, 36, 0.07);
  padding: 5px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.ios-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 4px;
}

.ios-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out), transform 0.14s var(--ease-out);
}

.ios-tab-item:hover {
  color: var(--ink-primary);
  background: rgba(11, 21, 36, 0.05);
}

.ios-tab-item:active {
  transform: scale(0.95);
}

.ios-tab-item.is-active {
  color: var(--color-gold-deep);
}

.ios-home-indicator {
  width: 90px;
  height: 4px;
  border-radius: 99px;
  background: rgba(11, 21, 36, 0.22);
  margin: 0 auto;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ج. التبويب 2 (iPhone 16 Pro الكامل + مقطع الفيديو + نقاط مفتوحة بلا صناديق)
   -------------------------------------------------------------------------- */
.alert-showcase-split {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  justify-items: center;
}

@media (min-width: 860px) {
  .alert-showcase-split {
    grid-template-columns: auto 1fr;
    gap: 44px;
    justify-items: stretch;
  }
}

.alert-video-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.alert-clip-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  box-shadow: 0 24px 58px rgba(11, 21, 36, 0.16);
  background: #0B1524;
}

.clip-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-corner-pill {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-primary);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(11, 21, 36, 0.16);
}

.clip-detect-overlay {
  position: absolute;
  left: 16%;
  top: 16%;
  width: 68%;
  height: 54%;
  border-radius: 12px;
  border: 1.5px dashed var(--status-alert-bright);
  background: rgba(239, 68, 68, 0.10);
  pointer-events: none;
  direction: ltr;
}

.clip-detect-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(220, 38, 38, 0.94);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

html[dir="rtl"] .clip-detect-badge {
  direction: rtl;
  left: auto;
  right: 10px;
}

.app-trust-line {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding-top: 8px;
}

.alert-open-points {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-crisp);
}

.alert-open-points li {
  position: relative;
  padding: 13px 0;
  padding-inline-start: 20px;
  border-bottom: 1px solid var(--border-crisp);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.alert-open-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* --------------------------------------------------------------------------
   د. التبويب 3: لوحة الملخص والفروع داخل شاشة MacBook Pro تنفيذية
   -------------------------------------------------------------------------- */
.macbook-report-wrap {
  max-width: 820px;
}

.macbook-report-screen {
  background: #FFFFFF;
  border-radius: 6px;
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-screen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-crisp);
}

.report-screen-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-primary);
  font-size: 0.98rem;
}

.report-screen-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.report-period-switch {
  display: inline-flex;
  gap: 18px;
}

.report-tab-btn {
  position: relative;
  min-height: 40px;
  padding: 8px 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

.report-tab-btn:hover {
  color: var(--ink-primary);
}

.report-tab-btn:active {
  transform: scale(0.97);
}

.report-tab-btn.is-active {
  color: var(--ink-primary);
}

.report-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--color-gold);
}

.branch-list {
  display: flex;
  flex-direction: column;
}

.branch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border-crisp);
}

.branch-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.branch-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.branch-thumb {
  width: 68px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.branch-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-primary);
}

.branch-row span {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.status-pill-ok {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(22, 163, 74, 0.13);
  color: #15803D;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   4. Sectors + Open Editorial Privacy Grid (فواصل شعرية بدون مربعات مكررة)
   ========================================================================== */
.sectors-block {
  margin-bottom: clamp(56px, 7vw, 84px);
}

.sectors-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sector-pill {
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--surface-white);
  border: 1px solid var(--border-crisp);
  box-shadow: 0 6px 18px rgba(14, 26, 43, 0.05);
  color: var(--ink-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.sector-pill:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  color: var(--color-gold-deep);
  box-shadow: 0 10px 24px rgba(182, 143, 76, 0.16);
}

.sector-pill:active {
  transform: scale(0.97);
}

.privacy-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-crisp);
  border-bottom: 1px solid var(--border-crisp);
}

@media (min-width: 680px) {
  .privacy-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .privacy-editorial-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.priv-col {
  padding: 26px 20px;
  border-bottom: 1px solid var(--border-crisp);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.priv-col:last-child {
  border-bottom: none;
}

@media (min-width: 1020px) {
  .priv-col {
    border-bottom: none;
    border-inline-end: 1px solid var(--border-crisp);
  }
  .priv-col:last-child {
    border-inline-end: none;
  }
}

.priv-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gold-deep);
}

.priv-col h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.priv-col p {
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   5. Clean Hairline FAQ (#faq)
   ========================================================================== */
.faq-clean-list {
  max-width: 780px;
  margin-inline: auto;
  border-top: 1px solid var(--border-crisp);
}

.faq-item {
  border-bottom: 1px solid var(--border-crisp);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: start;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.faq-icon {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-gold-deep);
  transition: transform 0.25s var(--ease-out);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-out);
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  padding-inline: 4px;
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  padding-bottom: 22px;
}

/* ==========================================================================
   6. Pure White Elevated Registration Card on Warm Sand (#register)
   ========================================================================== */
.register-card {
  max-width: 740px;
  margin-inline: auto;
  background: var(--surface-white);
  border: 1px solid var(--border-crisp);
  box-shadow: 0 24px 60px rgba(14, 26, 43, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 42px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-stack {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label,
.group-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  border: 1.5px solid var(--border-input);
  color: var(--ink-primary);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-control[type="tel"] {
  text-align: right;
}

html[dir="ltr"] .form-control[type="tel"] {
  text-align: left;
}

.form-control::placeholder {
  color: var(--ink-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 3px rgba(182, 143, 76, 0.20);
}

.form-group.has-error .form-control {
  border-color: var(--status-alert);
}

.field-error {
  display: block;
  min-height: 17px;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--status-alert);
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.choice-chip {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-ivory);
  border: 1.5px solid var(--border-input);
  color: var(--ink-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.18s var(--ease-out);
}

.chips-four .choice-chip {
  padding: 10px 6px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.choice-chip:hover {
  border-color: var(--color-gold);
  background: var(--surface-white);
}

.choice-chip.is-selected {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
  font-weight: 700;
}

/* Custom Checkbox */
.consent-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  margin-bottom: 0;
}

.custom-checkbox {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
}

.consent-box {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--surface-white);
  border: 1.5px solid rgba(14, 26, 43, 0.34);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.custom-checkbox:checked + .consent-box {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
}

.custom-checkbox:checked + .consent-box::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #FFFFFF;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.custom-checkbox:focus-visible + .consent-box {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.consent-copy {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.inline-policy-btn {
  color: var(--color-gold-deep);
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
}

.form-feedback.is-visible { display: block; }
.form-feedback.success {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.38);
  color: #166534;
}
.form-feedback.error {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.34);
  color: #991B1B;
}

/* ==========================================================================
   Light Footer
   ========================================================================== */
.site-footer {
  padding-block: 44px 34px;
  border-top: 1px solid var(--border-crisp);
  background: var(--surface-ivory);
}

@media (max-width: 899px) {
  .site-footer {
    padding-bottom: 92px;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-crisp);
}

@media (min-width: 720px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 720px) {
  .footer-contact {
    align-items: flex-end;
  }
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
  direction: ltr;
}

.social-links { display: flex; gap: 10px; }
.social-links[hidden], .social-link[hidden] { display: none; }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 26, 43, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
}

.social-link:hover {
  background: rgba(182, 143, 76, 0.18);
  color: var(--color-gold-deep);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-link-btn {
  font-size: inherit;
  color: inherit;
  font-weight: 600;
}

.footer-link-btn:hover,
.footer-bottom-links a:hover {
  color: var(--ink-primary);
}

/* ==========================================================================
   Light Privacy Policy Modal
   ========================================================================== */
.policy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 21, 36, 0.42);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.policy-modal-backdrop[hidden] { display: none; }

.policy-modal {
  width: 100%;
  max-width: 560px;
  max-height: 84vh;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-crisp);
  box-shadow: 0 28px 70px rgba(11, 21, 36, 0.22);
}

.policy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-crisp);
}

.policy-modal-head h2 {
  font-size: 1.14rem;
  color: var(--ink-primary);
}

.policy-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 26, 43, 0.06);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.policy-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.policy-modal-body strong { color: var(--ink-primary); }
.policy-mail-link { color: var(--color-gold-deep); font-weight: 700; }

.policy-modal-foot {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ======================================================================
   كاشف — البطاقات (الشكل ٣): كبسولة داكنة بحلقة بلون الحالة + خط رفيع + نقطة على الشخص
   تحل محل المربعات المتقطعة. --hx / --hy = مكان رأس الشخص (أو الشيء) داخل الصورة.
   ====================================================================== */
.stage-detect-frame,
.detect-box {
  --c: #30D158;
  --lead: 26px;
  position: absolute;
  left: var(--hx) !important;
  top: var(--hy) !important;
  right: auto !important;
  bottom: auto !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  z-index: 3;
}
.stage-detect-frame.is-amber { --c: #FF9F0A; }
.stage-detect-frame.is-gold,
.detect-box.is-zone { --c: #DFC289; }
.stage-detect-frame.is-alert,
.detect-box.is-alert { --c: #FF453A; }
.detect-box.is-neutral { --c: #409CFF; }

.stage-detect-frame::before,
.detect-box::before {          /* الخط من البطاقة إلى الشخص */
  content: "";
  position: absolute;
  left: -0.75px;
  bottom: 0;
  width: 1.5px;
  height: var(--lead);
  background: linear-gradient(to top, var(--c), color-mix(in srgb, var(--c) 55%, transparent));
}
.stage-detect-frame::after,
.detect-box::after {           /* النقطة على الشخص */
  content: "";
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--c);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent), 0 0 10px var(--c);
}
.k-below::before { bottom: auto; top: 0; background: linear-gradient(to bottom, var(--c), color-mix(in srgb, var(--c) 55%, transparent)); }

.k-card {
  position: absolute;
  bottom: var(--lead);
  left: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  direction: rtl;
  white-space: nowrap;
  padding: 4px 5px 4px 12px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(10, 14, 22, 0.80), rgba(10, 14, 22, 0.80)) padding-box,
    linear-gradient(100deg, var(--c), rgba(255, 255, 255, 0.10) 70%) border-box;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.30);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  transition: background 0.25s var(--ease-out);
}
.k-below .k-card { bottom: auto; top: var(--lead); }
html[dir="ltr"] .k-card { direction: ltr; padding: 4px 12px 4px 5px; }

.k-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 62%, #fff), var(--c));
}
.k-num svg { width: 62%; height: 62%; }

.k-card .stage-badge,
.k-card .detect-chip {
  position: static !important;
  inset: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #F5F6F8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* جدار الكاميرات: نفس البطاقة بحجم أصغر */
.detect-box { --lead: 13px; }
.detect-box .k-card { gap: 4px; padding: 2px 3px 2px 8px; border-width: 1px; }
html[dir="ltr"] .detect-box .k-card { padding: 2px 8px 2px 3px; }
.detect-box .k-num { width: 15px; height: 15px; font-size: 9px; }
.detect-box .k-card .detect-chip { font-size: 9.5px; }
.detect-box::after { left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-width: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent), 0 0 7px var(--c); }

@media (min-width: 900px) {
  .detect-box { --lead: 18px; }
  .detect-box .k-card { gap: 6px; padding: 3px 4px 3px 10px; }
  html[dir="ltr"] .detect-box .k-card { padding: 3px 10px 3px 4px; }
  .detect-box .k-num { width: 18px; height: 18px; font-size: 10px; }
  .detect-box .k-card .detect-chip { font-size: 11px; }
}
@media (max-width: 600px) {
  .stage-detect-frame { --lead: 18px; }
  .stage-detect-frame .k-card { gap: 5px; padding: 3px 4px 3px 9px; }
  .stage-detect-frame .k-num { width: 18px; height: 18px; }
  .stage-detect-frame .k-card .stage-badge { font-size: 11px; }
}

/* منطقة مخصّصة: مساحة مظللة بدل المربع المتقطع */
.k-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.k-zone polygon {
  fill: rgba(223, 194, 137, 0.34);
  stroke: none;
}
.k-zone { filter: blur(7px); }

/* مقطع الطاولات داخل عارض القدرات */
.detect-slide .k-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* الجوال: مربعات الكاميرات صغيرة — البطاقة تصير دائرة الأيقونة بس عشان ما تغطي اسم الكاميرا */
@media (max-width: 600px) {
  .detect-box { --lead: 9px; }
  .detect-box .k-card { padding: 2px; gap: 0; }
  html[dir="ltr"] .detect-box .k-card { padding: 2px; }
  .detect-box .k-card .detect-chip { display: none; }
}

/* مقطع الطاولات فيه شريط كاشف الخاص به: لا نكرر شارة LIVE فوقه */
.detect-slide .k-video ~ .stage-live-pill { display: none; }

/* بطاقة زرقاء للعميل في عارض القدرات */
.stage-detect-frame.is-neutral { --c: #409CFF; }

/* البطاقة على يسار النقطة (لما يكون فوق الشخص ما فيه مكان والبطاقة تحت تغطي الوجه) */
.k-left::before { left: auto; right: 0; bottom: auto; top: -0.75px; width: var(--lead); height: 1.5px;
  background: linear-gradient(to left, var(--c), color-mix(in srgb, var(--c) 55%, transparent)); }
.k-left .k-card { left: auto; right: var(--lead); bottom: auto; top: 0; transform: translateY(-50%); }

/* الخصوصية: أربع نقاط */
@media (min-width: 1020px) {
  .privacy-editorial-grid.priv-four { grid-template-columns: repeat(4, 1fr); }
}

/* ======================================================================
   «سجّل اهتمامك» — بطاقة فاتحة بألوان الموقع: المقدمة والخطوات جنب النموذج
   ====================================================================== */
.reg-v2 {
  background: var(--surface-sand);
  padding-block: clamp(56px, 8vw, 100px);
}
.reg-shell {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1080px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface-white);
  border: 1px solid var(--border-crisp);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(14, 26, 43, 0.07);
}
@media (min-width: 1000px) {
  .reg-shell { grid-template-columns: 0.82fr 1.18fr; }
}

.reg-intro {
  padding: clamp(26px, 4vw, 48px);
  background: linear-gradient(180deg, var(--surface-champagne) 0%, var(--surface-ivory) 100%);
  border-bottom: 1px solid var(--border-crisp);
}
@media (min-width: 1000px) {
  .reg-intro { border-bottom: 0; border-inline-end: 1px solid var(--border-crisp); }
}
.reg-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-gold-deep);
}
.reg-title {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-primary);
}
.reg-title::after { content: "."; color: var(--color-gold); }
.reg-lead {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-secondary);
}
.reg-steps-title {
  margin-top: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-primary);
}
.reg-steps {
  list-style: none;
  margin-top: 8px;
}
.reg-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-crisp);
}
.reg-steps li:last-child { border-bottom: 0; }
.reg-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid var(--border-gold);
  color: var(--color-gold-deep);
  font-size: 0.82rem;
  font-weight: 700;
}
.reg-steps strong { display: block; color: var(--ink-primary); font-size: 0.98rem; font-weight: 700; }
.reg-steps li span:not(.reg-n) { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.6; }
.reg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-crisp);
  color: var(--ink-secondary);
  font-size: 0.85rem;
}
.reg-trust > span { display: inline-flex; align-items: center; gap: 7px; }
.reg-trust svg { width: 16px; height: 16px; color: var(--color-gold); flex: none; }

.reg-card { padding: clamp(24px, 4vw, 48px); }
.reg-v2 .form-group label,
.reg-v2 .group-label { font-size: 0.88rem; font-weight: 600; color: var(--ink-primary); }
.reg-v2 .form-control {
  border: 1px solid var(--border-input);
  border-radius: 12px;
  background: #FCFBF8;
}
.reg-v2 .form-control:hover { border-color: rgba(14, 26, 43, 0.28); }
.reg-v2 .form-control:focus {
  outline: none;
  background: var(--surface-white);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(182, 143, 76, 0.14);
}
.reg-v2 .choice-chip:not(.is-selected) { background: var(--surface-white); }
.reg-v2 .choice-chip:not(.is-selected):hover { border-color: var(--border-gold); }
.reg-v2 #submitBtn { margin-top: 4px; }


/* ======================================================================
   إصلاحات التدقيق (28-11): تفاصيل صغيرة
   ====================================================================== */
/* رقم نقاط الخصوصية: تباين أوضح */
.priv-num { color: #7A5A22; }
/* مربع الموافقة: بمحاذاة السطر الأول، ويحمرّ عند الخطأ؛ وأزرار النشاط تحمرّ إذا ما اختار */
.consent-row { align-items: flex-start; }
.consent-box { margin-top: 5px; }
.form-group.has-error .consent-box { border-color: var(--status-alert); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.form-group.has-error .choice-chip:not(.is-selected) { border-color: rgba(220, 38, 38, 0.55); }
/* خيارات الأرقام: الخيار الأخير نصّه أطول */
.chips-four .choice-chip { white-space: nowrap; }

/* صفوف القدرات: تبان إنها تفاعلية */
.detect-row { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .detect-row:not(.is-active):hover .detect-row-title { color: var(--ink-primary); }
}


/* ======================================================================
   جولة 28-11 الثالثة: قوائم النموذج، من نحن، سياسة الخصوصية
   ====================================================================== */
/* قوائم الاختيار في النموذج */
.form-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid-3 { grid-template-columns: 1.4fr 1fr 1fr; } }
.select-wrap { position: relative; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 16px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--color-gold-deep);
  border-bottom: 2px solid var(--color-gold-deep);
  transform: rotate(45deg);
  pointer-events: none;
}
html[dir="ltr"] .select-wrap::after { transform: rotate(45deg); }
.form-select:invalid, .form-select option[value=""] { color: var(--ink-muted); }
.form-select option { color: var(--ink-primary); }

/* من نحن */
.about-section { padding-block: clamp(56px, 8vw, 96px); }
.about-flow {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 10px;
}
@media (min-width: 620px) { .about-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .about-flow { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-ivory);
  border: 1px solid var(--border-crisp);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.about-img { position: relative; aspect-ratio: 4 / 3; background: #0B1524; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-step {
  position: absolute;
  bottom: -18px;
  inset-inline-start: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E2C68D 0%, #BA9654 100%);
  color: #0B1524;
  font-size: 0.88rem;
  font-weight: 700;
  border: 3px solid var(--surface-ivory);
  box-shadow: 0 8px 18px rgba(182, 143, 76, 0.28);
}
.about-card h3 { margin: 32px 20px 6px; font-size: 1.18rem; font-weight: 700; color: var(--ink-primary); }
.about-card p { margin: 0 20px 22px; font-size: 0.95rem; line-height: 1.75; color: var(--ink-secondary); }

/* سياسة الخصوصية */
.policy-modal { max-width: 660px; padding: 0; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.policy-modal-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(180deg, var(--surface-champagne), var(--surface-white));
  border-bottom: 1px solid var(--border-crisp);
}
.pol-logo { border-radius: 11px; flex: none; }
.pol-head-text { flex: 1; min-width: 0; }
.policy-modal-head h2 { font-size: 1.3rem; font-weight: 700; color: var(--ink-primary); line-height: 1.3; }
.pol-updated { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--ink-muted); }
.policy-modal-body { display: block; padding: 22px 26px; overflow-y: auto; }
.pol-summary {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-champagne);
  border: 1px solid var(--border-gold);
  color: var(--ink-primary);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.75;
}
.pol-list { list-style: none; margin-top: 8px; }
.pol-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-crisp); }
.pol-list li:last-child { border-bottom: 0; padding-bottom: 4px; }
.pol-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--surface-white);
  color: var(--color-gold-deep);
  font-size: 0.82rem;
  font-weight: 700;
}
.pol-list h3 { font-size: 1rem; font-weight: 700; color: var(--ink-primary); }
.pol-list p { margin-top: 3px; font-size: 0.93rem; line-height: 1.8; color: var(--ink-secondary); }
.policy-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 16px 26px 20px;
  border-top: 1px solid var(--border-crisp);
  background: var(--surface-ivory);
}
.pol-contact { font-size: 0.9rem; color: var(--ink-secondary); }

/* ===== جولة ٧: المعاينة الحية تقول إنها تفاعلية، وعشر قدرات بدل ست ===== */
.live-try { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 18px; font-size: 0.92rem; font-weight: 600; color: var(--ink-secondary, #4A5565); text-align: center; }
.live-try-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #FF453A; box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.5); animation: liveTryPulse 1.8s ease-out infinite; }
@keyframes liveTryPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.5); } 100% { box-shadow: 0 0 0 11px rgba(255, 69, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .live-try-dot { animation: none; } }
@media (hover: hover) and (pointer: fine) { .cam-tile { cursor: pointer; } }
@media (min-width: 900px) { .detects-list .detect-row { padding-block: 12.5px; } }
.stage-badge.badge-gold { color: #fff; }

/* ===== جولة ٩: الجوال يرجع لتصميم اللابتوب ===== */
/* الروابط كانت تنزل ١٩٢ بكسل بدل ٩٦ (قاعدتان فوق بعض) */
section[id] { scroll-margin-top: 0; }
.form-select { min-height: 52px; }

@media (max-width: 999px) {
  /* زر «سجّل اهتمامك» ينزّل الزائر على الخانات مباشرة: العنوان، ثم النموذج، ثم «ماذا يحدث بعد التسجيل» */
  .reg-shell { display: flex; flex-direction: column; }
  .reg-intro { display: contents; }
  .reg-intro > * { margin-inline: clamp(22px, 6vw, 44px); }
  .reg-eyebrow { display: block; margin-top: clamp(24px, 6vw, 40px); }
  .reg-lead { margin-bottom: 6px; }
  .reg-card { order: 2; }
  .reg-steps-title, .reg-steps, .reg-trust { order: 3; }
  .reg-steps-title { margin-top: 0; padding-top: 26px; border-top: 1px solid var(--border-crisp); }
  .reg-trust { margin-bottom: clamp(24px, 6vw, 40px); }
}

@media (max-width: 979px) {
  /* اللابتوب والجوال ينشافون مع بعض مثل تصميم اللابتوب: الجوال أصغر وراكب على طرف اللابتوب */
  .hardware-duo { gap: 0; }
  .hardware-duo .iphone-overlap { zoom: 0.7; align-self: flex-end; margin-top: -36px; margin-inline-end: 10px; z-index: 5; }
}

@media (max-width: 600px) {
  /* علامة التنبيه ما تنقص من فوق ولا تغطي اسم الكاميرا */
  .cam-tile .detect-box { top: max(var(--hy), 34px) !important; }
  .cam-tile .tile-live { top: auto; bottom: 6px; }
  .live-mode-btn { min-height: 40px; }
  .live-try { font-size: 0.86rem; margin-bottom: 14px; }

  /* شاشة «الملخص والفروع» تبقى بعرض شاشة لابتوب، مو طولية */
  .macbook-report-screen { padding: 12px 12px 8px; gap: 8px; }
  .report-screen-head { padding-bottom: 6px; gap: 4px 10px; }
  .report-screen-brand { font-size: 0.82rem; }
  .report-screen-brand img { width: 18px; height: 18px; }
  .report-period-switch { gap: 12px; }
  .report-tab-btn { min-height: 32px; padding: 5px 3px; font-size: 0.76rem; }
  .branch-row { padding-block: 9px; gap: 8px; }
  .branch-main { gap: 9px; min-width: 0; flex: 1; }
  .branch-main > div { min-width: 0; }
  .branch-thumb { width: 46px; height: 34px; border-radius: 6px; flex: none; }
  .branch-main strong, .branch-main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .branch-main strong { font-size: 0.8rem; line-height: 1.5; }
  .branch-main span { font-size: 0.7rem; line-height: 1.5; }
  .branch-row .status-pill-ok { flex: none; padding: 3px 9px; font-size: 0.68rem; }

  /* القطاعات: عمودين مرتبين بدل سطور متكسرة */
  .sectors-ribbon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sector-pill { padding-inline: 10px; font-size: 0.9rem; }
  .sector-pill:last-child { grid-column: 1 / -1; }

  /* النص تحت الصورة ما ينط لما يتغير طوله */
  .detects-mobile-caption { min-height: 96px; }

  /* أهداف اللمس الصغيرة */
  .lang-btn { min-height: 44px; }
  .footer-bottom-links { gap: 4px 18px; }
  .footer-bottom-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .detects-custom-link, .inline-policy-btn { display: inline-flex; align-items: center; min-height: 40px; }
}

/* الفوتر: الإيميل مع باقي الكلام، والفراغ السفلي بس في الصفحة اللي فيها الزر الثابت */
@media (max-width: 719px) {
  .footer-contact { align-items: flex-start; }
}
@media (max-width: 899px) {
  .subpage .site-footer { padding-bottom: 34px; }
}
/* ===== نهاية جولة ٩ ===== */

/* ===== جولة ١٠: زر التسجيل فوق في الهيدر على الجوال ===== */
.header-cta { display: inline-flex; white-space: nowrap; }
@media (max-width: 559px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand-logo img { height: 34px; }
  .header-cta { min-height: 40px; padding: 8px 13px; font-size: 0.8rem; }
  .lang-btn { padding-inline: 10px; }
}
@media (max-width: 380px) {
  .brand-logo img { height: 30px; }
  .header-cta { padding-inline: 11px; font-size: 0.77rem; }
}
@media (max-width: 340px) {
  .site-header .container { padding-inline: 12px; }
  .brand-logo img { height: 27px; }
  .header-actions { gap: 5px; }
  .header-cta { padding-inline: 8px; font-size: 0.72rem; }
  .lang-btn { padding-inline: 8px; }
  .menu-toggle { width: 36px; height: 36px; }
}
@media (max-width: 899px) {
  .site-footer { padding-bottom: 34px; }
}
/* ===== نهاية جولة ١٠ ===== */

/* ===== جولة ١٢: واتساب ونموذج مختصر ===== */
.wa-ic { width: 20px; height: 20px; flex: none; }
.reg-wa { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; margin-top: 12px;
          font-size: 0.96rem; font-weight: 700; color: var(--ink-primary); }
.reg-wa .wa-ic { color: #1FAF57; }
.reg-wa:hover span { text-decoration: underline; text-underline-offset: 4px; }
.reg-wa[hidden], .footer-wa[hidden] { display: none; }
.footer-wa .wa-ic { width: 17px; height: 17px; }
.reg-consent-note { margin: 0; font-size: 0.84rem; line-height: 1.7; color: var(--ink-muted); text-align: center; }
/* النموذج صار قصيراً: يتوسّط بطاقته على اللابتوب بدل فراغ تحته */
@media (min-width: 1000px) {
  .reg-card { display: flex; flex-direction: column; justify-content: center; }
}
/* ===== نهاية جولة ١٢ ===== */

/* ===== جولة ١٣: مقاطع الخلفية بدون زر تشغيل المتصفح ===== */
.hero-main-video, .k-video { pointer-events: none; }
/* المقطع شفاف لين يشتغل فعلاً، ووراه صورة ثابتة (الآيفون في توفير الطاقة يرسم زر تشغيل فوق أي مقطع واقف) */
.js-cover { background-position: center; background-size: cover; background-repeat: no-repeat; }
.js-cover > .hero-main-video, .js-cover > .k-video { opacity: 0; transition: opacity 0.3s ease; }
.js-cover > .hero-main-video.is-playing, .js-cover > .k-video.is-playing { opacity: 1; }
.hero-main-video::-webkit-media-controls,
.hero-main-video::-webkit-media-controls-panel,
.hero-main-video::-webkit-media-controls-start-playback-button,
.hero-main-video::-webkit-media-controls-overlay-play-button,
.k-video::-webkit-media-controls,
.k-video::-webkit-media-controls-panel,
.k-video::-webkit-media-controls-start-playback-button,
.k-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}
/* ===== نهاية جولة ١٣ ===== */

/* ======================================================================
   الصفحات المستقلة (من نحن، سياسة الخصوصية) — جولة ٧
   نفس ألوان باقي الموقع: خلفية عاجية فاتحة، حبر كحلي، وذهبي. بلا أقسام غامقة.
   «من نحن» بلا صور: عنوان كبير، قائمة حقائق، وبطاقات بحدود شعرية.
   «الخصوصية» كتابة كبيرة وخطوط شعرية بلا صور.
   ====================================================================== */
body.subpage {
  --d-bg: var(--surface-ivory);
  --d-cell: var(--surface-white);
  --d-head: var(--ink-primary);
  --d-muted: var(--ink-secondary);
  --d-faint: var(--ink-muted);
  --d-gold: var(--color-gold-deep);
  --d-gold-hi: var(--color-gold);
  --d-gold-lo: var(--color-gold);
  --d-line: var(--border-crisp);
  --d-line-gold: var(--border-gold);
  background: var(--d-bg);
  color: var(--d-head);
}
.subpage main {
  padding-top: var(--header-h);
  overflow: clip;
  background:
    radial-gradient(1000px 640px at 86% -6%, rgba(223, 194, 137, 0.20), transparent 62%),
    radial-gradient(900px 700px at 0% 40%, rgba(241, 238, 229, 0.9), transparent 64%),
    var(--d-bg);
}

/* كتابة مشتركة */
.sp-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.98rem; font-weight: 700; color: var(--d-gold); }
.sp-eyebrow::before { content: ""; width: 38px; height: 1.5px; background: var(--d-gold-lo); }
.sp-title { margin: 18px 0 22px; font-size: clamp(2.7rem, 6.2vw, 4.7rem); font-weight: 700; line-height: 1.14; color: var(--d-head); }
.sp-title em { font-style: normal; color: var(--d-gold-hi); }
.sp-lead { max-width: 30em; font-size: clamp(1.12rem, 1.65vw, 1.34rem); line-height: 1.95; color: var(--d-muted); }
.sp-h2 { font-size: clamp(1.85rem, 3.7vw, 2.9rem); font-weight: 700; line-height: 1.25; color: var(--d-head); }
.pv-title i { font-style: normal; color: var(--d-gold-lo); }
.sp-updated { display: inline-block; margin-top: 28px; font-size: 0.93rem; color: var(--d-faint); }
.sp-mail-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--d-line-gold); background: var(--surface-white); color: var(--d-gold); font-weight: 700; transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.sp-mail-btn:hover { background: var(--surface-champagne); border-color: var(--d-gold-hi); }
@keyframes spRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ab-hero .container > *, .pv-hero .container > * { animation: spRise 0.8s var(--ease-out) both; }
  .ab-hero .container > :nth-child(2), .pv-hero .container > :nth-child(2) { animation-delay: 0.08s; }
  .ab-hero .container > :nth-child(3), .pv-hero .container > :nth-child(3) { animation-delay: 0.16s; }
  .ab-hero .container > :nth-child(4), .pv-hero .container > :nth-child(4) { animation-delay: 0.24s; }
  .ab-hero .container > :nth-child(5) { animation-delay: 0.32s; }
}

/* ---------- من نحن: الرأس وقائمة الحقائق ---------- */
.subpage .ab-hero { padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 56px); }
.ab-hero .sp-title { margin: 22px 0 28px; font-size: clamp(3.3rem, 9.4vw, 7.6rem); line-height: 1.06; letter-spacing: -0.01em; }
.ab-hero .sp-lead { max-width: 31em; font-size: clamp(1.2rem, 1.95vw, 1.6rem); line-height: 1.85; }
.ab-hero .btn { margin-top: 36px; }
.ab-facts { margin: clamp(44px, 6vw, 84px) 0 0; border-top: 1px solid var(--d-line); }
.ab-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: clamp(18px, 2.2vw, 26px) 0; border-bottom: 1px solid var(--d-line); }
.ab-fact dt { font-size: clamp(0.98rem, 1.25vw, 1.08rem); color: var(--d-faint); }
.ab-fact dd { margin: 0; font-size: clamp(1.14rem, 1.9vw, 1.55rem); font-weight: 700; color: var(--d-head); text-align: end; }

/* ---------- من نحن: عنوان كبير وبطاقات بحدود شعرية ---------- */
.subpage .ab-sec { padding-block: clamp(58px, 8vw, 118px); }
.subpage .ab-sec + .ab-sec { padding-top: 0; }
.ab-label { display: block; margin-bottom: 6px; font-size: 0.98rem; font-weight: 700; color: var(--d-gold); }
.ab-h { max-width: 14em; font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.14; color: var(--d-head); }
.ab-h em { font-style: normal; color: var(--d-gold-hi); }
.ab-sub { max-width: 37em; margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.9; color: var(--d-muted); }
.ab-cards { display: grid; margin-top: clamp(34px, 4.6vw, 60px); border: 1px solid var(--d-line); border-radius: 26px; overflow: hidden; background: var(--surface-white); }
.ab-card { padding: clamp(26px, 3.2vw, 46px); }
.ab-card + .ab-card { border-top: 1px solid var(--d-line); }
.ab-n { display: block; font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; color: var(--d-gold); }
.ab-card h3 { margin: clamp(26px, 4.4vw, 62px) 0 12px; font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 700; color: var(--d-head); }
.ab-card p { font-size: clamp(1.04rem, 1.3vw, 1.14rem); line-height: 1.9; color: var(--d-muted); }
@media (min-width: 860px) {
  .ab-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-card + .ab-card { border-top: 0; border-inline-start: 1px solid var(--d-line); }
}

/* ---------- لوحة الختام (الصفحتان) ---------- */
.subpage .sp-cta { padding-block: clamp(10px, 2vw, 24px) clamp(64px, 9vw, 116px); }
.sp-cta-panel { position: relative; display: grid; gap: 26px; align-items: center; padding: clamp(30px, 5vw, 62px); border-radius: 34px; overflow: hidden; background: linear-gradient(135deg, var(--surface-white) 0%, var(--surface-champagne) 100%); box-shadow: inset 0 0 0 1px var(--d-line-gold), 0 30px 70px rgba(11, 21, 36, 0.08); }
.sp-cta-panel h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.3; color: var(--d-head); }
.sp-cta-panel p { max-width: 34em; margin-top: 10px; font-size: 1.1rem; line-height: 1.9; color: var(--d-muted); }
.sp-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }
.sp-cta-mail { font-weight: 700; color: var(--d-gold); }
.sp-cta-logo { justify-self: center; width: clamp(110px, 17vw, 210px); height: auto; }
@media (min-width: 860px) {
  .sp-cta-panel { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 859px) {
  .sp-cta-logo { display: none; }
}

/* ---------- الخصوصية ---------- */
.subpage .pv-hero { padding-block: clamp(52px, 8vw, 112px) clamp(40px, 6vw, 76px); }
.pv-title { max-width: 14em; margin: 20px 0 28px; font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 700; line-height: 1.16; color: var(--d-head); }
.pv-title em { font-style: normal; color: var(--d-gold-hi); }
.pv-lead { max-width: 39em; font-size: clamp(1.14rem, 1.85vw, 1.46rem); line-height: 1.95; color: var(--d-muted); }
.subpage .pv-block { padding-block: 0; }
.pv-block > .container > .pv-in { padding-block: clamp(44px, 6.4vw, 88px); border-top: 1px solid var(--d-line); }
.pv-h2 { font-size: clamp(1.9rem, 4.1vw, 3.2rem); font-weight: 700; line-height: 1.22; color: var(--d-head); }
.pv-sub { max-width: 40em; margin-top: 14px; font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.9; color: var(--d-muted); }
.pv-grid { display: grid; gap: 1px; margin-top: clamp(28px, 4vw, 50px); border: 1px solid var(--d-line); border-radius: 28px; overflow: hidden; background: var(--d-line); box-shadow: var(--shadow-card); }
.pv-cell { padding: clamp(26px, 3.4vw, 40px); background: var(--d-cell); transition: background 0.25s var(--ease-out); }
.pv-cell:hover { background: var(--surface-champagne); }
.pv-n { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; color: var(--d-gold-hi); }
.pv-cell h3 { margin: 12px 0 10px; font-size: clamp(1.3rem, 2.1vw, 1.62rem); font-weight: 700; color: var(--d-head); }
.pv-cell p { font-size: 1.07rem; line-height: 1.8; color: var(--d-muted); }
.pv-list { display: grid; gap: 34px 60px; margin-top: clamp(28px, 4vw, 48px); }
.pv-list li::before { content: ""; display: block; width: 30px; height: 2px; margin-bottom: 18px; border-radius: 2px; background: var(--d-gold-lo); }
.pv-list h3 { margin-bottom: 8px; font-size: clamp(1.22rem, 1.9vw, 1.45rem); font-weight: 700; color: var(--d-head); }
.pv-list p { max-width: 30em; font-size: 1.07rem; line-height: 1.8; color: var(--d-muted); }
@media (min-width: 720px) {
  .pv-grid, .pv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 999px) {
  .pv-grid.is-5 .pv-cell:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .pv-grid.is-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pv-grid.is-5 .pv-cell { grid-column: span 2; }
  .pv-grid.is-5 .pv-cell:nth-child(n + 4) { grid-column: span 3; }
}
.subpage .pv-end { padding-block: clamp(8px, 2vw, 20px) clamp(64px, 9vw, 116px); }
