﻿/* ═══════════════════════════════════════════════════════
   ServiGo — style.css  |  RTL · Cairo · Mobile-first
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --primary:    #FF5C2B;
  --primary-dk: #e04a1f;
  --dark:       #1A1A2E;
  --accent:     #FFD166;
  --green:      #2ECC71;
  --red:        #E74C3C;
  --bg:         #F7F4EF;
  --card:       #ffffff;
  --border:     #E8E2D9;
  --muted:      #999;
  --text:       #1A1A2E;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 2px 16px rgba(26,26,46,.08);
  --shadow-md:  0 4px 24px rgba(26,26,46,.13);
  --transition: .18s ease;
  --max-w:      430px;
  --nav-h:      62px;
  --header-h:   54px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: 'Cairo', sans-serif; cursor: pointer; border: none; outline: none; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: 'Cairo', sans-serif; }

/* ── App wrapper ────────────────────────────────────────── */
.app-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

/* ── Header ─────────────────────────────────────────────── */
.app-header {
  background: var(--dark);
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.logo {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
a.logo { text-decoration: none; cursor: pointer; }
a.logo:hover { opacity: .88; }
a.auth-logo { text-decoration: none; }
a.ill-logo  { text-decoration: none; }

.btn-ghost {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ── Page content ───────────────────────────────────────── */
.page-content {
  padding: 16px 14px calc(var(--nav-h) + 16px);
  flex: 1;
}

/* ── Section title ──────────────────────────────────────── */
.section-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Search wrap ────────────────────────────────────────── */
.search-wrap {
  background: var(--dark);
  padding: 0 14px 16px;
}

.search-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.search-box select,
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 4px;
}

.search-box select {
  flex: 0 0 auto;
  max-width: 120px;
  border-left: 2px solid var(--border);
  padding-left: 8px;
  appearance: none;
  cursor: pointer;
}

.search-box input {
  flex: 1;
  min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }

.search-btn {
  background: var(--primary);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dk); }

/* ── PWA install banner ─────────────────────────────────── */
.install-banner {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.install-banner.show { display: flex; }
.install-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.install-icon img { width: 100%; height: 100%; display: block; }
.install-text { flex: 1; }
.install-title { font-size: .85rem; font-weight: 700; color: #fff; }
.install-sub { font-size: .72rem; color: rgba(255,255,255,.5); }
.install-btn {
  background: var(--primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition);
}
.install-btn:hover { background: var(--primary-dk); }
.install-close {
  color: rgba(255,255,255,.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ── Category grid ──────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cat-card {
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.cat-card:active { transform: scale(.96); }
.cat-card.active,
.cat-card:hover {
  border-color: var(--primary);
  background: #fff5f2;
}
.cat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.cat-name { font-size: .72rem; font-weight: 700; color: var(--text); }

/* ── City pills ─────────────────────────────────────────── */
.city-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 14px;
}
.city-pills::-webkit-scrollbar { display: none; }

.pill {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.pill.active,
.pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Providers grid ─────────────────────────────────────── */
.providers-grid {
  flex-direction: column;
  gap: 12px;
}

.provider-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  animation: fadeUp .25s ease both;
  position: relative;
}
.provider-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

/* ── Heart / favorite button ─────────────────────────── */
.heart-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
  z-index: 2;
  color: #ccc;
}
.heart-btn:hover  { transform: scale(1.15); }
.heart-btn.active { color: #e53e3e; background: #fff5f5; }

/* ── Client dashboard ────────────────────────────────── */
.client-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d5e 100%);
  padding: 32px 20px 24px;
  text-align: center;
  color: #fff;
}
.client-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: #fff;
  margin: 0 auto 12px;
}
.client-stats-row {
  display: flex; gap: 12px; padding: 16px 20px;
}
.client-stat {
  flex: 1; background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center;
  box-shadow: var(--shadow);
}
.client-stat-num  { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.client-stat-label{ font-size: .75rem; color: var(--muted); margin-top: 2px; }

.client-review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.client-review-provider {
  font-size: .78rem; color: var(--muted); margin-bottom: 4px;
}
.client-review-comment {
  font-size: .88rem; color: var(--text); line-height: 1.5;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.provider-photo {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.provider-info { flex: 1; min-width: 0; }

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.provider-name { font-weight: 900; font-size: .95rem; }
.provider-profession { font-size: .82rem; color: var(--primary); font-weight: 700; margin-bottom: 3px; }
.provider-city { font-size: .75rem; color: var(--muted); margin-bottom: 6px; }

.provider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
}
.stars { color: #f5a623; }
.review-count { color: var(--muted); }

/* ── Status badges ──────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
}
.status-available { background: rgba(46,204,113,.12); color: #1a9b53; }
.status-busy { background: rgba(231,76,60,.1); color: var(--red); }

/* ── Default provider badge ─────────────────────────────── */
.default-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--muted);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 4px;
  vertical-align: middle;
  opacity: .7;
}

/* ── Verified badge ─────────────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Skeleton loader ────────────────────────────────────── */
.skeleton-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
}
.skeleton {
  background: linear-gradient(90deg, #f0ece6 25%, #e8e3dc 50%, #f0ece6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 6px;
}
.skeleton-circle { border-radius: 14px !important; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-icon { font-size: 2.8rem; margin-bottom: 12px; }
.empty-title { font-weight: 800; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.empty-sub { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── Bottom nav ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: var(--nav-h);
  background: #fff;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 80;
  box-shadow: 0 -4px 20px rgba(26,26,46,.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
  padding: 8px 0;
}
.nav-item.active { color: var(--primary); }
.nav-item:hover { color: var(--primary); }
.nav-icon { font-size: 1.3rem; line-height: 1; }
.nav-label { font-size: .65rem; font-weight: 700; }

/* ── Auth pages ─────────────────────────────────────────── */
.auth-hero {
  background: var(--dark);
  padding: 40px 20px 32px;
  text-align: center;
}
.auth-logo {
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--primary); }
.auth-tagline { color: rgba(255,255,255,.55); font-size: .9rem; }

.auth-body {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  padding: 28px 18px 100px;
  flex: 1;
}
.auth-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 4px; }
.auth-sub { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.auth-footer { font-size: .85rem; color: var(--muted); text-align: center; }
.auth-footer a { color: var(--primary); font-weight: 700; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-label span { color: var(--red); }

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus { border-color: var(--primary); background: #fff; }
.form-input.error { border-color: var(--red); }
.form-input::placeholder { color: var(--muted); font-weight: 400; }

.form-error {
  display: none;
  font-size: .75rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}
.form-error.show { display: block; }
.form-hint { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.char-count { font-size: .72rem; color: var(--muted); text-align: left; margin-top: 4px; }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  user-select: none;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.done { background: var(--green); color: #fff; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 40px;
  transition: background var(--transition);
}
.step-line.done { background: var(--green); }

/* Photo upload */
.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--bg);
}
.photo-upload-zone:hover { border-color: var(--primary); }
.upload-text { font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.photo-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.photo-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dk); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-secondary:hover { background: rgba(255,92,43,.07); }

.btn-sm { padding: 9px 14px !important; font-size: .85rem !important; }

.btn-whatsapp {
  width: 100%;
  padding: 15px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #20ba58; transform: translateY(-1px); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: #fff; }

/* ── Profile page ───────────────────────────────────────── */
.back-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}
.back-btn:hover { background: rgba(255,255,255,.22); }

.profile-hero-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 12px;
  display: block;
  background: var(--border);
}
.profile-hero-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
}
.profile-hero-profession { font-size: .9rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.profile-hero-city { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 10px; }

.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 14px;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.1rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 1px; }

.section-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 1rem; flex-shrink: 0; }
.info-label { font-size: .8rem; color: var(--muted); font-weight: 600; flex: 1; }
.info-value { font-size: .85rem; font-weight: 700; text-align: left; }

.gallery-grid {
  display: grid;
  gap: 8px;
}
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity var(--transition);
  background: var(--border);
}
.gallery-thumb:hover { opacity: .88; }

/* ── Reviews ─────────────────────────────────────────────── */
.review-card {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.review-card:last-child { border-bottom: none; }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.review-stars { color: #f5a623; font-size: .95rem; letter-spacing: 1px; }
.review-date { font-size: .72rem; color: var(--muted); }
.review-comment { font-size: .85rem; color: var(--text); line-height: 1.65; }

/* Stars input (profile page) */
.stars-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.stars-input input { display: none; }
.stars-input label {
  font-size: 1.6rem;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition);
}
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: #f5a623; }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.dashboard-card-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
}
.stat-num { font-size: 1.3rem; font-weight: 900; color: var(--dark); }
.stat-lbl { font-size: .68rem; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* Toggle switch */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle-label { font-size: .95rem; font-weight: 700; color: var(--dark); }
.toggle { position: relative; display: inline-block; width: 52px; height: 28px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px; right: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(-24px); }

/* ── Loading spinner ─────────────────────────────────────── */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 999;
  opacity: 0;
  transition: all .25s ease;
  pointer-events: none;
  max-width: calc(var(--max-w) - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #1a9b53; }
.toast.error { background: var(--red); }
.toast.info { background: var(--dark); }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 10px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(255,255,255,.15);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Signup steps ────────────────────────────────────────── */
.step-page { display: none; }
.step-page.active { display: block; }
.step-title { font-size: 1.05rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.step-sub { font-size: .82rem; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }

/* ── Profile hero (profile.html) ────────────────────────── */
.profile-hero {
  background: var(--dark);
  padding: 20px 16px 24px;
  text-align: center;
  position: relative;
}

/* ── Sticky WhatsApp bar (profile.html) ──────────────────── */
.wa-sticky {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: calc(var(--max-w) - 28px);
  z-index: 79;
}

/* ── Review form card (profile.html) ────────────────────── */
.review-form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

/* ── Signup step containers ──────────────────────────────── */
.form-step { display: none; }
.form-step.active { display: block; }

/* ── OTP digit inputs ────────────────────────────────────── */
.otp-digit {
  width: 44px;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,92,43,.15);
}
.otp-digit:not(:placeholder-shown) {
  border-color: var(--primary);
  background: #fff;
}

/* ── Upload icon ─────────────────────────────────────────── */
.upload-icon { font-size: 2rem; margin-bottom: 6px; }

/* ── Header action area ──────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ── Profile preview (signup photo) ─────────────────────── */
.profile-preview {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto;
  display: none;
}
.profile-preview.show { display: block; }

/* ── Work-photo add button (signup) ─────────────────────── */
.work-photo-add-btn {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  background: var(--bg);
}
.work-photo-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f2;
}

/* ── Utilities ───────────────────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.fw-700 { font-weight: 700; }

/* ── Desktop centering (mobile-only box effect) ─────────── */
@media (min-width: 431px) and (max-width: 767px) {
  body { background: #e8e3dc; }
  .app-wrap { box-shadow: 0 0 60px rgba(0,0,0,.12); }
}

/* ── Safe area (iPhone notch) ────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .page-content { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
}

/* ── Upload motivation banner ────────────────────────────── */
.upload-motivation {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 209, 102, 0.15);
  border: 1.5px dashed var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 8px;
}

/* ── Lucide icons ────────────────────────────────────────── */
i[data-lucide] {
  display: inline-block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-icon i  { width: 22px; height: 22px; }
.cat-icon i  { width: 28px; height: 28px; }
.nav-item.active i { stroke: var(--primary); }
.heart-btn i { width: 18px; height: 18px; stroke: currentColor; }
.heart-btn.active i { stroke: #e53e3e; fill: #e53e3e; }
.verified-badge i { width: 16px; height: 16px; stroke: #fff; fill: none; }
.info-icon i { width: 18px; height: 18px; }
.section-title i { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════
   Dark Mode
   ══════════════════════════════════════════════════════ */
body.dark {
  --bg:        #0F0F1A;
  --card:      #17172B;
  --border:    #2A2A42;
  --muted:     #6B7280;
  --text:      #E2E2F0;
  --shadow:    0 2px 16px rgba(0,0,0,.45);
  --shadow-md: 0 4px 24px rgba(0,0,0,.55);
}

/* Text that uses --dark variable → override with --text */
body.dark .section-title,
body.dark .empty-title,
body.dark .upload-text,
body.dark .toggle-label,
body.dark .step-title,
body.dark .stat-num,
body.dark .provider-name,
body.dark .auth-title,
body.dark .profile-hero-name,
body.dark .profile-card-name,
body.dark .review-author,
body.dark .info-label,
body.dark .dashboard-card-title,
body.dark .form-label { color: var(--text); }

/* Search box */
body.dark .search-box {
  background: #1C1C30;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
body.dark .search-box select,
body.dark .search-box input { color: var(--text); }
body.dark .search-box select { border-left-color: var(--border); }

/* Category card active state */
body.dark .cat-card.active,
body.dark .cat-card:hover { background: rgba(255,92,43,.12); }

/* Provider card */
body.dark .provider-card { background: var(--card); }
body.dark .provider-profession { color: var(--muted); }
body.dark .provider-city { color: var(--muted); }

/* Bottom nav */
body.dark .bottom-nav {
  background: #13132A;
  border-top-color: var(--border);
}
body.dark .nav-item { color: var(--muted); }

/* Form inputs */
body.dark .form-input {
  background: #1C1C30;
  border-color: var(--border);
  color: var(--text);
}
body.dark .form-input::placeholder { color: var(--muted); }
body.dark .form-input:focus { border-color: var(--primary); }

/* Auth body */
body.dark .auth-body { background: var(--card); }

/* Profile & review sections */
body.dark .info-section,
body.dark .review-card,
body.dark .dashboard-card,
body.dark .stat-box { background: var(--card); border-color: var(--border); }
body.dark .review-text { color: var(--text); }

/* Lightbox */
body.dark .lightbox { background: rgba(0,0,0,.95); }

/* Theme toggle button */
.theme-btn {
  background: rgba(255,255,255,.13);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition), transform .2s;
  flex-shrink: 0;
}
.theme-btn svg { width: 18px; height: 18px; stroke-width: 2; }
.theme-btn:hover { background: rgba(255,255,255,.22); transform: rotate(20deg); }

/* ══════════════════════════════════════════════════════
   Hero Section (Bark.com style)
   ══════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(160deg, var(--dark) 0%, #2d2d5e 100%);
  padding: 22px 16px 26px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.2; z-index: 0; pointer-events: none;
}
.hero-section > *:not(.hero-bg) { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: .7rem; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.hero-title {
  font-size: 1.55rem; font-weight: 900;
  color: #fff; line-height: 1.3; margin-bottom: 6px;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
  font-size: .85rem; color: rgba(255,255,255,.58);
  margin-bottom: 16px; line-height: 1.55;
}

.hero-search-box {
  background: #fff; border-radius: var(--radius);
  padding: 8px; display: flex; gap: 6px; align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.28); margin-bottom: 16px;
}
.hero-search-box select,
.hero-search-box input {
  border: none; outline: none; background: transparent;
  font-size: .88rem; font-weight: 600; color: var(--text);
  font-family: 'Cairo', sans-serif; padding: 6px 4px;
}
.hero-search-box select {
  flex: 0 0 auto; max-width: 110px;
  border-left: 2px solid var(--border);
  padding-left: 8px; appearance: none; cursor: pointer;
}
.hero-search-box input { flex: 1; min-width: 0; }
.hero-search-box input::placeholder { color: var(--muted); font-weight: 400; }

.hero-search-btn {
  background: var(--primary); color: #fff;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.hero-search-btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.hero-search-btn:hover { background: var(--primary-dk); }

.hero-stats { display: flex; align-items: center; }
.hero-stat {
  flex: 1; text-align: center; padding: 0 4px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.hero-stat:last-child { border-left: none; }
.hero-stat-num { font-size: .9rem; font-weight: 900; color: var(--accent); display: block; }
.hero-stat-lbl { font-size: .65rem; color: rgba(255,255,255,.48); display: block; margin-top: 1px; }

/* ── Service sections (photo cards) ── */
.services-section { padding-bottom: 4px; }

.services-section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
}
.services-section-title {
  font-size: .95rem; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}

.services-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none; padding: 0 14px 8px;
}
.services-scroll::-webkit-scrollbar { display: none; }

.service-photo-card {
  position: relative; border-radius: 14px; overflow: hidden;
  min-width: 140px; height: 105px; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s;
}
.service-photo-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.24); }
.service-photo-card:active { transform: scale(.97); }
.service-photo-card.active-filter {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}
.service-photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--border);
}
.service-photo-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,24,.86) 0%, rgba(10,10,24,.2) 58%, rgba(255,92,43,.16) 100%);
}
.service-card-icon {
  position: absolute; top: 8px; left: 8px;
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.service-card-icon svg { width: 17px; height: 17px; stroke-width: 2.4; }
.service-photo-card .card-label {
  position: absolute; bottom: 8px; right: 8px;
  color: #fff; font-weight: 800; font-size: .8rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  font-family: 'Cairo', sans-serif;
}

/* ── Featured providers ── */
.featured-section { padding: 0 14px 6px; }

.featured-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 4px; margin-top: 10px;
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  background: var(--card); border-radius: 14px;
  padding: 14px 10px; min-width: 135px; flex-shrink: 0;
  box-shadow: var(--shadow); text-align: center;
  text-decoration: none; color: var(--text); display: block;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.featured-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.featured-card:active { transform: scale(.97); }

.featured-photo {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 2.5px solid var(--primary);
  margin: 0 auto 8px; display: block; background: var(--border);
}
.featured-name {
  font-size: .8rem; font-weight: 800; color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.featured-prof {
  font-size: .7rem; color: var(--primary); font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.featured-rating {
  font-size: .7rem; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.featured-rating .stars { font-size: .72rem; color: #f5a623; }

/* Active filter chip */
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,92,43,.12); color: var(--primary);
  border: 1.5px solid rgba(255,92,43,.3);
  border-radius: 50px; padding: 5px 12px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { background: rgba(255,92,43,.2); }

/* Dark mode adjustments for new sections */
body.dark .services-section-title { color: var(--text); }
body.dark .featured-name { color: var(--text); }
body.dark .featured-card { background: var(--card); }
body.dark .hero-search-box { background: #1C1C30; }
body.dark .hero-search-box select,
body.dark .hero-search-box input { color: var(--text); }
body.dark .hero-search-box select { border-left-color: var(--border); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet & Desktop
   ══════════════════════════════════════════════════════════ */

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dk); }

/* ── Desktop-only elements — hidden on mobile ─────────────── */
.desktop-nav      { display: none; }
.auth-illustration { display: none; }
.sidebar-filters  { display: none; }
.desktop-footer   { display: none; }

/* ── Sidebar filter cards ────────────────────────────────── */
.filter-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.filter-card-sticky { position: sticky; top: 80px; }
.filter-card-title {
  font-weight: 900;
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  transition: color .15s;
  user-select: none;
}
.filter-option:hover { color: var(--primary); }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px; height: 15px;
  cursor: pointer; flex-shrink: 0;
}
.filter-reset {
  font-size: .75rem; color: var(--primary); font-weight: 700;
  cursor: pointer; border: none; background: none; padding: 0;
  font-family: 'Cairo', sans-serif;
}
.filter-reset:hover { text-decoration: underline; }
.sidebar-prof-list { max-height: 220px; overflow-y: auto; }

/* ── Desktop footer ───────────────────────────────────────── */
.desktop-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 48px 80px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 28px;
}
.footer-logo { font-weight: 900; font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--primary); }
.footer-tagline { font-size: .85rem; line-height: 1.8; color: rgba(255,255,255,.45); }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col a {
  display: block; color: rgba(255,255,255,.5);
  font-size: .83rem; margin-bottom: 9px;
  text-decoration: none; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.3);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,.4); font-size: 1.2rem; transition: color .2s; }
.footer-social a:hover { color: #fff; }

/* ── Auth illustration ────────────────────────────────────── */
.auth-desktop { display: block; }
.auth-illustration {
  background: linear-gradient(160deg, var(--dark) 0%, #2a2a5a 100%);
  align-items: center; justify-content: center;
  padding: 48px 40px; position: relative; overflow: hidden;
}
.auth-illustration::before {
  content: ''; position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--primary); opacity: .07;
  top: -100px; right: -80px;
}
.auth-illustration::after {
  content: ''; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent); opacity: .06;
  bottom: -60px; left: -60px;
}
.auth-ill-inner { position: relative; z-index: 1; color: #fff; text-align: center; }
.auth-ill-inner .ill-icon { font-size: 4.5rem; margin-bottom: 20px; display: block; }
.auth-ill-inner .ill-logo { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.auth-ill-inner .ill-logo span { color: var(--primary); }
.auth-ill-inner .ill-tagline { font-size: 1rem; line-height: 1.9; color: rgba(255,255,255,.65); margin-bottom: 32px; }
.auth-ill-feature {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); padding: 12px 18px;
  border-radius: 12px; margin-bottom: 10px;
  font-size: .9rem; text-align: right;
}

/* ══ TABLET: ≥768px ══════════════════════════════════════ */
@media (min-width: 768px) {
  /* Full-width app */
  body { background: var(--bg); }
  .app-wrap { max-width: 100%; box-shadow: none; }

  /* Header */
  .app-header { padding: 0 40px; height: 64px; }

  /* Desktop nav */
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav a,
  .desktop-nav .dsk-btn {
    color: rgba(255,255,255,.8); font-weight: 700; font-size: .85rem;
    text-decoration: none; padding: 6px 12px; border-radius: 8px;
    transition: all .2s; background: none; border: none;
    cursor: pointer; font-family: 'Cairo', sans-serif;
  }
  .desktop-nav a:hover, .desktop-nav .dsk-btn:hover {
    background: rgba(255,255,255,.1); color: #fff;
  }
  .desktop-nav .dsk-signup {
    background: var(--primary); color: #fff !important;
    padding: 7px 16px !important; border-radius: 8px;
  }
  .desktop-nav .dsk-signup:hover { background: var(--primary-dk) !important; }

  /* Hide bottom nav */
  .bottom-nav { display: none !important; }

  /* Page content — no bottom nav gap */
  .page-content { padding-bottom: 0; }

  /* Hero */
  .hero-section { padding: 52px 40px; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-search-box { max-width: 560px; height: 54px; padding: 10px 14px; }
  .hero-search-box select, .hero-search-box input { font-size: .95rem; }
  .hero-search-btn { width: 44px; height: 44px; }
  .hero-stats { max-width: 560px; }
  .hero-stat-num { font-size: 1.1rem; }
  .hero-stat-lbl { font-size: .72rem; }

  /* Services */
  .services-section-header { padding: 18px 40px 12px; }
  .services-scroll { padding: 0 40px 14px; gap: 14px; }
  .service-photo-card { min-width: 200px; height: 145px; }
  .featured-section { padding: 4px 40px 14px; }
  .featured-card { min-width: 150px; }
  .featured-photo { width: 64px; height: 64px; }

  /* Providers grid — 2 cols */
  .providers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
  .provider-card { animation: none; }

  /* WhatsApp sticky — corner on desktop */
  .wa-sticky {
    position: fixed; bottom: 24px; left: 24px; right: auto;
    transform: none; width: auto; max-width: 300px;
  }

  /* Toast */
  .toast { max-width: 400px; bottom: 20px; }

  /* Desktop footer */
  .desktop-footer { display: block; }

  /* Auth two-column */
  .auth-desktop { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .auth-illustration { display: flex; }
  .auth-hero { display: none; }
  .auth-form-side { display: flex; flex-direction: column; overflow-y: auto; max-height: 100vh; }
  .auth-body { border-radius: 0; margin-top: 0; padding: 40px 48px; flex: 1; }

  /* Profile two-column */
  .profile-content-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; max-width: 1000px;
    margin: 0 auto; padding: 0 24px;
    align-items: start;
  }
  .profile-hero { padding: 32px 40px; }
  .profile-hero-photo { width: 110px; height: 110px; }
}

/* ══ DESKTOP: ≥1024px ════════════════════════════════════ */
@media (min-width: 1024px) {
  /* Hero bigger */
  .hero-section { padding: 72px 80px; }
  .hero-title { font-size: 3rem; }
  .hero-search-box { max-width: 680px; }
  .hero-stats { max-width: 680px; }
  .hero-stat-num { font-size: 1.25rem; }

  /* Services */
  .services-section-header { padding: 20px 80px 14px; }
  .services-scroll { padding: 0 80px 16px; }
  .service-photo-card { min-width: 220px; height: 160px; }
  .featured-section { padding: 4px 80px 16px; }

  /* Sidebar layout */
  .desktop-layout {
    display: flex; gap: 28px;
    max-width: 1280px; margin: 0 auto;
    padding: 24px 80px;
  }
  .sidebar-filters { display: block; width: 260px; flex-shrink: 0; }
  .main-content { flex: 1; min-width: 0; }

  /* Providers grid — 3 cols */
  .providers-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Desktop footer */
  .desktop-footer { padding: 48px 80px 28px; }
}

/* ══ LARGE DESKTOP: ≥1280px ══════════════════════════════ */
@media (min-width: 1280px) {
  .hero-title { font-size: 3.4rem; }
  .services-section-header { padding: 20px 100px 14px; }
  .services-scroll { padding: 0 100px 16px; }
  .featured-section { padding: 4px 100px 16px; }
  .desktop-layout { padding: 24px 100px; }
  .desktop-footer { padding: 48px 100px 28px; }
  .footer-inner { padding-left: 0; padding-right: 0; }
}

/* ── Dark mode overrides for new elements ─────────────────── */
body.dark .filter-card { background: var(--card); border: 1px solid var(--border); }
body.dark .filter-card-title { color: var(--text); }
body.dark .filter-option { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN v2 — Hero, Categories, Sections, Footer
   ═══════════════════════════════════════════════════════════ */

/* ── Hero content column (wraps text+search) ─────────────── */
.hero-content-col { position: relative; z-index: 1; }
.hero-visual      { display: none; }

/* ── Hero dot-pattern overlay ────────────────────────────── */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── Floating trust badges ────────────────────────────────── */
.hero-badges { display: none; }

@keyframes floatUp   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes floatDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)}  }
@keyframes fadeInUp  { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ── Search button pulse ring ────────────────────────────── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(255,92,43,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(255,92,43,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,92,43,0); }
}
.hero-search-btn { animation: pulse-ring 2.4s ease infinite; }

/* ── Category item hover glow ────────────────────────────── */
.home-cat-item { position: relative; overflow: hidden; }
.home-cat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 85%, rgba(255,92,43,.13), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
}
.home-cat-item:hover::before { opacity: 1; }

/* ── How-step gradient number ────────────────────────────── */
.how-step-num { background: linear-gradient(135deg, var(--primary), #ff8c5a) !important; }

/* ── Market CTA emoji float ──────────────────────────────── */
.mcta-visual { animation: floatUp 3s ease-in-out infinite; }

/* ── Trust bar hover highlight ───────────────────────────── */
.trust-bar-inner > div { padding:8px; border-radius:var(--radius-sm); transition:background var(--transition); }
.trust-bar-inner > div:hover { background: rgba(255,92,43,.06); }

/* ═══════════════════════════════════════════════════════════
   DARK MODE — comprehensive new-section fixes
   ═══════════════════════════════════════════════════════════ */
body.dark .how-h2,
body.dark .how-step-title,
body.dark .value-title,
body.dark .stat-box-lbl { color: var(--text); }

body.dark .how-step      { background: var(--card); border-color: var(--border); }
body.dark .how-sub-txt,
body.dark .how-step-desc { color: var(--muted); }

body.dark .home-cats     { background: var(--card); border-color: var(--border); }
body.dark .home-cat-item { border-color: var(--border); color: var(--text); }
body.dark .home-cat-label{ color: var(--text); }

body.dark .trust-bar     { background: var(--card); border-color: var(--border); }
body.dark .trust-lbl     { color: var(--muted); }

body.dark .value-card    { background: var(--card); border-color: var(--border); }
body.dark .value-desc    { color: var(--muted); }

body.dark .stat-box      { background: var(--card); border-color: var(--border); }

/* Legal/about hardcoded colors */
body.dark .legal-section p,
body.dark .legal-section li   { color: rgba(255,255,255,.55); }
body.dark .data-table td      { color: rgba(255,255,255,.55); }
body.dark .data-table tr:nth-child(even) td { background: rgba(255,255,255,.04); }
body.dark .data-table th      { background: #0d0d20; }
body.dark .legal-toc          { background: var(--card); border-color: var(--border); }
body.dark .legal-toc a        { color: var(--primary); border-right-color: var(--border); }
body.dark .legal-highlight    { background: rgba(255,92,43,.1); color: var(--text); }
body.dark .legal-section h2   { color: var(--text); border-color: var(--border); }
body.dark .legal-toc-title    { color: var(--text); }

/* About */
body.dark .info-hero-sub      { color: rgba(255,255,255,.65); }
body.dark .how-heading-label  { background: rgba(255,92,43,.18); color: #ff9a72; }

/* Hero badge dark bg */
body.dark .hero-badge {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

/* Desktop floating badges */
@media (min-width: 1024px) {
  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    animation: fadeInUp .7s ease both;
    animation-delay: .3s;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
  }
  .hero-badge span { opacity: .75; font-weight: 400; }
  .hero-badge-1 { animation: floatUp   3.2s ease-in-out infinite; }
  .hero-badge-2 { animation: floatDown 2.8s ease-in-out infinite; }
  .hero-badge-3 { animation: floatUp   3.6s ease-in-out infinite; }
}

/* ── Avito-style top category nav ────────────────────────── */
.home-cats { background: var(--card); border-bottom: 2px solid var(--border); }
.home-cats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.home-cat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 6px; gap: 5px; cursor: pointer;
  border-left: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none; color: var(--text);
}
.home-cat-item:first-child { border-left: none; }
.home-cat-item:hover { background: rgba(255,92,43,.06); }
.home-cat-item:hover .home-cat-icon { transform: translateY(-3px); }
.home-cat-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
  color: var(--primary);
}
.home-cat-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.home-cat-label { font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.2; }

/* ── How it works ─────────────────────────────────────────── */
.how-section { padding: 40px 20px 36px; background: var(--bg); }
.how-heading { text-align: center; margin-bottom: 28px; }
.how-heading-label {
  display: inline-block; background: rgba(255,92,43,.1); color: var(--primary);
  font-size: .7rem; font-weight: 800; padding: 3px 12px; border-radius: 50px;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px;
}
.how-h2 { font-size: 1.25rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.how-sub-txt { font-size: .82rem; color: var(--muted); }
.how-steps { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 900px; margin: 0 auto; }
.how-step {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.how-step-num {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255,92,43,.3);
}
.how-step-body { flex: 1; }
.how-step-title { font-size: .9rem; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.how-step-desc  { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.how-step-icon  { font-size: 1.4rem; flex-shrink: 0; }

/* ── Marketplace CTA banner ───────────────────────────────── */
.market-cta {
  margin: 0 14px 28px; border-radius: 18px;
  background: linear-gradient(135deg, #1A1A2E 0%, #2d1b4e 60%, #0f2a4e 100%);
  padding: 28px 22px; color: #fff; position: relative; overflow: hidden;
}
.market-cta::before {
  content:''; position:absolute; top:-40px; right:-40px;
  width:180px; height:180px; background:rgba(255,92,43,.15); border-radius:50%; pointer-events:none;
}
.market-cta::after {
  content:''; position:absolute; bottom:-30px; left:20px;
  width:120px; height:120px; background:rgba(255,209,70,.08); border-radius:50%; pointer-events:none;
}
.mcta-badge {
  display:inline-block; background:rgba(255,92,43,.2); border:1px solid rgba(255,92,43,.45);
  color:#ff8c6b; font-size:.68rem; font-weight:800; padding:3px 10px; border-radius:50px;
  margin-bottom:10px; position:relative; z-index:1;
}
.mcta-title { font-size:1.2rem; font-weight:900; margin-bottom:6px; position:relative; z-index:1; line-height:1.3; }
.mcta-sub   { font-size:.8rem; color:rgba(255,255,255,.6); margin-bottom:18px; position:relative; z-index:1; line-height:1.55; }
.mcta-btns  { display:flex; gap:10px; flex-wrap:wrap; position:relative; z-index:1; }
.mcta-btn-primary {
  background:var(--primary); color:#fff; padding:10px 20px; border-radius:12px;
  font-size:.82rem; font-weight:800; text-decoration:none; transition:background var(--transition);
}
.mcta-btn-primary:hover { background:var(--primary-dk); }
.mcta-btn-ghost {
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); color:#fff;
  padding:10px 20px; border-radius:12px; font-size:.82rem; font-weight:800;
  text-decoration:none; transition:background var(--transition);
}
.mcta-btn-ghost:hover { background:rgba(255,255,255,.18); }

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--card); border-top:1px solid var(--border);
  border-bottom:1px solid var(--border); padding:20px 14px; margin-bottom:28px;
}
.trust-bar-inner {
  max-width:1280px; margin:0 auto;
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; text-align:center;
}
.trust-num { font-size:1.4rem; font-weight:900; color:var(--primary); line-height:1; }
.trust-lbl { font-size:.68rem; color:var(--muted); margin-top:3px; }

/* ═══════════════════════════════════════════════════════════
   SITE FOOTER — 4-column professional footer
   ═══════════════════════════════════════════════════════════ */
.site-footer { background:#0d0d1f; color:rgba(255,255,255,.6); margin-top:16px; }
.site-footer-main {
  max-width:1280px; margin:0 auto;
  padding:48px 20px 36px;
  display:grid; grid-template-columns:1fr 1fr; gap:32px;
}
.footer-brand .sfooter-logo {
  font-size:1.7rem; font-weight:900; color:#fff; letter-spacing:-1px; margin-bottom:10px;
}
.footer-brand .sfooter-logo span { color:var(--primary); }
.footer-brand p {
  font-size:.8rem; line-height:1.75; color:rgba(255,255,255,.42);
  max-width:280px; margin-bottom:18px;
}
.sfooter-socials { display:flex; gap:8px; }
.sfooter-social {
  width:36px; height:36px; border-radius:9px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.6); display:flex; align-items:center; justify-content:center;
  font-size:.9rem; text-decoration:none; transition:background var(--transition),border-color var(--transition);
}
.sfooter-social:hover { background:var(--primary); border-color:var(--primary); color:#fff; }
.sfooter-col-title {
  font-size:.72rem; font-weight:900; color:rgba(255,255,255,.85);
  text-transform:uppercase; letter-spacing:.8px; margin-bottom:14px;
}
.sfooter-col a {
  display:block; color:rgba(255,255,255,.45); text-decoration:none;
  margin-bottom:9px; font-size:.8rem; transition:color var(--transition);
}
.sfooter-col a:hover { color:#fff; }
.sfooter-col-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.site-footer-bottom {
  border-top:1px solid rgba(255,255,255,.07); padding:16px 20px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px; font-size:.72rem; color:rgba(255,255,255,.28);
}
.site-footer-bottom a { color:rgba(255,255,255,.38); text-decoration:none; }
.site-footer-bottom a:hover { color:rgba(255,255,255,.7); }
.sfooter-bottom-links { display:flex; gap:16px; }

/* ── Legal pages ──────────────────────────────────────────── */
.info-hero {
  background:linear-gradient(135deg,var(--dark) 0%,#2d1b4e 100%);
  padding:48px 24px 40px; text-align:center; color:#fff; position:relative; overflow:hidden;
}
.info-hero::before {
  content:''; position:absolute; top:-60px; right:-60px;
  width:240px; height:240px; background:rgba(255,92,43,.12); border-radius:50%;
}
.info-hero-icon  { font-size:3rem; margin-bottom:12px; position:relative; }
.info-hero-title { font-size:1.6rem; font-weight:900; margin-bottom:8px; position:relative; }
.info-hero-sub   { font-size:.88rem; color:rgba(255,255,255,.65); position:relative; }
.legal-hero      { background:linear-gradient(135deg,var(--dark),#2d1b4e); padding:40px 20px 32px; text-align:center; color:#fff; }
.legal-hero-icon { font-size:2.5rem; margin-bottom:10px; }
.legal-hero-title{ font-size:1.5rem; font-weight:900; margin-bottom:6px; }
.legal-hero-date { font-size:.78rem; color:rgba(255,255,255,.5); }
.legal-body      { max-width:780px; margin:0 auto; padding:28px 20px calc(var(--nav-h)+24px); }
.legal-toc {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px; margin-bottom:28px; box-shadow:var(--shadow);
}
.legal-toc-title { font-size:.85rem; font-weight:900; margin-bottom:12px; color:var(--dark); }
.legal-toc a {
  display:block; font-size:.8rem; color:var(--primary); text-decoration:none;
  margin-bottom:7px; padding-right:8px; border-right:2px solid var(--border); transition:border-color .2s;
}
.legal-toc a:hover { border-color:var(--primary); }
.legal-section       { margin-bottom:32px; scroll-margin-top:80px; }
.legal-section h2    { font-size:1.05rem; font-weight:900; color:var(--dark); margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--border); display:flex; align-items:center; gap:8px; }
.legal-section p,
.legal-section li    { font-size:.85rem; color:#555; line-height:1.85; margin-bottom:8px; }
.legal-section ul,
.legal-section ol    { padding-right:20px; margin-bottom:12px; }
.legal-section li    { margin-bottom:6px; }
.legal-highlight     { background:rgba(255,92,43,.07); border-right:3px solid var(--primary); padding:12px 14px; border-radius:0 var(--radius-sm) var(--radius-sm) 0; margin:14px 0; font-size:.82rem; color:var(--text); line-height:1.7; }
.data-table          { width:100%; border-collapse:collapse; font-size:.8rem; margin:14px 0; }
.data-table th       { background:var(--dark); color:#fff; padding:8px 12px; text-align:right; }
.data-table td       { padding:8px 12px; border-bottom:1px solid var(--border); color:#555; }
.data-table tr:nth-child(even) td { background:var(--bg); }
body.dark .legal-section p,
body.dark .legal-section li { color:var(--muted); }
body.dark .data-table td    { color:var(--muted); }
.values-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:20px; }
.value-card  { background:var(--card); border-radius:var(--radius); padding:20px 16px; border:1px solid var(--border); box-shadow:var(--shadow); }
.value-icon  { font-size:1.6rem; margin-bottom:8px; }
.value-title { font-size:.88rem; font-weight:800; color:var(--dark); margin-bottom:4px; }
.value-desc  { font-size:.78rem; color:var(--muted); line-height:1.55; }
.stat-row    { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0; }
.stat-box    { background:var(--card); border-radius:var(--radius-sm); padding:18px 12px; text-align:center; border:1px solid var(--border); }
.stat-box-num{ font-size:1.4rem; font-weight:900; color:var(--primary); }
.stat-box-lbl{ font-size:.7rem; color:var(--muted); margin-top:2px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — ≥600px
   ═══════════════════════════════════════════════════════════ */
@media (min-width:600px) {
  .home-cats-inner  { grid-template-columns:repeat(8,1fr); }
  .trust-bar-inner  { grid-template-columns:repeat(6,1fr); }
  .how-steps        { grid-template-columns:repeat(3,1fr); }
  .how-step         { flex-direction:column; text-align:center; align-items:center; }
  .values-grid      { grid-template-columns:repeat(4,1fr); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — ≥1024px DESKTOP
   ═══════════════════════════════════════════════════════════ */
@media (min-width:1024px) {
  /* App wrap full width */
  .app-wrap { max-width:100% !important; }

  /* Hero: two-column split */
  .hero-section {
    display:grid !important;
    grid-template-columns:55% 45%;
    padding:0 !important;
    min-height:480px;
    position:relative;
    overflow:hidden;
  }
  .hero-content-col {
    padding:64px 64px 52px;
    display:flex; flex-direction:column; justify-content:center;
  }
  .hero-visual {
    display:block !important;
    position:relative; overflow:hidden;
  }
  .hero-visual-grid {
    display:grid; grid-template-columns:1fr 1fr;
    grid-template-rows:1fr 1fr; height:100%; gap:3px;
  }
  .hv-cell {
    background-size:cover; background-position:center;
    position:relative; overflow:hidden; cursor:pointer;
    transition:transform .35s ease;
  }
  .hv-cell:hover { transform:scale(1.04); z-index:1; }
  .hv-cell::after {
    content:attr(data-label); position:absolute; bottom:0; left:0; right:0;
    background:linear-gradient(transparent,rgba(0,0,0,.65));
    color:#fff; font-size:.78rem; font-weight:700;
    padding:24px 12px 10px; font-family:'Cairo',sans-serif;
  }
  #hero-cta-row { display:flex !important; gap:12px; margin-top:20px; }

  /* How it works */
  .how-section  { padding:64px 80px; }
  .how-h2       { font-size:1.55rem; }
  .how-steps    { grid-template-columns:repeat(3,1fr); gap:24px; }
  .how-step     { flex-direction:column; text-align:center; align-items:center; }

  /* Market CTA full-bleed */
  .market-cta { margin:0 0 32px; border-radius:0; padding:44px 80px; display:flex; gap:48px; align-items:center; }
  .mcta-content { flex:1; }
  .mcta-visual  { flex-shrink:0; font-size:5rem; line-height:1; }
  .mcta-title   { font-size:1.55rem; }

  /* Trust bar */
  .trust-bar        { padding:22px 80px; }
  .trust-bar-inner  { grid-template-columns:repeat(6,1fr); }

  /* Footer 4 cols */
  .site-footer-main {
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:48px; padding:56px 80px 40px;
  }
  .site-footer-bottom { padding:16px 80px; }
}

@media (min-width:1280px) {
  .hero-content-col   { padding:72px 100px 60px; }
  .market-cta         { padding:48px 100px; }
  .trust-bar          { padding:22px 100px; }
  .how-section        { padding:72px 100px; }
  .site-footer-main   { padding:56px 100px 40px; }
  .site-footer-bottom { padding:16px 100px; }
}

/* ══════════════════════════════════════════════════════════
   SERVICE REQUESTS — طلبات الخدمة
   ══════════════════════════════════════════════════════════ */

/* CTA section on homepage */
.req-cta-section {
  background: linear-gradient(135deg, #0f3460 0%, #1A1A2E 100%);
  padding: 44px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.req-cta-section::before {
  content: ''; position: absolute;
  top: -60px; left: -60px;
  width: 260px; height: 260px;
  background: rgba(255,209,102,.07);
  border-radius: 50%;
}
.req-cta-section::after {
  content: ''; position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,92,43,.08);
  border-radius: 50%;
}
.req-cta-badge {
  display: inline-block;
  background: rgba(255,209,102,.18);
  color: #FFD166;
  border: 1px solid rgba(255,209,102,.35);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  letter-spacing: .3px;
}
.req-cta-title {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.35;
  position: relative;
}
.req-cta-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.62);
  margin-bottom: 26px;
  line-height: 1.75;
  position: relative;
  max-width: 520px;
}
.req-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 28px;
}
.req-cta-steps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.req-cta-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  color: rgba(255,255,255,.68);
  padding-top: 16px;
}
.req-step-num {
  width: 26px; height: 26px;
  background: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,92,43,.4);
}

/* Request card */
.req-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.req-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.req-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.req-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,92,43,.1);
  color: var(--primary);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.req-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.req-status-open   { background:rgba(46,204,113,.12); color:#2ECC71; }
.req-status-closed { background:rgba(153,153,153,.12); color:var(--muted); }
.req-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.req-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.req-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.req-budget {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
  background: var(--bg);
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 12px;
}
.req-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.req-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background var(--transition);
}
.req-wa-btn:hover { background: #1ebe5d; }
.req-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.req-close-btn:hover { border-color:var(--red); color:var(--red); }

/* Requests board page */
.req-board-hero {
  background: linear-gradient(135deg, #0f3460 0%, #1A1A2E 100%);
  padding: 28px 20px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.req-board-hero::before {
  content:''; position:absolute;
  bottom:-30px; right:-30px;
  width:160px; height:160px;
  background:rgba(255,209,102,.07);
  border-radius:50%;
}
.req-board-title { font-size:1.3rem; font-weight:900; margin-bottom:4px; position:relative; }
.req-board-sub   { font-size:.82rem; opacity:.6; margin-bottom:16px; position:relative; }
.req-board-stats { display:flex; gap:24px; position:relative; }
.req-board-stat  { text-align:center; }
.req-board-stat-num { font-size:1.1rem; font-weight:900; color:var(--accent); }
.req-board-stat-lbl { font-size:.68rem; color:rgba(255,255,255,.5); }

.req-filter-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
}
.req-filter-bar::-webkit-scrollbar { display:none; }
.req-filter-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: .8rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.req-filter-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: .78rem;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.req-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.req-grid {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* Request form page */
.req-form-hero {
  background: linear-gradient(135deg, #0f3460, #1A1A2E);
  padding: 28px 20px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}
.req-form-icon  { font-size: 2.8rem; margin-bottom: 10px; }
.req-form-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 6px; }
.req-form-sub   { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.req-success {
  text-align: center;
  padding: 40px 20px;
}
.req-success-icon { font-size: 4rem; margin-bottom: 16px; }
.req-success-title { font-size: 1.2rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.req-success-sub { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

/* Purchases / Saved listings */
.purchase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  transition: box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.purchase-card:hover { box-shadow: var(--shadow); }
.purchase-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
}
.purchase-thumb img { width:100%; height:100%; object-fit:cover; }
.purchase-info { flex: 1; min-width: 0; }
.purchase-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.purchase-price { font-size: .82rem; color: var(--primary); font-weight: 800; }
.purchase-city  { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.purchase-unsave {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: .85rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.purchase-unsave:hover { border-color:var(--red); color:var(--red); }

/* Nearby requests in dashboard */
.nearby-req-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.nearby-req-title { font-size:.85rem; font-weight:800; color:var(--text); margin-bottom:4px; }
.nearby-req-meta  { font-size:.72rem; color:var(--muted); margin-bottom:8px; display:flex; gap:10px; }

/* Dark mode overrides for new components */
body.dark .req-card       { background:var(--card); border-color:var(--border); }
body.dark .req-title      { color:#fff; }
body.dark .req-budget     { background:rgba(255,255,255,.07); color:rgba(255,255,255,.85); }
body.dark .req-filter-bar { background:var(--card); }
body.dark .req-filter-select { background:rgba(255,255,255,.08); border-color:var(--border); color:#fff; }
body.dark .req-filter-btn { background:rgba(255,255,255,.08); border-color:var(--border); color:var(--muted); }
body.dark .purchase-card  { background:var(--card); }
body.dark .purchase-title { color:#fff; }
body.dark .purchase-thumb { background:rgba(255,255,255,.08); }
body.dark .nearby-req-card { background:rgba(255,255,255,.04); }
body.dark .nearby-req-title { color:#fff; }

/* Responsive — requests board on desktop */
@media (min-width:1024px) {
  .req-cta-section { padding:44px 80px; display:flex; align-items:center; gap:48px; }
  .req-cta-section > div:first-child { flex:1; }
  .req-cta-steps { margin-top:0; flex-direction:column; flex-shrink:0; gap:12px; }
  .req-grid { grid-template-columns:1fr 1fr; display:grid; max-width:1100px; }
  .req-filter-bar { padding:10px 32px; }
}
@media (min-width:1280px) {
  .req-cta-section { padding:44px 100px; }
}

/* ═══════════════════════════════════════════════════════════
   PRICING SECTION — Homepage & pricing.html
   ═══════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────── */
.pricing-section {
  padding: 48px 16px 44px;
  background: var(--bg);
  text-align: center;
}
.pricing-heading { margin-bottom: 32px; }
.pricing-label {
  display: inline-block;
  background: rgba(255,92,43,.1);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pricing-h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.pricing-sub {
  font-size: .82rem;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Plans grid ──────────────────────────────────────────── */
.pricing-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Individual plan card ────────────────────────────────── */
.plan-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px 24px;
  text-align: right;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, #fff9f7 0%, #fff 100%);
  box-shadow: 0 8px 32px rgba(255,92,43,.18);
}

/* ── Popular badge ───────────────────────────────────────── */
.plan-popular-badge {
  position: absolute;
  top: -13px;
  right: 50%;
  transform: translateX(50%);
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .3px;
}

/* ── Plan header ─────────────────────────────────────────── */
.plan-icon { font-size: 1.8rem; margin-bottom: 8px; }
.plan-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 4px;
}
.plan-tagline {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ── Price display ───────────────────────────────────────── */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.plan-price-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.plan-price-currency {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
}
.plan-price-period {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.plan-price-free {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1;
}

/* ── CTA button ──────────────────────────────────────────── */
.plan-cta {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  margin-bottom: 22px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Cairo', sans-serif;
}
.plan-cta-primary {
  background: var(--primary);
  color: #fff;
}
.plan-cta-primary:hover { background: var(--primary-dk); }
.plan-cta-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.plan-cta-outline:hover { background: rgba(255,92,43,.07); }
.plan-cta-ghost {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
}
.plan-cta-ghost:hover { border-color: var(--muted); }

/* ── Feature list ────────────────────────────────────────── */
.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}
.plan-features { list-style: none; text-align: right; }
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.plan-feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  margin-top: 1px;
}
.plan-feature-icon.yes { background: rgba(46,204,113,.15); color: var(--green); }
.plan-feature-icon.no  { background: rgba(153,153,153,.12); color: var(--muted); }
.plan-feature.dim      { color: var(--muted); }

/* ── Comparison note ─────────────────────────────────────── */
.pricing-note {
  margin-top: 28px;
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
}
.pricing-note strong { color: var(--primary); }

/* ── FAQ block on pricing page ───────────────────────────── */
.faq-section {
  padding: 48px 16px 40px;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.faq-h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
  text-align: center;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--dark);
  cursor: pointer;
  background: var(--bg);
  transition: background var(--transition);
  gap: 10px;
  border: none;
  width: 100%;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}
.faq-q:hover { background: rgba(255,92,43,.04); }
.faq-q[aria-expanded="true"] { background: #fff9f7; color: var(--primary); }
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-arrow { flex-shrink: 0; font-size: .75rem; transition: transform .2s; }
.faq-a {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.75;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a.open { max-height: 300px; padding: 12px 16px 16px; }

/* ── Pricing hero (pricing.html) ─────────────────────────── */
.pricing-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 60%, #0f3460 100%);
  padding: 52px 20px 44px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.pricing-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,92,43,.12);
  border-radius: 50%;
  pointer-events: none;
}
.pricing-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  background: rgba(255,209,102,.07);
  border-radius: 50%;
  pointer-events: none;
}
.pricing-hero-icon  { font-size: 2.8rem; margin-bottom: 14px; position: relative; }
.pricing-hero-title {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  line-height: 1.2;
}
.pricing-hero-title span { color: var(--primary); }
.pricing-hero-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.65;
  position: relative;
}
.pricing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46,204,113,.15);
  border: 1px solid rgba(46,204,113,.35);
  color: #5de8a0;
  font-size: .75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  position: relative;
}

/* ── Compare competitors bar ─────────────────────────────── */
.pricing-compare {
  background: linear-gradient(135deg, #0f3460, #1A1A2E);
  border-radius: 16px;
  padding: 22px 20px;
  margin: 28px 0 0;
  text-align: right;
}
.pricing-compare-title {
  font-size: .78rem;
  font-weight: 900;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-align: center;
}
.pricing-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .82rem;
}
.pricing-compare-row:last-child { border-bottom: none; }
.pricing-compare-platform { color: rgba(255,255,255,.6); font-weight: 700; }
.pricing-compare-price { font-weight: 900; }
.pricing-compare-price.us { color: #5de8a0; }
.pricing-compare-price.competitor { color: rgba(255,255,255,.4); text-decoration: line-through; }

/* Dark mode for pricing */
body.dark .pricing-section   { background: var(--bg); }
body.dark .pricing-h2        { color: var(--text); }
body.dark .plan-card          { background: var(--card); border-color: var(--border); }
body.dark .plan-card.featured { background: var(--card); border-color: var(--primary); box-shadow: 0 8px 32px rgba(255,92,43,.15); }
body.dark .plan-name          { color: var(--text); }
body.dark .plan-cta-ghost     { background: rgba(255,255,255,.06); border-color: var(--border); color: var(--text); }
body.dark .faq-section        { background: var(--card); border-color: var(--border); }
body.dark .faq-h2             { color: var(--text); }
body.dark .faq-q              { background: rgba(255,255,255,.04); color: var(--text); }
body.dark .faq-q[aria-expanded="true"] { background: rgba(255,92,43,.08); color: var(--primary); }
body.dark .faq-a              { color: var(--muted); }

/* Responsive pricing */
@media (min-width: 640px) {
  .pricing-plans { grid-template-columns: repeat(3, 1fr); }
  .plan-card.featured { transform: translateY(-8px); }
  .plan-card.featured:hover { transform: translateY(-12px); }
}
@media (min-width: 1024px) {
  .pricing-section { padding: 72px 80px 64px; }
  .pricing-h2 { font-size: 1.8rem; }
  .pricing-hero-title { font-size: 2.2rem; }
  .faq-section { padding: 64px 80px 56px; }
}

/* ═══════════════════════════════════════════════════════════
   RESTAURANT DIGITAL MENU — menu.html
   ═══════════════════════════════════════════════════════════ */

/* ── Restaurant cover header ─────────────────────────────── */
.menu-header {
  position: relative;
  background: var(--dark);
  min-height: 180px;
  overflow: hidden;
}
.menu-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55);
}
.menu-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
}
.menu-header-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.menu-header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}
.menu-header-btn:hover { background: rgba(255,255,255,.3); }

/* ── Restaurant identity ─────────────────────────────────── */
.menu-identity {
  position: relative;
  z-index: 2;
  padding: 52px 16px 20px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.menu-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.menu-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.menu-identity-info { flex: 1; }
.menu-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.menu-city {
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Status bar ──────────────────────────────────────────── */
.menu-status-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.menu-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(46,204,113,.12);
  color: #27ae60;
  border: 1px solid rgba(46,204,113,.3);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 800;
}
.menu-closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(231,76,60,.1);
  color: var(--red);
  border: 1px solid rgba(231,76,60,.25);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 800;
}
.menu-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.menu-status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--muted);
}

/* ── Location button ─────────────────────────────────────── */
.menu-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Cairo', sans-serif;
}
.menu-location-btn:hover {
  border-color: var(--primary);
  background: rgba(255,92,43,.04);
}

/* ── Search ──────────────────────────────────────────────── */
.menu-search {
  padding: 0 16px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.menu-search-input {
  width: 100%;
  height: 42px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px 0 40px;
  font-family: 'Cairo', sans-serif;
  font-size: .85rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  direction: rtl;
}
.menu-search-input:focus { border-color: var(--primary); }
.menu-search-wrap { position: relative; }
.menu-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .9rem;
  pointer-events: none;
}

/* ── Category nav pills ──────────────────────────────────── */
.menu-cats-nav {
  background: var(--card);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 16px;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.menu-cats-nav::-webkit-scrollbar { display: none; }
.menu-cat-pill {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Cairo', sans-serif;
  flex-shrink: 0;
}
.menu-cat-pill.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.menu-cat-pill:hover { color: var(--primary); }

/* ── Menu body ───────────────────────────────────────────── */
.menu-body {
  padding: 0 0 calc(var(--nav-h) + 80px);
  background: var(--bg);
}

/* ── Category section ────────────────────────────────────── */
.menu-cat-section { padding: 20px 16px 8px; }
.menu-cat-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-cat-count {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 400;
}
.menu-cat-divider {
  height: 2px;
  background: var(--primary);
  width: 32px;
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ── Menu item card ──────────────────────────────────────── */
.menu-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.menu-item-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.menu-item-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.menu-item-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0ece4, #e8e2d9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.menu-item-body {
  padding: 10px 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu-item-name {
  font-size: .82rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 3px;
  line-height: 1.3;
}
.menu-item-desc {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}
.menu-item-price {
  font-size: .9rem;
  font-weight: 900;
  color: var(--primary);
}
.menu-item-price-sub { font-size: .65rem; color: var(--muted); font-weight: 400; }

/* ── Add/qty controls ────────────────────────────────────── */
.menu-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform .1s;
  font-family: 'Cairo', sans-serif;
  flex-shrink: 0;
}
.menu-add-btn:hover { background: var(--primary-dk); }
.menu-add-btn:active { transform: scale(.9); }

.menu-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Cairo', sans-serif;
}
.menu-qty-btn.minus { border-color: var(--red); color: var(--red); }
.menu-qty-btn.plus  { border-color: var(--primary); color: var(--primary); }
.menu-qty-btn:hover { opacity: .75; }
.menu-qty-num { font-size: .88rem; font-weight: 900; color: var(--text); min-width: 16px; text-align: center; }

/* ── Floating cart bar ───────────────────────────────────── */
.menu-cart-bar {
  position: fixed;
  bottom: calc(var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(255,92,43,.45);
  z-index: 100;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
}
.menu-cart-bar.visible { transform: translateX(-50%) translateY(0); }
.menu-cart-count {
  background: rgba(255,255,255,.25);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-cart-label { font-size: .88rem; font-weight: 800; flex: 1; }
.menu-cart-total { font-size: .9rem; font-weight: 900; }

/* ── Location modal ──────────────────────────────────────── */
.menu-location-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,26,46,.75);
  backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.menu-location-modal.open { display: flex; }
.menu-location-sheet {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  max-width: 480px;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.menu-location-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
  text-align: center;
}
.menu-location-sub {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}
.menu-location-input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: 'Cairo', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  margin-bottom: 12px;
  direction: rtl;
}
.menu-location-input:focus { border-color: var(--primary); }
.menu-location-confirm {
  width: 100%;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.menu-location-confirm:hover { background: var(--primary-dk); }

/* ── Cart review modal ───────────────────────────────────── */
.menu-cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,26,46,.75);
  backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center;
}
.menu-cart-modal.open { display: flex; }
.menu-cart-sheet {
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
}
.menu-cart-sheet-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-cart-close {
  background: var(--bg);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.menu-cart-item:last-of-type { border-bottom: none; }
.menu-cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.menu-cart-item-info { flex: 1; }
.menu-cart-item-name { font-size: .85rem; font-weight: 800; color: var(--dark); }
.menu-cart-item-price { font-size: .78rem; color: var(--primary); font-weight: 700; }
.menu-cart-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 16px 0;
}
.menu-cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.menu-cart-summary-row.total {
  font-size: .95rem;
  font-weight: 900;
  color: var(--dark);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  margin-bottom: 0;
}
.menu-wa-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 900;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.menu-wa-order-btn:hover { background: #1da851; }

/* ── Empty states ────────────────────────────────────────── */
.menu-loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.menu-not-found {
  padding: 64px 20px;
  text-align: center;
}

/* ── Dark mode for menu ──────────────────────────────────── */
body.dark .menu-status-bar  { background: var(--card); border-color: var(--border); }
body.dark .menu-search       { background: var(--card); border-color: var(--border); }
body.dark .menu-cats-nav     { background: var(--card); border-color: var(--border); }
body.dark .menu-body         { background: var(--bg); }
body.dark .menu-item-card    { background: var(--card); border-color: var(--border); }
body.dark .menu-item-name    { color: var(--text); }
body.dark .menu-qty-btn      { background: rgba(255,255,255,.08); border-color: var(--border); }
body.dark .menu-location-btn { background: var(--card); border-color: var(--border); }
body.dark .menu-location-sheet,
body.dark .menu-cart-sheet   { background: var(--card); }
body.dark .menu-location-title,
body.dark .menu-cart-sheet-title,
body.dark .menu-cart-item-name { color: var(--text); }
body.dark .menu-location-input { background: rgba(255,255,255,.07); border-color: var(--border); color: var(--text); }
body.dark .menu-cart-summary   { background: rgba(255,255,255,.05); }
body.dark .menu-cart-summary-row.total { color: var(--text); }
body.dark .menu-cat-title      { color: var(--text); }
body.dark .menu-item-img-placeholder { background: rgba(255,255,255,.07); }

/* ── Responsive menu ─────────────────────────────────────── */
@media (min-width: 640px) {
  .menu-items-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .menu-identity { padding: 64px 80px 24px; }
  .menu-cat-section { padding: 24px 80px 10px; }
  .menu-status-bar, .menu-search, .menu-cats-nav { padding-right: 80px; padding-left: 80px; }
  .menu-location-btn { margin: 12px 80px; width: auto; }
  .menu-items-grid { grid-template-columns: repeat(4, 1fr); }
  .menu-header { min-height: 260px; }
  .menu-name { font-size: 1.8rem; }
  .menu-cart-bar { bottom: 24px; }
}

