/* ============================================================
   RawPix — هوية التصميم
   الألوان مستخرجة من الشعار: كحلي #012653 / برتقالي #EC5327
   ============================================================ */
:root {
  --navy: #0b1f38;
  --navy-2: #12325a;
  --navy-dark: #060f1e;
  --ink: #14181f;
  --orange: #EC5327;
  --orange-dark: #d4441a;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #22262e;
  --muted: #7a828f;
  --line: #ececec;
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #0369a1;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(12, 18, 30, .06);
  --shadow-lg: 0 20px 50px rgba(12, 18, 30, .13);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; }

a { color: var(--navy-2); text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }

.container { width: min(1200px, 100% - 2.4rem); margin-inline: auto; }

.section { padding-block: 2.4rem; }

/* عنوان القسم بأسلوب تحريري: سطر تعريفي صغير + عنوان كبير */
.kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: .6rem;
}

/* شريط الدخول بالنيابة */
.impersonate-bar {
  background: var(--orange);
  color: #fff;
  padding: .5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  font-size: .92rem;
}

.impersonate-bar .btn {
  background: #fff;
  color: var(--orange-dark);
}

/* ---------- الشريط العلوي ---------- */
.topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 66px;
}

.brand {
  font-weight: 900;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}

.brand-raw { color: var(--ink); }
.brand-pix { color: var(--orange); }
.brand-light .brand-raw { color: #fff; }
.brand-light .brand-pix { color: var(--orange); }

.brand-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  margin-top: 3px;
  margin-inline-start: 4px;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  margin-inline-start: auto;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--orange); }

.topbar-actions { display: flex; align-items: center; gap: .6rem; }

.bell { position: relative; font-size: 1.2rem; }

.bell-count {
  position: absolute;
  top: -6px;
  left: -8px;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.2rem;
  padding: .2rem .6rem;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, background .18s, box-shadow .18s;
  text-align: center;
}
.btn:active { transform: scale(.97); }

.btn-sm { padding: .42rem 1rem; font-size: .84rem; }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(236, 83, 39, .28); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 10px 24px rgba(236, 83, 39, .35); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

.btn-outline { background: none; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-ghost { background: none; color: var(--muted); }
.btn-ghost:hover { color: var(--danger); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- البطاقات والتنبيهات ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.alert {
  padding: .9rem 1.2rem;
  border-radius: 10px;
  margin-block: 1rem;
  font-weight: 500;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.badge {
  display: inline-block;
  padding: .15rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success { background: #ecfdf5; color: var(--success); }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-warn { background: #fffbeb; color: var(--warn); }
.badge-info { background: #eff6ff; color: var(--info); }
.badge-dark { background: #e9edf3; color: var(--navy); }

/* ---------- الهيرو التحريري (الصورة هي البطل) ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  background: var(--navy-dark);
  isolation: isolate;
}

/* شبكة صور خلفية من أعمال المصورين */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: .55;
}
.hero-media span {
  background-size: cover;
  background-position: center;
  filter: grayscale(35%) contrast(1.05);
  animation: heroFade 1.2s ease both;
}
@keyframes heroFade { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(236, 83, 39, .28), transparent 60%),
    linear-gradient(180deg, rgba(6, 15, 30, .72) 0%, rgba(6, 15, 30, .86) 60%, rgba(6, 15, 30, .95) 100%);
}

.hero .container { position: relative; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
  max-width: 18ch;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
  position: relative;
}

.hero p {
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 42rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1.2rem;
}
.hero-kicker::before { content: ''; width: 28px; height: 1px; background: var(--orange); }

.search-box {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  padding: .8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: .6rem;
  margin-top: 2.6rem;
  position: relative;
  z-index: 2;
}

.search-box select, .search-box input {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  padding: .75rem .95rem;
  font-family: inherit;
  font-size: .95rem;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
}
.search-box select:focus, .search-box input:focus { outline: 2px solid var(--orange); border-color: transparent; }

/* ---------- الشبكات ---------- */
.grid { display: grid; gap: 1rem; align-items: start; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; }

.section-head h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 4px;
  background: var(--orange);
  margin-top: .55rem;
}

/* متصفّح التصنيفات: أيقونات رئيسية + فرعية تحتها */
.cat-icons {
  display: flex;
  gap: .8rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x proximity;
}
.cat-icon-btn {
  flex: 0 0 auto;
  width: 104px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: .18s;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
}
.cat-icon-btn:hover { border-color: var(--orange); transform: translateY(-2px); }
.cat-icon-btn.active { border-color: var(--orange); background: #fff8f5; box-shadow: var(--shadow); }
.cat-ic {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.cat-icon-btn.active .cat-ic { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.cat-nm { font-size: .82rem; font-weight: 700; color: var(--navy); text-align: center; line-height: 1.3; }

.cat-subs-panel { display: none; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.cat-subs-panel.active { display: flex; }
.cat-subs-panel a {
  background: #eef2f8;
  color: var(--navy);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .88rem;
  font-weight: 700;
  transition: .15s;
}
.cat-subs-panel a:hover { background: var(--navy); color: #fff; }
.cat-subs-panel a.cat-sub-all { background: var(--orange); color: #fff; }
.cat-subs-panel a.cat-sub-all:hover { background: var(--orange-dark); }

/* بطاقة تصنيف */
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 1.4rem .8rem;
  transition: .2s;
  display: block;
  color: var(--text);
  font-weight: 700;
}

.cat-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); }

.cat-card .cat-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* أزرار الفرز حسب الخدمة */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.4rem;
}

.filter-tab {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: .18s;
}

.filter-tab:hover { border-color: var(--orange); color: var(--orange-dark); }

.filter-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.ph-item { display: contents; }

.ph-featured {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 3;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .22rem .75rem;
  box-shadow: 0 4px 12px rgba(251, 133, 0, .4);
  letter-spacing: .2px;
}

/* شريط الريلز — دوائر بأسلوب ستوري إنستقرام */
.reels-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: .6rem;
  -webkit-overflow-scrolling: touch;
}

.reel-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  width: 84px;
}

.reel-ring {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--orange), #f7a072, var(--navy-2));
  transition: transform .2s;
}
.reel-item:hover .reel-ring { transform: scale(1.05); }

.reel-ring video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  display: block;
  background: var(--navy-dark);
}

.reel-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 15, 30, .55);
  color: #fff;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline-start: 2px;
  transition: .2s;
}
.reel-item.playing .reel-play { opacity: 0; }

.reel-name {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* مشغّل الريلز المكبّر */
.reel-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 15, 30, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reel-viewer-box { position: relative; max-width: 420px; width: 100%; }
.reel-viewer-box video {
  width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  background: #000;
  display: block;
}
.reel-viewer-box.has-foot video { max-height: 78vh; border-radius: 16px 16px 0 0; }

/* تفاصيل صاحب الريلز أسفل المشغّل — انتقال مباشر لملفه */
.reel-viewer-foot {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--surface);
  border-radius: 0 0 16px 16px;
  padding: .8rem 1rem;
  text-decoration: none;
  transition: background .15s;
}
.reel-viewer-foot:hover { background: #f3f4f6; }
.reel-viewer-foot img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rvf-name { flex: 1; font-weight: 700; color: var(--navy); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvf-cta { color: var(--orange-dark); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.reel-viewer-close {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* ريلز الملف الشخصي (عمودي) */
.reel-owner {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1.6rem .7rem .6rem;
  background: linear-gradient(0deg, rgba(1,26,58,.85), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.reel-owner img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  object-fit: cover;
  background: #fff;
}

.reel-caption-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.6rem .7rem .6rem;
  background: linear-gradient(0deg, rgba(1,26,58,.85), transparent);
  color: #fff;
  font-size: .8rem;
}

/* شبكة الريلز في لوحة المصور */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.reel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.reel-card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: var(--navy-dark);
}

.reel-caption { padding: .5rem .7rem 0; font-size: .85rem; color: var(--muted); }

/* بطاقة مصور */
.ph-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(12, 18, 30, .04);
}

.ph-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(236, 83, 39, .25); }

.ph-cover {
  position: relative;
  aspect-ratio: 16/11;
}

/* غلاف الصورة يقصّ التكبير فقط دون قصّ الصورة الشخصية المتداخلة */
.ph-cover-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%);
}

.ph-offer-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 3;
  background: var(--orange);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .18rem .7rem;
  box-shadow: 0 4px 12px rgba(236, 83, 39, .4);
}
.ph-offer-badge:hover { background: var(--orange-dark); }

/* تفاصيل العرض داخل بطاقة المصور */
.ph-offer-line {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: .7rem;
  padding: .5rem .7rem;
  background: linear-gradient(135deg, #fdf1ec, #fde5db);
  border: 1px dashed var(--orange);
  border-radius: 10px;
  font-size: .78rem;
}
.ph-offer-line-top { font-weight: 700; color: var(--orange-dark); }
.ph-offer-line-price s { color: var(--muted); margin-inline-end: .3rem; }
.ph-offer-line-price strong { color: var(--orange-dark); font-size: .92rem; }
.ph-offer-line:hover { border-style: solid; }

.ph-cover-media > .ph-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.ph-card:hover .ph-cover-img { transform: scale(1.07); }

.ph-cover-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 15, 30, .62), transparent 55%);
}

.ph-card-avatar-ring {
  position: absolute;
  bottom: -32px;
  right: 1.1rem;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--orange), #f7a072, var(--navy-2));
  box-shadow: 0 6px 16px rgba(1, 38, 83, .22);
}

.ph-card-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.ph-card-body { padding: 2.5rem 1.2rem 1.1rem; flex: 1; }

.ph-card-body h3 { font-size: 1.08rem; letter-spacing: .1px; }

.ph-card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block: .4rem .7rem; flex-wrap: wrap; }

.ph-card-loc { color: var(--muted); font-size: .82rem; }

.ph-card-rating { display: flex; align-items: center; gap: .3rem; font-size: .8rem; }
.ph-card-rating .stars { font-size: .85rem; }
.ph-card-rating small { color: var(--muted); }

.ph-card-cats { display: flex; flex-wrap: wrap; gap: .35rem; }

.chip {
  background: #eef2f8;
  color: var(--navy);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: .1rem .65rem;
}

.chip-orange { background: #fdeee8; color: var(--orange-dark); }

/* شريط العرض الخاص في بطاقة المصور */
.ph-offer {
  margin: 0 .9rem .8rem;
  background: linear-gradient(135deg, #fdf1ec, #fde5db);
  border: 1px dashed var(--orange);
  border-radius: 10px;
  padding: .5rem .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .8rem;
  text-decoration: none;
  transition: .15s;
}
a.ph-offer:hover { background: linear-gradient(135deg, #fde5db, #fbd5c5); border-style: solid; }

.ph-offer-tag {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: .1rem .6rem;
  font-weight: 700;
  white-space: nowrap;
}

.ph-offer-name { color: var(--navy); font-weight: 700; flex: 1; min-width: 90px; }

.ph-offer-prices s { color: var(--muted); margin-inline-end: .25rem; }

.ph-offer-prices strong { color: var(--orange-dark); font-size: .95rem; }

/* أسعار العروض في بطاقات الخدمات */
.offer-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: .08rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.price-old { color: var(--muted); font-weight: 400; font-size: .85rem; }

.price-offer { color: var(--orange-dark); }

.offer-countdown {
  display: inline-block;
  background: #fff4e6;
  color: #b45309;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: .05rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.ph-offer .offer-countdown { width: 100%; text-align: center; margin-top: .1rem; }

/* بطاقة عرض في صفحة العروض */
.offer-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.offer-card-media { position: relative; aspect-ratio: 16/10; background: #eef2f8; }

.offer-card-media img { width: 100%; height: 100%; object-fit: cover; }

.offer-card-pct {
  position: absolute;
  top: .7rem;
  right: .7rem;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  border-radius: 10px;
  padding: .2rem .7rem;
  box-shadow: var(--shadow);
}

.offer-card-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }

.offer-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }

.offer-card-ph { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; font-weight: 700; margin-bottom: .7rem; }

.offer-card-ph img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }

.offer-card-price { margin-bottom: .5rem; }

.offer-card-price s { color: var(--muted); margin-inline-end: .4rem; }

.offer-card-price strong { color: var(--orange-dark); font-size: 1.15rem; }

.offer-card .btn { margin-top: auto; }

.ph-card-foot {
  border-top: 1px solid var(--line);
  padding: .8rem;
}

.ph-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: 10px;
  padding: .62rem .8rem;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.ph-card-cta span { transition: transform .2s; }
.ph-card-cta:hover { background: var(--orange); box-shadow: 0 6px 16px rgba(236, 83, 39, .3); }
.ph-card-cta:hover span { transform: translateX(-3px); }

.stars { color: #f59e0b; letter-spacing: 2px; }

/* خطوات الحجز */
.steps { counter-reset: step; }

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .8rem;
  border: 3px solid var(--orange);
}

/* شريط دعوة الانضمام */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; font-size: 1.6rem; }

.cta-band p { opacity: .9; }

.cta-band .btn { background: #fff; color: var(--orange-dark); }

/* صفحة من نحن */
.about-hero { text-align: center; }
.about-hero h1 { max-width: 40rem; margin: 0 auto .8rem; }
.about-hero p { margin-inline: auto; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -4.5rem;
  position: relative;
  z-index: 3;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-stat .as-num { font-size: 2rem; font-weight: 900; color: var(--orange); }
.about-stat .as-label { color: var(--muted); font-size: .9rem; font-weight: 700; }

.about-story-card {
  background: linear-gradient(140deg, var(--navy-dark), var(--navy-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
}
.about-story-card p { color: #c3cfdf; font-size: 1.1rem; line-height: 2; margin-top: 1rem; }

.value-card { text-align: center; }
.value-card .vc-icon {
  font-size: 2.2rem;
  width: 68px;
  height: 68px;
  margin: 0 auto .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdeee8;
  border-radius: 18px;
}
.value-card h3 { margin-bottom: .4rem; }
.value-card p { color: var(--muted); font-size: .93rem; line-height: 1.8; }

/* آراء العملاء */
.quote-card { position: relative; }

.quote-card::before {
  content: '“';
  font-size: 3rem;
  color: var(--orange);
  line-height: 1;
  display: block;
}

.quote-name { font-weight: 700; color: var(--navy); margin-top: .8rem; }

/* الأسئلة الشائعة */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .8rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: '+'; color: var(--orange); font-size: 1.3rem; font-weight: 900; }

.faq-item[open] summary::after { content: '−'; }

.faq-item .faq-body { padding: 0 1.3rem 1rem; color: var(--muted); }

/* ---------- النماذج ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }

.form-group.full { grid-column: 1 / -1; }

.form-group label { font-weight: 700; font-size: .9rem; color: var(--navy); }

.form-group .hint { font-size: .78rem; color: var(--muted); }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=time], select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .9rem;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--text);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(236, 83, 39, .35);
  border-color: var(--orange);
}

textarea { min-height: 110px; resize: vertical; }

/* اختيار نوع الحساب في نموذج الانضمام */
.acct-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

.acct-type-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  cursor: pointer;
  transition: .18s;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--surface);
}
.acct-type-card:hover { border-color: var(--orange); }
.acct-type-card.selected { border-color: var(--orange); background: #fff8f5; box-shadow: 0 4px 14px rgba(236, 83, 39, .12); }
.acct-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.acct-type-card .at-icon { font-size: 1.8rem; }
.acct-type-card .at-title { font-weight: 900; color: var(--navy); font-size: 1.1rem; }
.acct-type-card .at-desc { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.acct-type-card.selected::after {
  content: '✓';
  position: absolute;
  top: .7rem;
  left: .7rem;
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}

.doc-box {
  border: 1px dashed var(--navy-2);
  background: #f4f8fd;
  border-radius: 12px;
  padding: 1.1rem;
}
.doc-box-head { font-weight: 700; color: var(--navy); margin-bottom: .8rem; }

@media (max-width: 640px) {
  .acct-type-grid { grid-template-columns: 1fr; }
}

/* صفحة الحجز القابلة للتخصيص */
.book-section { margin-top: 1.4rem; }
.book-section h3 { font-size: 1.05rem; margin-bottom: .8rem; color: var(--navy); }

.dur-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.dur-option {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  transition: .15s;
  position: relative;
}
.dur-option input { position: absolute; opacity: 0; }
.dur-option:hover { border-color: var(--orange); }
.dur-option.selected { border-color: var(--orange); background: #fff8f5; }
.dur-label { font-weight: 700; color: var(--navy); }
.dur-price { color: var(--orange-dark); font-weight: 900; }

.addon-list { display: flex; flex-direction: column; gap: .6rem; }
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem 1rem;
}
.addon-info strong { display: block; color: var(--navy); }
.addon-info small { color: var(--muted); font-size: .8rem; }
.stepper { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.step-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.step-btn:hover { background: var(--navy); color: #fff; }
.addon-qty {
  width: 44px !important;
  text-align: center;
  font-weight: 700;
  padding: .4rem !important;
}

.book-total {
  margin-top: 1.4rem;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-2));
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.book-total strong { font-size: 1.4rem; color: #fff; }

@media (max-width: 640px) {
  .dur-grid { grid-template-columns: 1fr; }
}

/* شاشة اختيار نوع الحساب الجديد */
.join-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.join-choice-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  color: var(--text);
  transition: .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.join-choice-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jc-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1rem;
}
.join-choice-card:hover .jc-icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.join-choice-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.join-choice-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; flex: 1; }
.jc-cta { color: var(--orange-dark); font-weight: 700; margin-top: 1rem; }

@media (max-width: 640px) { .join-choice { grid-template-columns: 1fr; } }

.auth-wrap { max-width: 460px; margin: 3rem auto; }

.provider-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: .2s;
}
.provider-cta:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.provider-cta-text { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.provider-cta-text strong { color: var(--navy); font-size: .95rem; }
.provider-cta-text span { color: var(--muted); font-size: .82rem; }
.provider-cta .jc-icon { width: 46px; height: 46px; font-size: 1.3rem; flex-shrink: 0; }
.provider-cta .jc-cta { white-space: nowrap; font-size: .85rem; }
@media (max-width: 560px) {
  .provider-cta { flex-wrap: wrap; text-align: center; justify-content: center; }
  .provider-cta .jc-cta { width: 100%; }
}

.auth-wrap .card { padding: 2rem; }

.auth-wrap h1 { font-size: 1.4rem; margin-bottom: 1.2rem; text-align: center; }

/* ---------- الجداول ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }

th, td { padding: .8rem 1rem; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }

th { background: #f1f5f9; color: var(--navy); font-weight: 700; white-space: nowrap; }

tr:last-child td { border-bottom: none; }

tr:hover td { background: #f8fafc; }

/* ---------- لوحات التحكم ---------- */
.dash {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  align-items: start;
}

.dash-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 84px;
}

.dash-user { background: var(--navy); color: #fff; padding: 1.2rem; }

.dash-user-name { font-weight: 700; }

.dash-user-role { font-size: .8rem; color: #f0b9a5; }

.dash-nav { display: flex; flex-direction: column; padding: .5rem; }

.dash-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: .93rem;
}

.dash-nav a:hover { background: #f1f5f9; }

.dash-nav a.active { background: var(--navy); color: #fff; }

.dash-title { font-size: 1.4rem; margin-bottom: 1.2rem; }

.dash-main { min-width: 0; }

/* بطاقات إحصائية */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  border-inline-start: 4px solid var(--orange);
}

.stat-card .stat-num { font-size: 1.7rem; font-weight: 900; color: var(--navy); }

.stat-card .stat-label { color: var(--muted); font-size: .85rem; }

/* معرض الأعمال — بطاقات (4 لكل سطر) */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.work-card {
  position: relative;
  aspect-ratio: 4/3;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  padding: 0;
  display: block;
}
.work-card .work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .3rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(6, 15, 30, .8) 0%, rgba(6, 15, 30, .15) 55%, transparent 100%);
  transition: .3s;
}
.work-card:hover .work-overlay { background: linear-gradient(0deg, rgba(6, 15, 30, .85), rgba(236, 83, 39, .25)); }
.work-title { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.work-cta {
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .12rem .7rem;
  opacity: 0;
  transform: translateY(6px);
  transition: .25s;
}
.work-card:hover .work-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }

/* عارض الوسائط (صور + فيديو) */
.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 15, 30, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  animation: fadeIn .2s ease;
}
.media-viewer-stage { max-width: 90vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.media-viewer-stage img, .media-viewer-stage video { max-width: 90vw; max-height: 82vh; border-radius: 12px; background: #000; }
.mv-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.mv-btn:hover { background: var(--orange); }
.mv-prev { right: 1.2rem; }
.mv-next { left: 1.2rem; }
.mv-close { position: absolute; top: 1.2rem; left: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.mv-counter { position: absolute; top: 1.5rem; right: 1.5rem; color: rgba(255,255,255,.75); font-size: .85rem; }

/* معرض قديم (يبقى للاستخدامات الأخرى) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
/* لمسة تحريرية: أول صورة أكبر (تمتد عمودين وصفّين) */
.gallery > a:first-child { grid-column: span 2; grid-row: span 2; }

.gallery a { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,30,.35), transparent 50%); opacity: 0; transition: .3s; }
.gallery a:hover::after { opacity: 1; }

.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }

.gallery a:hover img { transform: scale(1.06); }

/* ملف المصور العام */
.profile-head {
  background: linear-gradient(140deg, var(--navy-dark), var(--navy-2));
  border-radius: var(--radius);
  color: #fff;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--orange);
  background: #fff;
}

.profile-head h1 { color: #fff; font-size: 1.6rem; }

.profile-meta { color: #c3cfdf; font-size: .92rem; display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .3rem; }

.profile-bio {
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  line-height: 1.85;
  margin-top: .7rem;
  max-width: 60ch;
}

.profile-socials { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }

.profile-socials a {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  padding: .25rem .8rem;
  font-size: .82rem;
}

.profile-socials a:hover { background: var(--orange); }

.share-row { display: flex; gap: .5rem; }
.share-row > * { flex: 1; }

/* بطاقة خدمة */
.srv-card { display: flex; flex-direction: column; border-inline-start: 4px solid var(--orange); }

.srv-head { display: block; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: .3rem; }
.srv-head h3 { font-size: 1.1rem; }

.srv-tag {
  display: inline-block;
  margin-top: .4rem;
  background: #eef2f8;
  color: var(--navy);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  padding: .1rem .65rem;
}

/* تقسيم الباقات / الخدمات المخصّصة في ملف المصور */
.offer-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 860px) { .offer-split { grid-template-columns: 1fr; } }

.custom-items { display: flex; flex-direction: column; gap: .6rem; }
.custom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .6rem .9rem;
}
.ci-info strong { display: block; color: var(--navy); font-size: .95rem; }
.ci-info small { color: var(--orange-dark); font-weight: 700; font-size: .82rem; }
.ci-qty { width: 42px !important; text-align: center; font-weight: 700; padding: .35rem !important; }

.srv-price { color: var(--orange-dark); font-weight: 900; font-size: 1.05rem; }

.srv-meta { color: var(--muted); font-size: .83rem; display: block; }

/* تقويم التوفّر */
.cal-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }

.cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-inline-end: .2rem; }

.cal-dot.cal-free { background: #ecfdf5; border: 1px solid #a7f3d0; }
.cal-dot.cal-busy { background: var(--orange); }
.cal-dot.cal-booked { background: var(--navy); }

.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.cal-title { font-weight: 700; color: var(--navy); text-align: center; margin-bottom: .6rem; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal-head { text-align: center; font-size: .7rem; color: var(--muted); font-weight: 700; padding-bottom: .2rem; }

.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: .15s;
  color: var(--text);
}

button.cal-day.cal-free { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
button.cal-day.cal-free:hover { background: #d1fae5; }

button.cal-day.cal-busy { background: var(--orange); border-color: var(--orange); color: #fff; }
button.cal-day.cal-busy:hover { background: var(--orange-dark); }

.cal-day.cal-booked { background: var(--navy); border-color: var(--navy); color: #fff; cursor: not-allowed; }

.cal-day.cal-past { background: #f1f5f9; color: #cbd5e1; cursor: default; }

/* المحفظة */
.wallet-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wallet-hero .wh-label { color: #a8bcd6; font-size: .85rem; margin-bottom: .3rem; }
.wallet-hero .wh-balance { font-size: 2.4rem; font-weight: 900; }
.wallet-hero .wh-balance span { font-size: 1.1rem; font-weight: 500; }
.wallet-hero .wh-month { text-align: center; background: rgba(255,255,255,.1); border-radius: 12px; padding: .9rem 1.4rem; }
.wallet-hero .wh-month-val { font-size: 1.3rem; font-weight: 900; color: var(--orange); }

/* حالات فارغة */
.empty-state { text-align: center; padding: 3rem 1.5rem; }

.empty-state h2 { margin-bottom: .5rem; }

.empty-state p { color: var(--muted); margin-bottom: 1.2rem; }

/* ترقيم الصفحات */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

.pagination a {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: .35rem .8rem;
  font-weight: 700;
}

.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* إشعارات */
.notif { display: flex; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); align-items: flex-start; }

.notif:last-child { border-bottom: none; }

.notif.unread { background: #fdf6f3; }

.notif-time { color: var(--muted); font-size: .78rem; }

/* صندوق المحادثة على الحجز */
.chat-box {
  max-height: 340px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* رسائل التذاكر */
.msg { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .8rem; max-width: 85%; }

.msg-mine { background: #eef2f8; margin-inline-start: auto; }

.msg-theirs { background: #fdeee8; }

.msg-staff { background: #fffbeb; border: 1px solid #fde68a; }

.msg-meta { font-size: .75rem; color: var(--muted); margin-top: .3rem; }

/* ---------- الشات العائم ---------- */
.live-chat-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 190;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(236, 83, 39, .4);
  transition: .2s;
}
.live-chat-btn:hover { background: var(--orange-dark); transform: scale(1.06); }
.lc-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.live-chat-panel {
  position: fixed;
  bottom: 6.5rem;
  left: 1.5rem;
  z-index: 190;
  width: min(360px, calc(100vw - 3rem));
  height: min(520px, calc(100vh - 9rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lc-head {
  background: var(--navy);
  color: #fff;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
}
.lc-head > span { flex: 1; }
.lc-back, .lc-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.lc-body { flex: 1; overflow-y: auto; padding: .8rem; }
.lc-empty { color: var(--muted); text-align: center; padding: 1.5rem 1rem; font-size: .9rem; }
.lc-thread {
  padding: .7rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s;
  border: 1px solid var(--line);
  margin-bottom: .5rem;
}
.lc-thread:hover { background: #f8fafc; border-color: var(--orange); }
.lc-thread-name { font-weight: 700; color: var(--navy); }
.lc-thread-meta { font-size: .78rem; color: var(--muted); }
.lc-msg {
  max-width: 82%;
  padding: .5rem .8rem;
  border-radius: 12px;
  margin-bottom: .5rem;
  font-size: .9rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
.lc-msg.mine { background: #eef2f8; margin-inline-start: auto; }
.lc-msg.theirs { background: #fdeee8; }
.lc-msg-time { font-size: .65rem; color: var(--muted); margin-top: .2rem; }
.lc-compose { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); }
.lc-compose input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; font-family: inherit; font-size: .9rem; }
.lc-compose button { background: var(--orange); color: #fff; border: none; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; cursor: pointer; font-family: inherit; }

/* على الجوال: فوق شريط التنقّل السفلي */
@media (max-width: 768px) {
  .live-chat-btn { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .8rem); left: 1rem; width: 52px; height: 52px; font-size: 1.4rem; }
  .live-chat-panel { bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 4rem); left: 1rem; right: 1rem; width: auto; }
}

/* ---------- الفوتر ---------- */
.footer { background: var(--navy-dark); color: #c3cfdf; margin-top: 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-block: 2.8rem;
}

.footer h4 { color: #fff; margin-bottom: .8rem; }

.footer a { display: block; color: #c3cfdf; padding-block: .22rem; font-size: .92rem; }

.footer a:hover { color: var(--orange); }

.footer-about { font-size: .92rem; margin-top: .8rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1rem; font-size: .85rem; text-align: center; }

/* ---------- التجاوب ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .reels-grid { grid-template-columns: repeat(3, 1fr); }
  .search-box { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: .8rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { text-align: center; justify-content: center; }
  .reels-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-wrap { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }

  /* بطاقات المصورين: عمودان في الجوال */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .ph-card-avatar-ring { width: 52px; height: 52px; bottom: -24px; right: .8rem; }
  .ph-card-body { padding: 1.8rem .8rem .8rem; }
  .ph-card-body h3 { font-size: .95rem; }
  .ph-card-meta-row { font-size: .78rem; }
  .ph-card-foot { padding: .6rem; }
  .ph-card-cta { font-size: .8rem; padding: .5rem .6rem; }
}

/* ========================================================
   وضع التطبيق على الجوال — شريط سفلي، هيدر مدمج، مساحات آمنة
   ======================================================== */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  /* الهيدر المدمج بأسلوب التطبيق */
  .topbar { padding-top: var(--safe-top); box-shadow: 0 1px 0 rgba(1, 38, 83, .06); }
  .topbar-inner { height: 56px; gap: .8rem; }
  .brand { font-size: 1.25rem; }
  /* التنقّل صار بالأسفل: نخفي القائمة والأزرار المكررة */
  .nav-toggle { display: none; }
  .topbar-actions .btn-outline,
  .topbar-actions .btn-primary { display: none; }
  .topbar-actions .bell { font-size: 1.35rem; }

  /* إفساح مكان للشريط السفلي */
  body { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)); }

  /* إخفاء الفوتر الطويل داخل تجربة التطبيق */
  .footer-grid { display: none; }
  .footer-bottom { font-size: .78rem; padding-block: .8rem; }

  /* شريط التنقّل السفلي */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; right: 0; left: 0;
    z-index: 200;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -4px 20px rgba(1, 38, 83, .08);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: var(--bottom-nav-h);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s;
  }
  .bottom-nav-item .bn-icon { font-size: 1.3rem; line-height: 1; position: relative; transition: transform .15s; }
  .bottom-nav-item.active { color: var(--orange); }
  .bottom-nav-item.active .bn-icon { transform: translateY(-2px) scale(1.08); }
  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--orange);
  }
  .bn-badge {
    position: absolute;
    top: -5px; left: -9px;
    background: var(--orange);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 999px;
    border: 1.5px solid #fff;
  }

  /* لمسات تطبيق */
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-overflow-scrolling: touch; overscroll-behavior-y: none; }
  .btn { padding: .7rem 1.3rem; }
  .btn-block { padding: .85rem; }
  input, select, textarea { font-size: 16px; } /* يمنع تكبير iOS عند التركيز */
  .hero { padding: 2.5rem 0 3rem; }
  .dash { padding-block: 1rem; }
}

/* وضع standalone بعد التثبيت */
:root.standalone .topbar { padding-top: max(var(--safe-top), 8px); }
