/* شيفت منيو — صفحة أصحاب المحلات. هوية شيفت: أزرق سماوي وكحلي وأبيض مزرق، ألوان سادة. */
:root {
  --navy: #0B2545; --blue: #1E6FD9; --blue-d: #1658B0; --sky: #4FB3FF; --ice: #EEF5FF; --ice2: #E1ECFB;
  --ink: #0B2545; --muted: #5E7190; --line: #D6E3F5; --white: #FFFFFF; --ok: #1FA855; --bad: #D93025;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--ice); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
code { background: var(--ice); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-family: inherit; font-size: 13px; }

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--blue); color: #fff; font: 800 15.5px 'Cairo', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--blue-d); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue); }
.btn.btn-s { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.big { width: 100%; height: 58px; font-size: 18px; border-radius: 16px; margin-top: 6px; }
.btn i { font-style: normal; opacity: .6; font-weight: 600; }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; }
.brand b { color: var(--blue); font-weight: 900; }
.mark svg { width: 34px; height: 34px; display: block; }
.top nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 15px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.top nav a:not(.btn):hover { color: var(--navy); }

.hero { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 56px 24px 40px; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--blue); font-weight: 800; font-size: 13.5px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.12; margin: 0 0 16px; font-weight: 900; letter-spacing: -.5px; }
.hero h1 span { color: var(--blue); }
.lead { font-size: 18px; line-height: 1.85; color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--navy); font-weight: 700; font-size: 14.5px; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 900; margin-inline-end: 6px; }

.hero-phones { position: relative; height: 560px; }
.phone { width: 280px; height: 560px; border-radius: 42px; background: var(--navy); padding: 10px; box-shadow: 0 30px 60px rgba(11,37,69,.18); }
.phone .screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #fff; transform: translateZ(0); position: relative; }
.phone .scroller { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.phone .scroller::-webkit-scrollbar { display: none; }
.phone .sm { font-size: 15px; }
.phone .sm-bottom { position: absolute; }
.phone .sm-sheet { position: absolute; }
.hero-phones .phone { position: absolute; }
.tilt-a { inset-inline-start: 30px; top: 0; transform: rotate(-4deg); z-index: 2; }
.tilt-b { inset-inline-start: 250px; top: 30px; transform: rotate(5deg); }
.hero-phones .scroller { pointer-events: none; }

.how { max-width: 1180px; margin: 10px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.step span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ice); color: var(--blue); font-weight: 900; font-size: 20px; }
.step h3 { margin: 12px 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14.5px; }

.demos { max-width: 1180px; margin: 0 auto; padding: 56px 24px 10px; }
.demos h2, .build-form h2 { font-size: 30px; margin: 0 0 18px; font-weight: 900; }
.demo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.demo { text-decoration: none; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: transform .15s, border-color .15s; }
.demo:hover { transform: translateY(-3px); border-color: var(--blue); }
.demo .sw { height: 110px; display: grid; place-items: center; background-size: 80px; }
.demo .sw svg { width: 62px; height: 62px; }
.demo .dn { padding: 10px 12px 12px; }
.demo b { display: block; font-size: 15px; }
.demo small { color: var(--muted); font-size: 12.5px; }

.builder { max-width: 1180px; margin: 0 auto; padding: 56px 24px 70px; display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.build-preview { position: sticky; top: 84px; display: flex; justify-content: center; }
.phone.big { width: 330px; height: 660px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin: 0 0 14px; }
fieldset.card { min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; padding: 0 6px; }
legend .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 16px; }
.f { display: block; margin: 0 0 12px; }
.f span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.f i { font-style: normal; color: var(--muted); font-weight: 500; }
.f input, textarea { width: 100%; border: 1.5px solid var(--line); background: var(--ice); color: var(--ink); border-radius: 12px; padding: 12px 14px; font: 500 15.5px 'Cairo', sans-serif; transition: border-color .15s, background .15s; }
.f input:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
textarea { resize: vertical; line-height: 1.9; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--bad); font-weight: 700; font-size: 13.5px; margin: -4px 0 6px; }
.menu-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.upload input { display: none; }
.upload { opacity: .75; cursor: not-allowed; }
.parsed { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.parsed .chip { background: var(--ice); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.parsed .chip b { color: var(--blue); }
.parsed .sum { width: 100%; font-weight: 800; color: var(--ok); font-size: 14px; }
.label { font-weight: 800; margin: 16px 0 8px; font-size: 14.5px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.type { border: 1.5px solid var(--line); background: var(--white); border-radius: 16px; padding: 10px 6px 8px; cursor: pointer; text-align: center; font: 700 13px 'Cairo', sans-serif; color: var(--ink); transition: border-color .15s, background .15s; }
.type svg { width: 42px; height: 42px; display: block; margin: 0 auto 4px; color: var(--muted); }
.type:hover { border-color: var(--sky); }
.type[aria-checked=true] { border-color: var(--blue); background: var(--ice); }
.type[aria-checked=true] svg { color: var(--blue); }
.variants { display: flex; gap: 10px; flex-wrap: wrap; }
.variant { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--white); border-radius: 14px; padding: 8px 12px 8px 14px; cursor: pointer; font: 700 14px 'Cairo', sans-serif; color: var(--ink); }
.variant[aria-checked=true] { border-color: var(--blue); background: var(--ice); }
.dots { display: flex; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -7px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dots i:first-child { margin-inline-start: 0; }

.result h3 { margin: 0 0 12px; font-size: 22px; color: var(--ok); }
.res-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.qr img, .qr canvas { display: block; width: 150px; height: 150px; }
.res-info { flex: 1; min-width: 220px; }
.reslink { display: block; direction: ltr; text-align: right; font-weight: 800; color: var(--blue); word-break: break-all; margin: 4px 0 10px; }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note { background: var(--ice); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.site-foot { text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); background: var(--white); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-phones { height: 520px; max-width: 540px; margin: 0 auto; width: 100%; }
  .tilt-a { inset-inline-start: 4%; } .tilt-b { inset-inline-start: auto; inset-inline-end: 4%; }
  .how { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .build-preview { position: static; order: -1; }
}
@media (max-width: 600px) {
  .top { padding: 10px 16px; } .top nav a:not(.btn) { display: none; }
  .hero, .how, .demos, .builder { padding-inline: 16px; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 220px; height: 440px; border-radius: 34px; padding: 8px; }
  .hero-phones .phone .screen { border-radius: 27px; }
  .tilt-a { inset-inline-start: 0; } .tilt-b { inset-inline-end: 0; top: 24px; }
  .how { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .phone.big { width: 100%; max-width: 330px; height: 600px; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── طرق رفع المنيو ── */
.menu-tools .btn, .top nav .btn { flex: none; }
.sources { display: grid; gap: 10px; margin: 6px 0 4px; }
.src { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--white); }
.src b { display: block; font-size: 16px; margin-bottom: 2px; }
.src b i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--ice); border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; }
.src p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.src small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--blue); font-weight: 700; line-height: 1.7; }
.src-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--blue); }
.src-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.src-shift { background: var(--ice); border-color: var(--ice2); }
.src-shift .src-ic { background: var(--blue); color: #fff; }
.src-btn { cursor: pointer; transition: border-color .15s, background .15s; }
.src-btn:hover, .src-btn:focus-within { border-color: var(--blue); }
.src-btn.drag { border-color: var(--blue); background: var(--ice); border-style: dashed; }
.src-off { opacity: .6; }
.xl-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; background: #E8F7EE; color: #11703A; }
.xl-msg.bad { background: #FDECEA; color: #B3261E; }
.typehelp { margin: 12px 0 8px; }
.typehelp summary { cursor: pointer; font-weight: 800; color: var(--blue); font-size: 14.5px; padding: 4px 0; }
.typehelp p { margin: 6px 0 0; }
@media (max-width: 600px) { .hero h1 { font-size: 31px; line-height: 1.25; } .lead { font-size: 16.5px; } }

/* ── اللوجو وصور الأصناف ── */
.logo-row { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.logo-row b { font-size: 14px; } .logo-row i { font-style: normal; font-size: 13px; } .logo-row p { margin: 2px 0 0; }
.logo-pick { flex: none; width: 76px; height: 76px; border-radius: 20px; border: 1.5px dashed var(--line); background: var(--ice); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--blue); font-weight: 800; font-size: 13.5px; }
.logo-pick:hover { border-color: var(--blue); }
.logo-pick img { width: 100%; height: 100%; object-fit: cover; }
.linkbtn { border: 0; background: none; color: #B3261E; font: 700 13px 'Cairo', sans-serif; padding: 4px 0; cursor: pointer; }
.items-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
#itemRows { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding-inline-end: 4px; }
.irow { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.iphoto { flex: none; width: 52px; height: 52px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--ice); display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; color: var(--blue); font-size: 20px; }
.iphoto img { width: 100%; height: 100%; object-fit: cover; }
.iphoto.has { border-style: solid; }
.iname { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iname small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.istar { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: #B9C4D4; font-size: 22px; cursor: pointer; }
.istar.on { color: #E8A317; border-color: #F2D48A; background: #FFF8E6; }
