/* =====================================================================
   صالون شو — Show Salon
   التصميم: رملي — بيج رملي دافئ، شوكولاتة للنص والأزرار، كراميل للتأكيد.
   البنية القياسية لتطبيقات حجز الصالونات (Fresha / Booksy) بنكهة بوتيكات الكويت: خط واحد Alexandria،
   مربّع وسائط (فيديو أو صور) + صف دوائر المشاهير + مربّعان + العروض، تنقّل سفلي على الجوال وروابط رأس على الكمبيوتر.
   ===================================================================== */

:root {
  --font: 'Alexandria', 'Segoe UI', Tahoma, Arial, sans-serif;

  --bg: #ede2ce;
  --surface: #fbf6ec;
  --surface-2: #f3eadb;
  --surface-3: #e6d8c0;
  --line: rgba(58, 38, 24, 0.14);
  --line-strong: rgba(58, 38, 24, 0.26);
  --text: #3a2618;
  --text-2: #75604e;
  --text-3: #9d8a74;

  --primary: #5a3b28;
  --primary-hover: #4a301f;
  --on-primary: #fbf3e4;
  --on-primary-soft: rgba(251, 243, 228, 0.72);
  --accent: #c39a58;
  --accent-soft: #f4e6c9;
  --accent-text: #8c6a2f;
  --accent-line: rgba(195, 154, 88, 0.5);

  --success: #2f7a4f;
  --success-soft: #e5f2ea;
  --danger: #b3423a;
  --danger-soft: #f7e6e4;
  --scrim: rgba(58, 38, 24, 0.55);

  --shadow-1: 0 1px 2px rgba(58, 38, 24, 0.07), 0 4px 12px rgba(58, 38, 24, 0.08);
  --shadow-2: 0 2px 6px rgba(58, 38, 24, 0.1), 0 12px 32px rgba(58, 38, 24, 0.14);
  --shadow-3: 0 8px 20px rgba(58, 38, 24, 0.18), 0 28px 60px rgba(58, 38, 24, 0.2);
  --shadow-primary: 0 8px 20px rgba(90, 59, 40, 0.3);

  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --nav-h: 64px;
  --bnav-h: 66px;
  --container: 1120px;
}

/* ===== الأساس ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: transparent; font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, [role="button"], input, select, textarea, label { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--text); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.hidden { display: none !important; }
.view.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.muted.sm { font-size: 0.85rem; }
.muted.xs { font-size: 0.78rem; }

/* ===== الشريط العلوي ===== */
.header {
  position: sticky; top: 0; z-index: 800; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { height: 30px; width: auto; display: flex; align-items: center; flex: none; }
.logo img { height: 100%; width: auto; object-fit: contain; }
.brand-name { display: none; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn, .icon-btn {
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lang-btn:hover, .icon-btn:hover { background: var(--surface-2); border-color: var(--accent-line); }
.lang-btn:active, .icon-btn:active { transform: scale(0.97); }
.icon-btn { padding: 0; width: 38px; }
.icon-btn .nav-icon { width: 1.25rem; height: 1.25rem; }
.header-actions .hdr-book { display: none; }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--pill); border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-primary); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-text); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); background: var(--surface); }
.btn-light { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-light:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }
.btn .nav-icon { width: 1.1em; height: 1.1em; }

/* ===== النماذج ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-control {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font-size: max(1rem, 16px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.form-control { min-height: 96px; resize: vertical; }
select.form-control { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 38px; }
html[dir="rtl"] select.form-control { background-position: 20px 55%, 14px 55%; }
.modal-hint { color: var(--text-2); font-size: 0.9rem; margin: 0 0 14px; line-height: 1.6; }
.modal-hint b { color: var(--text); font-weight: 600; }
.wa-optin {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin-top: 4px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.88rem; font-weight: 500;
}
.wa-optin input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex: 0 0 20px; }
.wa-optin small { font-weight: 400; color: var(--text-2); display: block; }

/* ===== الرئيسية: مربع الوسائط (فيديو العرض أو صور متتابعة) ===== */
.home .container { padding-top: 14px; }
.mbox {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.mbox.is-video { background: #000; }
.mbox.is-portrait { aspect-ratio: 4 / 5; }
.mb-video, .mb-frame { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
/* iOS قد يمنع التشغيل التلقائي (وضع توفير الطاقة): زر تشغيل فوق الغلاف بدل مربع أسود */
.mbox.needs-tap { cursor: pointer; }
.mbox.needs-tap::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 3;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a3b28'%3E%3Cpath d='M8.5 5.5v13l10-6.5z'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat;
  box-shadow: var(--shadow-2);
}
.mbox.needs-tap .mb-mute { display: none; }
.mb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 18px; color: #fff; pointer-events: none; z-index: 2;
  background: linear-gradient(to top, rgba(28, 18, 12, 0.78) 0%, rgba(28, 18, 12, 0.36) 60%, transparent 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.mbox.is-video .mb-cap { padding-inline-end: 72px; }
.mbox.is-slides .mb-cap { padding-bottom: 34px; }
.mb-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.mb-sub { font-size: 0.82rem; line-height: 1.5; opacity: 0.86; margin-top: 2px; }
.mb-mute {
  position: absolute; bottom: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; z-index: 3;
  background: rgba(28, 18, 12, 0.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mb-mute:hover { background: rgba(28, 18, 12, 0.75); }
.mb-mute:active { transform: scale(0.94); }
.mb-mute .nav-icon { width: 20px; height: 20px; }
.mb-track {
  position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.mb-track::-webkit-scrollbar { display: none; }
.mb-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.mb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 0; z-index: 3; }
.mb-dot { position: relative; width: 22px; height: 8px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.55); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transform: scaleX(0.36); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.mb-dot::before { content: ''; position: absolute; inset: -14px; top: -14px; right: -14px; bottom: -14px; left: -14px; }
.mb-dot.on { transform: none; background: #fff; }
.mb-placeholder { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); color: var(--text-2); }
.vp-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-2); }
.vp-play .nav-icon { width: 26px; height: 26px; margin-inline-start: 3px; }
.vp-text { font-size: 0.9rem; font-weight: 500; }

/* ===== المشاهير: دوائر بحلقة كراميل — الضغط يفتح إطلالتها ===== */
.celebs-block { margin-top: 22px; }
.block-hint { font-size: 0.78rem; font-weight: 500; color: var(--text-3); }
.celebs-row { display: flex; gap: 4px; overflow-x: auto; padding: 6px 12px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.celebs-row::-webkit-scrollbar { display: none; }
.celeb {
  flex: 0 0 auto; width: 94px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px; border-radius: var(--r-md);
  text-align: center; scroll-snap-align: start; color: var(--text); transition: transform var(--dur) var(--ease);
}
.celeb:active { transform: scale(0.96); }
.celeb-ring {
  display: block; width: 78px; height: 78px; border-radius: 50%; padding: 3px; flex: none;
  background: conic-gradient(from 200deg, var(--accent) 0deg, var(--primary) 120deg, var(--accent-soft) 230deg, var(--accent) 360deg);
  box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .celeb:hover .celeb-ring { transform: translateY(-2px); box-shadow: var(--shadow-2); } }
.celeb-img { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); background: var(--surface-2); }
.celeb-img img { width: 100%; height: 100%; object-fit: cover; }
.celeb-initial { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; font-size: 1.4rem; color: var(--accent-text); background: var(--accent-soft); }
.celeb-name, .celeb-note { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.celeb-name { font-weight: 600; font-size: 0.82rem; }
.celeb-note { font-size: 0.72rem; color: var(--text-2); margin-top: -4px; }

/* ورقة إطلالة المشهورة */
.cb-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.celeb-ring.lg { width: 84px; height: 84px; }
.cb-info { min-width: 0; }
.cb-name { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.cb-note { color: var(--text-2); font-size: 0.9rem; margin-top: 2px; }
.cb-ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--accent-text); }
.cb-ig .nav-icon { width: 1rem; height: 1rem; }
.cb-includes { margin-top: 0; }
.cb-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cb-hint { margin-top: 10px; text-align: center; line-height: 1.6; }

/* الدوام والعنوان (حبوب) — في التذييل */
.hf-row {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--pill);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 500; color: var(--text-2);
}
.hf-row[hidden] { display: none; }
.hf-row .nav-icon { width: 1rem; height: 1rem; color: var(--accent-text); flex: none; }
.hf-row bdi { color: var(--text); font-weight: 600; }

/* ===== المربّعان ===== */
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.home-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 156px; padding: 18px 16px 16px;
  border-radius: var(--r-lg); border: 1px solid var(--line); text-align: start; width: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
@media (hover: hover) { .home-tile:hover { transform: translateY(-2px); } }
.home-tile:active { transform: scale(0.985); }
.tile-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tile-icon .nav-icon { width: 22px; height: 22px; }
.tile-text { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.tile-title { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.tile-sub { font-size: 0.78rem; line-height: 1.45; font-weight: 400; }
.tile-arrow { position: absolute; top: 16px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.tile-arrow .nav-icon { width: 15px; height: 15px; transform: scaleX(-1); }
html[dir="ltr"] .tile-arrow .nav-icon { transform: none; }
.tile-book { background: var(--primary); color: var(--on-primary); border-color: transparent; box-shadow: var(--shadow-primary); }
.tile-book:hover { background: var(--primary-hover); }
.tile-book .tile-icon { background: rgba(255, 255, 255, 0.14); color: var(--on-primary); }
.tile-book .tile-sub { color: var(--on-primary-soft); }
.tile-book .tile-arrow { background: rgba(255, 255, 255, 0.14); color: var(--on-primary); }
.tile-services { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.tile-services:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.tile-services .tile-icon { background: var(--accent-soft); color: var(--accent-text); }
.tile-services .tile-sub { color: var(--text-2); }
.tile-services .tile-arrow { background: var(--surface-2); color: var(--text-2); }

/* ===== أقسام الرئيسية ===== */
.home-block { margin-top: 28px; }
.home-block[hidden] { display: none; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-title { font-weight: 700; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.005em; }
.block-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--accent-text); transition: color var(--dur) var(--ease); }
.block-link:hover { color: var(--primary); }
.block-link .nav-icon { width: 0.9rem; height: 0.9rem; transform: scaleX(-1); }
html[dir="ltr"] .block-link .nav-icon { transform: none; }
.block-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; color: var(--text-2); padding: 4px 10px; border-radius: var(--pill); background: var(--surface-2); }
.block-tag .nav-icon { width: 0.85rem; height: 0.85rem; }

/* ===== العروض في الرئيسية ===== */
.offers-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.offers-hscroll::-webkit-scrollbar { display: none; }
.offers-hscroll .offer-card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }

/* ===== روابط سريعة وآراء ===== */
.home-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.quick-btn {
  flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.quick-btn:hover { border-color: var(--accent-line); background: var(--surface-2); }
.quick-btn:active { transform: scale(0.98); }
.quick-btn[hidden] { display: none; }
.quick-btn .nav-icon { width: 1.1rem; height: 1.1rem; color: var(--accent-text); }
.reviews-section { margin-top: 28px; }
.reviews-section[hidden] { display: none; }
.reviews-title { margin-bottom: 12px; }
.reviews-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 min(76vw, 280px); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 8px; }
.review-stars { color: var(--accent); font-size: 0.95rem; letter-spacing: 0.08em; }
.review-text { font-size: 0.9rem; line-height: 1.65; color: var(--text); }
.review-name { font-size: 0.8rem; color: var(--text-2); font-weight: 500; margin-top: auto; }
.home-footer { margin: 40px 0 16px; text-align: center; }
.footer-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.footer-info:empty { display: none; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; color: var(--text-2); max-width: 34ch; margin: 0 auto 10px; text-wrap: balance; }
.footer-tagline:empty { display: none; }
.hf-brand { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.28em; color: var(--text-3); }

/* ===== الصفحات الداخلية ===== */
.section { padding: 14px 0 32px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 0.85rem; font-weight: 600; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.back-link:hover { border-color: var(--accent-line); color: var(--text); }
.back-link .nav-icon { width: 0.9rem; height: 0.9rem; }
html[dir="ltr"] .back-link .nav-icon { transform: scaleX(-1); }
.section-title { font-weight: 700; font-size: 1.7rem; line-height: 1.25; letter-spacing: -0.01em; margin-top: 18px; }
.section-sub { color: var(--text-2); font-size: 0.92rem; line-height: 1.65; margin-top: 6px; max-width: 60ch; }

/* شرائح الفئات */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 600; font-size: 0.85rem; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat-chip:hover { border-color: var(--primary); color: var(--text); }
.cat-chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip-dot { font-size: 0.5rem; color: var(--accent); }
.cat-chip.on .chip-dot { color: var(--on-primary); }
.cat-chips.page-cats { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 20; margin: 18px -16px 6px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.svc-group-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; font-weight: 700; font-size: 1rem; color: var(--text); }
.svc-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* قائمة الخدمات — صفوف على طريقة Fresha */
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.service-card {
  display: grid; grid-template-columns: 76px 1fr minmax(56px, auto); grid-template-areas: "media name price" "media desc price" "media meta price" "actions actions actions";
  column-gap: 14px; row-gap: 2px; align-items: start; padding: 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.service-card.svc-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.service-img, .service-icon { grid-area: media; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; align-self: center; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-icon { color: var(--accent-text); background: var(--accent-soft); }
.service-icon .svg-icon, .service-icon .svg-icon svg { width: 36px; height: 36px; }
.service-name { grid-area: name; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.service-desc { grid-area: desc; font-size: 0.82rem; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-meta { grid-area: meta; font-size: 0.78rem; color: var(--text-3); font-weight: 500; margin-top: 4px; }
.service-card .price { grid-area: price; font-weight: 700; font-size: 1rem; color: var(--accent-text); white-space: nowrap; align-self: start; justify-self: end; text-align: end; }
.service-actions { grid-area: actions; display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.service-actions .btn { flex: 1; }
.svc-selected .svc-choose-btn { background: var(--accent); color: #fff; border-color: transparent; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--text-2); font-size: 0.95rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.empty-state .big { display: flex; justify-content: center; margin-bottom: 12px; color: var(--accent); }
.empty-state .big .svg-icon, .empty-state .big .svg-icon svg { width: 56px; height: 56px; }

/* ===== كروت العروض ===== */
.offers-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.offer-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.offer-card:hover { box-shadow: var(--shadow-2); border-color: var(--accent-line); }
@media (hover: hover) { .offer-card:hover { transform: translateY(-2px); } }
.offer-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; color: var(--accent); }
.offer-card:not(.has-img) .offer-media { background: var(--surface-2); }
.offer-card:not(.has-img) .offer-art { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.offer-card:not(.has-img) .offer-art .svg-icon, .offer-card:not(.has-img) .offer-art .svg-icon svg { width: 32px; height: 32px; }
.offer-card.compact .offer-media { aspect-ratio: 3 / 2; }
.offer-media img { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-art .svg-icon, .offer-art .svg-icon svg { width: 56px; height: 56px; }
.offer-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--primary); color: var(--on-primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.offer-media .offer-badge { position: absolute; top: 12px; inset-inline-start: 12px; box-shadow: var(--shadow-1); }
.offer-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.offer-body .offer-badge { align-self: flex-start; margin-bottom: 2px; }
.offer-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.offer-card.compact .offer-title { font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-sub { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; }
.offer-card.compact .offer-sub { display: none; }
.offer-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.offer-price { font-weight: 700; font-size: 1.1rem; color: var(--accent-text); }
.offer-old { font-size: 0.85rem; color: var(--text-3); }
.offer-dates { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }

/* تفاصيل العرض */
.od-media { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); margin-bottom: 16px; }
.od-media img { width: 100%; height: 100%; object-fit: cover; }
.od-media .offer-art { width: 72px; height: 72px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.od-media .svg-icon, .od-media .svg-icon svg { width: 36px; height: 36px; }
.od-title { font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.od-sub { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; margin-top: 6px; }
.od-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.od-price { font-weight: 700; font-size: 1.5rem; color: var(--accent-text); }
.od-price-row s { color: var(--text-3); font-size: 0.95rem; }
.od-dates { font-size: 0.82rem; color: var(--text-2); margin-top: 4px; }
.od-includes { margin-top: 16px; padding: 4px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.od-inc-title { font-weight: 700; font-size: 0.85rem; color: var(--text-2); padding: 10px 0 4px; }

/* ===== النوافذ ===== */
.modal-overlay { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), visibility 220ms; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); color: var(--text); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-3); transform: translateY(32px); transition: transform 260ms var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal::before { content: ''; display: block; width: 40px; height: 4px; border-radius: var(--pill); background: var(--line-strong); margin: 0 auto 14px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 0.85rem; font-weight: 700; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.modal-close:hover { background: var(--surface-3); color: var(--text); }
body.modal-open { overflow: hidden; }

/* خطوات الحجز */
.steps { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line); flex: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.step-dot.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: var(--shadow-primary); }
.step-dot.done { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.step-line { flex: 1; height: 1px; background: var(--line-strong); }

/* قائمة الاختيار */
.choice-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.choice-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: start; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice-item:hover { border-color: var(--primary); }
.choice-item.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.choice-item .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.choice-item .icon .svg-icon, .choice-item .icon .svg-icon svg { width: 24px; height: 24px; }
.choice-item .info { flex: 1; min-width: 0; line-height: 1.45; }
.choice-item .name { font-weight: 600; font-size: 0.95rem; }
.choice-item .meta { font-size: 0.78rem; color: var(--text-2); }
.choice-item .price { font-weight: 700; font-size: 0.92rem; color: var(--accent-text); white-space: nowrap; }
.pick-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: var(--surface-2); color: var(--text-2); flex: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.choice-item.selected .pick-mark { background: var(--accent); color: #fff; }
.multi-summary { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }
.multi-summary:not(:has(.ms-line)) { display: none; }
.multi-summary .ms-line b { color: var(--text); }
.multi-summary { padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-sm); margin-top: 8px; }

/* المواعيد */
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.slot-btn { min-height: 42px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9rem; color: var(--text); font-variant-numeric: tabular-nums; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.slot-btn:hover { border-color: var(--primary); }
.slot-btn.selected { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* النجاح */
.success-box { text-align: center; padding: 8px 0 4px; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--success-soft); color: var(--success); font-size: 1.8rem; font-weight: 700; }
.success-icon .svg-icon, .success-icon .svg-icon svg { width: 36px; height: 36px; }
.success-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 4px; }
.success-lines { font-size: 0.9rem; line-height: 1.8; color: var(--text-2); margin-top: 10px; }
.success-lines b { color: var(--text); }
.ref-number { display: inline-block; font-weight: 700; font-size: 1.6rem; letter-spacing: 0.06em; color: var(--accent-text); background: var(--accent-soft); padding: 6px 18px; border-radius: var(--r-sm); margin: 6px 0; font-variant-numeric: tabular-nums; }
.ref-number.sm { font-size: 1.05rem; padding: 3px 12px; margin: 0 0 6px; }
.queue-number { font-size: 2.6rem; padding: 8px 26px; }
.queue-state { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--surface-2); color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.queue-state.next { background: var(--success-soft); color: var(--success); }
.wa-note { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--success-soft); color: var(--success); font-size: 0.85rem; line-height: 1.6; }
.mb-details { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 10px; box-shadow: var(--shadow-1); }
.mb-lines { font-size: 0.88rem; line-height: 1.75; color: var(--text-2); }
.mb-lines b { color: var(--text); }

/* التقييم: نجوم الإدخال */
.stars-input { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.star-btn { width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: var(--line-strong); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.star-btn.active { color: var(--accent); }
.star-btn:active { transform: scale(0.9); }

/* الخدمات المختارة داخل الصالون */
.svc-bar {
  position: fixed; bottom: calc(var(--bnav-h) + 10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 900;
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; max-width: calc(100vw - 24px); white-space: nowrap;
  background: var(--primary); color: var(--on-primary); border-radius: var(--pill); box-shadow: var(--shadow-3);
  animation: svcBarIn 260ms var(--ease);
}
html[dir="rtl"] .svc-bar { padding: 10px 18px 10px 10px; }
.svc-bar[hidden], body.modal-open .svc-bar { display: none !important; }
@keyframes svcBarIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.svc-bar-info { font-weight: 500; font-size: 0.88rem; }
.svc-bar-info b { font-weight: 700; }
.svc-bar .btn { flex: none; }
.svc-bar .btn-gold { background: var(--surface); color: var(--text); }
.svc-confirm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.svc-confirm-row:last-child { border-bottom: 0; }
.svc-confirm-row > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.svc-confirm-row .svg-icon, .svc-confirm-row .svg-icon svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.scr-end { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.88rem; }
.scr-end b { color: var(--accent-text); }
.row-rm { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 0.72rem; }
.row-rm:hover { background: var(--danger-soft); color: var(--danger); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); font-weight: 700; color: var(--accent-text); }
.in-salon-note { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin: 10px 0 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.pay-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pill { min-height: 38px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.85rem; color: var(--text-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.pay-pill.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* التواصل */
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.contact-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.contact-btn:hover { background: var(--surface-3); }
@media (hover: hover) { .contact-btn:hover { transform: translateY(-1px); } }
.contact-btn.wa { background: #e7f6ec; color: #1e7a45; border-color: transparent; }
.contact-btn.ig { background: #fbe9f0; color: #b3325f; border-color: transparent; }
.contact-btn.map { background: #e9eef8; color: #2f4f9b; border-color: transparent; }
.contact-address { text-align: center; color: var(--text-2); font-size: 0.88rem; line-height: 1.6; }

/* ===== التنقل السفلي ===== */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.bottom-nav-inner { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--bnav-h); max-width: 560px; margin: 0 auto; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.7rem; font-weight: 600; color: var(--text-3); position: relative; transition: color var(--dur) var(--ease); }
.bottom-nav a .nav-icon { width: 24px; height: 24px; padding: 2px 10px; box-sizing: content-box; border-radius: var(--pill); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active .nav-icon { background: var(--accent-soft); }
.bottom-nav a:active .nav-icon { transform: scale(0.94); }

/* ===== الإشعارات ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); z-index: 2000;
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: var(--r-md); background: var(--text); color: var(--bg); font-size: 0.9rem; font-weight: 500; line-height: 1.5; text-align: center;
  box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--success); color: #fff; }

/* ===== التحميل ===== */
.loading { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px; color: var(--text-2); font-size: 0.9rem; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== أيقونات SVG ===== */
.svg-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; width: 1.4em; height: 1.4em; }
.svg-icon svg { display: block; width: 100%; height: 100%; }
.svg-icon.brand-fb { background: url('/img/logo.png') center / contain no-repeat; }
.nav-icon { display: inline-flex; width: 1.2em; height: 1.2em; flex: none; }
[data-icon] svg, [data-nav-icon] svg { display: block; width: 100%; height: 100%; }

/* ===== شاشة التوقف (شاشة الصالون) ===== */
.saver { position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; background: #000; z-index: 99999; display: none; cursor: pointer; }
.saver.on { display: block; }
.saver img { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.saver img.show { opacity: 1; }
.saver .sv-video, .saver .sv-frame { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: 0; background: #000; opacity: 0; transition: opacity 1.2s ease; }
.saver .sv-video.show, .saver .sv-frame.show { opacity: 1; }
/* طبقة شفافة فوق الفيديو/الإطار تلتقط اللمسة وتُخفي شاشة التوقف */
.saver .sv-tap { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; }
.saver-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 40px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); text-align: center; color: #fff; }
.saver-cap .sv-name { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.saver-cap .sv-price { font-size: 1.25rem; font-weight: 600; color: #f1d9a8; }

/* ===== الحركة الواحدة: دخول الرئيسية ===== */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.home-media-box { animation: riseIn 480ms var(--ease) both; }
.home-tiles { animation: riseIn 480ms var(--ease) 80ms both; }

/* ===== أجهزة متوسطة ===== */
@media (min-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .offers-grid { grid-template-columns: 1fr 1fr; }
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
  .home-tile { min-height: 172px; }
  .tile-title { font-size: 1.3rem; }
  .mbox { aspect-ratio: 16 / 10; }
  .mbox.is-portrait { aspect-ratio: 4 / 3; }
  .mbox.is-portrait .mb-video, .mbox.is-portrait .mb-frame { object-fit: contain; }
  .celeb { width: 104px; }
  .celeb-ring { width: 84px; height: 84px; }
}

/* ===== سطح المكتب ===== */
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .bottom-nav { display: none; }
  :root { --nav-h: 72px; }
  .logo { height: 34px; }
  .brand-name { display: block; font-size: 0.95rem; color: var(--text-2); font-weight: 600; padding-inline-start: 12px; border-inline-start: 1px solid var(--line-strong); }
  .nav-desktop { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
  .header-inner { position: relative; }
  .nav-desktop a { padding: 8px 16px; border-radius: var(--pill); font-weight: 600; font-size: 0.92rem; color: var(--text-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
  .nav-desktop a:hover { background: var(--surface-2); color: var(--text); }
  .nav-desktop a.active { background: var(--accent-soft); color: var(--accent-text); }
  .header-actions .hdr-book { display: inline-flex; margin-inline-start: 6px; }
  .home .container { padding-top: 28px; }
  .mbox { aspect-ratio: 21 / 9; max-height: 52vh; }
  .mbox.is-portrait { aspect-ratio: 21 / 9; }
  .mb-title { font-size: 1.4rem; }
  .mb-sub { font-size: 0.92rem; }
  .mb-cap { padding: 72px 28px 24px; }
  .mbox.is-slides .mb-cap { padding-bottom: 40px; }
  .mb-mute { bottom: 20px; inset-inline-end: 20px; width: 44px; height: 44px; }
  .celebs-block { margin-top: 32px; }
  .celebs-row { justify-content: center; gap: 10px; overflow: visible; margin: 0; padding: 6px 0; }
  .celeb { width: 116px; }
  .celeb-ring { width: 92px; height: 92px; }
  .celeb-name { font-size: 0.88rem; }
  .celeb-note { font-size: 0.78rem; }
  .home-tiles { gap: 16px; margin-top: 20px; }
  .home-tile { min-height: 132px; flex-direction: row; align-items: center; gap: 18px; padding: 22px 26px; }
  .tile-icon { width: 56px; height: 56px; border-radius: 18px; }
  .tile-icon .nav-icon { width: 28px; height: 28px; }
  .tile-text { margin-top: 0; }
  .tile-title { font-size: 1.4rem; }
  .tile-sub { font-size: 0.88rem; }
  .tile-arrow { position: static; margin-inline-start: auto; width: 40px; height: 40px; }
  .tile-arrow .nav-icon { width: 18px; height: 18px; }
  .home-block { margin-top: 40px; }
  .block-title { font-size: 1.5rem; }
  .offers-hscroll { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 4px 0 0; margin: 0; }
  .offers-hscroll .offer-card { flex: none; }
  .reviews-track { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 4px 0 0; margin: 0; }
  .review-card { flex: none; }
  .home-quick { justify-content: center; }
  .quick-btn { flex: 0 1 220px; }
  .section { padding: 24px 0 60px; }
  .section-title { font-size: 2.1rem; }
  .cat-chips.page-cats { margin: 22px 0 8px; padding: 10px 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-card { padding: 16px; }
  .offers-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .modal-overlay { align-items: center; padding: 24px; }
  .modal { border-radius: var(--r-xl); padding: 26px 28px 28px; max-height: 88vh; max-height: 88dvh; transform: translateY(16px) scale(0.98); }
  .modal::before { display: none; }
  .modal-title { font-size: 1.3rem; }
  .svc-bar { bottom: 28px; }
  .toast { bottom: 32px; }
}

@media (min-width: 1200px) {
  .mbox { max-height: 56vh; }
  .mb-title { font-size: 1.6rem; }
  .celeb { width: 128px; }
  .celeb-ring { width: 100px; height: 100px; }
}

/* ===== أجهزة اللمس (جوال، آيباد، تابلت أندرويد) — أهداف لمس 44px بحسب iOS وأندرويد =====
   تُقرأ من نوع المؤشر لا من عرض الشاشة: آيباد بعرض سطح المكتب يبقى جهاز لمس */
@media (pointer: coarse) {
  .lang-btn { height: 44px; min-width: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .brand { min-height: 44px; }
  .nav-desktop a { min-height: 44px; display: inline-flex; align-items: center; }
  .block-link { min-height: 44px; padding: 0 8px; margin: -8px -8px; }
  .back-link { min-height: 40px; }
  .cat-chip { min-height: 42px; }
  .modal-close { width: 40px; height: 40px; }
  .slot-btn { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .pay-pill { min-height: 42px; }
  .row-rm { width: 32px; height: 32px; }
  .mb-mute { width: 44px; height: 44px; }
  /* استجابة الضغط بدل تأثير التمرير بالفأرة */
  .offer-card:active, .service-card:active, .cat-chip:active, .choice-item:active, .contact-btn:active { transform: scale(0.985); transition-duration: 0.08s; }
  .celeb:active { transition-duration: 0.08s; }
}

/* ===== الجوال بالوضع الأفقي — الوسائط بجانب المربّعَين بدل تكديسهما =====
   الشاشة عريضة وقصيرة: مربع وسائط 4:3 بعرض الشاشة يتجاوز ارتفاعها.
   الصف الأول يصير عمودين (الوسائط | المربّعان) والوسائط تُحدَّد بالارتفاع لتكتمل داخل الشاشة، والباقي عمود مركزي كالمعتاد */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --nav-h: 56px; }
  /* شريط سفلي يأكل خُمس شاشة قصيرة — نرجع لروابط الرأس (كما يطوي iOS شريط التبويب بالوضع الأفقي) */
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-inner { position: relative; }
  .nav-desktop { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-desktop a { padding: 6px 14px; border-radius: var(--pill); font-weight: 600; font-size: 0.88rem; color: var(--text-2); }
  .nav-desktop a.active { background: var(--accent-soft); color: var(--accent-text); }
  .svc-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .home .container { padding-top: 12px; max-width: 820px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 16px; align-items: start; }
  .home .container > * { grid-column: 1 / -1; min-width: 0; }
  .home .container > .home-media-box { grid-column: 1; grid-row: 1; }
  .mbox { aspect-ratio: 16 / 9; max-height: calc(100vh - 100px); }
  .mbox.is-portrait { aspect-ratio: 16 / 9; }
  .mbox.is-portrait .mb-video, .mbox.is-portrait .mb-frame { object-fit: contain; }
  .mb-cap { padding: 40px 14px 14px; }
  .mb-title { font-size: 0.98rem; }
  .mb-sub { display: none; }
  .home .container > .home-tiles { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 10px; margin-top: 0; align-self: stretch; }
  .home-tile { min-height: 0; flex: 1 1 0; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; }
  .tile-text { margin-top: 0; }
  .tile-sub { display: none; }
  .tile-arrow { position: static; margin-inline-start: auto; }
  .celebs-block { margin-top: 14px; }
  .celebs-row { padding: 4px 12px 6px; }
  .celeb { width: 84px; }
  .celeb-ring { width: 66px; height: 66px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 100vh; max-height: 100dvh; border-radius: 0; }
}

/* ===== شاشات عرض الصالون الكبيرة (4K) ===== */
@media (min-width: 2200px) { html { zoom: 1.6; } }
@media (min-width: 3200px) { html { zoom: 2.2; } }
/* وضع شاشة الصالون (تلفزيون/كشك): تكبير أوضح لأن الشاشة تُقرأ من بُعد أمتار */
@media (min-width: 1600px) { html.screen-mode { zoom: 1.5; } }
@media (min-width: 2200px) { html.screen-mode { zoom: 2; } }
@media (min-width: 3200px) { html.screen-mode { zoom: 2.8; } }

/* ===== الإنجليزية ===== */
html[dir="ltr"] .mb-title, html[dir="ltr"] .cb-name, html[dir="ltr"] .block-title, html[dir="ltr"] .section-title, html[dir="ltr"] .tile-title,
html[dir="ltr"] .offer-title, html[dir="ltr"] .od-title, html[dir="ltr"] .modal-title, html[dir="ltr"] .service-name { letter-spacing: -0.01em; }
html[dir="ltr"] .hf-brand { letter-spacing: 0.3em; }

/* ===== دعم المتصفحات القديمة ===== */
@supports not (aspect-ratio: 1) {
  .mbox { height: 0; padding-bottom: 75%; }
  .offer-media, .od-media { height: 170px; }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .header, .bottom-nav, .cat-chips.page-cats { background: var(--surface); }
  .service-card.svc-selected, .choice-item.selected { background: var(--accent-soft); }
}

/* ===== تقليل الحركة ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .mb-track { scroll-behavior: auto; }
}
