/* ============ QAYDEX — Redesign ============ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1565FF;
  --primary-bright: #2D7BFF;
  --primary-deep: #0F4FE0;
  --navy: #0A1F44;
  --navy-2: #050B1F;
  --ink: #0A1F44;
  --ink-2: #3A4B6E;
  --ink-3: #6B7A99;
  --bg: #FAFBFF;
  --bg-2: #F2F5FC;
  --line: #E4EAF5;
  --accent: #FFB547;
  --mint: #1CC9A0;
  --violet: #7B5CFF;
  --pink: #FF5DA8;

  --shadow-sm: 0 1px 2px rgba(10,31,68,.06), 0 4px 12px rgba(10,31,68,.04);
  --shadow-md: 0 4px 12px rgba(10,31,68,.08), 0 16px 40px rgba(10,31,68,.08);
  --shadow-lg: 0 12px 32px rgba(10,31,68,.10), 0 32px 80px rgba(10,31,68,.12);
  --shadow-glow: 0 0 0 1px rgba(21,101,255,.18), 0 12px 40px rgba(21,101,255,.28);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --font-ar: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body[dir="rtl"] { direction: rtl; }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--primary); color: #fff; }

/* ============ Utility ============ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(21,101,255,.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(21,101,255,.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(21,101,255,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(21,101,255,.42); background: var(--primary-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #001234; transform: translateY(-2px); }

.h-display {
  font-size: clamp(44px, 7vw, 104px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.h-section {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.h-sub {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 500;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1320px;
  z-index: 100;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(228,234,245,.8);
  border-radius: 100px;
  padding: 10px 14px 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
}
.nav.hidden { transform: translateX(-50%) translateY(-150%); opacity: 0; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; }
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 900;
  position: relative;
}
.nav-logo-mark::after {
  content: "";
  position: absolute;
  inset: auto -3px -3px auto;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .lang {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  border-radius: 100px;
}
.nav-cta .lang:hover { background: var(--bg-2); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 0;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(21,101,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21,101,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  z-index: -2;
}
.hero-orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,255,.25), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-orb.b {
  background: radial-gradient(circle, rgba(255,181,71,.20), transparent 60%);
  animation-delay: -6s;
  animation-duration: 14s;
}
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px,-30px); }
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-bottom: 60px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
[dir="rtl"] .hero-pill { padding: 7px 18px 7px 7px; }
.hero-pill .new {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: .04em;
}

.hero-title {
  max-width: 1100px;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .word.highlight {
  color: var(--primary);
  position: relative;
}
.hero-title .word.highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 6px 0;
  height: 14px;
  background: rgba(21,101,255,.18);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  animation: underline 1s .8s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes underline {
  to { transform: scaleX(1); }
}

.hero-sub { max-width: 680px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-3);
}
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  margin-inline-start: -10px;
  font-weight: 700;
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
}
.avatars span:nth-child(1) { background: linear-gradient(135deg, #FF5DA8, #FFB547); }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #1CC9A0, #1565FF); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #7B5CFF, #FF5DA8); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #0A1F44, #1565FF); }

/* Hero product showcase */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 30px auto -120px;
  perspective: 2400px;
  transform-style: preserve-3d;
}
.hero-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #0E1B3E, #050B1F);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  transform: rotateX(8deg) translateY(0);
  transform-origin: bottom;
  transition: transform .1s linear;
  display: flex;
  flex-direction: column;
}
.hero-screen .qx-pos { flex: 1; min-height: 0; }
.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(21,101,255,.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,181,71,.10), transparent 50%);
}

.hero-screen-chrome {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.hero-screen-chrome span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.hero-screen-chrome span:nth-child(1) { background: #FF5F57; }
.hero-screen-chrome span:nth-child(2) { background: #FEBC2E; }
.hero-screen-chrome span:nth-child(3) { background: #28C840; }

.hero-screen-body {
  position: relative;
  height: calc(100% - 41px);
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 16px;
  color: #fff;
}
.hs-sidebar {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.hs-sidebar .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.hs-sidebar .item.active { background: var(--primary); color: #fff; }
.hs-sidebar .item .dot { width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.2); }
.hs-sidebar .item.active .dot { background: rgba(255,255,255,.35); }

.hs-main {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hs-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.hs-stat {
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 12px;
}
.hs-stat .label { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.hs-stat .val { font-size: 20px; font-weight: 800; font-family: var(--font-en); }
.hs-stat .delta { font-size: 11px; color: var(--mint); font-weight: 600; }

.hs-chart {
  flex: 1;
  background: rgba(255,255,255,.02);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 14px;
  display: flex;
  align-items: end;
  gap: 6px;
}
.hs-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), rgba(21,101,255,.2));
  border-radius: 4px 4px 0 0;
  min-height: 12%;
  animation: barRise 1.2s cubic-bezier(.2,.7,.2,1) forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}
@keyframes barRise { to { transform: scaleY(1); } }

.hs-right {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.hs-right .order {
  display: flex; justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
}
.hs-right .order .price { font-weight: 700; color: var(--accent); }

/* Floating cards around the screen */
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
.hero-float .icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 18px;
}
.hero-float.a { top: 12%; left: -40px; animation-delay: 0s; }
.hero-float.b { top: 20%; right: -50px; animation-delay: -2s; }
.hero-float.b .icon { background: var(--mint); }
.hero-float.c { bottom: 25%; left: -20px; animation-delay: -4s; }
.hero-float.c .icon { background: var(--accent); color: var(--navy); }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ MARQUEE LOGOS ============ */
.logos-strip {
  padding: 80px 0 40px;
  position: relative;
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
.logos-strip-label {
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 30px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeMove 35s linear infinite;
  width: max-content;
}
@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.logo-item {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: -.02em;
  white-space: nowrap;
  opacity: .6;
  transition: opacity .2s, color .2s;
}
.logo-item:hover { opacity: 1; color: var(--ink); }

/* ============ STATS ============ */
.stats-section {
  padding: 120px 0;
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .3s;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-card .num {
  font-family: var(--font-en);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.04em;
}
.stat-card .num .unit { color: var(--primary); }
.stat-card .label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 600;
}
.stat-card .glyph {
  position: absolute;
  inset-inline-end: 20px;
  top: 24px;
  font-size: 28px;
  opacity: .12;
}
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ HORIZONTAL FEATURES (pinned) ============ */
.features-pinned {
  position: relative;
  height: 460vh;
}
.features-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--navy-2);
  color: #fff;
}
.features-pin-header {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  padding: 50px 60px 30px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 5;
  background: linear-gradient(180deg, var(--navy-2) 60%, transparent);
}
.features-pin-header h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 600px;
  line-height: 1.05;
}
.features-pin-header h2 em { color: var(--primary-bright); font-style: normal; }
.features-pin-progress {
  display: flex;
  gap: 6px;
  align-items: center;
}
.features-pin-progress .dot {
  width: 28px; height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.features-pin-progress .dot.active { background: rgba(255,255,255,.2); }
.features-pin-progress .dot .fill {
  position: absolute;
  inset: 0;
  background: var(--primary-bright);
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .features-pin-progress .dot .fill { transform-origin: right; }

.features-track {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  gap: 4vw;
  will-change: transform;
}
[dir="rtl"] .features-track { right: 0; }
[dir="ltr"] .features-track { left: 0; }

.feature-card {
  flex-shrink: 0;
  width: 72vw;
  max-width: 1100px;
  height: 68vh;
  background: linear-gradient(145deg, #0E1B3E, #061029);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.feature-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(21,101,255,.15);
  border: 1px solid rgba(21,101,255,.3);
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-bright);
  width: max-content;
}
.feature-card h3 {
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-top: 20px;
  color: #fff;
}
.feature-card p {
  color: rgba(255,255,255,.65);
  font-size: 17px;
  line-height: 1.65;
  margin-top: 18px;
  max-width: 480px;
}
.feature-card ul {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card ul li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.feature-card ul li::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(21,101,255,.2);
  border: 1px solid var(--primary-bright);
  flex-shrink: 0;
  background-image: linear-gradient(135deg, var(--primary-bright), var(--primary));
}
.feature-card .visual {
  position: relative;
  background: rgba(255,255,255,.03);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}

@media (max-width: 880px) {
  .feature-card { grid-template-columns: 1fr; padding: 30px; width: 88vw; }
}

/* ============ HOW IT WORKS — Sticky stacking ============ */
.how-section {
  padding: 140px 0 0;
  position: relative;
}
.how-header { text-align: center; margin-bottom: 80px; }
.how-cards {
  position: relative;
  padding-bottom: 60vh;
}
.how-card {
  position: sticky;
  top: 18vh;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  min-height: 60vh;
  transition: transform .5s, opacity .5s;
}
.how-card:nth-child(1) { background: linear-gradient(140deg, #fff, #F0F5FF); }
.how-card:nth-child(2) { background: linear-gradient(140deg, #FFF8EB, #fff); top: calc(18vh + 20px); }
.how-card:nth-child(3) { background: linear-gradient(140deg, #ECFCF5, #fff); top: calc(18vh + 40px); }
.how-card:nth-child(4) { background: linear-gradient(140deg, #F2EEFF, #fff); top: calc(18vh + 60px); }

.how-card .step-num {
  font-family: var(--font-en);
  font-size: clamp(80px, 12vw, 200px);
  font-weight: 900;
  color: var(--primary);
  line-height: .8;
  letter-spacing: -.04em;
  opacity: .15;
  position: absolute;
  top: 30px;
  inset-inline-end: 40px;
  pointer-events: none;
}
.how-card .step-tag {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.how-card h3 {
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 14px;
  letter-spacing: -.015em;
}
.how-card p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 460px;
  line-height: 1.65;
}
.how-card .demo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10,31,68,.04);
  display: grid;
  place-items: center;
  min-height: 320px;
}
@media (max-width: 880px) {
  .how-card { grid-template-columns: 1fr; padding: 30px; }
}

/* ============ INDUSTRIES ============ */
.industries-section {
  padding: 160px 0;
  background: var(--navy-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.industries-section .h-section { color: #fff; }
.industries-section .h-sub { color: rgba(255,255,255,.6); }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 70px;
}
.ind-card {
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s, border-color .4s, background .4s;
}
.ind-card:hover {
  transform: translateY(-8px);
  border-color: rgba(21,101,255,.4);
  background: linear-gradient(145deg, rgba(21,101,255,.1), rgba(21,101,255,.02));
}
.ind-card .glyph {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(21,101,255,.15);
  display: grid; place-items: center;
  font-size: 28px;
}
.ind-card h4 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 18px;
}
.ind-card p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
}
.ind-card .arrow {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.ind-card:hover .arrow { background: var(--primary); transform: rotate(-45deg); }
[dir="rtl"] .ind-card:hover .arrow { transform: rotate(-135deg); }

@media (max-width: 880px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ DASHBOARD 3D SHOWCASE ============ */
.dash-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.dash-stage {
  position: relative;
  perspective: 2000px;
  perspective-origin: 50% 50%;
  margin-top: 60px;
}
.dash-screen {
  background: linear-gradient(160deg, #0E1B3E, #050B1F);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
  color: #fff;
  transform-style: preserve-3d;
  transition: transform .15s linear;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-title { font-weight: 800; font-size: 18px; }
.dash-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding-top: 22px;
}
.dash-card-dark {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 22px;
}
.dash-card-dark .label { font-size: 12px; color: rgba(255,255,255,.5); }
.dash-card-dark .big {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-top: 6px;
  letter-spacing: -.03em;
}

.dash-chart-area {
  height: 240px;
  position: relative;
  padding-top: 18px;
}
.dash-svg-chart {
  width: 100%;
  height: 100%;
}

.dash-right-grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

/* ============ PRICING ============ */
.pricing-section {
  padding: 160px 0;
}
.pricing-header { text-align: center; }
.pricing-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: 100px;
  padding: 4px;
  margin: 30px 0 50px;
}
.pricing-toggle button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  color: var(--ink-2);
  transition: all .2s;
}
.pricing-toggle button.active {
  background: var(--ink);
  color: #fff;
}
.pricing-toggle .save {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 8px;
  background: var(--mint);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured {
  background: linear-gradient(160deg, var(--navy-2), #0E1B3E);
  color: #fff;
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.plan.featured .price-label { color: rgba(255,255,255,.6); }
.plan.featured .plan-name { color: #fff; }
.plan.featured .plan-desc { color: rgba(255,255,255,.65); }
.plan.featured ul li { color: rgba(255,255,255,.85); }
.plan.featured .price-amount { color: #fff; }
.plan.featured .price-unit { color: rgba(255,255,255,.5); }

.plan-tag {
  position: absolute;
  top: -12px;
  inset-inline-end: 30px;
  background: var(--accent);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
}
.plan-name { font-size: 22px; font-weight: 800; }
.plan-desc { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.price-row { margin: 24px 0; display: flex; align-items: baseline; gap: 6px; }
.price-amount {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.price-unit { font-size: 15px; color: var(--ink-3); }
.price-label { font-size: 13px; color: var(--ink-3); margin-top: -8px; }

.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.plan ul li {
  display: flex; gap: 10px; align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.plan ul li::before {
  content: "✓";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(21,101,255,.12);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.plan.featured ul li::before {
  background: rgba(255,255,255,.12);
  color: var(--accent);
}
.plan .btn { width: 100%; }
.plan.featured .btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(255,181,71,.32);
}

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
}

/* ============ TESTIMONIALS ============ */
.tt-section {
  padding: 120px 0;
  background: var(--bg-2);
  overflow: hidden;
}
.tt-header { text-align: center; margin-bottom: 60px; }
.tt-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tt-row .track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ttScroll 45s linear infinite;
}
.tt-row.reverse .track { animation-direction: reverse; animation-duration: 50s; }
@keyframes ttScroll {
  to { transform: translateX(-50%); }
}
.tt-card {
  width: 380px;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tt-card .quote {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 20px;
}
.tt-card .author {
  display: flex; align-items: center; gap: 12px;
}
.tt-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.tt-card .name { font-weight: 700; font-size: 14px; }
.tt-card .role { font-size: 12px; color: var(--ink-3); }
.tt-card .stars { color: var(--accent); margin-bottom: 12px; font-size: 14px; }

/* ============ CTA ============ */
.cta-section {
  padding: 0 0 100px;
}
.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 60%, var(--navy) 100%);
  border-radius: var(--radius-xl);
  padding: 100px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,181,71,.3), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  position: relative;
}
.cta-card p {
  max-width: 600px;
  margin: 24px auto 36px;
  font-size: 18px;
  opacity: .85;
  position: relative;
}
.cta-card .ctas { display: flex; gap: 12px; justify-content: center; position: relative; flex-wrap: wrap; }
.cta-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cta-card .btn-primary:hover { background: var(--bg); color: var(--primary-deep); }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-card .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ============ FOOTER ============ */
.footer {
  padding: 80px 0 40px;
  background: var(--navy-2);
  color: rgba(255,255,255,.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-brand .desc { font-size: 14px; max-width: 320px; margin-top: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Reveal helpers ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

.section-head {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ============ QAYDEX POS UI MOCKUP ============ */
.qx-pos {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  height: 100%;
  background: #F4F6FB;
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 12px;
}
.qx-pos-sidebar {
  background: #0A0A0F;
  color: #fff;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.qx-pos-sidebar .store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.qx-pos-sidebar .store .logo {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 14px;
}
.qx-pos-sidebar .store .name { font-size: 12px; font-weight: 700; }
.qx-pos-sidebar .store .synced {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 8px;
  background: rgba(28,201,160,.15);
  border: 1px solid rgba(28,201,160,.4);
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 9px;
  color: var(--mint);
  font-weight: 700;
}
.qx-pos-sidebar .feat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}
.qx-pos-sidebar .feat.scale { background: linear-gradient(135deg, #4A2B7E, #2D1850); }
.qx-pos-sidebar .feat.ai { background: linear-gradient(135deg, #5C3AB8, #3A2580); }
.qx-pos-sidebar .feat.wa { background: linear-gradient(135deg, #0E5E2E, #06381B); color: #fff; }
.qx-pos-sidebar .group-label {
  font-size: 9px;
  color: rgba(255,255,255,.4);
  padding: 10px 12px 4px;
  letter-spacing: .04em;
}
.qx-pos-sidebar .nav-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 600;
}
.qx-pos-sidebar .nav-i.active { background: var(--primary); color: #fff; }
.qx-pos-sidebar .nav-i .badge {
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 100px;
}

.qx-pos-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.qx-pos-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qx-pos-search .field {
  flex: 1;
  height: 36px;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: var(--ink-3);
  font-size: 11px;
}
.qx-pos-search .ico-btn {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.qx-pos-search .touch {
  height: 36px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qx-pos-cats {
  display: flex;
  gap: 6px;
  overflow: hidden;
}
.qx-pos-cats .cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  border: 1px solid var(--line);
}
.qx-pos-cats .cat .n {
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 9px;
  color: var(--ink-3);
}
.qx-pos-cats .cat.active { border-color: var(--primary); color: var(--primary); }
.qx-pos-cats .cat.active .n { background: var(--primary); color: #fff; }

.qx-pos-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
}
.qx-prod {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.qx-prod.selected { border-color: var(--primary); }
.qx-prod .stock {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  background: rgba(28,201,160,.12);
  color: #0E8A66;
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.qx-prod .stock::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--mint);
  border-radius: 50%;
}
.qx-prod .count {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  width: 16px; height: 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
}
.qx-prod .img {
  width: 100%;
  aspect-ratio: 1.4;
  background: linear-gradient(135deg, #F8F9FC, #EDF1F8);
  border-radius: 8px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.qx-prod .name {
  margin-top: 6px;
  font-size: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qx-prod .price {
  text-align: center;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-en);
  margin-top: 2px;
}
.qx-prod .add {
  margin-top: 6px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
}
.qx-prod .stepper {
  margin-top: 6px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}
.qx-prod .stepper .pm { color: var(--primary); font-size: 13px; }

.qx-pos-cart {
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-inline-start: 1px solid var(--line);
  overflow: hidden;
}
.qx-pos-cart .cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qx-pos-cart .cart-top .basket {
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
}
.qx-pos-cart .cart-top .badge-c {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-en);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 100px;
}
.qx-pos-cart .cart-top .plus {
  width: 24px; height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.qx-pos-cart .actions {
  display: flex;
  gap: 4px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.qx-pos-cart .actions .ico {
  width: 22px; height: 22px;
  background: rgba(123,92,255,.10);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px;
}
.qx-pos-cart .actions .ico.del { background: rgba(255,93,168,.10); }
.qx-pos-cart .actions .ico.broom { background: rgba(255,181,71,.18); }
.qx-pos-cart .actions .ico.user { background: rgba(28,201,160,.15); }
.qx-pos-cart .actions .title {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 700;
}

.qx-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.qx-line .icons {
  display: flex;
  gap: 3px;
}
.qx-line .icons span {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--bg-2);
  display: grid; place-items: center;
  font-size: 9px;
  color: var(--ink-3);
}
.qx-line .icons .trash { background: #FEE2E2; color: #DC2626; }
.qx-line .icons .dollar { background: #DCFCE7; color: #16A34A; }
.qx-line .meta { text-align: end; }
.qx-line .meta .nm { font-size: 10px; font-weight: 600; }
.qx-line .meta .pr { font-size: 9px; color: var(--ink-3); font-family: var(--font-en); }
.qx-line .thumb {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #F8F9FC, #EDF1F8);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 16px;
}
.qx-line .total {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.qx-line .qtybox {
  font-family: var(--font-en);
  font-size: 10px;
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.qx-pos-cart .summary {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 11px;
}
.qx-pos-cart .summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--ink-2);
}
.qx-pos-cart .summary .row.total {
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-en);
  margin-top: 6px;
}
.qx-pos-cart .summary .row.total b { font-family: var(--font-ar); }
.qx-pos-cart .pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.qx-pos-cart .pay-methods button {
  padding: 6px 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-2);
}
.qx-pos-cart .pay-methods button.active {
  border-color: var(--primary);
  color: var(--primary);
}
.qx-pos-cart .checkout {
  margin-top: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 12px;
}
.qx-pos-cart .checkout .amount { font-family: var(--font-en); }

/* ============ Restaurant Tables ============ */
.qx-tables {
  background: #FAFBFE;
  border-radius: 12px;
  padding: 14px;
  height: 100%;
  position: relative;
  background-image:
    linear-gradient(rgba(10,31,68,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,68,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}
.qx-tables .tbl {
  position: absolute;
  background: linear-gradient(140deg, #B07A3D, #8B5E2F);
  border-radius: 6px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-en);
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(139,94,47,.3);
}
.qx-tables .tbl.round { border-radius: 50%; }
.qx-tables .tbl.busy { background: linear-gradient(140deg, #D04848, #9B2C2C); }
.qx-tables .tbl.ready { background: linear-gradient(140deg, #E5A100, #B27800); }
.qx-tables .tbl::before, .qx-tables .tbl::after {
  content: "";
  position: absolute;
  width: 12px; height: 6px;
  background: #E5DCC8;
  border-radius: 3px;
}
.qx-tables .tbl::before { top: -8px; left: 50%; transform: translateX(-50%); }
.qx-tables .tbl::after { bottom: -8px; left: 50%; transform: translateX(-50%); }
.qx-tables .tbl.round::before, .qx-tables .tbl.round::after { display: none; }
.qx-tables .price-bubble {
  position: absolute;
  background: #FF5DA8;
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.qx-tables .legend {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.9);
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.qx-tables .legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qx-tables .legend i {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* ============ Phone mockup ============ */
.qx-phone {
  width: 220px;
  aspect-ratio: 9/19.5;
  background: #050B1F;
  border-radius: 32px;
  border: 6px solid #0E1B3E;
  padding: 10px;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.qx-phone .notch {
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 16px;
  background: #050B1F;
  border-radius: 100px;
  z-index: 2;
}
.qx-phone-inner {
  background: #fff;
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 9px;
}
.qx-phone-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 4px;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 600;
}
.qx-phone-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}
.qx-phone-search .field {
  flex: 1;
  height: 28px;
  background: #F4F6FB;
  border-radius: 100px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: var(--ink-3);
  font-size: 9px;
}
.qx-phone-search .menu, .qx-phone-search .qr {
  width: 28px; height: 28px;
  background: #FFE4E4;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #FF5DA8;
  font-size: 11px;
}
.qx-phone-search .qr { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.qx-phone-cats {
  display: flex;
  gap: 4px;
  padding: 4px 10px;
  overflow: hidden;
}
.qx-phone-cats .cat {
  padding: 4px 10px;
  background: #F4F6FB;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.qx-phone-cats .cat.active { background: var(--primary); color: #fff; }
.qx-phone-grid {
  flex: 1;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  overflow: hidden;
}
.qx-phone-grid .p {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  position: relative;
  font-size: 9px;
}
.qx-phone-grid .p.sel { border-color: var(--primary); }
.qx-phone-grid .p .img {
  aspect-ratio: 1.5;
  background: linear-gradient(135deg, #F8F9FC, #EDF1F8);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 18px;
}
.qx-phone-grid .p .stock {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  background: rgba(28,201,160,.12);
  color: #0E8A66;
  font-family: var(--font-en);
  font-size: 7px;
  padding: 1px 4px;
  border-radius: 100px;
  font-weight: 700;
}
.qx-phone-grid .p .count {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  background: var(--primary);
  color: #fff;
  width: 12px; height: 12px;
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 7px;
  display: grid; place-items: center;
  font-weight: 700;
}
.qx-phone-grid .p .nm { font-size: 8px; text-align: center; margin-top: 4px; }
.qx-phone-grid .p .pr { font-size: 9px; text-align: center; color: var(--primary); font-weight: 700; font-family: var(--font-en); }
.qx-phone-tabbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-top: 1px solid var(--line);
}
.qx-phone-tabbar .t {
  flex: 1;
  background: #FFEAEA;
  color: #FF5DA8;
  padding: 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}
.qx-phone-tabbar .t.active { background: #FF5DA8; color: #fff; }
.qx-phone-cart-fab {
  position: absolute;
  bottom: 60px;
  inset-inline-start: 12px;
  background: #FFE4E4;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

/* ============ SCROLL CONNECTORS ============ */

/* AI Superhero Robot — flies between sections */
.ai-hero {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  width: 110px;
  height: 110px;
  top: 50%;
  inset-inline-end: 60px;
  transform: translate(0, -50%);
  transition: inset-inline-end .9s cubic-bezier(.34, 1.56, .64, 1),
              inset-inline-start .9s cubic-bezier(.34, 1.56, .64, 1),
              top .9s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 14px 28px rgba(21,101,255,.35));
}

.ai-hero .stage {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1);
}

/* FLYING — horizontal pose, leaning forward */
.ai-hero.flying .stage {
  transform: rotate(-25deg) translateX(4px);
}
.ai-hero.flying.left .stage {
  transform: rotate(25deg) translateX(-4px) scaleX(-1);
}
.ai-hero.landing .stage {
  transform: rotate(0deg) scale(1.05);
  animation: heroBounce .7s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes heroBounce {
  0% { transform: translateY(-30px) rotate(-10deg) scale(.9); }
  60% { transform: translateY(8px) rotate(2deg) scale(1.08); }
  100% { transform: translateY(0) rotate(0deg) scale(1.05); }
}

/* idle floating */
.ai-hero.landing .stage::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: heroFloat 3.2s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ai-hero.landing .robot { animation: heroFloat 3.2s ease-in-out infinite; }

/* Robot body */
.ai-hero .robot {
  position: absolute;
  inset: 0;
  display: block;
}

/* CAPE — flowing behind */
.ai-hero .cape {
  position: absolute;
  width: 80px;
  height: 100px;
  inset-inline-end: 50%;
  top: 30%;
  z-index: -1;
  transform-origin: 100% 20%;
}
.ai-hero.flying .cape {
  animation: capeFly .6s ease-in-out infinite alternate;
}
.ai-hero.landing .cape {
  animation: capeIdle 3s ease-in-out infinite alternate;
}
@keyframes capeFly {
  0% { transform: rotate(-5deg) skewY(-3deg) translateX(-4px); }
  100% { transform: rotate(8deg) skewY(3deg) translateX(0px); }
}
@keyframes capeIdle {
  0% { transform: rotate(-2deg) skewY(0); }
  100% { transform: rotate(4deg) skewY(2deg); }
}

/* SPEED LINES — visible while flying */
.ai-hero .speed-lines {
  position: absolute;
  inset-inline-end: -10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity .3s;
}
[dir="rtl"] .ai-hero .speed-lines { inset-inline-end: auto; inset-inline-start: -10px; }
.ai-hero.flying .speed-lines { opacity: 1; }
.ai-hero .speed-lines i {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 100px;
  animation: speedDash .35s linear infinite;
}
.ai-hero .speed-lines i:nth-child(1) { width: 40px; animation-delay: 0s; }
.ai-hero .speed-lines i:nth-child(2) { width: 60px; animation-delay: .08s; }
.ai-hero .speed-lines i:nth-child(3) { width: 30px; animation-delay: .16s; }
.ai-hero .speed-lines i:nth-child(4) { width: 50px; animation-delay: .24s; }
@keyframes speedDash {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(20px); opacity: 0; }
}
[dir="rtl"] .ai-hero .speed-lines i { background: linear-gradient(270deg, var(--accent), transparent); }
[dir="rtl"] @keyframes speedDash {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-20px); opacity: 0; }
}

/* AURA — circular glow while landing */
.ai-hero .aura {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-color, rgba(21,101,255,.4)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s;
  z-index: -2;
  filter: blur(8px);
}
.ai-hero.landing .aura {
  opacity: 1;
  animation: auraPulse 2.5s ease-in-out infinite;
}
@keyframes auraPulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* SPARKLES around the robot */
.ai-hero .sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ai-hero .sparkles span {
  position: absolute;
  font-size: 12px;
  opacity: 0;
  color: var(--accent);
  animation: sparkleFloat 1.6s ease-in-out infinite;
}
.ai-hero.landing .sparkles span { opacity: 1; }
.ai-hero .sparkles span:nth-child(1) { top: -8px; left: 8px;  animation-delay: 0s; }
.ai-hero .sparkles span:nth-child(2) { top: 8px;  right: 0px; animation-delay: .4s; }
.ai-hero .sparkles span:nth-child(3) { bottom: 0; left: 14px; animation-delay: .8s; }
.ai-hero .sparkles span:nth-child(4) { bottom: 14px; right: 10px; animation-delay: 1.2s; }
@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(.4); opacity: 0; }
  50% { transform: translateY(-8px) scale(1); opacity: 1; }
  100% { transform: translateY(-16px) scale(.4); opacity: 0; }
}

/* SPEECH BUBBLE — appears on landing */
.ai-hero .bubble {
  position: absolute;
  top: 50%;
  inset-inline-end: 130%;
  transform: translateY(-50%) translateX(-10px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-ar);
  opacity: 0;
  transition: opacity .5s, transform .5s;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.ai-hero.left .bubble {
  inset-inline-end: auto;
  inset-inline-start: 130%;
  transform: translateY(-50%) translateX(10px);
}
.ai-hero .bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: -6px;
  width: 12px; height: 12px;
  background: var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.ai-hero.left .bubble::after {
  inset-inline-end: auto;
  inset-inline-start: -6px;
}
.ai-hero.landing.show-bubble .bubble {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Hide on small screens (no room) */
@media (max-width: 880px) {
  .ai-hero { display: none; }
}

/* SVG SECTION DIVIDERS (kept for visual flow) */
.section-divider {
  position: relative;
  height: 80px;
  margin-top: -1px;
  overflow: hidden;
  z-index: 1;
}
.section-divider svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 100%;
}
.section-divider.flip svg { transform: scaleY(-1); }
.section-divider .wave-path {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2s cubic-bezier(.4,0,.2,1);
}
.section-divider.in .wave-path { stroke-dashoffset: 0; }

/* Drift shapes (unused but kept) */
.drift-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* Custom restaurant design showcase inside KDS section */
.custom-design {
  margin-top: 80px;
  background: linear-gradient(160deg, rgba(255,93,168,.08), rgba(255,181,71,.05));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.custom-design::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,93,168,.12), transparent 60%);
  pointer-events: none;
}
.custom-design .stamp {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  background: linear-gradient(135deg, #FF5DA8, #FFB547);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.custom-design .stamp::before {
  content: "";
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
.custom-design .copy {
  position: relative;
  z-index: 1;
}
.custom-design .copy .badge-pink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,93,168,.15);
  border: 1px solid rgba(255,93,168,.3);
  border-radius: 100px;
  color: #FF8FC4;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.custom-design h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}
.custom-design h3 em {
  background: linear-gradient(135deg, #FF8FC4, #FFD17A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.custom-design p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.custom-design .perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.custom-design .perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.custom-design .perks li::before {
  content: "✓";
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #FF5DA8, #C84CFF);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.custom-design .ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.custom-design .ctas .btn-primary {
  background: linear-gradient(135deg, #FF5DA8, #C84CFF);
  box-shadow: 0 8px 24px rgba(255,93,168,.4);
}
.custom-design .ctas .btn-primary:hover {
  background: linear-gradient(135deg, #FF4A9C, #B83CEF);
}
.custom-design .ctas .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.custom-design .ctas .btn-ghost:hover { border-color: #fff; }

.custom-design .preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #050B1F;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .4s ease;
}
.custom-design .preview:hover { transform: scale(1.02); }
.custom-design .preview .chrome {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #0E1B3E;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.custom-design .preview .chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.custom-design .preview .chrome span:nth-child(1) { background: #FF5F57; }
.custom-design .preview .chrome span:nth-child(2) { background: #FEBC2E; }
.custom-design .preview .chrome span:nth-child(3) { background: #28C840; }
.custom-design .preview img {
  width: 100%;
  display: block;
}
.custom-design .preview .tag-pop {
  position: absolute;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.custom-design .preview .tag-pop.a {
  top: 20%;
  inset-inline-start: -14px;
  animation: floaty 5s ease-in-out infinite;
}
.custom-design .preview .tag-pop.b {
  bottom: 22%;
  inset-inline-end: -14px;
  animation: floaty 6s ease-in-out infinite -2s;
  background: linear-gradient(135deg, #FF5DA8, #FFB547);
  color: #fff;
}

.custom-design .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.custom-design .stat-mini {
  text-align: start;
}
.custom-design .stat-mini .v {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF8FC4, #FFD17A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.custom-design .stat-mini .l {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .custom-design { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
}

/* ============ KITCHEN MODE (KDS) ============ */
.kds-section {
  padding: 140px 0;
  background: linear-gradient(180deg, #0A0F1F, #050B1F);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.kds-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255,93,168,.12), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(255,181,71,.10), transparent 50%);
  pointer-events: none;
}
.kds-section .h-section { color: #fff; }
.kds-section .h-sub { color: rgba(255,255,255,.6); }
.kds-section .eyebrow {
  background: rgba(255,93,168,.15);
  color: #FF8FC4;
}
.kds-section .eyebrow::before { background: #FF8FC4; box-shadow: 0 0 0 4px rgba(255,143,196,.2); }

.kds-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-top: 70px;
  align-items: center;
}
.kds-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.kds-feat {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.kds-feat .num {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FF5DA8, #C84CFF);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(255,93,168,.3);
}
.kds-feat h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.kds-feat p {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}

/* KDS display mockup */
.kds-display {
  background: linear-gradient(160deg, #1A1F3A, #0A0F1F);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  position: relative;
}
.kds-display .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.kds-display .head .title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
}
.kds-display .head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(28,201,160,.15);
  border: 1px solid rgba(28,201,160,.3);
  border-radius: 100px;
  color: var(--mint);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}
.kds-display .head .live::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
.kds-display .head .filters { display: flex; gap: 6px; }
.kds-display .head .filters span {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
}
.kds-display .head .filters span.active { background: var(--primary); color: #fff; }

.kds-tickets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kds-ticket {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kds-ticket .t-head {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.kds-ticket.green .t-head { background: linear-gradient(180deg, rgba(28,201,160,.22), rgba(28,201,160,.05)); color: #5BE5BD; }
.kds-ticket.amber .t-head { background: linear-gradient(180deg, rgba(255,181,71,.22), rgba(255,181,71,.05)); color: #FFD17A; }
.kds-ticket.red .t-head {
  background: linear-gradient(180deg, rgba(208,72,72,.28), rgba(208,72,72,.05));
  color: #FF8F8F;
  animation: redPulse 1.6s ease-in-out infinite;
}
@keyframes redPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(208,72,72,0); }
  50% { box-shadow: 0 0 0 4px rgba(208,72,72,.3); }
}
.kds-ticket .t-head .timer {
  background: rgba(0,0,0,.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.kds-ticket .t-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kds-ticket .item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.kds-ticket .item .qty {
  background: rgba(255,255,255,.08);
  padding: 1px 7px;
  border-radius: 6px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.kds-ticket .item .note {
  display: block;
  font-size: 10px;
  color: rgba(255,181,71,.85);
  font-weight: 600;
  margin-top: 2px;
}
.kds-ticket .t-foot {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.kds-ticket .t-foot button {
  flex: 1;
  padding: 7px 8px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.08);
}
.kds-ticket .t-foot button.done {
  background: var(--mint);
  color: #053D2C;
  border-color: transparent;
}

.kds-stations {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.kds-stations .station {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}
.kds-stations .station .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

@media (max-width: 880px) {
  .kds-grid { grid-template-columns: 1fr; gap: 30px; }
  .kds-tickets { grid-template-columns: 1fr; }
}

/* ============ Real-image showcase ============ */
.app-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #fff;
}
.hero-screen .app-shot {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1920/1018;
}
/* When real screenshot is used, the hero-screen wraps it; let aspect follow image */
.hero-screen.has-shot {
  aspect-ratio: 1920/1018;
  background: #fff;
}
.feature-card .visual.shot {
  padding: 0;
  background: #050B1F;
}
.feature-card .visual.shot img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
}

/* iPhone-style mockup wrapping a real screenshot */
.phone-mock {
  width: 260px;
  aspect-ratio: 9/19.5;
  background: #050B1F;
  border-radius: 38px;
  border: 7px solid #0E1B3E;
  padding: 0;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  overflow: hidden;
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px;
  background: #050B1F;
  border-radius: 100px;
  z-index: 2;
}
.phone-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 30px;
}

/* ============ LAUNCH BANNER ============ */
.launch-banner {
  position: relative;
  background: linear-gradient(90deg, #FF5DA8, #FFB547);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.launch-banner .fire { font-size: 18px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.launch-banner .timer {
  background: rgba(0,0,0,.25);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-en);
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.launch-banner .cta-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.launch-banner .cta-link:hover { opacity: .85; }
.body-has-banner .nav { top: 56px; }

/* ============ AI ENGINE ============ */
.ai-section {
  padding: 160px 0;
  background: var(--navy-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(123,92,255,.18), transparent 60%);
  pointer-events: none;
}
.ai-section .h-section { color: #fff; }
.ai-section .h-sub { color: rgba(255,255,255,.65); }
.ai-section .eyebrow { background: rgba(123,92,255,.15); color: #B49BFF; }
.ai-section .eyebrow::before { background: #B49BFF; box-shadow: 0 0 0 4px rgba(180,155,255,.2); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 70px;
}
.ai-card {
  background: linear-gradient(160deg, rgba(123,92,255,.10), rgba(21,101,255,.04));
  border: 1px solid rgba(123,92,255,.20);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.ai-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123,92,255,.5);
}
.ai-card .live {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(28,201,160,.15);
  color: var(--mint);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}
.ai-card .live::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(28,201,160,.2);
  animation: pulse 1.4s ease-in-out infinite;
}
.ai-card .glyph {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7B5CFF, #5C7BFF);
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.ai-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: #fff;
}
.ai-card .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0;
}
.ai-card .stat .num {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #B49BFF, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-card .stat .label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
  max-width: 120px;
}
.ai-card p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 880px) {
  .ai-grid { grid-template-columns: 1fr; }
}

/* ============ MIGRATION ============ */
.mig-section {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
}
.mig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}
.mig-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mig-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.mig-step:hover { transform: translateX(8px); border-color: var(--primary); }
[dir="rtl"] .mig-step:hover { transform: translateX(-8px); }
.mig-step .n {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.mig-step h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.mig-step p { font-size: 14px; color: var(--ink-2); }

.mig-illu {
  background: linear-gradient(145deg, var(--bg-2), #fff);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
  min-height: 380px;
}
.mig-from, .mig-to {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  width: 180px;
  box-shadow: var(--shadow-md);
}
.mig-from { top: 40px; inset-inline-start: 30px; }
.mig-from .lbl { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.mig-from .nm { font-weight: 800; font-size: 16px; }
.mig-from .pill { margin-top: 10px; padding: 4px 10px; background: var(--bg-2); border-radius: 100px; font-size: 11px; color: var(--ink-2); display: inline-block; }
.mig-to { bottom: 40px; inset-inline-end: 30px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; border-color: transparent; }
.mig-to .lbl { font-size: 12px; color: rgba(255,255,255,.7); }
.mig-to .pill { background: rgba(255,255,255,.15); color: #fff; }
.mig-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: var(--primary);
}
.mig-compat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.mig-compat .chip {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mig-compat .chip:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 880px) {
  .mig-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ ECOSYSTEM ============ */
.eco-section {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.eco-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.eco-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.eco-card .visual {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.eco-card.monitor .visual { background: linear-gradient(135deg, #7B5CFF, #4A2B7E); }
.eco-card.delivery .visual { background: linear-gradient(135deg, #FF5DA8, #C84CFF); }
.eco-card .gift-tag {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}
.eco-card .body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.eco-card .role { font-size: 12px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.eco-card h3 { font-size: 28px; font-weight: 800; margin: 10px 0 14px; letter-spacing: -.01em; }
.eco-card p { font-size: 15px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.eco-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.eco-card ul li { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.eco-card .learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-top: auto;
}
.eco-card .learn:hover { gap: 10px; }
@media (max-width: 880px) {
  .eco-grid { grid-template-columns: 1fr; }
}

/* ============ COMPARISON TABLE ============ */
.cmp-section {
  padding: 140px 0;
  background: var(--bg);
}
.cmp-wrap {
  margin-top: 60px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.cmp-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  font-size: 15px;
}
.cmp-table thead tr {
  background: var(--navy-2);
  color: #fff;
}
.cmp-table thead th {
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}
.cmp-table thead th.feature {
  text-align: start;
  background: var(--navy-2);
}
.cmp-table thead th.qaydex {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  position: relative;
}
.cmp-table thead th.qaydex::after {
  content: "★";
  position: absolute;
  top: 6px;
  inset-inline-end: 12px;
  font-size: 12px;
  color: var(--accent);
}
.cmp-table tbody tr { border-top: 1px solid var(--line); }
.cmp-table tbody tr:nth-child(even) { background: var(--bg-2); }
.cmp-table td {
  padding: 18px 20px;
  text-align: center;
  color: var(--ink-2);
}
.cmp-table td.feature {
  text-align: start;
  font-weight: 600;
  color: var(--ink);
}
.cmp-table td.qaydex { background: rgba(21,101,255,.04); }
.cmp-table .ck { color: var(--mint); font-size: 20px; font-weight: 800; }
.cmp-table .x { color: #DC2626; font-size: 18px; font-weight: 700; }
.cmp-table .partial { color: var(--accent); font-size: 13px; font-weight: 700; }
.cmp-table .price-cell { font-family: var(--font-en); font-weight: 700; }
.cmp-table .price-cell.win { color: var(--mint); font-size: 16px; }

/* ============ PRICING UPDATES ============ */
.plan .save-badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 8px;
  background: var(--mint);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-en);
}
.plan .price-old {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--ink-3);
  text-decoration: line-through;
  margin-inline-end: 8px;
}
.plan.featured .price-old { color: rgba(255,255,255,.5); }
.plan .lifetime-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(28,201,160,.15);
  color: var(--mint);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.plan.featured .lifetime-pill { background: rgba(255,181,71,.18); color: var(--accent); }

/* ============ DOWNLOAD ============ */
.dl-section {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.dl-stats {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin: 30px 0 50px;
  font-family: var(--font-en);
}
.dl-stats > div { text-align: center; }
.dl-stats .v {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.dl-stats .l {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-ar);
  font-weight: 600;
  margin-top: 4px;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.dl-card .platform {
  font-size: 36px;
  margin-bottom: 8px;
}
.dl-card .os {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.dl-card h4 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}
.dl-card .btn { width: 100%; }
.dl-card .meta {
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--ink-3);
}
@media (max-width: 880px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq-section {
  padding: 140px 0;
}
.faq-list {
  max-width: 800px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-item summary {
  padding: 22px 26px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .3s;
  font-family: var(--font-en);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans {
  padding: 0 26px 22px;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 15px;
}

/* ============ WhatsApp FAB ============ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .3s;
  animation: wa-pulse 2s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.1); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============ Hero pill multi ============ */
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.hero-tags .tag {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

/* ============ Reasons (Why Different) ============ */
.why-section {
  padding: 140px 0;
  background: var(--bg-2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  transition: transform .3s, border-color .3s;
  overflow: hidden;
  position: relative;
}
.why-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.why-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}
.why-card .illu {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--bg-2), #fff);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 32px;
  overflow: hidden;
  padding: 12px;
}
@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { grid-template-columns: 1fr; }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   Breakpoints: Tablet ≤ 1024px, Mobile ≤ 720px
   ============================================ */

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  /* Nav */
  .nav { padding: 8px 12px 8px 18px; }
  .nav-links { display: none; }
  .nav-cta .lang { display: none; }
  .nav-cta .btn { padding: 8px 14px !important; font-size: 13px; }

  /* Hero */
  .hero { padding: 110px 0 0; }
  .h-display { font-size: clamp(36px, 6vw, 70px); }
  .h-section { font-size: clamp(30px, 4.5vw, 52px); }
  .hero-showcase { margin: 20px auto -60px; }
  .hero-float { display: none; }

  /* Stats */
  .stats-section { padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card { padding: 28px 22px; }

  /* AI */
  .ai-section, .why-section, .mig-section, .eco-section,
  .industries-section, .dash-section, .cmp-section, .kds-section,
  .pricing-section, .dl-section, .faq-section, .tt-section { padding: 90px 0; }

  .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid > :nth-child(3) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }

  /* Migration */
  .mig-grid { gap: 50px; }

  /* Why — 2 cards per row already */
  .why-card { grid-template-columns: 1.3fr 1fr; padding: 30px; gap: 20px; }

  /* Kitchen */
  .kds-grid { gap: 40px; }
  .kds-tickets { grid-template-columns: 1fr 1fr; }
  .kds-tickets > :nth-child(3) { grid-column: 1 / -1; }
  .custom-design { padding: 36px; gap: 30px; }

  /* Ecosystem 3 → 2 (third spans wide) */
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .eco-grid > :nth-child(3) { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }

  /* Industries 4 → 3 */
  .ind-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Pricing — featured no longer needs to be elevated */
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pricing-grid > :nth-child(3) { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
  .plan.featured { transform: none; }

  /* Download */
  .dl-grid { grid-template-columns: repeat(3, 1fr); }
  .dl-card { padding: 24px 18px; }

  /* Testimonials */
  .tt-section > .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .tt-section > .container > div[style*="grid-template-columns: repeat(3"] > :nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    justify-self: center;
  }

  /* Eco card extra spacing reset */
  .eco-card .visual { height: 180px; }

  /* Custom design preview */
  .custom-design .preview .tag-pop.a { inset-inline-start: 6px; }
  .custom-design .preview .tag-pop.b { inset-inline-end: 6px; }

  /* Footer */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
  .footer-grid > :nth-child(5) { grid-column: 1 / -1; }
}

/* ===== MOBILE ===== */
@media (max-width: 720px) {
  :root {
    --radius-lg: 22px;
    --radius-xl: 26px;
  }
  .container { padding: 0 16px; }

  /* Banner */
  .launch-banner {
    font-size: 12px;
    padding: 8px 12px;
    gap: 6px;
    flex-direction: column;
  }
  .launch-banner .cta-link { font-size: 13px; }

  /* Nav */
  .nav { top: 76px; padding: 6px 8px 6px 14px; }
  .body-has-banner .nav { top: 76px; }
  .nav-logo { font-size: 18px; }
  .nav-logo-mark { width: 28px; height: 28px; font-size: 12px; }
  .nav-cta .btn { padding: 7px 12px !important; font-size: 12px; }

  /* Hero */
  .hero { padding: 100px 0 0; min-height: auto; }
  .hero-inner { gap: 18px; padding: 0 4px 40px; }
  .hero-pill { font-size: 12px; padding: 5px 12px 5px 5px; }
  .hero-pill .new { font-size: 10px; padding: 3px 8px; }
  .h-display, .hero-title.h-display { font-size: clamp(32px, 9vw, 48px); line-height: 1.05; }
  .hero-title .word { display: inline-block; margin: 0 2px; }
  .h-sub, .hero-sub { font-size: 14px; line-height: 1.6; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; padding: 14px 20px !important; font-size: 14px !important; }
  .hero-tags { gap: 6px; }
  .hero-tags .tag { font-size: 11px; padding: 4px 10px; }
  .hero-trust { font-size: 12px; flex-direction: column; gap: 8px; }

  .hero-showcase { margin: 14px auto -30px; }
  .hero-screen { border-radius: 14px; }
  .hero-screen-chrome { padding: 10px 14px; }
  .hero-screen-chrome span { width: 8px; height: 8px; }

  /* General sections */
  .stats-section, .ai-section, .why-section, .mig-section, .eco-section,
  .industries-section, .dash-section, .cmp-section, .kds-section,
  .pricing-section, .dl-section, .faq-section, .tt-section, .cta-section {
    padding: 60px 0 !important;
  }

  .section-head { margin-bottom: 36px; gap: 12px; }
  .h-section { font-size: clamp(26px, 6.5vw, 38px) !important; line-height: 1.1; }
  .eyebrow { font-size: 11px; padding: 5px 12px; }

  /* Section divider */
  .section-divider { height: 50px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 22px 16px; }
  .stat-card .num { font-size: 36px !important; }
  .stat-card .label { font-size: 12px; }
  .stat-card .glyph { font-size: 22px; top: 14px; inset-inline-end: 14px; }

  /* AI Engine */
  .ai-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .ai-grid > :nth-child(3) { grid-column: auto; max-width: none; }
  .ai-card { padding: 24px; }
  .ai-card h3 { font-size: 20px; }
  .ai-card .stat .num { font-size: 48px; }
  .ai-card p { font-size: 14px; }

  /* Migration */
  .mig-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
  .mig-step { padding: 16px; gap: 14px; }
  .mig-step .n { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
  .mig-step h4 { font-size: 16px; }
  .mig-step p { font-size: 13px; }
  .mig-illu { padding: 20px; min-height: 280px; }
  .mig-from, .mig-to { width: 140px; padding: 14px 16px; }
  .mig-arrow { font-size: 40px; }
  .mig-compat .chip { font-size: 12px; padding: 6px 10px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .why-card h3 { font-size: 20px; }
  .why-card p { font-size: 13px; }
  .why-card .illu { height: 130px; padding: 8px; }

  /* Kitchen */
  .kds-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .kds-features { gap: 20px; }
  .kds-feat { gap: 14px; }
  .kds-feat .num { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
  .kds-feat h4 { font-size: 17px; }
  .kds-feat p { font-size: 13px; }
  .kds-display { padding: 16px; border-radius: 14px; }
  .kds-display .head { padding-bottom: 12px; margin-bottom: 12px; }
  .kds-display .head .title { font-size: 13px; gap: 8px; }
  .kds-display .head .filters span { padding: 4px 10px; font-size: 10px; }
  .kds-tickets { grid-template-columns: 1fr; gap: 10px; }
  .kds-tickets > :nth-child(3) { grid-column: auto; }
  .kds-stations { gap: 6px; }
  .kds-stations .station { font-size: 10px; padding: 4px 10px; }

  /* Custom design */
  .custom-design {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    margin-top: 50px;
  }
  .custom-design h3 { font-size: 24px; }
  .custom-design p { font-size: 14px; }
  .custom-design .perks li { font-size: 13px; }
  .custom-design .ctas .btn { width: 100%; }
  .custom-design .ctas { flex-direction: column; }
  .custom-design .stats-row { gap: 10px; padding-top: 18px; margin-top: 18px; }
  .custom-design .stat-mini .v { font-size: 22px; }
  .custom-design .stat-mini .l { font-size: 11px; }
  .custom-design .stamp { font-size: 10px; padding: 4px 10px; top: 14px; inset-inline-end: 14px; }
  .custom-design .preview .tag-pop { font-size: 10px; padding: 5px 10px; }
  .custom-design .preview .tag-pop.a { top: 10%; }
  .custom-design .preview .tag-pop.b { bottom: 10%; }

  /* Ecosystem */
  .eco-grid { grid-template-columns: 1fr; gap: 16px; }
  .eco-grid > :nth-child(3) { grid-column: auto; max-width: none; }
  .eco-card .visual { height: 160px; }
  .eco-card .body { padding: 22px; }
  .eco-card h3 { font-size: 22px; }
  .eco-card p { font-size: 14px; }
  .eco-card .gift-tag { font-size: 10px; padding: 4px 10px; }

  /* Industries */
  .ind-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; margin-top: 30px; }
  .ind-card { padding: 18px; min-height: 200px !important; }
  .ind-card .glyph { width: 44px; height: 44px; font-size: 20px; }
  .ind-card h4 { font-size: 15px; margin-top: 10px; }
  .ind-card p { font-size: 11px; margin-top: 6px; }
  .ind-card .arrow { width: 28px; height: 28px; bottom: 14px; inset-inline-end: 14px; }

  /* Comparison */
  .cmp-wrap { margin-top: 30px; border-radius: 14px; }
  .cmp-table { min-width: 600px; font-size: 13px; }
  .cmp-table thead th { padding: 14px 12px; font-size: 13px; }
  .cmp-table td { padding: 12px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-grid > :nth-child(3) { grid-column: auto; max-width: none; }
  .plan { padding: 26px 22px; }
  .plan.featured { transform: none; }
  .plan-name { font-size: 20px; }
  .price-amount { font-size: 44px; }
  .plan ul li { font-size: 13px; }
  .pricing-header > div[style*="background: linear-gradient(90deg"] { font-size: 12px !important; padding: 8px 14px !important; }

  /* Testimonials */
  .tt-header { margin-bottom: 30px; }
  .tt-section > .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .tt-section > .container > div[style*="grid-template-columns: repeat(3"] > :nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .tt-card { padding: 22px; width: auto; }
  .tt-card .quote { font-size: 14px; }
  .tt-card .author .name { font-size: 13px; }
  .tt-card .author .role { font-size: 11px; }

  /* Download */
  .dl-grid { grid-template-columns: 1fr; gap: 12px; }
  .dl-stats { gap: 30px; margin: 20px 0 30px; }
  .dl-stats .v { font-size: 28px; }
  .dl-stats .l { font-size: 11px; }
  .dl-card { padding: 24px 20px; }
  .dl-card h4 { font-size: 18px; }

  /* FAQ */
  .faq-list { margin-top: 30px; gap: 8px; }
  .faq-item summary { padding: 16px 18px; font-size: 14px; }
  .faq-item summary::after { font-size: 22px; }
  .faq-item .ans { padding: 0 18px 18px; font-size: 13px; }

  /* CTA */
  .cta-card { padding: 50px 24px; border-radius: 22px; }
  .cta-card h2 { font-size: clamp(28px, 7vw, 42px); }
  .cta-card p { font-size: 14px; margin: 16px auto 24px; }
  .cta-card .ctas { flex-direction: column; }
  .cta-card .ctas .btn { width: 100%; padding: 14px 20px !important; font-size: 14px !important; }

  /* Footer */
  .footer { padding: 50px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .desc { font-size: 13px; }
  .footer h5 { font-size: 11px; margin-bottom: 12px; }
  .footer ul a { font-size: 13px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 12px;
  }
  .footer-bottom > div:last-child { flex-direction: column; gap: 6px; }

  /* WhatsApp FAB */
  .wa-fab {
    width: 52px; height: 52px;
    font-size: 24px;
    bottom: 16px;
    inset-inline-end: 16px;
  }
}

/* ===== EXTRA SMALL (≤ 380px) ===== */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr !important; }
  .nav-cta .btn-ghost { display: none; }
}


/* ═══════════════════════════════════════════════════════
   Download Section — Model 4: Minimal Pills (Final)
   ═══════════════════════════════════════════════════════ */

/* Container — 3 pills في صف واحد */
.dl-section .dl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 20px;
}

/* Pill base */
.dl-section .dl-card.dl-card-dark {
  background: #0A0A0A;
  color: white;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  min-width: 280px;
  flex: 1 1 280px;
  max-width: 320px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Platform-specific gradients */
.dl-section .dl-card.dl-card-dark.android {
  background: linear-gradient(135deg, #0F7B4D 0%, #15A364 100%);
}
.dl-section .dl-card.dl-card-dark.ios {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
}
.dl-section .dl-card.dl-card-dark.windows {
  background: linear-gradient(135deg, #0257F8 0%, #0288D1 100%);
}

/* Hover */
.dl-section .dl-card.dl-card-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* Icon (emoji) */
.dl-section .dl-card.dl-card-dark .platform {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

/* OS label */
.dl-section .dl-card.dl-card-dark .os {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: white;
  margin: 0;
  line-height: 1.2;
}

/* Title */
.dl-section .dl-card.dl-card-dark h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 2px 0;
  color: white;
  line-height: 1.2;
}

/* Meta line */
.dl-section .dl-card.dl-card-dark .meta,
.dl-section .dl-card.dl-card-dark .dl-meta-line {
  font-size: 11px;
  opacity: 0.7;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: white;
  margin: 2px 0 0;
  line-height: 1.2;
}

/* إخفاء زر "حمّل الآن" — لا نحتاجه في pills */
.dl-section .dl-card.dl-card-dark .btn,
.dl-section .dl-card.dl-card-dark .btn-dark {
  display: none;
}

/* Text content wrapper - flex column */
.dl-section .dl-card.dl-card-dark > .os,
.dl-section .dl-card.dl-card-dark > h4,
.dl-section .dl-card.dl-card-dark > .meta,
.dl-section .dl-card.dl-card-dark > .dl-meta-line {
  text-align: start;
}

/* Wrap text in middle */
.dl-section .dl-card.dl-card-dark {
  position: relative;
}

/* Add arrow at end */
.dl-section .dl-card.dl-card-dark::after {
  content: '↓';
  font-size: 22px;
  opacity: 0.8;
  flex-shrink: 0;
  margin-inline-start: auto;
  color: white;
  font-weight: 700;
}

/* Group text content using flex */
.dl-section .dl-card.dl-card-dark {
  align-items: stretch;
}

.dl-section .dl-card.dl-card-dark .platform {
  align-self: center;
}

/* Mobile */
@media (max-width: 720px) {
  .dl-section .dl-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-section .dl-card.dl-card-dark {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
  }
}

/* ═══════════════════════════════════════════════════════
   Hero Title Fix — صفوف منفصلة بدون تراكب
   ═══════════════════════════════════════════════════════ */

/* العنوان الرئيسي في الـ Hero */
.hero .hero-title.h-display,
.hero h1.h-display {
  line-height: 1.15 !important;
  font-size: clamp(40px, 6vw, 88px) !important;
  letter-spacing: -0.02em !important;
  padding: 0.15em 0 !important;
  margin-bottom: 24px !important;
}

/* كل كلمة في الـ word animation */
.hero .hero-title .word {
  display: inline-block !important;
  margin: 0 0.15em !important;
  line-height: 1.15 !important;
  vertical-align: baseline !important;
}

/* عربية: نخلي تباعد أكبر بين الصفوف */
html[dir="rtl"] .hero .hero-title.h-display,
html[dir="rtl"] .hero h1.h-display {
  line-height: 1.25 !important;
}

/* الـ br يصير break حقيقي */
.hero .hero-title br {
  display: block !important;
  content: "" !important;
  margin-top: 0.2em !important;
}

/* تقليل حجم الخط على mobile */
@media (max-width: 768px) {
  .hero .hero-title.h-display,
  .hero h1.h-display {
    font-size: clamp(28px, 8vw, 48px) !important;
    line-height: 1.2 !important;
  }
  .hero .hero-title .word {
    margin: 0 0.1em !important;
  }
}

/* خاص: نتأكد من أن "متجرك" و "بالكامل" يبقاو في نفس السطر */
.hero .hero-title {
  word-spacing: 0.05em !important;
}

/* ═══════════════════════════════════════════════════════
   Hero Title Fix — صفوف منفصلة بدون تراكب
   ═══════════════════════════════════════════════════════ */

/* العنوان الرئيسي في الـ Hero */
.hero .hero-title.h-display,
.hero h1.h-display {
  line-height: 1.15 !important;
  font-size: clamp(40px, 6vw, 88px) !important;
  letter-spacing: -0.02em !important;
  padding: 0.15em 0 !important;
  margin-bottom: 24px !important;
}

/* كل كلمة في الـ word animation */
.hero .hero-title .word {
  display: inline-block !important;
  margin: 0 0.15em !important;
  line-height: 1.15 !important;
  vertical-align: baseline !important;
}

/* عربية: نخلي تباعد أكبر بين الصفوف */
html[dir="rtl"] .hero .hero-title.h-display,
html[dir="rtl"] .hero h1.h-display {
  line-height: 1.25 !important;
}

/* الـ br يصير break حقيقي */
.hero .hero-title br {
  display: block !important;
  content: "" !important;
  margin-top: 0.2em !important;
}

/* تقليل حجم الخط على mobile */
@media (max-width: 768px) {
  .hero .hero-title.h-display,
  .hero h1.h-display {
    font-size: clamp(28px, 8vw, 48px) !important;
    line-height: 1.2 !important;
  }
  .hero .hero-title .word {
    margin: 0 0.1em !important;
  }
}

/* خاص: نتأكد من أن "متجرك" و "بالكامل" يبقاو في نفس السطر */
.hero .hero-title {
  word-spacing: 0.05em !important;
}

/* ═══════════════════════════════════════════════════════
   All Titles Fix — كل العناوين الكبيرة في الموقع
   ═══════════════════════════════════════════════════════ */

/* كل العناوين الكبيرة (Hero, AI, Pricing, etc.) */
.h-display,
h1.h-display,
h2.h-display,
.h-section {
  line-height: 1.3 !important;
  padding: 0.2em 0 !important;
  letter-spacing: -0.01em !important;
  overflow-wrap: break-word !important;
}

/* خاصة في RTL — العربية تحتاج تباعد أكبر */
html[dir="rtl"] .h-display,
html[dir="rtl"] h1.h-display,
html[dir="rtl"] h2.h-display,
html[dir="rtl"] .h-section {
  line-height: 1.4 !important;
  padding: 0.25em 0 !important;
}

/* كل كلمة في word animation */
.word {
  display: inline-block !important;
  line-height: inherit !important;
  margin: 0 0.08em !important;
  vertical-align: baseline !important;
  padding: 0.05em 0 !important;
}

/* عربية: الكلمات تحتاج padding عمودي أكبر */
html[dir="rtl"] .word {
  padding: 0.1em 0 !important;
  margin: 0 0.1em !important;
}

/* الـ <br/> يخلق break حقيقي */
.h-display br,
.h-section br,
h1.h-display br,
h2.h-display br {
  display: block !important;
  content: "" !important;
  margin-top: 0.15em !important;
  line-height: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .h-display,
  h1.h-display,
  h2.h-display,
  .h-section {
    line-height: 1.3 !important;
    font-size: clamp(28px, 7vw, 48px) !important;
  }
  html[dir="rtl"] .h-display,
  html[dir="rtl"] h1.h-display,
  html[dir="rtl"] h2.h-display {
    line-height: 1.4 !important;
  }
}

/* نتأكد من أن text-shadow أو filter ما يخلقش تداخل */
.h-display, .h-section, .word {
  text-shadow: none !important;
}

/* highlight class — العناوين فيها كلمات ملونة */
.highlight,
.h-display .highlight,
h1 .highlight,
h2 .highlight {
  display: inline-block !important;
  padding: 0 0.1em !important;
  line-height: inherit !important;
}

/* ═══════════════════════════════════════════════════════
   Mobile Fixes — Banner + Hero spacing
   ═══════════════════════════════════════════════════════ */

/* ─── Launch Banner مدمج في صف واحد ─── */
@media (max-width: 768px) {
  .launch-banner {
    padding: 8px 12px !important;
    font-size: 12px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .launch-banner .fire {
    font-size: 14px !important;
    flex-shrink: 0 !important;
  }
  .launch-banner > span:not(.fire):not(.countdown):not(.timer) {
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
  }
  .launch-banner .countdown,
  .launch-banner .timer {
    font-size: 11px !important;
    padding: 2px 8px !important;
    flex-shrink: 0 !important;
  }
  .launch-banner .cta-link {
    font-size: 11px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .launch-banner b {
    font-size: 11px !important;
  }
}

/* Mobile صغير جداً — نخفي النص ونخلي فقط countdown + CTA */
@media (max-width: 480px) {
  .launch-banner {
    font-size: 11px !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  .launch-banner > span:nth-of-type(2) {
    /* نص "عرض الإطلاق: خصم..." يصير صغير */
    font-size: 10px !important;
    max-width: 50% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .launch-banner .countdown,
  .launch-banner .timer {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  .launch-banner .cta-link {
    font-size: 10px !important;
  }
}

/* ─── Hero spacing — تقليل الفراغ فوق الـ AI badge ─── */
@media (max-width: 768px) {
  .hero {
    padding-top: 24px !important;
  }
  .hero .container,
  .hero > .container {
    padding-top: 0 !important;
  }
  .hero .hero-tagline,
  .hero .pre-title,
  .hero-badge,
  .hero .badge,
  .hero .ai-badge {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }
  /* أول element في الـ hero ما يحتاج margin-top كبير */
  .hero > *:first-child,
  .hero .container > *:first-child {
    margin-top: 0 !important;
  }
  /* الـ AI badge تكون قريبة من الـ banner */
  .hero .container {
    padding-top: 20px !important;
  }
}

/* تصغير العنوان في mobile */
@media (max-width: 480px) {
  .hero .h-display,
  .hero h1.h-display {
    font-size: clamp(32px, 9vw, 44px) !important;
    line-height: 1.25 !important;
  }
}

/* ═══════════════════════════════════════════════════════
   Hero Floating Elements — Data Card + AI Robot
   ═══════════════════════════════════════════════════════ */

.hero { position: relative; overflow: visible; }
.hero .container { position: relative; }

/* ─── Float 1: Data Analysis Card (يسار) ─── */
.qx-float-data {
  position: absolute;
  left: 20px;
  top: 45%;
  transform: translateY(-50%) rotate(-3deg);
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  width: 220px;
  z-index: 5;
  animation: qx-float-data 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes qx-float-data {
  0%, 100% { transform: translateY(calc(-50% - 5px)) rotate(-3deg); }
  50% { transform: translateY(calc(-50% - 15px)) rotate(-3deg); }
}
.qx-float-data .qxd-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.qx-float-data .qxd-title { font-size: 12px; font-weight: 800; color: var(--ink, #0A0A0A); }
.qx-float-data .qxd-live {
  display: inline-flex; align-items: center; gap: 4px;
  background: #E5F3EC; color: #0F7B4D;
  padding: 3px 8px; border-radius: 99px; font-size: 9px; font-weight: 700;
}
.qx-float-data .qxd-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: #0F7B4D;
  animation: qx-pulse 1.5s ease-in-out infinite;
}
@keyframes qx-pulse { 50% { opacity: 0.3; } }
.qx-float-data .qxd-value {
  font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 900;
  color: var(--ink, #0A0A0A); line-height: 1; margin-bottom: 4px;
}
.qx-float-data .qxd-change { font-size: 11px; color: #0F7B4D; font-weight: 700; margin-bottom: 12px; }
.qx-float-data .qxd-chart {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 4px; height: 44px;
}
.qx-float-data .qxd-bar {
  flex: 1; background: linear-gradient(180deg, #0257F8, #a78bfa);
  border-radius: 3px 3px 0 0;
}

/* ─── Float 2: AI Accountant Robot (يمين) ─── */
.qx-float-robot {
  position: absolute;
  right: 20px;
  top: 45%;
  transform: translateY(-50%) rotate(3deg);
  z-index: 5;
  animation: qx-float-robot 5s ease-in-out infinite 0.5s;
  pointer-events: none;
}
@keyframes qx-float-robot {
  0%, 100% { transform: translateY(calc(-50% - 5px)) rotate(3deg); }
  50% { transform: translateY(calc(-50% - 18px)) rotate(3deg); }
}
.qx-robot-card {
  background: linear-gradient(135deg, #0257F8 0%, #a78bfa 100%);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(2,87,248,0.25);
  width: 200px;
  color: white;
}
.qx-robot-svg { width: 70px; height: 70px; margin: 0 auto 10px; display: block; }
.qx-robot-name { font-size: 12px; font-weight: 800; text-align: center; margin-bottom: 3px; }
.qx-robot-role { font-size: 10px; opacity: 0.85; text-align: center; margin-bottom: 12px; }
.qx-robot-stat {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.qx-robot-stat .qxr-label { font-size: 10px; opacity: 0.9; }
.qx-robot-stat .qxr-value { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 900; }
.qx-robot-typing {
  margin-top: 8px; font-size: 10px; text-align: center; opacity: 0.85;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.qx-robot-typing .qxr-dot {
  width: 4px; height: 4px; border-radius: 50%; background: white;
  animation: qx-typing 1.4s infinite;
}
.qx-robot-typing .qxr-dot:nth-child(2) { animation-delay: 0.2s; }
.qx-robot-typing .qxr-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes qx-typing { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* Hide on tablet/mobile */
@media (max-width: 1100px) {
  .qx-float-data, .qx-float-robot { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   Hero Compact — كل شي في viewport واحدة
   ═══════════════════════════════════════════════════════ */

/* تقليل padding ديال الـ hero */
.hero {
  padding-top: 24px !important;
  padding-bottom: 40px !important;
  min-height: auto !important;
}

/* تقليل المسافة فوق الـ AI badge */
.hero .container,
.hero > .container {
  padding-top: 16px !important;
}

/* الـ AI Badge أصغر و قريب */
.hero .hero-eyebrow,
.hero .hero-tagline,
.hero-badge,
.hero .badge,
.hero .ai-badge {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
}

/* العنوان أصغر */
.hero .h-display,
.hero h1.h-display {
  font-size: clamp(36px, 5vw, 64px) !important;
  line-height: 1.25 !important;
  margin-bottom: 20px !important;
  padding: 0.1em 0 !important;
}

/* العربية تحتاج line-height أكبر شوية */
html[dir="rtl"] .hero .h-display,
html[dir="rtl"] .hero h1.h-display {
  line-height: 1.35 !important;
}

/* الـ subtitle أصغر و أقل margin */
.hero .h-sub,
.hero .hero-sub,
.hero p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
  max-width: 600px !important;
}

/* CTAs قريبة من الـ subtitle */
.hero .hero-ctas,
.hero .cta-row,
.hero .btn-row {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  gap: 12px !important;
}

/* الـ pills تكون أصغر */
.hero .hero-tags,
.hero .pills,
.hero .hero-pills {
  margin-top: 0 !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.hero .hero-tags .pill,
.hero .pills .pill,
.hero .pill,
.hero-pill {
  font-size: 11px !important;
  padding: 6px 12px !important;
}

/* الـ buttons أنحف */
.hero .btn,
.hero a.btn {
  padding: 12px 24px !important;
  font-size: 14px !important;
}

/* تعديل floating elements ليكونوا أصغر و أعلى */
.qx-float-data,
.qx-float-robot {
  top: 50% !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .hero {
    padding-top: 16px !important;
    padding-bottom: 32px !important;
  }
  .hero .h-display,
  .hero h1.h-display {
    font-size: clamp(28px, 5.5vw, 48px) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding-top: 12px !important;
    padding-bottom: 24px !important;
  }
  .hero .container {
    padding-top: 8px !important;
  }
  .hero .h-display,
  .hero h1.h-display {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  html[dir="rtl"] .hero .h-display,
  html[dir="rtl"] .hero h1.h-display {
    line-height: 1.35 !important;
  }
  .hero .h-sub,
  .hero .hero-sub,
  .hero p {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  .hero .hero-eyebrow,
  .hero .hero-tagline,
  .hero-badge {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  .hero .hero-ctas { margin-bottom: 14px !important; }
  .hero .btn { padding: 10px 18px !important; font-size: 13px !important; }
}

/* ═══════════════════════════════════════════════════════
   Hero Fix v2 — إضافة spacing فوق + تقليل حجم title
   ═══════════════════════════════════════════════════════ */

/* الـ Hero يحتاج padding-top كافي لتجنب التداخل مع Nav */
.hero {
  padding-top: 80px !important;
  padding-bottom: 40px !important;
}

/* الـ AI badge يظهر بشكل واضح بعد الـ Nav */
.hero .hero-eyebrow,
.hero .hero-tagline,
.hero-badge,
.hero .badge,
.hero .ai-badge {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* العنوان أصغر بشكل كبير */
.hero .h-display,
.hero h1.h-display {
  font-size: clamp(28px, 4vw, 56px) !important;
  line-height: 1.3 !important;
  margin-bottom: 18px !important;
  padding: 0.1em 0 !important;
}

html[dir="rtl"] .hero .h-display,
html[dir="rtl"] .hero h1.h-display {
  line-height: 1.4 !important;
}

/* Subtitle أصغر */
.hero .h-sub,
.hero .hero-sub,
.hero p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  max-width: 580px !important;
}

/* CTAs و pills */
.hero .hero-ctas { margin-bottom: 18px !important; gap: 10px !important; }
.hero .btn,
.hero a.btn {
  padding: 12px 22px !important;
  font-size: 14px !important;
}

.hero .hero-tags,
.hero .pills,
.hero .hero-pills {
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.hero .pill,
.hero-pill { font-size: 11px !important; padding: 6px 12px !important; }

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding-top: 50px !important;
    padding-bottom: 24px !important;
  }
  .hero .h-display,
  .hero h1.h-display {
    font-size: clamp(22px, 6.5vw, 32px) !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
  }
  html[dir="rtl"] .hero .h-display,
  html[dir="rtl"] .hero h1.h-display {
    line-height: 1.4 !important;
  }
  .hero .h-sub,
  .hero .hero-sub,
  .hero p {
    font-size: 13px !important;
    margin-bottom: 16px !important;
  }
  .hero .hero-eyebrow,
  .hero .hero-tagline,
  .hero-badge {
    margin-bottom: 14px !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  .hero .btn { padding: 10px 18px !important; font-size: 13px !important; }
}

/* تأكد من أن الـ AI badge ما يتغطاش بـ Nav */
.hero {
  scroll-margin-top: 80px;
}

/* ═══════════════════════════════════════════════════════
   AI Assistant Section
   ═══════════════════════════════════════════════════════ */

.qx-ai-assistant {
  background:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(2, 87, 248, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 700px 500px at 80% 70%, rgba(167, 139, 250, 0.14) 0%, transparent 60%),
    #0a0e1a;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  color: white;
}
.qx-ai-assistant::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.qx-ai-assistant .container {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
.qx-ai-header { text-align: center; margin-bottom: 50px; }
.qx-ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  color: white;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(2, 87, 248, 0.3);
}
.qx-ai-title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  color: white;
  line-height: 1.3;
  margin-bottom: 18px;
}
.qx-ai-title .qx-grad {
  background: linear-gradient(135deg, #5e9cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qx-ai-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.qx-ai-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
  margin-top: 50px;
}
.qx-ai-features { display: flex; flex-direction: column; gap: 16px; }
.qx-ai-feature {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s;
}
.qx-ai-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 87, 248, 0.4);
}
.qx-ai-feature .qx-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  box-shadow: 0 8px 20px rgba(2, 87, 248, 0.3);
}
.qx-ai-feature h4 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin: 0 0 6px;
}
.qx-ai-feature p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}
.qx-ai-chat {
  background: #1a1f35;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.qx-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.qx-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: white;
}
.qx-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.qx-chat-token {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700;
}
.qx-chat-msgs { display: flex; flex-direction: column; gap: 14px; }
.qx-msg { display: flex; gap: 10px; }
.qx-msg.qx-user { flex-direction: row-reverse; }
.qx-msg .qx-bubble {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 85%;
}
.qx-msg.qx-user .qx-bubble {
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  color: white;
  border-radius: 16px 16px 4px 16px;
}
.qx-msg.qx-ai .qx-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 16px 16px 16px 4px;
}
.qx-msg .qx-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.qx-msg.qx-ai .qx-msg-avatar { background: linear-gradient(135deg, #0257F8, #a78bfa); }
.qx-msg.qx-user .qx-msg-avatar {
  background: rgba(255,255,255,0.1);
  color: white;
}
.qx-bubble b { color: #5e9cff; }
.qx-bubble .qx-data-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 12px;
}
.qx-bubble .qx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5e9cff;
  flex-shrink: 0;
}
.qx-bubble .qx-note {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.85;
}
.qx-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.qx-suggestion {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.qx-suggestion:hover {
  background: rgba(2, 87, 248, 0.15);
  border-color: #0257F8;
  color: white;
}
.qx-ai-cta {
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.qx-ai-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  color: white !important;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(2, 87, 248, 0.4);
  transition: transform 0.2s;
}
.qx-ai-cta-btn:hover { transform: translateY(-2px); }

@media (max-width: 1024px) {
  .qx-ai-layout { grid-template-columns: 1fr; gap: 30px; }
  .qx-ai-assistant { padding: 70px 0; }
}
@media (max-width: 600px) {
  .qx-ai-assistant { padding: 50px 0; }
  .qx-ai-chat { padding: 18px; }
  .qx-msg .qx-bubble { font-size: 12px; padding: 10px 14px; }
}

/* Hero positioning للـ floating profits */
.hero { position: relative !important; overflow: visible !important; }
.hero .container { position: relative; z-index: 2; }

/* ─── Highlight متحرك ─── */
.qx-highlight {
  position: relative;
  display: inline-block;
  color: var(--primary, #0257F8);
  z-index: 1;
}
.qx-highlight::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 14px;
  background: linear-gradient(135deg, rgba(2, 87, 248, 0.25), rgba(167, 139, 250, 0.25));
  z-index: -1;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: right;
  animation: qx-hl-draw 1.2s ease-out 0.5s forwards;
}
@keyframes qx-hl-draw { to { transform: scaleX(1); } }

/* ─── Rotating Text ─── */
.qx-rotate {
  display: inline-block;
  height: 1.4em;
  vertical-align: bottom;
  overflow: hidden;
  position: relative;
  min-width: 140px;
}
@media (max-width: 768px) {
  .qx-rotate { min-width: 80px; }
}
.qx-rotate-words {
  display: flex;
  flex-direction: column;
  animation: qx-rotate-words 12s steps(4, end) infinite;
}
.qx-rotate-words span {
  height: 1.4em;
  line-height: 1.4em;
  display: block;
  color: var(--primary, #0257F8);
  font-weight: 900;
}
@keyframes qx-rotate-words {
  0%, 22% { transform: translateY(0); }
  25%, 47% { transform: translateY(-1.4em); }
  50%, 72% { transform: translateY(-2.8em); }
  75%, 97% { transform: translateY(-4.2em); }
  100% { transform: translateY(-5.6em); }
}

/* ─── Gradient AI Text ─── */
.qx-ai-grad {
  display: inline-block;
  background: linear-gradient(90deg, #0257F8, #a78bfa, #ec4899, #0257F8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: qx-grad-flow 4s linear infinite;
  font-weight: 900;
}
@keyframes qx-grad-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ─── Sparkle ─── */
.qx-sparkle {
  display: inline-block;
  animation: qx-sparkle 2s ease-in-out infinite;
}
@keyframes qx-sparkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(15deg); }
}

/* ─── Floating Profit Indicators ─── */
.qx-profit-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: 99px;
  padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  font-family: 'Cairo', 'Inter', sans-serif;
  white-space: nowrap;
}
.qx-profit-float .qx-arrow {
  color: #22c55e;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
}

/* Positions for each profit */
.qx-profit-1 {
  top: 18%;
  left: 5%;
  color: #0F7B4D;
  animation: qx-float-up 6s ease-in-out infinite,
             qx-fade-in 0.5s ease-out 0.2s forwards;
}
.qx-profit-2 {
  top: 28%;
  right: 5%;
  color: #0257F8;
  animation: qx-float-up-2 7s ease-in-out infinite 0.5s,
             qx-fade-in 0.5s ease-out 0.4s forwards;
}
.qx-profit-3 {
  bottom: 35%;
  left: 8%;
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  color: white;
  animation: qx-float-up 5s ease-in-out infinite 1s,
             qx-fade-in 0.5s ease-out 0.6s forwards;
}
.qx-profit-4 {
  bottom: 25%;
  right: 6%;
  color: #0F7B4D;
  animation: qx-float-up-2 6s ease-in-out infinite 1.5s,
             qx-fade-in 0.5s ease-out 0.8s forwards;
}
.qx-profit-5 {
  top: 48%;
  left: 3%;
  color: #ec4899;
  animation: qx-float-up 8s ease-in-out infinite 2s,
             qx-fade-in 0.5s ease-out 1s forwards;
}

@keyframes qx-float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes qx-float-up-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}
@keyframes qx-fade-in {
  to { opacity: 1; }
}

/* Hide floating profits on tablet/mobile */
@media (max-width: 1100px) {
  .qx-profit-float { display: none !important; }
}

/* ─── سهم الأرباح الكبير ─── */
.qx-profit-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  animation: qx-arrow-pulse 4s ease-in-out infinite;
  max-width: 90vw;
}
@keyframes qx-arrow-pulse {
  0%, 100% { opacity: 0.10; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.03); }
}
.qx-arrow-svg { width: 100%; height: 100%; display: block; }
.qx-arrow-path {
  fill: none;
  stroke: #0F7B4D;
  stroke-width: 35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  animation: qx-draw-arrow 3s ease-out 0.5s forwards;
  filter: drop-shadow(0 8px 16px rgba(15, 123, 77, 0.3));
}
@keyframes qx-draw-arrow { to { stroke-dashoffset: 0; } }

 }
.qx-profit-dot { fill: #22c55e; opacity: 0; }
.qx-profit-dot:nth-child(3) { animation: qx-dot-pop 0.4s ease-out 1.0s forwards; }
.qx-profit-dot:nth-child(4) { animation: qx-dot-pop 0.4s ease-out 1.6s forwards; }
.qx-profit-dot:nth-child(5) { animation: qx-dot-pop 0.4s ease-out 2.2s forwards; }
.qx-profit-dot:nth-child(6) { animation: qx-dot-pop 0.4s ease-out 2.8s forwards; }
@keyframes qx-dot-pop { 0% { opacity: 0; r: 0; } 100% { opacity: 1; r: 14; } }

/* ─── Highlight ─── */
.qx-highlight { position: relative; display: inline-block; color: var(--primary, #0257F8); z-index: 1; }
.qx-highlight::before {
  content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 14px;
  background: linear-gradient(135deg, rgba(2,87,248,0.25), rgba(167,139,250,0.25));
  z-index: -1; border-radius: 4px; transform: scaleX(0); transform-origin: right;
  animation: qx-hl-draw 1.2s ease-out 0.5s forwards;
}
@keyframes qx-hl-draw { to { transform: scaleX(1); } }

/* ─── Rotating Text ─── */
.qx-rotate { display: inline-block; height: 1.4em; vertical-align: bottom; overflow: hidden; position: relative; min-width: 140px; }
@media (max-width: 768px) { .qx-rotate { min-width: 80px; } }
.qx-rotate-words { display: flex; flex-direction: column; animation: qx-rotate-words 12s steps(4, end) infinite; }
.qx-rotate-words span { height: 1.4em; line-height: 1.4em; display: block; color: var(--primary, #0257F8); font-weight: 900; }
@keyframes qx-rotate-words {
  0%, 22% { transform: translateY(0); }
  25%, 47% { transform: translateY(-1.4em); }
  50%, 72% { transform: translateY(-2.8em); }
  75%, 97% { transform: translateY(-4.2em); }
  100% { transform: translateY(-5.6em); }
}

/* ─── Gradient AI ─── */
.qx-ai-grad {
  display: inline-block;
  background: linear-gradient(90deg, #0257F8, #a78bfa, #ec4899, #0257F8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: qx-grad-flow 4s linear infinite;
  font-weight: 900;
}
@keyframes qx-grad-flow { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } }

/* ─── Sparkle ─── */
.qx-sparkle { display: inline-block; animation: qx-sparkle 2s ease-in-out infinite; }
@keyframes qx-sparkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(15deg); } }

/* ─── Floating Profits ─── */
.qx-profit-float {
  position: absolute; display: flex; align-items: center; gap: 6px;
  background: white; border-radius: 99px; padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 3; pointer-events: none; opacity: 0;
  font-family: 'Cairo', 'Inter', sans-serif; white-space: nowrap;
}
.qx-profit-float .qx-arrow { color: #22c55e; font-weight: 900; font-family: 'Outfit', sans-serif; }
.qx-profit-1 { top: 18%; left: 5%; color: #0F7B4D; animation: qx-float-up 6s ease-in-out infinite, qx-fade-in 0.5s ease-out 0.2s forwards; }
.qx-profit-2 { top: 28%; right: 5%; color: #0257F8; animation: qx-float-up-2 7s ease-in-out infinite 0.5s, qx-fade-in 0.5s ease-out 0.4s forwards; }
.qx-profit-3 { bottom: 35%; left: 8%; background: linear-gradient(135deg, #0257F8, #a78bfa); color: white; animation: qx-float-up 5s ease-in-out infinite 1s, qx-fade-in 0.5s ease-out 0.6s forwards; }
.qx-profit-4 { bottom: 25%; right: 6%; color: #0F7B4D; animation: qx-float-up-2 6s ease-in-out infinite 1.5s, qx-fade-in 0.5s ease-out 0.8s forwards; }
.qx-profit-5 { top: 48%; left: 3%; color: #ec4899; animation: qx-float-up 8s ease-in-out infinite 2s, qx-fade-in 0.5s ease-out 1s forwards; }
@keyframes qx-float-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes qx-float-up-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
@keyframes qx-fade-in { to { opacity: 1; } }

/* Mobile/Tablet: hide arrow + floats */
@media (max-width: 1100px) {
  .qx-profit-float, .qx-profit-arrow { display: none !important; }
}

/* ─── سهم الأرباح الكبير ─── */
.qx-profit-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  animation: qx-arrow-pulse 4s ease-in-out infinite;
  max-width: 90vw;
}
@keyframes qx-arrow-pulse {
  0%, 100% { opacity: 0.10; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.03); }
}
.qx-arrow-svg { width: 100%; height: 100%; display: block; }
.qx-arrow-path {
  fill: none;
  stroke: #0F7B4D;
  stroke-width: 35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  animation: qx-draw-arrow 3s ease-out 0.5s forwards;
  filter: drop-shadow(0 8px 16px rgba(15, 123, 77, 0.3));
}
@keyframes qx-draw-arrow { to { stroke-dashoffset: 0; } }

 }
.qx-profit-dot { fill: #22c55e; opacity: 0; }
.qx-profit-dot:nth-of-type(1) { animation: qx-dot-pop 0.4s ease-out 1.0s forwards; }
.qx-profit-dot:nth-of-type(2) { animation: qx-dot-pop 0.4s ease-out 1.6s forwards; }
.qx-profit-dot:nth-of-type(3) { animation: qx-dot-pop 0.4s ease-out 2.2s forwards; }
.qx-profit-dot:nth-of-type(4) { animation: qx-dot-pop 0.4s ease-out 2.8s forwards; }
@keyframes qx-dot-pop { 0% { opacity: 0; r: 0; } 100% { opacity: 1; r: 14; } }

/* ─── Highlight ─── */
.qx-highlight {
  position: relative;
  display: inline-block;
  color: var(--primary, #0257F8);
  z-index: 1;
}
.qx-highlight::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 14px;
  background: linear-gradient(135deg, rgba(2,87,248,0.25), rgba(167,139,250,0.25));
  z-index: -1;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: right;
  animation: qx-hl-draw 1.2s ease-out 0.5s forwards;
}
@keyframes qx-hl-draw { to { transform: scaleX(1); } }

/* ─── Rotating Text ─── */
.qx-rotate {
  display: inline-block;
  height: 1.4em;
  vertical-align: bottom;
  overflow: hidden;
  position: relative;
  min-width: 140px;
}
.qx-rotate-words {
  display: flex;
  flex-direction: column;
  animation: qx-rotate-words 12s steps(4, end) infinite;
}
.qx-rotate-words span {
  height: 1.4em;
  line-height: 1.4em;
  display: block;
  color: var(--primary, #0257F8);
  font-weight: 900;
}
@keyframes qx-rotate-words {
  0%, 22% { transform: translateY(0); }
  25%, 47% { transform: translateY(-1.4em); }
  50%, 72% { transform: translateY(-2.8em); }
  75%, 97% { transform: translateY(-4.2em); }
  100% { transform: translateY(-5.6em); }
}

/* ─── Gradient AI ─── */
.qx-ai-grad {
  display: inline-block;
  background: linear-gradient(90deg, #0257F8, #a78bfa, #ec4899, #0257F8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: qx-grad-flow 4s linear infinite;
  font-weight: 900;
}
@keyframes qx-grad-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ─── Sparkle ─── */
.qx-sparkle {
  display: inline-block;
  animation: qx-sparkle 2s ease-in-out infinite;
}
@keyframes qx-sparkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(15deg); }
}

/* ─── Floating Profits ─── */
.qx-profit-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: 99px;
  padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  font-family: 'Cairo', 'Inter', sans-serif;
  white-space: nowrap;
}
.qx-profit-float .qx-arrow-icon {
  color: #22c55e;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
}
.qx-profit-1 {
  top: 18%;
  left: 5%;
  color: #0F7B4D;
  animation: qx-float-up 6s ease-in-out infinite, qx-fade-in 0.5s ease-out 0.2s forwards;
}
.qx-profit-2 {
  top: 28%;
  right: 5%;
  color: #0257F8;
  animation: qx-float-up-2 7s ease-in-out infinite 0.5s, qx-fade-in 0.5s ease-out 0.4s forwards;
}
.qx-profit-3 {
  bottom: 35%;
  left: 8%;
  background: linear-gradient(135deg, #0257F8, #a78bfa);
  color: white;
  animation: qx-float-up 5s ease-in-out infinite 1s, qx-fade-in 0.5s ease-out 0.6s forwards;
}
.qx-profit-4 {
  bottom: 25%;
  right: 6%;
  color: #0F7B4D;
  animation: qx-float-up-2 6s ease-in-out infinite 1.5s, qx-fade-in 0.5s ease-out 0.8s forwards;
}
.qx-profit-5 {
  top: 48%;
  left: 3%;
  color: #ec4899;
  animation: qx-float-up 8s ease-in-out infinite 2s, qx-fade-in 0.5s ease-out 1s forwards;
}
@keyframes qx-float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes qx-float-up-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}
@keyframes qx-fade-in { to { opacity: 1; } }

@media (max-width: 1100px) {
  .qx-profit-float, .qx-profit-arrow { display: none !important; }
}
@media (max-width: 768px) {
  .qx-rotate { min-width: 80px; }
}

/* ═══════════════════════════════════════════════════════
   HERO Dynamic — Fixed v3 (arrow center + RTL safe)
   ═══════════════════════════════════════════════════════ */

.hero { position: relative !important; overflow: visible !important; }
.hero .container { position: relative; z-index: 2; }

/* ─── Profit Arrow Background ─── */
.qx-profit-arrow {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
  width: 900px;
  height: 600px;
  max-width: 80vw;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  animation: qx-arrow-pulse 4s ease-in-out infinite;
  direction: ltr !important;
}
@keyframes qx-arrow-pulse {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.18; }
}
.qx-arrow-svg { width: 100%; height: 100%; display: block; }
.qx-arrow-path {
  fill: none;
  stroke: #0F7B4D;
  stroke-width: 35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  animation: qx-draw-arrow 3s ease-out 0.5s forwards;
  filter: drop-shadow(0 8px 16px rgba(15, 123, 77, 0.3));
}
@keyframes qx-draw-arrow { to { stroke-dashoffset: 0; } }

 }
.qx-profit-dot { fill: #22c55e; opacity: 0; }
.qx-profit-dot:nth-of-type(1) { animation: qx-dot-pop 0.4s ease-out 1.0s forwards; }
.qx-profit-dot:nth-of-type(2) { animation: qx-dot-pop 0.4s ease-out 1.6s forwards; }
.qx-profit-dot:nth-of-type(3) { animation: qx-dot-pop 0.4s ease-out 2.2s forwards; }
.qx-profit-dot:nth-of-type(4) { animation: qx-dot-pop 0.4s ease-out 2.8s forwards; }
@keyframes qx-dot-pop { 0% { opacity: 0; r: 0; } 100% { opacity: 1; r: 14; } }

/* ─── Title Animations ─── */
.qx-highlight {
  position: relative;
  display: inline-block;
  color: var(--primary, #0257F8);
  z-index: 1;
}
.qx-highlight::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 14px;
  background: linear-gradient(135deg, rgba(2,87,248,0.25), rgba(167,139,250,0.25));
  z-index: -1;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: right;
  animation: qx-hl-draw 1.2s ease-out 0.5s forwards;
}
@keyframes qx-hl-draw { to { transform: scaleX(1); } }

.qx-rotate {
  display: inline-block;
  height: 1.4em;
  vertical-align: bottom;
  overflow: hidden;
  position: relative;
  min-width: 140px;
}
.qx-rotate-words {
  display: flex;
  flex-direction: column;
  animation: qx-rotate-words 12s steps(4, end) infinite;
}
.qx-rotate-words span {
  height: 1.4em;
  line-height: 1.4em;
  display: block;
  color: var(--primary, #0257F8);
  font-weight: 900;
}
@keyframes qx-rotate-words {
  0%, 22% { transform: translateY(0); }
  25%, 47% { transform: translateY(-1.4em); }
  50%, 72% { transform: translateY(-2.8em); }
  75%, 97% { transform: translateY(-4.2em); }
  100% { transform: translateY(-5.6em); }
}

.qx-ai-grad {
  display: inline-block;
  background: linear-gradient(90deg, #0257F8, #a78bfa, #ec4899, #0257F8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: qx-grad-flow 4s linear infinite;
  font-weight: 900;
}
@keyframes qx-grad-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.qx-sparkle {
  display: inline-block;
  animation: qx-sparkle 2s ease-in-out infinite;
}
@keyframes qx-sparkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(15deg); }
}

/* ─── Floating Profits ─── */
.qx-profit-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: 99px;
  padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}
.qx-profit-float .qx-arrow-icon {
  color: #22c55e;
  font-weight: 900;
}
.qx-profit-1 { top: 18%; left: 5%; color: #0F7B4D; animation: qx-float-up 6s ease-in-out infinite, qx-fade-in 0.5s ease-out 0.2s forwards; }
.qx-profit-2 { top: 28%; right: 5%; color: #0257F8; animation: qx-float-up-2 7s ease-in-out infinite 0.5s, qx-fade-in 0.5s ease-out 0.4s forwards; }
.qx-profit-3 { bottom: 35%; left: 8%; background: linear-gradient(135deg, #0257F8, #a78bfa); color: white; animation: qx-float-up 5s ease-in-out infinite 1s, qx-fade-in 0.5s ease-out 0.6s forwards; }
.qx-profit-4 { bottom: 25%; right: 6%; color: #0F7B4D; animation: qx-float-up-2 6s ease-in-out infinite 1.5s, qx-fade-in 0.5s ease-out 0.8s forwards; }
.qx-profit-5 { top: 48%; left: 3%; color: #ec4899; animation: qx-float-up 8s ease-in-out infinite 2s, qx-fade-in 0.5s ease-out 1s forwards; }
@keyframes qx-float-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes qx-float-up-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
@keyframes qx-fade-in { to { opacity: 1; } }

@media (max-width: 1100px) {
  .qx-profit-float, .qx-profit-arrow { display: none !important; }
}
@media (max-width: 768px) {
  .qx-rotate { min-width: 80px; }
}

/* ─── Arrow Head — Fixed v4 ─── */
.qx-arrow-head-tri {
  fill: #0F7B4D;
  opacity: 0;
  animation: qx-show-head-tri 0.5s ease-out 3.2s forwards;
  filter: drop-shadow(0 8px 16px rgba(15, 123, 77, 0.3));
  transform-origin: 850px 140px;
}
@keyframes qx-show-head-tri {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════
   Section Spacing Fix — تقليل الفراغ بين الأقسام
   ═══════════════════════════════════════════════════════ */

/* Stats section */
.stats-section,
section.stats-section {
  padding-top: 60px !important;
  padding-bottom: 40px !important;
}

/* AI Engine section */
.ai-section,
section.ai-section,
#ai-engine {
  padding-top: 60px !important;
  padding-bottom: 80px !important;
}

/* AI Assistant section الجديد */
.qx-ai-assistant {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* تقليل المسافة للـ wave divider */
.stats-section + svg,
.ai-section + svg,
section + svg.wave,
section + svg.divider {
  display: none !important;
}

/* أي wave/curve SVG بين sections */
svg.wave,
svg.divider,
.section-wave,
.wave-divider {
  display: none !important;
}

/* تقليل margin بين sections */
section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* الـ section-head داخل الأقسام */
.stats-section .section-head,
.ai-section .section-head {
  margin-bottom: 30px !important;
}

/* ═══════════════════════════════════════════════════════
   Global Section Spacing — تقليل الفراغات بين كل الأقسام
   ═══════════════════════════════════════════════════════ */

/* كل sections — padding متوسط */
section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  margin: 0 !important;
}

/* الأقسام الرئيسية بـ padding أصغر */
.stats-section,
.ai-section,
.pricing-section,
.migration-section,
.why-section,
.kitchen-section,
.ecosystem-section,
.industries-section,
.compare-section,
.testimonials-section,
.dl-section,
.faq-section,
.cta-section,
.qx-ai-assistant {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* تقليل margin من العنوان داخل section */
.section-head {
  margin-bottom: 30px !important;
}
.section-head + * { margin-top: 0 !important; }

/* إخفاء كل الـ wave/curve dividers */
svg.wave,
svg.divider,
svg.section-wave,
svg.section-divider,
.section-wave,
.wave-divider,
.section-divider {
  display: none !important;
}

/* أي SVG عام كـ divider بين sections */
section > svg:first-child:not([class*="icon"]):not([class*="logo"]):not([class*="qx-arrow"]),
section > svg:last-child:not([class*="icon"]):not([class*="logo"]):not([class*="qx-arrow"]) {
  display: none !important;
}

/* container داخل sections */
section .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Mobile - padding أصغر */
@media (max-width: 768px) {
  section,
  .stats-section,
  .ai-section,
  .pricing-section,
  .migration-section,
  .why-section,
  .kitchen-section,
  .ecosystem-section,
  .industries-section,
  .compare-section,
  .testimonials-section,
  .dl-section,
  .faq-section,
  .cta-section,
  .qx-ai-assistant {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .section-head { margin-bottom: 20px !important; }
}

/* ═══════════════════════════════════════════════════════
   Launch Banner Mobile — FINAL FIX (override original)
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .launch-banner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* النص الرئيسي - يقطع بـ ellipsis */
  .launch-banner > span:not(.fire):not(.timer):not(.countdown) {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
  }

  .launch-banner > span:not(.fire):not(.timer):not(.countdown) b {
    font-weight: 800 !important;
    font-size: inherit !important;
  }

  /* 🔥 emoji */
  .launch-banner .fire {
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  /* Timer/Countdown */
  .launch-banner .timer,
  .launch-banner .countdown {
    flex-shrink: 0 !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  /* CTA Link */
  .launch-banner .cta-link {
    flex-shrink: 0 !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }
}

/* Mobile صغير جداً (< 480px) */
@media (max-width: 480px) {
  .launch-banner {
    padding: 6px 8px !important;
    gap: 5px !important;
  }
  .launch-banner > span:not(.fire):not(.timer):not(.countdown) {
    font-size: 9.5px !important;
  }
  .launch-banner .fire { font-size: 12px !important; }
  .launch-banner .timer,
  .launch-banner .countdown {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }
  .launch-banner .cta-link { font-size: 9px !important; }
}

/* ═══════════════════════════════════════════════════════
   Hero Mobile Padding — FINAL (إظهار AI Badge فوق)
   ═══════════════════════════════════════════════════════ */

/* Desktop: padding كافي */
.hero {
  padding-top: 100px !important;
  padding-bottom: 40px !important;
}

/* Tablet & Mobile */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px !important;
    padding-bottom: 30px !important;
  }
  .hero .container {
    padding-top: 0 !important;
  }
}

/* Mobile صغير */
@media (max-width: 480px) {
  .hero {
    padding-top: 110px !important;
    padding-bottom: 24px !important;
  }
}

/* تأكد أن الـ Hero ما يبدأش بـ negative margin */
.hero { margin-top: 0 !important; }

/* ═══════════════════════════════════════════════════════
   Mobile Burger Menu — Fixed Nav + Burger + Drawer
   ═══════════════════════════════════════════════════════ */

/* Burger button مخفي في desktop */
.qx-burger { display: none; }

/* Mobile only */
@media (max-width: 768px) {
  /* ─── Nav ثابت فوق فقط (ماشي sticky) ─── */
  .nav {
    position: absolute !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  /* Nav حين يكون فيه banner */
  .body-has-banner .nav {
    top: 56px !important;
  }
  
  /* إخفاء scroll-following behavior */
  .nav.scrolled,
  .nav-scrolled {
    position: absolute !important;
  }
  
  /* ─── Nav Logo (يمين) ─── */
  .nav-logo {
    font-size: 16px !important;
    flex-shrink: 0 !important;
  }
  .nav-logo-mark {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  
  /* ─── إخفاء nav-links على الموبايل (يظهروا في drawer) ─── */
  .nav-links {
    display: none !important;
  }
  
  /* ─── إخفاء currency و lang و CTA من toolbar (يظهروا في drawer) ─── */
  .nav-cta {
    display: none !important;
  }
  
  /* ─── Burger Button (يظهر فقط على الموبايل) ─── */
  .qx-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .qx-burger:hover {
    background: rgba(0,0,0,0.05);
  }
  .qx-burger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #0A0A0A;
    border-radius: 2px;
    transition: all 0.3s;
  }
  
  /* X animation حين يفتح menu */
  body.qx-menu-open .qx-burger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  body.qx-menu-open .qx-burger span:nth-child(2) {
    opacity: 0;
  }
  body.qx-menu-open .qx-burger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  /* ─── Drawer (القائمة المنزلقة) ─── */
  body.qx-menu-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 110px !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    padding: 20px 24px 30px !important;
    gap: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    z-index: 99 !important;
    animation: qx-drawer-open 0.3s ease-out;
  }
  body.qx-menu-open .nav-links a {
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0A0A0A !important;
  }
  body.qx-menu-open .nav-links a:last-child {
    border-bottom: none !important;
  }
  
  body.qx-menu-open .nav-cta {
    display: flex !important;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    padding: 16px 24px !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
    z-index: 99 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    animation: qx-drawer-bottom 0.3s ease-out;
  }
  body.qx-menu-open .nav-cta .btn {
    flex: 1 !important;
  }
  
  @keyframes qx-drawer-open {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes qx-drawer-bottom {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* منع scroll عند فتح menu */
  body.qx-menu-open {
    overflow: hidden !important;
  }
  
  /* Backdrop خلف الـ drawer */
  body.qx-menu-open::before {
    content: '';
    position: fixed;
    inset: 110px 0 80px 0;
    background: rgba(0,0,0,0.3);
    z-index: 98;
    animation: qx-backdrop 0.3s ease-out;
  }
  @keyframes qx-backdrop {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Mobile صغير جداً */
@media (max-width: 480px) {
  .nav {
    padding: 8px 12px !important;
    top: 48px !important;
  }
  .body-has-banner .nav {
    top: 48px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   QAYDEX — Mobile Nav Professional v1
   Burger + Drawer + Quick Pills (للموبايل فقط)
   ═══════════════════════════════════════════════════════ */

/* Burger button و drawer مخفيين في desktop */
.qx-mobnav-burger,
.qx-mobnav-drawer {
  display: none;
}

/* ═══ MOBILE (≤ 768px) ═══ */
@media (max-width: 768px) {
  /* ─── Nav (override الكلاسيكي ديال desktop) ─── */
  .nav {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(228, 234, 245, 0.6) !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    height: 54px !important;
  }
  
  .body-has-banner .nav {
    top: 38px !important;
  }
  
  /* Nav scroll behavior (الموجود في scroll-engine.js يبقى) */
  .nav.hidden {
    transform: translateY(-120%) !important;
  }
  
  /* ─── Logo (يمين في RTL، يسار في LTR) ─── */
  .nav-logo {
    font-size: 16px !important;
    flex-shrink: 0 !important;
  }
  .nav-logo-mark {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  
  /* ─── إخفاء nav-links (الموبايل يستعمل drawer) ─── */
  .nav-links {
    display: none !important;
  }
  
  /* ─── إعادة هيكلة nav-cta ─── */
  .nav-cta {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: flex-end !important;
  }
  
  /* إخفاء زر "حمّل مجاناً" — موجود في drawer */
  .nav-cta > a.btn {
    display: none !important;
  }
  
  /* ─── Quick Pills للغة والعملة ─── */
  .lang-switcher,
  .curr-switcher {
    display: block !important;
  }
  
  .nav-cta .lang {
    background: rgba(2, 87, 248, 0.06) !important;
    color: var(--primary, #0257F8) !important;
    padding: 6px 10px !important;
    border-radius: 99px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: none !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
  }
  
  .nav-cta .curr-current {
    background: rgba(2, 87, 248, 0.06) !important;
  }
  
  /* dropdown menus position (للموبايل) */
  .curr-menu,
  .lang-menu {
    max-height: 60vh !important;
    overflow-y: auto !important;
    inset-inline-end: auto !important;
    inset-inline-start: 0 !important;
    right: auto !important;
    left: 0 !important;
  }
  html[dir="rtl"] .curr-menu,
  html[dir="rtl"] .lang-menu {
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
    right: 0 !important;
    left: auto !important;
  }
  
  /* ─── Burger Button ─── */
  .qx-mobnav-burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    background: var(--ink, #0A1F44);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .qx-mobnav-burger:active {
    background: var(--primary, #0257F8);
  }
  .qx-mobnav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
  }
  
  /* Burger → X عند فتح القائمة */
  body.qx-mobnav-open .qx-mobnav-burger {
    background: var(--primary, #0257F8);
  }
  body.qx-mobnav-open .qx-mobnav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  body.qx-mobnav-open .qx-mobnav-burger span:nth-child(2) {
    opacity: 0;
  }
  body.qx-mobnav-open .qx-mobnav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  /* ─── Drawer ─── */
  .qx-mobnav-drawer {
    display: none;
    position: fixed;
    top: calc(38px + 54px); /* banner + nav */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
    flex-direction: column;
    animation: qx-drawer-slide 0.3s ease-out;
  }
  
  body.qx-mobnav-open .qx-mobnav-drawer {
    display: flex !important;
  }
  
  @keyframes qx-drawer-slide {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* منع scroll عند فتح القائمة */
  body.qx-mobnav-open {
    overflow: hidden !important;
  }
  
  /* Drawer Links */
  .qx-mobnav-links {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
  }
  .qx-mobnav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: var(--ink, #0A1F44);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid rgba(228, 234, 245, 0.5);
    transition: background 0.15s;
  }
  .qx-mobnav-links a:active {
    background: rgba(2, 87, 248, 0.06);
  }
  .qx-mobnav-links a .qx-arr {
    font-size: 14px;
    color: var(--ink-3, #6B7A99);
    font-weight: 500;
  }
  
  /* Drawer CTA (ثابت في الأسفل) */
  .qx-mobnav-cta {
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid rgba(228, 234, 245, 0.6);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  }
  .qx-mobnav-btn-main {
    background: var(--primary, #0257F8);
    color: #fff !important;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(2, 87, 248, 0.25);
  }
  .qx-mobnav-btn-trial {
    background: transparent;
    color: var(--primary, #0257F8) !important;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    border: 1px solid var(--line, #E4EAF5);
    border-radius: 10px;
  }
}

/* ═══ Mobile صغير جداً (≤ 480px) ═══ */
@media (max-width: 480px) {
  .nav {
    padding: 8px 12px !important;
  }
  .nav-logo {
    font-size: 15px !important;
  }
  .nav-cta .lang {
    padding: 5px 8px !important;
    font-size: 10px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   Mobile Drawer — Hide STRICTLY on Desktop
   ═══════════════════════════════════════════════════════ */

/* صارم: drawer مخفي تماماً على desktop */
.qx-mobnav-drawer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

.qx-mobnav-burger {
  display: none !important;
}

/* فقط على الموبايل (≤ 768px) */
@media (max-width: 768px) {
  .qx-mobnav-burger {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  /* الـ drawer مخفي بـ default على الموبايل أيضاً */
  .qx-mobnav-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    left: 0 !important;
    top: calc(38px + 54px) !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  
  /* يظهر فقط عند فتح القائمة */
  body.qx-mobnav-open .qx-mobnav-drawer {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════
   Mobile Drawer Switchers (Lang + Currency)
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* تعديل الـ drawer ليأخذ scrolling صحيح */
  .qx-mobnav-drawer {
    overflow-y: auto !important;
  }
  
  .qx-mobnav-switchers {
    padding: 16px 24px;
    background: rgba(2, 87, 248, 0.02);
    border-top: 1px solid rgba(228, 234, 245, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .qx-switcher-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .qx-switcher-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-3, #6B7A99);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .qx-switcher-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .qx-switcher-options.qx-curr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .qx-switcher-opt {
    background: #fff !important;
    border: 1px solid var(--line, #E4EAF5) !important;
    color: var(--ink-2, #2A3450) !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }
  
  .qx-switcher-opt:active {
    background: rgba(2, 87, 248, 0.08) !important;
    border-color: var(--primary, #0257F8) !important;
  }
  
  .qx-switcher-opt.qx-active {
    background: var(--primary, #0257F8) !important;
    color: #fff !important;
    border-color: var(--primary, #0257F8) !important;
    box-shadow: 0 4px 12px rgba(2, 87, 248, 0.2) !important;
  }
}

/* ═══════════════════════════════════════════════════════
   Lang/Currency Dropdown — LTR Fix (FR & EN)
   ═══════════════════════════════════════════════════════ */

/* في LTR (FR/EN) — dropdown يفتح للأسفل + اليسار (ليبقى داخل الشاشة) */
html[dir="ltr"] .curr-menu,
html[dir="ltr"] .lang-menu {
  right: auto !important;
  left: 0 !important;
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
  min-width: 200px !important;
  max-width: 280px !important;
}

/* في RTL (AR) — dropdown يفتح للأسفل + اليمين (يبقى داخل الشاشة) */
html[dir="rtl"] .curr-menu,
html[dir="rtl"] .lang-menu {
  left: auto !important;
  right: 0 !important;
  inset-inline-start: auto !important;
  inset-inline-end: 0 !important;
  min-width: 200px !important;
  max-width: 280px !important;
}

/* تحسينات عامة للـ dropdown */
.curr-menu,
.lang-menu {
  z-index: 1000 !important;
}

/* في حالة الـ Nav عندو position fixed، نتأكد أن الـ menu يبان فوق كل شي */
.curr-switcher,
.lang-switcher {
  position: relative !important;
}

/* Mobile: الـ menu يأخذ كل العرض */
@media (max-width: 768px) {
  .nav-cta .curr-menu,
  .nav-cta .lang-menu {
    position: fixed !important;
    top: calc(38px + 54px + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
  }
}
