/* صفحة العروض للعملاء (تستخدم ألوان وخطوط styles.css) */
:root { --bar-h: 68px; }
html { scroll-behavior: smooth; }
.landing-body { background: var(--bg); }
.landing-body #toast { bottom: calc(24px + var(--safe-b)); }

/* ---------- الشريط العلوي (ثابت) ---------- */
.brandbar {
  position: sticky; top: 0; z-index: 30;
  padding-top: var(--safe-t);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brandbar-in {
  max-width: 1120px; height: var(--bar-h);
  margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand-logo { flex-shrink: 0; margin: 0 0 0 auto; }
/* الجوال: الشعار الكامل | الشاشات الأكبر: الأيقونة المربعة */
.brand-logo .logo { height: 48px; }
.brand-logo .brand-icon { display: none; width: 52px; height: 52px; border-radius: 22.37%; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.brand-text { flex: 1; min-width: 0; }
.brand-text h1 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.brand-text p { overflow: hidden; font-size: 13px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.btn-wa-solid { flex-shrink: 0; border-color: #1fa855; border-radius: 999px; background: #1fa855; color: #fff; }
/* زر الألوان (داكن/فاتح) */
.theme-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text);
  cursor: pointer; transition: background .2s, transform .15s;
}
.theme-btn:hover { background: var(--surface-2); }
.theme-btn:active { transform: scale(.94); }
.theme-btn .i { width: 18px; height: 18px; }

/* ---------- المحتوى ---------- */
.land { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(32px + var(--safe-b)); }

/* شريط الحالة تحت العنوان */
.status-strip {
  display: flex; gap: 8px;
  margin: 0 -16px; padding: 14px 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-strip::-webkit-scrollbar { display: none; }
.status-strip span {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; font-weight: 600;
}
.status-strip .live { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-soft); color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- الأقسام: تبويبات في الجوال، عمودين في الشاشات الكبيرة ---------- */
.board-tabs {
  position: sticky; top: calc(var(--safe-t) + var(--bar-h) + 8px); z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 14px 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.board-tabs button {
  min-height: 46px;
  border: 0; border-radius: 12px;
  background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 700;
}
.board-tabs button span { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface); font-size: 12px; }
.board-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.board-tabs button.on span { background: var(--brand); color: var(--brand-ink); }

.board-cols[data-active="today"] .col-later,
.board-cols[data-active="later"] .col-today { display: none; }
.col-head { display: none; }
.col-list { display: flex; flex-direction: column; gap: 16px; }
.col-empty { padding: 30px 16px; border: 1px dashed var(--line); border-radius: 20px; background: var(--surface); text-align: center; color: var(--muted); line-height: 1.8; }

/* ---------- بطاقة العرض ---------- */
.offer {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 12px 30px rgba(60, 30, 10, .08);
  scroll-margin-top: calc(var(--bar-h) + 80px);
  animation: rise-in .5s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: box-shadow .25s;
}
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
.offer.highlight { box-shadow: 0 0 0 3px var(--brand), 0 12px 30px rgba(60, 30, 10, .15); }

.offer-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.offer-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .offer:hover .offer-img { transform: scale(1.04); } }
.offer-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 90% at 70% 20%, hsl(var(--h) 90% 72%), transparent 70%),
    linear-gradient(150deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) - 8) 70% 36%));
}
.offer-ph span { font-size: 76px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25)); }
.offer.sold .offer-media > :first-child { filter: grayscale(1) brightness(.85); }

.offer-media .badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #9a3514;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.offer-media .badge.pre { color: #1d5fd1; }
.date-chip {
  position: absolute; top: 12px; inset-inline-end: 12px;
  display: grid; justify-items: center;
  min-width: 56px; padding: 6px 8px 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: #221c17;
  font-size: 11px; font-weight: 600; line-height: 1.15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.date-chip b { font-size: 22px; font-weight: 700; color: #b8431f; }
.ribbon { position: absolute; inset: auto 0 0 0; padding: 9px; background: rgba(20, 12, 8, .75); color: #fff; text-align: center; font-weight: 700; }
.low {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: #d92d20; color: #fff;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 45, 32, .4);
  animation: wiggle 2.6s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 86%, 100% { transform: none; }
  90% { transform: rotate(-5deg) scale(1.06); }
  95% { transform: rotate(5deg) scale(1.06); }
}
.share-btn {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: #221c17;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.share-btn:active { transform: scale(.92); }

.offer-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px; }
.offer-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-title h3 { font-size: 20px; font-weight: 700; line-height: 1.35; }
.price { display: flex; align-items: baseline; gap: 3px; color: var(--brand); white-space: nowrap; }
.price b { font-size: 26px; font-weight: 700; line-height: 1; }
.price small { font-size: 13px; font-weight: 600; }
.offer-desc { margin-top: -6px; font-size: 14px; color: var(--muted); white-space: pre-line; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chips span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px; font-weight: 600;
}
.meta-chips .i { color: var(--muted); }
.offer .stock { margin: 0; }
.countdown { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.countdown:empty { display: none; }
.countdown b { color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.countdown.urgent, .countdown.urgent b, .countdown.ended { color: var(--danger); }
.btn-reserve {
  margin-top: auto;
  min-height: 50px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent);
}
.btn-reserve:disabled { opacity: 1; background: var(--surface-2); border-color: var(--line); color: var(--muted); font-size: 14px; box-shadow: none; }

/* ---------- كيف تحجز ---------- */
.how { margin-top: 34px; padding: 22px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.how h2 { margin-bottom: 16px; text-align: center; font-size: 18px; font-weight: 700; }
.how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; text-align: center; }
.how li { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.how li span { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.how li b { font-size: 14px; }
.how li small { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- الفوتر ---------- */
.land-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; text-align: center; color: var(--muted); }
.foot-logo .logo { height: 84px; margin: 0 auto; }
.land-foot b { color: var(--text); }
.foot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.admin-link { font-size: 12px; color: var(--muted); }

/* ---------- فاضي / تحميل ---------- */
.land-empty { margin-top: 26px; padding: 36px 20px; border: 1px dashed var(--line); border-radius: 22px; background: var(--surface); text-align: center; color: var(--muted); }
.land-empty .big { margin-bottom: 8px; font-size: 48px; }
.land-empty h3 { margin-bottom: 4px; font-size: 18px; color: var(--text); }
.land-empty p { margin-bottom: 16px; }

.skel {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-logo { width: 90px; height: 48px; flex-shrink: 0; border-radius: 12px; }
.brand-text .skel-line { width: 45%; height: 14px; margin-bottom: 6px; }
.skel-line { width: 70%; height: 16px; }
.skel-line.short { width: 45%; }
.skel-media { aspect-ratio: 16 / 10; border-radius: 0; }
.skel-btn { height: 50px; margin-top: 8px; border-radius: 14px; }
.skel-card { animation: none; }
.skel-board { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

/* ---------- نموذج الحجز ---------- */
.res-head { display: flex; align-items: center; gap: 12px; }
.res-head img, .res-ph { width: 60px; height: 60px; flex-shrink: 0; border-radius: 14px; object-fit: cover; }
.res-ph { display: grid; place-items: center; font-size: 30px; background: linear-gradient(150deg, hsl(var(--h) 80% 60%), hsl(calc(var(--h) - 8) 70% 38%)); }
.res-head div { flex: 1; min-width: 0; }
.res-head b { display: block; font-size: 17px; }
.res-head small { color: var(--muted); font-size: 13px; }
.res-price { color: var(--brand); font-weight: 700; white-space: nowrap; }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row button {
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
}
.qty-row button.plus { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.qty-row button:disabled { opacity: .35; }
.qty-row b { min-width: 32px; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.qty-row small { margin-inline-start: auto; color: var(--muted); }
.geo-status { margin-top: -4px; font-size: 13px; font-weight: 600; }
.geo-status.ok { color: var(--ok); }
.geo-status.err { color: var(--danger); }
.geo-status a { color: inherit; }

/* ---------- بعد الحجز ---------- */
.success { text-align: center; }
.success .big { font-size: 56px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success h3 { margin: 4px 0 14px; font-size: 22px; font-weight: 700; }
.success dl {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  margin: 0 0 14px; padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  text-align: start;
}
.success dt { color: var(--muted); }
.success dd { margin: 0; font-weight: 700; }
.success p { margin-bottom: 14px; font-size: 14px; color: var(--muted); }

/* ---------- تأكيد الحجز بالواتساب ---------- */
.verify-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.pending { text-align: center; }
.pending .big { font-size: 52px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.pending h3 { margin: 4px 0 6px; font-size: 22px; font-weight: 700; }
.pending > p { font-size: 14px; color: var(--muted); }
.code-box {
  max-width: 240px;
  margin: 16px auto;
  padding: 12px 16px;
  border: 2px dashed color-mix(in srgb, var(--ok) 50%, var(--line));
  border-radius: 18px;
  background: var(--ok-soft);
}
.code-box small { display: block; color: var(--ok); font-weight: 700; }
.code-box b { font-size: 40px; letter-spacing: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.btn-big { min-height: 54px; border-radius: 16px; font-size: 17px; }
.pending-timer { margin-top: 12px; font-weight: 600; }
.pending-timer b { font-variant-numeric: tabular-nums; }
.pending-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 12px; font-weight: 600; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--ok); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- الواجهة المتحركة (صور وفيديو الأكل) ---------- */
.showcase { max-width: 1120px; margin: 14px auto 0; padding: 0 16px; }
.sc-text { display: none; }
.sc-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  width: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #1a1613;
  box-shadow: 0 18px 40px rgba(60, 25, 5, .22);
}
.sc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.sc-slide.on { opacity: 1; }
.sc-slide img, .sc-slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-slide.on img { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.08); } }
.sc-shade { position: absolute; inset: 50% 0 0 0; background: linear-gradient(to top, rgba(15, 8, 3, .75), transparent); pointer-events: none; }
.sc-cap-m {
  position: absolute; inset-inline: 20px; bottom: 42px;
  margin: 0;
  color: #fff; font-size: 19px; font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.sc-dots { position: absolute; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.sc-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.sc-dots button.on { width: 22px; background: #fff; }

/* ---------- معرض «من مطبخنا» ---------- */
.gallery { margin-top: 40px; }
.sec-title { margin-bottom: 16px; text-align: center; }
.sec-title h2 { font-size: 24px; font-weight: 700; }
.sec-title p { font-size: 14px; color: var(--muted); }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.g-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.g-item img, .g-item video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(15, 8, 3, .72), transparent);
  color: #fff; font-size: 13px; font-weight: 600; text-align: start;
}
.g-play {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px;
}
@media (hover: hover) { .g-item:hover img, .g-item:hover video { transform: scale(1.05); } }

/* عرض كامل الشاشة */
.lb {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: calc(var(--safe-t) + 56px) 12px calc(var(--safe-b) + 20px);
  background: rgba(10, 6, 3, .94);
  animation: fade .2s;
}
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; margin: 0; }
.lb-fig img, .lb-fig video { max-width: min(92vw, 760px); max-height: 76vh; border-radius: 16px; object-fit: contain; }
.lb-fig figcaption { display: flex; align-items: center; gap: 12px; color: #fff; }
.lb-fig figcaption span { font-size: 13px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.lb-btn .i { width: 22px; height: 22px; }
.lb-close { top: calc(var(--safe-t) + 12px); inset-inline-end: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }

@media (min-width: 700px) {
  .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .g-item.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 900px) {
  .showcase { margin-top: 28px; padding: 0 24px; }
  .sc-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); align-items: center; gap: 56px; }
  .sc-text { display: block; }
  .sc-logo { margin: 0 0 22px; }
  .sc-logo .logo { height: 150px; }
  .sc-text h2 { font-size: 42px; font-weight: 700; line-height: 1.3; }
  .sc-cap { min-height: 1.6em; margin-top: 14px; font-size: 18px; color: var(--muted); }
  .sc-cta { display: flex; gap: 10px; margin-top: 26px; }
  .sc-stage { max-height: 580px; }
  .sc-cap-m, .sc-shade { display: none; }
}
@media (min-width: 1000px) {
  .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- الدفع بالتحويل ---------- */
.pay-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface-2);
  text-align: start;
}
.pay-box > b { font-size: 15px; }
.pay-box p { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-line; }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-overflow: ellipsis; white-space: nowrap; }
.pay-due { font-size: 14px; }
.pay-due b { color: var(--brand); }
.pay-due small { color: var(--muted); }
.success .pay-box, .pending .pay-box { margin: 0 0 14px; }

/* ---------- الشاشات الكبيرة: القسمين جنب بعض ---------- */
@media (min-width: 760px) {
  :root { --bar-h: 76px; }
  .brand-full { display: none; }
  .brand-logo .brand-icon { display: block; }
  .brand-text h1 { font-size: 22px; }
  .status-strip { justify-content: center; margin: 0; padding: 18px 0 0; }

  .board-tabs { display: none; }
  .board-cols, .skel-board {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px; align-items: start;
    margin-top: 18px;
  }
  .board-cols .col { display: block !important; }
  .col { padding: 16px; border: 1px solid var(--line); border-radius: 26px; }
  .col-today { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 11%, var(--bg)), var(--bg) 280px); }
  .col-later { background: linear-gradient(180deg, color-mix(in srgb, var(--info) 10%, var(--bg)), var(--bg) 280px); }
  .col-head {
    display: grid; grid-template-columns: auto auto 1fr;
    align-items: center; gap: 8px;
    margin: 2px 4px 14px;
  }
  .col-head h2 { font-size: 21px; font-weight: 700; }
  .col-head .count { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--surface); text-align: center; font-size: 13px; font-weight: 700; }
  .col-today .count { background: var(--brand); color: var(--brand-ink); }
  .col-later .count { background: var(--info); color: #fff; }
  .col-head p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
