/* موقع المنصة — الرئيسية، التسجيل، دليل المطاعم */
:root {
  --brand: #e8590c;
  --brand-2: #ff8a3d;
  --brand-dark: #c2410c;
  --brand-soft: #fff1e8;
  --ink: #17181f;
  --ink-2: #3b3e4a;
  --muted: #6b7080;
  --line: #ececf1;
  --bg: #f7f6f3;
  --card: #fff;
  --ok: #2f9e44;
  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(20, 20, 40, .28);
  --shadow-sm: 0 8px 24px -14px rgba(20, 20, 40, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Cairo", system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 16px;
  font: 800 15.5px "Cairo", sans-serif; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 28px -10px rgba(232, 89, 12, .6); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 13px; }

/* الهيدر */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.logo-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 20px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--brand-dark)); box-shadow: 0 8px 18px -6px rgba(232, 89, 12, .55); }
.nav-links { display: flex; gap: 6px; margin-inline-start: 10px; }
.nav-links a { padding: 8px 14px; border-radius: 11px; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { background: var(--bg); color: var(--ink); }
.nav-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: #fff; font-size: 20px; }
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-cta { margin-inline-start: auto; }
}

/* الهيرو */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(255, 138, 61, .22), transparent 70%),
  radial-gradient(700px 380px at -5% 110%, rgba(232, 89, 12, .12), transparent 70%), #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 158, 68, .18); }
.hero h1 { font-size: clamp(32px, 4.1vw, 52px); line-height: 1.22; margin: 18px 0 16px; font-weight: 900; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero p.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i { color: var(--ok); }

/* موكاب: لوحة + موبايل */
.mock { position: relative; height: 520px; }
.mock-board { position: absolute; inset-inline-end: 0; top: 20px; width: 92%; background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e4e4ea; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg); border-radius: 15px; padding: 12px; }
.kpi b { display: block; font-size: 20px; font-weight: 900; }
.kpi small { color: var(--muted); font-weight: 700; font-size: 12px; }
.kpi.up b { color: var(--ok); }
.mock-chart { height: 130px; border-radius: 15px; background: linear-gradient(180deg, rgba(232, 89, 12, .12), transparent); position: relative; overflow: hidden; }
.mock-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-orders { margin-top: 12px; display: grid; gap: 8px; }
.mock-order { display: flex; align-items: center; gap: 10px; background: var(--bg); padding: 10px 12px; border-radius: 13px; font-weight: 700; font-size: 13px; }
.mock-order .tag { margin-inline-start: auto; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: #e6f6ea; color: var(--ok); }
.mock-order .tag.new { background: var(--brand-soft); color: var(--brand-dark); }
.mock-phone { position: absolute; inset-inline-start: 0; bottom: 0; width: 220px; height: 430px; background: var(--ink); border-radius: 38px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); animation: float 6s ease-in-out infinite; }
.mock-screen { background: var(--bg); border-radius: 30px; height: 100%; overflow: hidden; padding: 14px 12px; }
.mock-screen .ph-head { font-weight: 900; font-size: 13px; margin-bottom: 8px; }
.mock-banner { height: 82px; border-radius: 16px; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #f59f00); color: #fff; padding: 12px; font-weight: 900; font-size: 13px; }
.mock-cats { display: flex; gap: 6px; margin: 10px 0; }
.mock-cats span { flex: 1; height: 44px; border-radius: 13px; background: #fff; display: grid; place-items: center; font-size: 18px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mock-card { background: #fff; border-radius: 14px; padding: 7px; }
.mock-card .im { height: 62px; border-radius: 10px; background: linear-gradient(135deg, #ffe0cc, #ffc9a3); display: grid; place-items: center; font-size: 26px; }
.mock-card b { display: block; font-size: 11px; margin-top: 5px; }
.mock-card small { font-size: 10px; color: var(--brand); font-weight: 800; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 920px) {
  .hero { padding: 40px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .mock { height: 440px; }
  .mock-board { width: 88%; }
  .mock-phone { width: 190px; height: 370px; }
}

/* أرقام */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.trust div { padding: 26px 10px; }
.trust b { display: block; font-size: 28px; font-weight: 900; }
.trust span { color: var(--muted); font-weight: 700; font-size: 14px; }
@media (max-width: 720px) { .trust .wrap { grid-template-columns: repeat(2, 1fr); } }

/* سكشن عام */
.section { padding: 90px 0; }
.section.alt { background: var(--bg); }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto 50px; }
.sec-head .kicker { color: var(--brand); font-weight: 900; font-size: 14px; letter-spacing: .3px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; margin: 8px 0 12px; font-weight: 900; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* المميزات */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; inset-inline-start: 26px; width: 42px; height: 42px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 900; font-size: 19px; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(232, 89, 12, .6); }
.step h3 { margin: 10px 0 6px; font-size: 19px; font-weight: 900; }
.step p { margin: 0; color: var(--muted); }
.step .link-demo { margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; font-weight: 800; direction: ltr; background: var(--bg); padding: 6px 12px; border-radius: 10px; font-size: 13.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 34px; } }

/* لمين */
.who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.who div { background: #fff; border-radius: 20px; padding: 22px 14px; text-align: center; border: 1px solid var(--line); font-weight: 800; }
.who div span { display: block; font-size: 34px; margin-bottom: 6px; }
.who div small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
@media (max-width: 860px) { .who { grid-template-columns: repeat(2, 1fr); } }

/* سبليت (صورة + كلام) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.3; margin: 8px 0 14px; font-weight: 900; }
.split p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; font-weight: 700; }
.checks i { color: #fff; background: var(--ok); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex: none; margin-top: 2px; }
.app-visual { background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--brand-dark)); border-radius: 32px; padding: 40px; min-height: 420px;
  position: relative; overflow: hidden; display: grid; place-items: center; }
.app-visual::before, .app-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.app-visual::before { width: 360px; height: 360px; top: -120px; inset-inline-end: -100px; }
.app-visual::after { width: 240px; height: 240px; bottom: -110px; inset-inline-start: -60px; }
.app-visual .mock-phone { position: relative; inset: auto; animation: none; z-index: 1; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badges span { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 800; font-size: 14px; }
.store-badges small { opacity: .7; font-weight: 600; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 2; } }

/* المطاعم */
.rest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rest { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: block; }
.rest:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rest .cover { height: 130px; background: linear-gradient(135deg, #ffe7d6, #ffd0ad); background-size: cover; background-position: center; position: relative; }
.rest .logo-r { position: absolute; bottom: -24px; inset-inline-start: 16px; width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 3px solid #fff;
  box-shadow: var(--shadow-sm); overflow: hidden; display: grid; place-items: center; font-weight: 900; color: var(--brand); font-size: 22px; }
.rest .logo-r img { width: 100%; height: 100%; object-fit: cover; }
.rest .body { padding: 32px 16px 16px; }
.rest h3 { margin: 0; font-size: 16.5px; font-weight: 900; }
.rest p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rest .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rest .tags span { font-size: 12px; font-weight: 700; background: var(--bg); padding: 2px 10px; border-radius: 999px; }
.badge-feat { position: absolute; top: 10px; inset-inline-end: 10px; background: #fff; color: var(--brand-dark); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 1000px) { .rest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rest-grid { grid-template-columns: 1fr; } }

/* الأسعار */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; max-width: 920px; margin-inline: auto; }
.plan { border-radius: 26px; padding: 34px; background: #fff; border: 1px solid var(--line); }
.plan.main { background: var(--ink); color: #fff; border: 0; position: relative; overflow: hidden; }
.plan.main::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(232, 89, 12, .35); filter: blur(40px); top: -90px; inset-inline-end: -80px; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 900; }
.plan .price { font-size: 54px; font-weight: 900; line-height: 1.1; margin: 14px 0 4px; }
.plan .price small { font-size: 17px; font-weight: 700; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.plan li i { color: var(--brand-2); }
.plan.main .btn { position: relative; z-index: 1; }
.plan .soon { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }

/* أسئلة */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 18px 22px; border: 1px solid var(--line); }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* CTA آخر الصفحة */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #f59f00); border-radius: 32px; padding: 56px 40px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; font-weight: 900; }
.cta-band p { opacity: .9; font-size: 17px; margin: 0 0 26px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }

/* الفوتر */
.footer { padding: 50px 0 30px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.footer nav a:hover { color: var(--ink); }

/* صفحات الفورم (التسجيل) */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-side { background: linear-gradient(150deg, var(--brand-2), var(--brand) 50%, var(--brand-dark)); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -200px; inset-inline-end: -200px; }
.auth-side h2 { font-size: 34px; line-height: 1.3; margin: 0 0 14px; font-weight: 900; position: relative; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 16px; }
.auth-side li i { background: rgba(255, 255, 255, .2); width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.auth-main { padding: 40px clamp(20px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.auth-main .box { width: 100%; max-width: 520px; margin-inline: auto; }
.auth-main h1 { font-size: 30px; margin: 0 0 4px; font-weight: 900; }
.auth-main .sub { color: var(--muted); margin: 0 0 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font: 600 15px "Cairo", sans-serif; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12); }
.field .err { color: #e03131; font-size: 13px; font-weight: 700; margin-top: 4px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.slug-box { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; direction: ltr; transition: border-color .15s, box-shadow .15s; }
.slug-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12); }
.slug-box span { background: var(--bg); color: var(--muted); padding: 0 12px; display: flex; align-items: center; font-weight: 700; font-size: 14px; white-space: nowrap; }
.slug-box input { border: 0 !important; box-shadow: none !important; border-radius: 0; height: 48px; direction: ltr; }
.slug-state { font-size: 13px; font-weight: 800; margin-top: 4px; min-height: 20px; }
.slug-state.ok { color: var(--ok); } .slug-state.bad { color: #e03131; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check-row input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); }
@media (max-width: 920px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* دليل المطاعم */
.dir-head { padding: 50px 0 30px; background: var(--bg); }
.dir-head h1 { margin: 0 0 18px; font-size: 34px; font-weight: 900; }
.dir-search { display: flex; gap: 10px; flex-wrap: wrap; }
.dir-search input { flex: 1; min-width: 220px; height: 52px; border: 1.5px solid var(--line); border-radius: 16px; padding: 0 16px; font: 600 15px "Cairo"; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chips a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* صفحات نصية */
.prose { max-width: 820px; margin: 0 auto; padding: 50px 0 80px; }
.prose h1 { font-size: 34px; font-weight: 900; margin: 0 0 8px; }
.prose h2 { font-size: 21px; font-weight: 900; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .mock-phone { animation: none; } }
