/* ============================================================
   نُص كافيه — تطبيق المنيو
   هوية نُص (نفس صفحة البطولة) بتجربة تطبيق: ترحيب، شرح، رف مختارات،
   أقسام، ورقة صنف، وطلب
   ============================================================ */
:root {
  --bg: #0E1314;
  --surface: #161D1E;
  --surface-2: #1D2627;
  --line: #2A3536;
  --glass: rgba(22, 29, 30, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --teal: #40A79E;
  --teal-bar: #2B7C76;
  --teal-deep: #1B524E;
  --teal-soft: rgba(64, 167, 158, .14);
  --text: #EEF2F1;
  --muted: #95A4A2;
  --gold: #E8B85C;

  --display: 'El Messiri', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  --r: 12px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --ease-io: cubic-bezier(.75, 0, .2, 1);
  --dock: 84px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--body);
  overflow-x: hidden; overflow-x: clip; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--dock) + var(--safe-b) + 24px);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.3; margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
body.lock { overflow: hidden; }

/* عناوين بخط ثمانية أو نص بديل */
img.type { max-width: 100%; height: auto; margin-inline-start: -.3em; }
.tt:has(img.type) .tt-text { display: none; }
.tt-text { color: #F4F5F3; display: inline-block; }
.mark { position: relative; z-index: 0; display: inline-block; padding-inline: .1em; }
.mark::before { content: ''; position: absolute; z-index: -1; inset: 42% -.22em 4% -.22em; background: var(--teal-bar); transform: skewX(-14deg) rotate(-1.5deg); }
.mark-dark::before { background: var(--bg); }

/* أزرار البطولة */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 6px;
  font: 700 16px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-brass { background: var(--teal); color: #07201E; box-shadow: 0 10px 30px -10px rgba(64, 167, 158, .7); }
.btn-brass:hover { background: #4DB8AE; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); }
.btn-glass { background: rgba(14, 19, 20, .5); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ink { background: var(--bg); color: var(--text); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; min-height: 56px; font-size: 17px; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--teal); font: 500 15px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.icon-btn {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line); text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 700 18px var(--body);
}
.icon-btn svg { width: 20px; height: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(7, 32, 30, .45); color: var(--text); text-decoration: none; font: 500 14px var(--body); cursor: pointer;
}
.chip svg { width: 16px; height: 16px; }
.price {
  display: inline-block; flex: none; padding: 3px 10px; border-radius: 6px; background: #0A0E0F; color: #F4FBFA;
  box-shadow: inset 0 -3px 0 var(--teal); font: 700 15px/1.4 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-inline-end: 3px; }
.price.tick { animation: roll .45s var(--ease); }
.skip { display: grid; justify-items: center; line-height: 1.2; background: none; border: 0; cursor: pointer; color: var(--text); padding: 8px 12px; opacity: .8; }
.skip span { font-size: 14px; font-weight: 500; }
.skip small { font-size: 10px; letter-spacing: .08em; opacity: .7; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 28px 0 0; }

@keyframes roll { from { transform: translateY(-45%); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* ============================================================
   شاشة الترحيب
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #35948C, var(--teal-bar) 45%, var(--teal-deep));
  clip-path: ellipse(150% 150% at 50% 55%);
}
.splash-pattern {
  position: absolute; inset: -20%; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 40c6-6 0-12 6-18M32 40c6-6 0-12 6-18M44 40c6-6 0-12 6-18'/%3E%3Ccircle cx='150' cy='30' r='7'/%3E%3Cpath d='M110 90c14-2 22-10 22-20 0-8-8-11-13-5-6 7 3 17 17 17 16 0 30-8 44-18M174 58l9 1-4 8'/%3E%3Cpath d='M30 120h40l-4 34H34z M70 128h6a6 6 0 0 1 0 12h-7'/%3E%3Cpath d='M130 150c-5-9 5-18 12-12 7-6 17 3 12 12-4 8-12 13-12 13s-8-5-12-13z'/%3E%3Ccircle cx='200' cy='130' r='4'/%3E%3Cpath d='M90 190l30-6M180 190c8 0 8 10 16 10s8-10 16-10'/%3E%3Ccircle cx='60' cy='200' r='3'/%3E%3C/svg%3E");
  background-size: 220px 220px; animation: drift 40s linear infinite;
}
@keyframes drift { to { transform: translate(220px, 220px); } }
.splash .skip { position: absolute; top: calc(14px + var(--safe-t)); left: 14px; background: rgba(7, 32, 30, .35); border-radius: 999px; padding: 6px 14px; }
.splash-center { position: relative; display: grid; justify-items: center; text-align: center; padding: 20px; }
.splash-logo { width: 150px; height: auto; animation: logoIn 1.1s var(--ease) .15s both; }
@keyframes logoIn { from { opacity: 0; transform: scale(.7) rotate(-6deg); filter: blur(6px); } }
.splash-line { display: flex; gap: .35em; margin: 26px 0 4px; font: 700 clamp(34px, 9vw, 52px)/1.2 var(--display); }
.splash-line .w { display: inline-block; animation: wipe .8s var(--ease-io) both; }
.splash-line .w1 { animation-delay: .7s; } .splash-line .w2 { animation-delay: .95s; } .splash-line .w3 { animation-delay: 1.2s; }
.splash-tag { margin: 0 0 30px; font-size: 17px; color: rgba(238, 242, 241, .85); animation: rise .8s var(--ease) 1.5s both; }
.splash-go { display: grid; line-height: 1.2; min-height: 58px; padding: 0 40px; border-radius: 999px; animation: rise .8s var(--ease) 1.7s both; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); }
.splash-go span { font-size: 18px; }
.splash-go small { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.splash.is-quick .splash-go, .splash.is-quick .skip { display: none; }
.splash.is-leaving { animation: blobOut 1s var(--ease-io) forwards; }
.splash.is-leaving .splash-center { transition: transform 1s var(--ease-io), opacity .6s; transform: scale(.85); opacity: 0; }
@keyframes blobOut {
  0%   { clip-path: ellipse(150% 150% at 50% 55%); }
  45%  { clip-path: ellipse(70% 42% at 48% 52%); }
  100% { clip-path: ellipse(0% 0% at 50% 50%); }
}
.js .app { opacity: 0; }
.app.is-in { opacity: 1; animation: appIn .9s var(--ease) both; }
@keyframes appIn { from { opacity: 0; transform: scale(.97); } }

/* ============================================================
   العروض (Views)
   ============================================================ */
.view.is-enter { animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- الرئيسية ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) max(16px, calc((100% - 1120px) / 2)) 10px;
  transition: background .3s, box-shadow .3s;
}
.topbar.is-solid { background: rgba(14, 19, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar-logo img { width: 44px; height: auto; }
.table-pill {
  flex: 1; min-width: 0; max-width: 360px; margin-inline: auto; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.table-pill span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.table-pill b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-pill small { font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(64, 167, 158, .2); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(64, 167, 158, 0); } }

.hero { position: relative; min-height: min(86svh, 720px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; z-index: -2; transform-origin: 40% 60%; }
.app.is-in .hero-img { animation: heroZoom 2.4s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.15); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 19, 20, .55) 0%, rgba(14, 19, 20, 0) 30%, rgba(14, 19, 20, .35) 55%, var(--bg) 96%); }
.hero-in { padding: 0 0 26px; }
.hero-title .tt-text { font-size: clamp(52px, 12vw, 92px); line-height: 1.12; }
.hero-title .tt-text small { font-size: .46em; font-weight: 600; display: inline-block; margin-top: .2em; }
.hero-title img.type { width: min(100%, 520px); }
.app.is-in .hero-title .tt-text, .app.is-in .hero-title img { animation: wipe 1.1s var(--ease-io) .35s both; }
.hero-sub { margin: 10px 0 20px; color: #C9D6D4; font-size: 16px; }
.app.is-in .hero-sub { animation: rise .8s var(--ease) .8s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.app.is-in .hero-actions { animation: rise .8s var(--ease) .95s both; }

.event-card {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px;
  padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: linear-gradient(155deg, var(--teal-bar), var(--teal-deep) 70%); box-shadow: 0 30px 60px -30px rgba(43, 124, 118, .8);
}
.event-card::after { content: ''; position: absolute; inset: auto -30px -30px auto; width: 120px; height: 120px; opacity: .14; background: repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 30px 30px; transform: rotate(12deg); pointer-events: none; }
.event-copy { display: grid; line-height: 1.45; min-width: 0; }
.event-copy small { font-size: 12px; color: rgba(238, 242, 241, .8); }
.event-copy b { font: 700 18px/1.4 var(--display); }
.event-copy span { font-size: 13px; color: rgba(238, 242, 241, .85); }
.countdown { display: flex; gap: 6px; flex: none; position: relative; z-index: 1; }
.countdown > span { display: grid; justify-items: center; min-width: 48px; padding: 6px 4px 4px; background: rgba(10, 14, 15, .55); border-radius: 8px; line-height: 1.2; }
.countdown b { font-size: 20px; font-variant-numeric: tabular-nums; }
.countdown b.tick { animation: roll .45s var(--ease); }
.countdown small { font-size: 10px; color: rgba(238, 242, 241, .75); }

.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; }
.sec-h::after { content: ''; position: absolute; bottom: -1px; right: 0; width: 60px; height: 2px; background: var(--teal); }
.sec-h h2 { display: grid; line-height: 1.25; }
.sec-h h2 span { font-size: 24px; position: relative; padding-inline-start: 14px; }
.sec-h h2 span::before { content: ''; position: absolute; right: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.sec-h h2 small { font: 500 11px var(--body); color: var(--muted); letter-spacing: .06em; padding-inline-start: 14px; }
.see-all { display: grid; justify-items: end; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.3; flex: none; }
.see-all small { font-size: 10px; color: var(--muted); }
.sec-h-light { border-bottom-color: rgba(255, 255, 255, .2); }
.sec-h-light::after { background: #fff; }
.sec-h-light h2 span::before { background: #fff; }
.sec-h-light h2 small { color: rgba(238, 242, 241, .75); }

/* رف المختارات ثلاثي الأبعاد */
.flow { position: relative; height: 380px; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; }
.flow::before { content: ''; position: absolute; inset: 10% 20%; background: radial-gradient(closest-side, rgba(64, 167, 158, .28), transparent); filter: blur(20px); }
.flow-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.fcard {
  position: absolute; top: 10px; left: 50%; width: 230px; height: 340px; margin-left: -115px; padding: 0; border: 0; cursor: pointer; text-align: start;
  border-radius: 22px; overflow: hidden; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .6s var(--ease), opacity .5s, filter .5s; will-change: transform;
}
.flow.is-drag .fcard { transition: none; }
.fcard img { width: 100%; height: 72%; object-fit: cover; background: #e9e2d6; }
.fcard-info { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; padding: 16px 16px 14px; display: grid; align-content: space-between; background: linear-gradient(180deg, rgba(22, 29, 30, 0), var(--surface) 22%); }
.fcard-info b { font: 700 18px/1.35 var(--display); }
.fcard-info small { font-size: 12px; color: var(--muted); display: block; }
.fcard-foot { display: flex; align-items: center; justify-content: space-between; }
.fcard-add { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #07201E; }
.fcard-add svg { width: 18px; height: 18px; }
.flow-arrow {
  position: absolute; top: 50%; z-index: 20; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.flow-arrow svg { width: 20px; height: 20px; }
.flow-prev { right: max(16px, calc((100% - 1120px) / 2)); }
.flow-next { left: max(16px, calc((100% - 1120px) / 2)); }
.flow-next svg { transform: scaleX(-1); }
.flow-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.flow-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.flow-dots button.is-on { width: 22px; background: var(--teal); }

/* رفوف أفقية */
.cat-rail, .post-rail, .series-rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 2px max(16px, calc((100% - 1120px) / 2)) 6px; scroll-padding-inline: max(16px, calc((100% - 1120px) / 2));
}
.cat-rail::-webkit-scrollbar, .post-rail::-webkit-scrollbar, .series-rail::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; padding-inline-start: 8px;
  border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.cat-pill:hover { border-color: var(--teal); }
.cat-pill .ico { width: 40px; height: 40px; }
.cat-pill span { display: grid; line-height: 1.3; }
.cat-pill b { font-size: 15px; }
.cat-pill small { font-size: 12px; color: var(--muted); }
.ico { display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, var(--teal), var(--teal-bar) 60%, var(--teal-deep)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 16px -8px rgba(43, 124, 118, .8); flex: none; }
.ico svg { width: 60%; height: 60%; }

.post { flex: none; width: 150px; scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: start; color: var(--text); }
.post-img { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post-img img { transform: scale(1.05); }
.post b { display: block; font-size: 13px; font-weight: 500; margin-top: 6px; line-height: 1.4; }

.series-card { position: relative; overflow: hidden; margin-top: 34px; padding: 4px 0 18px; border-radius: 18px; background: linear-gradient(155deg, var(--teal-bar), var(--teal-deep) 70%); box-shadow: 0 30px 60px -30px rgba(43, 124, 118, .8); }
.series-card .sec-h { margin: 18px 18px 14px; }
.series-rail { padding-inline: 18px; scroll-padding-inline: 18px; }
.ride { flex: none; width: 170px; scroll-snap-align: start; display: grid; gap: 8px; }
.ride-img { display: block; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #0A0E0F; }
.ride-img img { width: 100%; height: 100%; object-fit: cover; }
.ride-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ride-foot b { font-size: 13px; line-height: 1.35; }
.ride .chip { min-height: 32px; padding: 0 10px; font-size: 12px; flex: none; }

.visit { margin-top: 34px; }
.visit-card { position: relative; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.visit-card strong { line-height: 0; font: 700 22px var(--display); }
.visit-card .tt-text { line-height: 1.4; }
.visit-addr { margin: 10px 0 0; font-size: 18px; font-weight: 500; }
.visit-hours { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.visit-hours:empty { display: none; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.visit .chip { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- المنيو ---------- */
.page-h { padding: calc(26px + var(--safe-t)) 0 14px; }
.page-h h1 { display: grid; line-height: 1.2; }
.page-h h1 span { font-size: clamp(30px, 7vw, 40px); }
.page-h h1 small { font: 500 12px var(--body); color: var(--muted); letter-spacing: .06em; }
.search { position: sticky; top: calc(8px + var(--safe-t)); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-bottom: 16px; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 400 16px var(--body); padding: 12px 0; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--teal), 0 0 0 3px var(--teal-soft); }
.search input::placeholder { color: #6B7A78; }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--text); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.cat-card:hover { border-color: var(--teal); }
.cat-card:active { transform: scale(.98); }
.cat-card .ico { width: 52px; height: 52px; margin-bottom: 8px; }
.cat-card .go { position: absolute; top: 16px; left: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.cat-card .go svg { width: 14px; height: 14px; transform: scaleX(-1); }
.cat-card b { font: 700 18px/1.3 var(--display); }
.cat-card small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.cat-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 6px; }
.cat-card .count { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.cat-card .from { font-size: 13px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.js .cat-grid.is-anim .cat-card { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }

.results { display: grid; gap: 10px; }
.results-empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* ---------- قسم ---------- */
.cat-head { position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t); background: rgba(14, 19, 20, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cat-head-row { display: flex; align-items: center; gap: 12px; padding: 12px 0 8px; }
.cat-title { flex: 1; min-width: 0; display: grid; line-height: 1.25; text-align: center; }
.cat-title h1 { font-size: 22px; }
.cat-title small { font-size: 12px; color: var(--muted); }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px max(16px, calc((100% - 1120px) / 2)) 12px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; min-height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cat-tab.is-on { background: var(--teal); border-color: var(--teal); color: #07201E; font-weight: 700; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
.item {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 10px; border-radius: 16px; cursor: pointer; text-align: start; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s;
}
.item:hover { border-color: rgba(64, 167, 158, .55); }
.js .items.is-anim .item { animation: rise .55s var(--ease) both; animation-delay: calc(min(var(--i), 10) * 40ms); }
.item-img { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #e9e2d6; align-self: start; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-img.is-empty { background: var(--surface-2); display: grid; place-items: center; }
.item-img.is-empty img { width: 50%; height: auto; opacity: .25; }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 2px; }
.item-body b { font-size: 16px; line-height: 1.4; }
.item-body p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-vars { font-size: 12px; color: var(--teal); }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.add-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--teal); color: #07201E; cursor: pointer; flex: none; transition: transform .2s var(--ease); }
.add-btn svg { width: 18px; height: 18px; }
.add-btn:active { transform: scale(.88); }
.add-btn.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }

/* ---------- طلبي ---------- */
.order-empty { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 50px 0; }
.order-empty img { width: 110px; opacity: .3; }
.order-empty p { margin: 0; color: var(--muted); display: grid; }
.order-empty b { color: var(--text); font: 700 22px var(--display); }
.order-list { display: grid; gap: 10px; }
.oline { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.oline .item-img { aspect-ratio: 1; }
.oline b { display: block; font-size: 15px; }
.oline small { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-2); cursor: pointer; }
.stepper button:first-child { background: var(--teal); color: #07201E; }
.stepper svg { width: 16px; height: 16px; }
.stepper b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 20px 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.seg button { min-height: 42px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-weight: 500; }
.seg button.is-on { background: var(--teal); color: #07201E; font-weight: 700; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-weight: 700; font-size: 14px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: 400 16px var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.order-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin-bottom: 8px; border-top: 1px solid var(--teal); font-size: 17px; }
.order-total b { font-size: 26px; font-variant-numeric: tabular-nums; }

/* ============================================================
   الشريط السفلي
   ============================================================ */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%);
  width: min(100% - 24px, 420px); height: 70px; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center;
  border-radius: 24px; background: rgba(22, 29, 30, .86); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .5s var(--ease), opacity .4s;
}
.js .dock { opacity: 0; transform: translate(-50%, 140%); }
.dock.is-in { opacity: 1; transform: translateX(-50%); }
.dock-btn { position: relative; display: grid; justify-items: center; line-height: 1.2; text-decoration: none; color: var(--muted); padding: 8px 0; transition: color .2s; }
.dock-btn svg { width: 24px; height: 24px; margin-bottom: 2px; }
.dock-btn span { font-size: 12px; font-weight: 500; }
.dock-btn small { font-size: 9px; letter-spacing: .06em; opacity: .7; }
.dock-btn.is-on { color: var(--text); }
.dock-btn.is-on svg { color: var(--teal); }
.dock-main {
  justify-self: center; width: 82px; height: 82px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; align-content: center; line-height: 1.15;
  text-decoration: none; color: #07201E; background: radial-gradient(circle at 50% 30%, #57C2B8, var(--teal) 55%, var(--teal-bar));
  box-shadow: 0 0 0 6px var(--bg), 0 16px 30px -8px rgba(64, 167, 158, .75); transition: transform .3s var(--ease);
}
.dock-main svg { width: 26px; height: 26px; }
.dock-main span { font-size: 12px; font-weight: 700; }
.dock-main small { font-size: 9px; letter-spacing: .06em; opacity: .75; }
.dock-main:active { transform: scale(.94); }
.dock-main.is-on { box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px rgba(64, 167, 158, .35), 0 16px 30px -8px rgba(64, 167, 158, .75); }
.badge { position: absolute; top: 2px; left: calc(50% - 22px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--bg); font: 700 12px/20px var(--body); font-style: normal; text-align: center; }
.badge.bump { animation: pop .45s var(--ease); }

/* ============================================================
   ورقة الصنف
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(5, 8, 8, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.sheet.is-open .sheet-bg { opacity: 1; }
.sheet-panel {
  position: relative; width: min(100%, 560px); max-height: calc(100svh - 40px - var(--safe-t)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px 24px 0 0; padding-bottom: calc(16px + var(--safe-b));
  transform: translateY(100%); transition: transform .5s var(--ease); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
}
.sheet.is-open .sheet-panel { transform: none; }
.sheet-handle { position: absolute; top: 8px; left: 50%; z-index: 2; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.sheet-img { aspect-ratio: 16 / 12; overflow: hidden; background: #e9e2d6; border-radius: 24px 24px 0 0; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-img.is-empty { display: grid; place-items: center; background: var(--surface-2); aspect-ratio: 16 / 7; }
.sheet-img.is-empty img { width: 90px; height: auto; opacity: .25; }
.sheet-img img.is-in { animation: wipe .7s var(--ease-io) both; }
.sheet-body { padding: 18px 18px 0; }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-top h2 { font-size: 26px; }
.sheet-top .price { font-size: 18px; margin-top: 4px; }
.sheet-desc { margin: 8px 0 0; color: var(--muted); white-space: pre-line; }
.sheet-desc:empty { display: none; }
.sheet-vars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sheet-vars:empty { display: none; }
.var { display: grid; line-height: 1.3; text-align: start; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.var small { font-size: 12px; color: var(--muted); }
.var.is-on { background: var(--teal); border-color: var(--teal); color: #07201E; }
.var.is-on small { color: rgba(7, 32, 30, .7); }
[data-sheet-poster] { margin-top: 12px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px 0 0; background: linear-gradient(180deg, rgba(22, 29, 30, 0), var(--surface) 30%); }
.sheet-foot .btn { flex: 1; min-height: 52px; }
.sheet-x { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(14, 19, 20, .6); color: #fff; font-size: 22px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ============================================================
   عارض التصاميم
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 30px; padding: calc(24px + var(--safe-t)) 84px calc(24px + var(--safe-b)); }
.lb-bg { position: absolute; inset: 0; background: rgba(5, 8, 8, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.lb.is-open .lb-bg { opacity: 1; }
.lb-fig { position: relative; margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100svh - 48px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); transform-origin: top left; }
.lb-fig img.slide-in { animation: wipe .8s var(--ease-io); }
.lb-panel { position: relative; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); opacity: 0; transform: translateY(14px); transition: opacity .45s .15s, transform .6s var(--ease) .15s; }
.lb.is-open .lb-panel { opacity: 1; transform: none; }
.lb-count { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.lb-panel h3 { font-size: 24px; }
.lb-line { color: #C9D6D4; margin: 6px 0 14px; }
.lb-price { margin: -4px 0 14px; }
.lb-actions { display: grid; gap: 8px; }
.lb-nav, .lb-x { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(238, 242, 241, .1); color: var(--text); font-size: 26px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.lb.is-open .lb-nav, .lb.is-open .lb-x { opacity: 1; }
.lb-prev { right: 20px; top: 50%; translate: 0 -50%; }
.lb-next { left: 20px; top: 50%; translate: 0 -50%; }
.lb-x { top: calc(16px + var(--safe-t)); left: 20px; background: #fff; color: var(--bg); }

/* ============================================================
   الشرح
   ============================================================ */
.tour { position: fixed; inset: 0; z-index: 150; }
.tour-hole { position: absolute; border-radius: 18px; box-shadow: 0 0 0 200vmax rgba(8, 12, 12, .78), 0 0 0 2px var(--teal), 0 0 30px rgba(64, 167, 158, .5); transition: all .55s var(--ease); pointer-events: none; }
.tour-card {
  position: absolute; left: 16px; right: 16px; max-width: 420px; margin-inline: auto; padding: 18px; border-radius: 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  transition: top .55s var(--ease), bottom .55s var(--ease);
}
.tour-card.swap h3, .tour-card.swap p { animation: rise .45s var(--ease); }
.tour-dots { display: flex; gap: 5px; justify-content: flex-start; margin-bottom: 10px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.tour-dots i.is-on { width: 20px; background: var(--teal); }
.tour-card h3 { font-size: 21px; }
.tour-card p { margin: 6px 0 16px; color: #C9D6D4; font-size: 15px; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; }

.toast {
  position: fixed; z-index: 170; left: 50%; bottom: calc(var(--dock) + var(--safe-b) + 22px);
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden; padding: 10px 18px; border-radius: 8px;
  background: var(--teal); color: #07201E; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), opacity .3s, visibility 0s .4s; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s var(--ease), opacity .3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post { width: 190px; }
  .ride { width: 210px; }
  .fcard { width: 260px; height: 370px; margin-left: -130px; }
  .flow { height: 410px; }
  .hero-in { padding-bottom: 40px; }
}
@media (min-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 24px; transform: translateY(40px) scale(.96); opacity: 0; transition: transform .5s var(--ease), opacity .35s; }
  .sheet.is-open .sheet-panel { opacity: 1; }
  .sheet-handle { display: none; }
}
@media (max-width: 860px) {
  .items { grid-template-columns: 1fr; }
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: calc(64px + var(--safe-t)) 14px calc(14px + var(--safe-b)); gap: 12px; }
  .lb-fig img { max-height: 100%; }
  .lb-panel { padding: 14px; }
  .lb-panel h3 { font-size: 20px; }
  .lb-line { font-size: 14px; margin: 4px 0 10px; }
  .lb-actions { grid-template-columns: 1fr 1fr; }
  .lb-actions .btn { padding: 0 10px; font-size: 14px; min-height: 46px; }
  .lb-nav { width: 40px; height: 40px; top: 40%; background: rgba(14, 19, 20, .65); }
  .lb-prev { right: 8px; } .lb-next { left: 8px; }
}
@media (max-width: 600px) {
  .event-card { flex-direction: column; align-items: stretch; }
  .countdown > span { flex: 1; }
  .flow-arrow { display: none; }
  .hero-actions .btn { flex: 1; padding: 0 14px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .table-pill small { display: none; }
  .cat-grid { gap: 8px; }
  .item { grid-template-columns: 84px 1fr; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100svh; }
  .flow { height: 330px; }
  .fcard { height: 300px; width: 210px; margin-left: -105px; }
  .sheet-img { aspect-ratio: 16 / 7; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .app { opacity: 1; }
}
