/* موقع غلّتي ghallati.com — تنسيق مشترك للصفحة العربية (/) والإنجليزية (/en/). قواعد [dir=ltr] آخر الملف */
  :root { --navy: #0f2a4a; --navy2: #163d68; --teal: #1fb3a0; --teal2: #14907f; --teal-soft: #e7f7f4; --gold: #f2b134; --ink: #1c2633; --muted: #5d6b7a; --line: #e3e8ee; --bg: #f6f8fb; }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif; color: var(--ink); background: #fff; line-height: 1.7; }
  a { color: inherit; }
  img { max-width: 100%; height: auto; display: block; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
  .num { direction: ltr; unicode-bidi: isolate; }

  /* ===== الشريط العلوي ===== */
  header { position: sticky; top: 0; z-index: 20; background: rgba(15, 42, 74, .92); backdrop-filter: blur(10px); color: #fff; }
  .nav { display: flex; align-items: center; gap: 18px; height: 66px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; }
  .brand img { width: 40px; height: 40px; border-radius: 10px; }
  .brand small { display: block; font-size: 11px; font-weight: 500; color: #a9d9d2; letter-spacing: .5px; margin-top: -4px; }
  .nav nav { display: flex; gap: 20px; margin-inline-start: auto; font-size: 15px; }
  .nav nav a { text-decoration: none; color: #d6e3f0; }
  .nav nav a:hover { color: #fff; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
  .btn:hover { transform: translateY(-2px); }
  .btn-main { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(31, 179, 160, .35); }
  .btn-main:hover { background: var(--teal2); }
  .btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
  .btn-wa { background: #25d366; color: #fff; }
  .btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
  .btn small { display: block; font-size: 11.5px; font-weight: 500; opacity: .85; }
  .btn .t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }

  /* ===== البداية ===== */
  .hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 55%, #0d5468 100%); color: #fff; position: relative; overflow: hidden; padding: 56px 0 0; }
  .hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(31,179,160,.32), transparent 65%); left: -220px; top: -200px; }
  .hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .badge { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 30px; padding: 4px 16px; font-size: 14px; }
  .hero h1 { margin: 16px 0 10px; font-size: clamp(30px, 5vw, 52px); line-height: 1.3; }
  .hero h1 b { color: #7ff0e3; }
  .hero p.lead { margin: 0 auto; max-width: 760px; font-size: clamp(16px, 2vw, 19px); color: #d4e2ef; }
  .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 8px; }
  .meta { font-size: 13px; color: #a9c2d8; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 0; }
  .chip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; padding: 5px 14px; font-size: 14px; }
  .shots-hero { position: relative; margin: 40px auto 0; max-width: 1060px; }
  .laptop { border-radius: 14px 14px 0 0; overflow: hidden; border: 10px solid #0b1b2f; border-bottom: 0; box-shadow: 0 -10px 60px rgba(0,0,0,.45); }
  .phone { position: absolute; width: 22%; min-width: 120px; left: -2%; bottom: -1px; border: 8px solid #0b1b2f; border-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,.5); }

  /* ===== الأقسام ===== */
  section { padding: 72px 0; }
  .alt { background: var(--bg); }
  .title { text-align: center; margin-bottom: 38px; }
  .title h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); }
  .title p { margin: 0 auto; max-width: 700px; color: var(--muted); font-size: 17px; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
  .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 16px; transition: box-shadow .2s, transform .2s; }
  .card:hover { box-shadow: 0 14px 34px rgba(15, 42, 74, .1); transform: translateY(-3px); }
  .card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
  .card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
  .card ul { margin: 0; padding: 0 18px 0 0; color: #3b4857; font-size: 15px; }
  .card li { margin: 3px 0; }
  .card li::marker { color: var(--teal); }
  .card.new { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-soft), #fff 45%); }
  .tag { font-size: 11px; background: var(--teal); color: #fff; border-radius: 20px; padding: 1px 9px; margin-inline-start: auto; font-weight: 700; }

  .types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .type { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px; text-align: center; font-weight: 600; color: var(--navy); }
  .type span { display: block; font-size: 34px; margin-bottom: 6px; }

  .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(15, 42, 74, .1); background: #fff; }
  .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top right; cursor: zoom-in; }
  .shot figcaption { padding: 12px 16px; font-weight: 700; color: var(--navy); border-top: 1px solid var(--line); }
  .shot figcaption span { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }

  .why { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .why div { background: var(--navy); color: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; }
  .why b { display: block; font-size: 24px; color: #7ff0e3; margin-bottom: 6px; }

  .steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
  .steps div { border: 2px dashed var(--teal); border-radius: 16px; padding: 30px 20px 18px; position: relative; background: #fff; }
  .steps div::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .steps b { display: block; font-size: 18px; color: var(--navy); margin-bottom: 4px; }

  .dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
  .dl-card { border-radius: 20px; padding: 28px; color: #fff; background: linear-gradient(135deg, var(--navy), #0d5468); display: flex; flex-direction: column; gap: 12px; }
  .dl-card h3 { margin: 0; font-size: 24px; }
  .dl-card p { margin: 0; color: #cfe0ee; }
  .dl-card .btn { align-self: flex-start; }
  .qr { display: flex; gap: 16px; align-items: center; }
  .qr .box { background: #fff; border-radius: 12px; padding: 8px; width: 150px; height: 150px; flex: none; }
  .qr .box svg { width: 100%; height: 100%; }

  .faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
  .faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
  .faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 17px; list-style: none; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::before { content: "+"; display: inline-block; width: 24px; color: var(--teal); font-weight: 700; }
  .faq details[open] summary::before { content: "−"; }
  .faq details p { margin: 8px 24px 2px 0; color: #3b4857; }

  .contact { background: linear-gradient(135deg, var(--navy), #0d5468); color: #fff; text-align: center; }
  .contact h2 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 36px); }
  .contact p { margin: 0 auto 22px; color: #cfe0ee; max-width: 640px; font-size: 17px; }
  footer { background: #0b1b2f; color: #9fb3c8; font-size: 14px; padding: 22px 0; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }

  /* تنبيه النسخة التجريبية (بيتا) — أول الصفحة */
  .beta { background: #fff4d6; color: #5c4300; border-bottom: 2px solid var(--gold); font-size: 15px; }
  .beta .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; }
  .beta b { color: #3d2c00; }
  .beta-box { max-width: 860px; margin: 0 auto 30px; background: #fff8e4; border: 2px solid var(--gold); border-radius: 16px; padding: 16px 20px; color: #4a3800; }
  .beta-box h3 { margin: 0 0 6px; color: #3d2c00; font-size: 18px; }
  .beta-box p { margin: 0; }

  /* طريقة التثبيت */
  .install { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
  .ist { display: grid; grid-template-columns: 52px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .ist .n { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
  .ist h3 { margin: 4px 0 4px; color: var(--navy); font-size: 18px; }
  .ist p { margin: 0 0 6px; color: #3b4857; }
  .ist .why-note { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
  .ss-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
  /* رسم لشاشة ويندوز الزرقاء (SmartScreen) */
  .ss { background: #0067c0; color: #fff; border-radius: 6px; padding: 16px 18px 14px; font-family: "Segoe UI", Tahoma, sans-serif; position: relative; min-height: 210px; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(0, 60, 120, .25); }
  .ss .x { position: absolute; top: 0; left: 0; background: #fff; color: #222; width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
  .ss h4 { margin: 4px 0 8px; font-size: 18px; font-weight: 400; line-height: 1.4; }
  .ss p { margin: 0 0 6px; font-size: 12.5px; color: #e6f0fa; line-height: 1.6; }
  .ss .more { text-decoration: underline; font-size: 13px; margin-top: 30px; }
  .ss .kv { font-size: 12.5px; margin: 2px 0; color: #e6f0fa; }
  .ss .btns { margin-top: auto; padding-top: 34px; display: flex; gap: 8px; justify-content: flex-start; flex-direction: row-reverse; }
  .ss .btns span { background: #fff; color: #111; padding: 6px 14px; font-size: 13px; border: 2px solid transparent; }
  .ss .hl { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; position: relative; }
  .ss .hl::after { content: "اضغط هنا"; position: absolute; top: -30px; right: 0; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; text-decoration: none; }
  .ss-cap { text-align: center; font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 6px; }

  /* محلك معك في أي مكان (الدخول من الإنترنت عبر Cloudflare) */
  .remote { background: linear-gradient(160deg, var(--navy) 0%, #0d5468 100%); color: #fff; }
  .remote .title h2 { color: #fff; }
  .remote .title p { color: #cfe0ee; }
  .rm-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; }
  .flow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
  .flow .node { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 16px 12px; text-align: center; min-width: 120px; flex: 1; }
  .flow .node span { display: block; font-size: 34px; margin-bottom: 4px; }
  .flow .node b { display: block; font-size: 15px; }
  .flow .node small { display: block; color: #a9c2d8; font-size: 12.5px; line-height: 1.5; }
  .flow .node.cf { border-color: var(--gold); background: rgba(242,177,52,.12); }
  .flow .arr { color: #7ff0e3; font-size: 22px; font-weight: 700; }
  .domain { margin-top: 16px; background: #fff; color: var(--navy); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
  .domain .lock { color: var(--teal); }
  .domain .url { direction: ltr; font-family: Consolas, monospace; font-size: 15px; }
  .rm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
  .rm-list li { background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
  .rm-list li > span { font-size: 22px; line-height: 1.3; }
  .rm-list b { display: block; }
  .rm-list small { color: #cfe0ee; font-size: 14px; }
  .rm-how { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; counter-reset: h; }
  .rm-how div { border: 1px dashed rgba(127,240,227,.6); border-radius: 14px; padding: 14px 14px 12px; position: relative; font-size: 14.5px; color: #dbe7f2; }
  .rm-how div b { color: #fff; display: block; font-size: 16px; margin-bottom: 2px; }
  .rm-how div::before { counter-increment: h; content: counter(h); position: absolute; top: -14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

  .zoom { position: fixed; inset: 0; background: rgba(5, 12, 22, .9); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; cursor: zoom-out; }
  .zoom.on { display: flex; }
  .zoom img { max-height: 100%; border-radius: 10px; }

  @media (max-width: 820px) {
    .rm-grid { grid-template-columns: 1fr; }
    .flow .arr { transform: rotate(90deg); width: 100%; text-align: center; }
    .flow .node { min-width: 100%; }
    .ss-pair { grid-template-columns: 1fr; gap: 34px; }
    .ist { grid-template-columns: 1fr; gap: 6px; padding: 16px 14px; }
    .ist .n { width: 38px; height: 38px; font-size: 17px; }
    .beta .wrap { font-size: 14px; }
    .nav nav { display: none; }
    .nav .btn-sm { margin-inline-start: auto; }
    .gallery { grid-template-columns: 1fr; }
    .phone { width: 30%; }
    section { padding: 54px 0; }
    .qr .box { width: 120px; height: 120px; }
  }
  @media (max-width: 480px) {
    .cta .btn { width: 100%; }
    .qr { flex-direction: column; align-items: flex-start; }
  }

  /* ===== زر اللغة وشريط «Prefer English?» ===== */
  .lang-sw { text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 6px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .lang-sw:hover { background: rgba(255,255,255,.12); }
  .lang-bar { background: #e7f7f4; color: var(--navy); font-size: 14.5px; border-bottom: 1px solid #bfe9e1; }
  .lang-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .lang-bar a { font-weight: 700; color: var(--teal2); }
  .lang-bar button { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
  @media (max-width: 820px) { .lang-sw { padding: 5px 9px; font-size: 13px; } }

  /* ===== الصفحة الإنجليزية (من اليسار لليمين) ===== */
  [dir=ltr] body { font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif; }
  [dir=ltr] .hero::before { left: auto; right: -220px; }
  [dir=ltr] .phone { left: auto; right: -2%; }
  [dir=ltr] .card ul { padding: 0 0 0 18px; }
  [dir=ltr] .shot img { object-position: top left; }
  [dir=ltr] .steps div::before { right: auto; left: 20px; }
  [dir=ltr] .faq details p { margin: 8px 0 2px 24px; }
  [dir=ltr] .ss .x { left: auto; right: 0; }
  [dir=ltr] .ss .btns { flex-direction: row; justify-content: flex-end; }
  [dir=ltr] .ss .hl::after { content: "Click here"; right: auto; left: 0; font-family: "IBM Plex Sans", "Segoe UI", sans-serif; }
  [dir=ltr] .rm-how div::before { right: auto; left: 14px; }
