/* ───────── الخطوط (Tajawal، مستضافة محلياً) ───────── */
@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url(../assets/fonts/tajawal-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url(../assets/fonts/tajawal-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url(../assets/fonts/tajawal-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: Tajawal; font-weight: 800; font-display: swap; src: url(../assets/fonts/tajawal-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: Tajawal; font-weight: 900; font-display: swap; src: url(../assets/fonts/tajawal-arabic-900-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url(../assets/fonts/tajawal-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url(../assets/fonts/tajawal-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url(../assets/fonts/tajawal-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Tajawal; font-weight: 800; font-display: swap; src: url(../assets/fonts/tajawal-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Tajawal; font-weight: 900; font-display: swap; src: url(../assets/fonts/tajawal-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

/* ───────── هوية موازنة ───────── */
:root {
  --bg: #0a0e27;
  --bg-2: #0d1331;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(130, 150, 255, 0.16);
  --line-strong: rgba(130, 150, 255, 0.32);
  --text: #eef1ff;
  --muted: #a6b0d4;
  --teal: #4fd5cf;
  --blue: #476af0;
  --amber: #f5a524;
  --ink: #0b1030;
  --grad: linear-gradient(270deg, #4fd5cf 0%, #5aa6ee 45%, #6f84ff 100%);
  --grad-btn: linear-gradient(270deg, #4fd5cf, #476af0);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tajawal, 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.sprite { position: absolute; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; top: -60px; right: 16px; background: var(--amber); color: var(--ink); padding: 8px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { max-width: 860px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* العبارة الملوّنة في العناوين تنتقل للسطر التالي كاملة بدل أن تنقسم */
h2 .grad { display: inline-block; }

/* ───────── الأزرار ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 14px; font-weight: 800; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: var(--ink); box-shadow: 0 12px 34px rgba(71, 106, 240, 0.4); }
.btn-primary:hover { box-shadow: 0 16px 44px rgba(79, 213, 207, 0.45); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--teal); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; border-radius: 16px; }
.btn-sm { padding: 9px 18px; font-size: .95rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .ic { width: 1.35em; height: 1.35em; }

/* ───────── الترويسة ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 39, 0.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { background: rgba(10, 14, 39, 0.86); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 22px rgba(71, 140, 240, 0.4); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.3px; }
.brand small { font-size: .82rem; color: var(--muted); font-weight: 500; }
.links { display: flex; align-items: center; gap: 6px; }
.links a:not(.btn) { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: color .2s, background .2s; }
.links a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav-cta { margin-inline-start: 8px; }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic { width: 24px; height: 24px; }

/* ───────── الواجهة ───────── */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(71, 106, 240, 0.28), transparent 70%),
    radial-gradient(700px 500px at 90% 30%, rgba(79, 213, 207, 0.16), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(245, 165, 36, 0.10), transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(245, 165, 36, 0.1); border: 1px solid rgba(245, 165, 36, 0.4); color: var(--amber); font-weight: 700; font-size: .95rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); } }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 900; margin: 22px 0 18px; letter-spacing: -0.5px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-weight: 600; font-size: .98rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--teal); width: 1.1em; height: 1.1em; stroke-width: 3; }

.hero-visual { position: relative; perspective: 1600px; }
.device {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0f1530;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 8px rgba(20, 26, 62, 0.75), 0 0 120px rgba(71, 106, 240, 0.25);
}
.hero-visual .device { transform: rotateY(-9deg) rotateX(4deg); transform-origin: left center; transition: transform .6s ease; }
.hero-visual:hover .device { transform: rotateY(-4deg) rotateX(2deg); }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 10px 16px; background: #121938; border-bottom: 1px solid var(--line); direction: ltr; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.device-bar span { margin-inline-start: auto; font-size: .8rem; color: var(--muted); direction: rtl; }
.receipt {
  position: absolute; width: 27%; bottom: -26px; right: -18px; border-radius: 12px; background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); transform: rotate(5deg); animation: bob 6s ease-in-out infinite;
}
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(17, 23, 55, 0.88); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); line-height: 1.3;
}
.float .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--grad-btn); color: var(--ink); stroke-width: 2.4; }
.float b { display: block; font-size: .95rem; }
.float small { color: var(--teal); font-weight: 700; font-size: .85rem; }
.f1 { top: -18px; left: 8%; animation: bob 7s ease-in-out infinite; }
.f2 { bottom: 22%; left: -26px; animation: bob 8s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.fit { margin-top: 70px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; color: var(--muted); }
.fit > span { font-weight: 700; }
.fit ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fit li { padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }

/* ───────── الأرقام ───────── */
.stats { padding: 30px 0 10px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ───────── الأقسام ───────── */
.section { padding: 110px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.head.left { text-align: start; margin-inline: 0; }
.kicker { display: inline-block; color: var(--amber); font-weight: 800; font-size: .98rem; margin-bottom: 12px; letter-spacing: .3px; }
.head h2, .offer h2, .contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; }
.head p { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }

.grid.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.card h3 { font-size: 1.25rem; font-weight: 800; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 1rem; }
.ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(160deg, rgba(79, 213, 207, 0.18), rgba(71, 106, 240, 0.22)); border: 1px solid var(--line-strong); color: var(--teal);
}
.ico .ic { width: 26px; height: 26px; }

/* جولة الشاشات */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tabs button {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; cursor: pointer; color: var(--muted); transition: all .2s ease;
}
.tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.tabs button[aria-selected='true'] { background: var(--grad-btn); color: var(--ink); border-color: transparent; box-shadow: 0 10px 28px rgba(71, 106, 240, .35); }
.tour-panel { display: grid; grid-template-columns: .8fr 1.6fr; gap: 44px; align-items: center; }
.tour-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; }
.tour-text p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 26px; }
.tour-device img { transition: opacity .25s ease; }
.tour-device img.fading { opacity: 0; }

/* الفوترة الإلكترونية */
.einv { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.checks { display: grid; gap: 16px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.checks .ic { width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: var(--teal); background: rgba(79, 213, 207, .1); border: 1px solid rgba(79, 213, 207, .3); }
.checks b { display: block; font-size: 1.08rem; }
.checks span { color: var(--muted); font-size: .98rem; }
.flow { display: grid; gap: 14px; counter-reset: none; }
.flow li {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.flow li:first-child { background: linear-gradient(135deg, rgba(245, 165, 36, .2), rgba(245, 165, 36, .06)); border-color: rgba(245, 165, 36, .45); }
.flow li:not(:last-child)::after { content: ''; position: absolute; bottom: -15px; right: 44px; width: 2px; height: 16px; background: var(--line-strong); }
.flow .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad-btn); color: var(--ink); font-weight: 900; font-size: 1.2rem; flex: none; }
.flow small { display: block; color: var(--muted); font-weight: 600; }
.flow b { font-size: 1.2rem; }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; top: 18px; left: 20px; font-size: 3rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.steps b { display: block; font-size: 1.2rem; margin: 18px 0 6px; }
.steps p { color: var(--muted); font-size: .98rem; }

/* العرض */
.offer {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 50px; align-items: center; padding: 50px; border-radius: 30px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(79, 213, 207, .16), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(71, 106, 240, .22), transparent 70%), var(--bg-2);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.offer-copy p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.offer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.offer-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.offer-list .ic { color: var(--ink); background: var(--teal); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3.5; }
.offer .btn { grid-column: 1 / -1; justify-self: start; }

/* الأسئلة */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; font-weight: 500; color: var(--teal); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* التواصل */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 28px; }
.direct { display: grid; gap: 12px; }
.direct a {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, background .2s;
}
.direct a:hover { border-color: var(--teal); transform: translateX(-4px); background: var(--surface-2); }
.direct small { display: block; color: var(--muted); font-weight: 600; line-height: 1.3; }
.direct b { font-size: 1.12rem; line-height: 1.4; word-break: break-all; }
.ico.wa { color: #25d366; background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .35); }
.form {
  padding: 34px; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form h3 { font-size: 1.5rem; font-weight: 900; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-weight: 500; transition: border-color .2s, background .2s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(166, 176, 212, .6); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, .07); }
.form input[aria-invalid='true'] { border-color: #f87171; }
.form select option { background: var(--bg-2); }
.form textarea { resize: vertical; }
.form-error { color: #fca5a5; font-weight: 700; }
.form-note { color: var(--muted); font-size: .9rem; text-align: center; }

/* التذييل */
.footer { border-top: 1px solid var(--line); background: #070a1d; padding: 60px 0 0; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand img { width: 200px; height: auto; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); }
.foot-brand .made { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text); font-weight: 700; }
.foot-brand .made .ic { color: #f87171; }
.foot-col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.foot-col h4 { color: var(--text); font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.foot-col a:hover { color: var(--teal); }
.foot-col a[dir='ltr'] { text-align: right; }
.foot-col b { color: var(--text); font-weight: 700; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0; margin-top: 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-bottom a:hover { color: var(--teal); }

/* زر واتساب العائم */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 34px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 32px; height: 32px; }

/* حركة الظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .receipt, .float, .pill .dot { animation: none; }
  .hero-visual .device { transform: none; }
}

/* زر تبديل اللغة */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 40px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text) !important; font-weight: 800;
}
.lang-switch:hover { border-color: var(--teal); background: var(--surface-2) !important; }

/* ───────── الصفحة الإنجليزية (من اليسار لليمين) ───────── */
[dir='ltr'] body, body[dir='ltr'] { letter-spacing: 0; }
[dir='ltr'] .hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); letter-spacing: -1px; line-height: 1.12; }
[dir='ltr'] .hero-visual .device { transform: rotateY(9deg) rotateX(4deg); transform-origin: right center; }
[dir='ltr'] .hero-visual:hover .device { transform: rotateY(4deg) rotateX(2deg); }
[dir='ltr'] .receipt { right: auto; left: -18px; transform: rotate(-5deg); }
[dir='ltr'] .f1 { left: auto; right: 8%; }
[dir='ltr'] .f2 { left: auto; right: -26px; }
[dir='ltr'] .steps li::before { left: auto; right: 20px; }
[dir='ltr'] .flow li:not(:last-child)::after { right: auto; left: 44px; }
[dir='ltr'] .direct a:hover { transform: translateX(4px); }
[dir='ltr'] .wa-float { left: auto; right: 22px; }
[dir='ltr'] .foot-col a[dir='ltr'] { text-align: left; }
[dir='ltr'] .device-bar span { direction: ltr; }

/* ───────── الشاشات الأصغر ───────── */
@media (max-width: 1080px) {
  .hero-in, .tour-panel, .einv, .contact, .offer { grid-template-columns: 1fr; }
  .hero-in { gap: 70px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { max-width: 760px; margin-inline: auto; width: 100%; }
  .grid.features, .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .tour-text { text-align: center; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .links {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 22px;
    background: rgba(10, 14, 39, .97); border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s;
  }
  .links.open { opacity: 1; pointer-events: auto; transform: none; }
  .links a:not(.btn) { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .grid.features, .steps, .offer-list, .row2, .foot-in { grid-template-columns: 1fr; }
  .offer { padding: 30px 22px; }
  .form { padding: 24px 18px; }
  .btn-lg { width: 100%; }
  .f2 { left: -6px; }
  .f1 { left: 4%; }
  .float { padding: 9px 12px; }
  .float .ic { width: 30px; height: 30px; padding: 6px; }
  .receipt { right: -6px; width: 30%; }
  .hero-visual .device { transform: none; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; left: 16px; }
  [dir='ltr'] .wa-float { left: auto; right: 16px; }
  [dir='ltr'] .f2 { right: -6px; }
  [dir='ltr'] .f1 { right: 4%; }
  [dir='ltr'] .receipt { left: -6px; }
}
