/* ================================================================
   HADIR MARKETPLACE — Complete Style System
   Dark #0F172A | Gold #C9A227 | Responsive + RTL/LTR
   ================================================================ */

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #0F172A;
  --dark2:   #1E293B;
  --dark3:   #080F1E;
  --gold:    #C9A227;
  --gold2:   #b8911f;
  --white:   #ffffff;
  --gray-bg: #F8F9FA;
  --gray-1:  #F1F5F9;
  --gray-2:  #E2E8F0;
  --gray-3:  #94A3B8;
  --gray-4:  #64748B;
  --gray-5:  #334155;
  --text:    #1E293B;
  --green:   #16A34A;
  --red:     #DC2626;
  --blue:    #2563EB;
  --orange:  #EA580C;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-gold: 0 6px 24px rgba(201,162,39,.18);
  --ring: 0 0 0 4px rgba(201,162,39,.12);

  --nav-h: 62px;
  --container: 1160px;

  --font: 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at top, rgba(201,162,39,.09), transparent 36%),
    linear-gradient(180deg, #fcfbf7 0%, #f6f8fb 24%, #f8f9fa 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  color-scheme: light;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: var(--font); }

/* ── CONTAINER ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
h1 { font-size: clamp(22px, 4vw, 40px); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(18px, 3vw, 28px); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(15px, 2vw, 20px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  min-height: 46px;
}
.btn:active { transform: scale(.98); }

.btn-primary  { background: var(--gold);  color: var(--dark);  }
.btn-primary:hover  { background: var(--gold2); }

.btn-outline  { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover  { background: rgba(201,162,39,.1); }

.btn-dark     { background: var(--dark2); color: var(--white); border-color: var(--dark2); }
.btn-dark:hover     { background: var(--dark); }

.btn-white    { background: var(--white); color: var(--dark); }
.btn-white:hover    { background: var(--gray-1); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-success  { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-danger   { background: var(--red);   color: var(--white); border-color: var(--red); }

.btn-sm   { padding: 7px 16px; font-size: 13px; }
.btn-lg   { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-5);
  margin-bottom: 7px;
}
.form-label .req { color: var(--red); margin-inline-start: 3px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--ring);
}
.form-control::placeholder { color: var(--gray-3); }

textarea.form-control { min-height: 100px; resize: vertical; }

.form-hint { font-size: 12px; color: var(--gray-3); margin-top: 5px; }

/* Prevent iOS zoom */
@media (max-width: 767px) {
  .form-control { font-size: 16px; }
}

/* ── ALERTS ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }

/* ── BADGES ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green   { background: #DCFCE7; color: #166534; }
.badge-gold    { background: #FEF9E7; color: #78350F; }
.badge-blue    { background: #DBEAFE; color: #1E40AF; }
.badge-red     { background: #FEE2E2; color: #991B1B; }
.badge-gray    { background: var(--gray-1); color: var(--gray-5); }
.badge-orange  { background: #FFF7ED; color: #9A3412; }
.badge-dark    { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ── CARDS ─────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

/* ── SECTION ───────────────────────────────────────────────────── */
.section       { padding: 78px 0; }
.section-sm    { padding: 48px 0; }
.section-dark  { background: var(--dark); }
.section-white { background: var(--white); }

.section-header {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 620px;
}
.section-header h2 { margin-bottom: 10px; }
.section-header p  { color: var(--gray-4); max-width: 500px; margin: 0 auto; line-height: 1.8; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p  { color: var(--gray-3); }

/* ── GRID ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }

/* ── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  background: rgba(15,23,42,.92);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(15,23,42,.16);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.nav-logo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
}
.brand-logo-img { display: block; width: auto; height: 36px; }
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--gray-3);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-nav {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-nav-login {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-nav-login:hover { background: rgba(201,162,39,.15); }

.btn-nav-order {
  background: var(--gold);
  color: var(--dark);
}
.btn-nav-order:hover { background: var(--gold2); }

.lang-btn {
  background: rgba(255,255,255,.04);
  color: var(--gray-3);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
  text-decoration: none;
}
.lang-btn:hover { color: var(--white); border-color: rgba(255,255,255,.4); }

.user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--dark);
  flex-shrink: 0;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .24s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); }
.nav-toggle:hover { background: rgba(255,255,255,.1); }

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1998;
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

.mobile-quick-nav {
  display: none;
}

.page-back-strip {
  background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(255,255,255,.94) 100%);
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.page-back-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
}
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: var(--shadow-sm);
  color: var(--dark);
}
.page-back-link:hover {
  border-color: rgba(201,162,39,.45);
  box-shadow: var(--shadow-gold);
}
.page-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(201,162,39,.14);
  color: var(--dark);
  font-size: 18px;
  flex-shrink: 0;
}
.page-back-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.page-back-copy strong {
  font-size: 14px;
  line-height: 1.2;
}
.page-back-copy small {
  font-size: 12px;
  color: var(--gray-4);
}

.install-banner {
  position: fixed;
  inset-inline: 14px;
  top: calc(var(--nav-h) + 12px);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15,23,42,.96);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(8,15,30,.28);
  transition: opacity .22s ease, transform .22s ease;
}
.install-banner[hidden] {
  display: none !important;
}
.install-banner.is-closing {
  opacity: 0;
  transform: translateY(10px);
}
.install-banner-copy {
  min-width: 0;
  flex: 1;
}
.install-banner-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.install-banner-close:hover {
  background: rgba(255,255,255,.14);
}
.install-banner-copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.install-banner-copy p {
  color: var(--gray-3);
  font-size: 12px;
  line-height: 1.6;
}
.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-inline-end: 42px;
}
.install-dismiss {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.install-dismiss:hover { background: rgba(255,255,255,.12); }

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: 0; inset-inline-end: 0;
  width: min(340px, 88vw);
  height: 100%;
  background:
    radial-gradient(circle at top, rgba(201,162,39,.18), transparent 30%),
    linear-gradient(180deg, #111b31 0%, #0c1425 100%);
  z-index: 1999;
  padding: 22px 18px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s ease;
  border-inline-start: 1px solid rgba(255,255,255,.08);
  box-shadow: -20px 0 50px rgba(8,15,30,.32);
}
[dir="rtl"] .nav-drawer { transform: translateX(-100%); }
.nav-drawer.show { transform: translateX(0) !important; }
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.drawer-close {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--gray-3);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.drawer-logo { display: flex; align-items: center; }
.drawer-logo span { color: var(--gold); }
.drawer-text {
  padding: 16px 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.drawer-text strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  margin-bottom: 6px;
}
.drawer-text p {
  color: var(--gray-3);
  font-size: 13px;
  line-height: 1.7;
}
.drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.drawer-user strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}
.drawer-user span {
  display: block;
  color: var(--gray-3);
  font-size: 12px;
  margin-top: 3px;
}
.drawer-group + .drawer-group { margin-top: 18px; }
.drawer-section-title {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-inline: 4px;
}
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-3);
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s, border-color .2s, background .2s;
}
.drawer-link + .drawer-link { margin-top: 8px; }
.drawer-link:hover,
.drawer-link.active {
  color: var(--white);
  border-color: rgba(201,162,39,.42);
  background: rgba(201,162,39,.11);
}
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-minor-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.drawer-minor-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--gray-3);
  font-size: 13px;
  font-weight: 600;
}
.drawer-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.install-drawer-btn { margin-bottom: 2px; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(201,162,39,.2), transparent 24%),
    linear-gradient(135deg, #0f172a 0%, #111c34 52%, #1a2743 100%);
  padding: 78px 20px 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.08), transparent 22%),
    radial-gradient(circle at 15% 85%, rgba(201,162,39,.08), transparent 18%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 26px;
}
.hero-content {
  flex: 1;
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px rgba(8,15,30,.22);
  backdrop-filter: blur(8px);
}
.hero-tag {
  display: inline-flex; align-items: center;
  background: rgba(201,162,39,.15);
  color: var(--gold);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid rgba(201,162,39,.3);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  max-width: 10ch;
}
.hero h1 span { color: var(--gold); }
.hero-desc {
  color: rgba(226,232,240,.9);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin-bottom: 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,15,30,.24);
  box-shadow: 0 12px 28px rgba(8,15,30,.16);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within {
  border-color: rgba(201,162,39,.55);
  box-shadow: 0 16px 32px rgba(8,15,30,.22);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: none;
  font-size: 15px;
  font-family: var(--font);
  background: transparent;
  color: var(--white);
  outline: none;
}
.hero-search input::placeholder { color: rgba(148,163,184,.92); }
.hero-search button {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 15px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--gold2); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { min-width: 172px; }
.hero-notes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(226,232,240,.9);
  font-size: 13px;
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 320px;
  flex-shrink: 0;
  align-content: start;
}
.hero-stat {
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 20px 18px; text-align: center;
  box-shadow: 0 18px 36px rgba(8,15,30,.18);
  backdrop-filter: blur(8px);
}
.hero-stat .num { font-size: 24px; font-weight: 700; color: var(--gold); display: block; }
.hero-stat .lbl { font-size: 12px; color: rgba(226,232,240,.82); margin-top: 6px; line-height: 1.55; }

/* ── TRUST STRIP ───────────────────────────────────────────────── */
.trust-strip { background: transparent; padding: 16px 0 0; }
.trust-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.trust-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 18px 18px 16px;
  font-size: 13px; font-weight: 600; color: var(--gray-4);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}
.trust-item strong { color: var(--dark); font-size: 18px; font-weight: 700; }

/* ── SERVICE CARDS ─────────────────────────────────────────────── */
.svc-card { display: block; padding: 28px 24px; position: relative; }
.svc-card .icon {
  width: 58px; height: 58px;
  font-size: 28px; margin-bottom: 16px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(201,162,39,.16), rgba(201,162,39,.08));
}
.svc-card h3 { color: var(--dark); margin-bottom: 6px; }
.svc-card p { font-size: 13px; color: var(--gray-4); line-height: 1.75; margin-bottom: 16px; }

/* ── STEP CARDS ────────────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 30px 24px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.step-num {
  width: 52px; height: 52px;
  background: rgba(201,162,39,.12);
  border: 2px solid rgba(201,162,39,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--gold);
  margin: 0 auto 16px;
}
.step-card h3 { color: var(--white); margin-bottom: 8px; font-size: 16px; }
.step-card p  { color: var(--gray-4); font-size: 13px; line-height: 1.75; }

.spotlight-card {
  text-align: center;
  padding: 28px 24px;
}
.spotlight-avatar {
  width: 64px;
  height: 64px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 14px;
}
.spotlight-avatar-square { border-radius: 18px; }
.spotlight-title { margin-bottom: 4px; font-size: 17px; }
.spotlight-subtitle { font-size: 13px; color: var(--gray-4); margin-bottom: 8px; line-height: 1.65; }
.spotlight-meta { font-size: 13px; margin-bottom: 6px; }
.spotlight-location { font-size: 12px; color: var(--gray-3); margin-bottom: 18px; }

/* ── PROVIDER CARD ─────────────────────────────────────────────── */
.pcard {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-1);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 18px;
  transition: all .25s;
}
.pcard:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }

.pcard-avatar {
  width: 58px; height: 58px;
  background: var(--dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.pcard-info { flex: 1; min-width: 0; }
.pcard-info h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-service { font-size: 13px; color: var(--gray-4); margin-bottom: 8px; }
.pcard-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pcard-meta-item { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--gray-4); }
.pcard-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* ── PAGE HEADER ───────────────────────────────────────────────── */
.page-header { background: var(--dark); padding: 48px 20px; }
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p  { color: var(--gray-3); font-size: 14px; }
.breadcrumb { font-size: 13px; color: var(--gray-4); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-3); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }

/* ── FILTERS ───────────────────────────────────────────────────── */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  padding: 12px 20px;
  position: sticky; top: var(--nav-h); z-index: 90;
}
.filters-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--gray-2); background: var(--white);
  color: var(--gray-5); font-size: 13px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: all .2s; text-decoration: none; white-space: nowrap;
}
.filter-btn:hover      { border-color: var(--gold); color: var(--gold); }
.filter-btn.active     { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.sort-select {
  margin-inline-start: auto;
  padding: 7px 14px; border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-sm); font-size: 13px;
  font-family: var(--font); color: var(--gray-5);
  background: var(--white); cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--gold); }

/* ── EMPTY STATE ───────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 72px 20px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-1);
}
.empty-icon { font-size: 52px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.empty-state p  { color: var(--gray-4); font-size: 14px; margin-bottom: 22px; }

/* ── AUTH CARD ─────────────────────────────────────────────────── */
.auth-wrap {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  padding: 52px 16px; background: var(--gray-bg);
}
.auth-card {
  background: var(--white); width: 100%; max-width: 460px;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 32px rgba(0,0,0,.1);
  overflow: hidden;
}
.auth-header {
  background: var(--dark); padding: 28px 32px; text-align: center;
}
.auth-logo { font-size: 18px; font-weight: 700; color: var(--white); }
.auth-logo span { color: var(--gold); }
.auth-zone { color: var(--gold); font-size: 12px; font-weight: 600; margin-top: 6px; }
.auth-body { padding: 32px; }
.auth-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.auth-sub   { font-size: 13px; color: var(--gray-3); margin-bottom: 24px; }
.auth-divider {
  text-align: center; color: var(--gray-2); font-size: 12px;
  margin: 18px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 44%; height: 1px; background: var(--gray-2);
}
[dir="ltr"] .auth-divider::before { left: 0; }
[dir="ltr"] .auth-divider::after  { right: 0; }
[dir="rtl"] .auth-divider::before { right: 0; }
[dir="rtl"] .auth-divider::after  { left: 0; }
.auth-footer { text-align: center; font-size: 13px; color: var(--gray-4); margin-bottom: 8px; }
.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-micro { text-align: center; font-size: 12px; color: var(--gray-3); padding-top: 14px; border-top: 1px solid var(--gray-1); margin-top: 14px; }
.auth-micro a { color: var(--gray-4); }

/* ── DASHBOARD ─────────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }

.dash-sidebar {
  width: 230px; background: var(--dark);
  color: var(--white); padding: 24px 16px;
  flex-shrink: 0; position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.sidebar-logo {
  font-size: 16px; font-weight: 700; color: var(--gold);
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-3); padding: 11px 12px;
  border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; margin-bottom: 4px;
  transition: all .2s; text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(201,162,39,.14); color: var(--gold); }
.sidebar-nav a.logout { color: #F87171; margin-top: 16px; }
.sidebar-nav a.logout:hover { background: rgba(248,113,113,.1); color: #F87171; }

.dash-main { flex: 1; padding: 28px; overflow-x: hidden; }
.dash-title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-1); padding: 20px;
  text-align: center; transition: all .25s;
}
.stat-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.stat-card .num { font-size: 32px; font-weight: 700; color: var(--gold); display: block; }
.stat-card .lbl { font-size: 13px; color: var(--gray-4); margin-top: 4px; }

/* ── PROFILE HEADER ────────────────────────────────────────────── */
.profile-header { background: var(--dark); padding: 40px 20px; }
.profile-header-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-avatar {
  width: 84px; height: 84px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--dark); flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.15);
}
.profile-info h1 { color: var(--white); margin-bottom: 6px; }
.profile-svc     { color: var(--gold); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.profile-badges  { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── ORDER PROGRESS ────────────────────────────────────────────── */
.progress-bar { background: var(--white); border-bottom: 1px solid var(--gray-2); padding: 14px 20px; }
.progress-inner { max-width: 700px; margin: 0 auto; display: flex; align-items: center; }
.prog-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-3); font-weight: 600; }
.prog-step.done   { color: var(--green); }
.prog-step.active { color: var(--gold); }
.prog-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-1); border: 2px solid var(--gray-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.prog-step.done   .prog-dot { background: #DCFCE7; border-color: var(--green); color: var(--green); }
.prog-step.active .prog-dot { background: #FEF9E7; border-color: var(--gold); color: var(--gold); }
.prog-line { flex: 1; height: 2px; background: var(--gray-2); margin: 0 8px; }
.prog-line.done { background: var(--green); }

/* ── SEARCH BAR ────────────────────────────────────────────────── */
.search-bar { background: var(--dark); padding: 0 20px 24px; }
.search-wrap {
  max-width: 560px;
  display: flex; border-radius: var(--radius-md); overflow: hidden;
  border: 1.5px solid rgba(201,162,39,.35); transition: border-color .2s;
}
.search-wrap:focus-within { border-color: var(--gold); }
.search-wrap input {
  flex: 1; padding: 12px 16px; border: none;
  font-size: 14px; font-family: var(--font);
  background: rgba(255,255,255,.07); color: var(--white); outline: none;
}
.search-wrap input::placeholder { color: #475569; }
.search-wrap button {
  background: var(--gold); color: var(--dark);
  border: none; padding: 12px 22px;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.search-wrap button:hover { background: var(--gold2); }

/* ── CTA SECTION ───────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201,162,39,.18), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #13213e 100%);
  padding: 80px 20px;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 18%);
  pointer-events: none;
}
.cta-section .container { position: relative; }
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p  { color: var(--gray-3); font-size: 15px; margin-bottom: 36px; }
.cta-actions    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #0b1220 0%, #080f1e 100%);
  color: var(--white);
  padding: 56px 20px 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo a { display: inline-flex; }
.footer-brand .brand-logo-img { height: auto; width: min(180px, 100%); }
.footer-brand p { color: var(--gray-4); font-size: 13px; line-height: 1.85; max-width: 300px; }
.footer-col h4  { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col a   { display: block; color: var(--gray-4); font-size: 13px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; text-align: center; color: #475569; font-size: 13px; }

/* ── STICKY CTA ────────────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; inset-inline-start: 0; inset-inline-end: 0;
  background: var(--white); border-top: 1px solid var(--gray-2);
  padding: 12px 20px; z-index: 900;
  align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.sticky-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.sticky-sub  { font-size: 13px; color: var(--gray-4); }

/* Status badges */
.status-pending     { background: #FEF9C3; color: #713F12; }
.status-accepted    { background: #DCFCE7; color: #14532D; }
.status-in_progress { background: #DBEAFE; color: #1E3A8A; }
.status-completed   { background: #D1FAE5; color: #065F46; }
.status-cancelled   { background: #FEE2E2; color: #7F1D1D; }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: 12px 14px; text-align: start; font-size: 14px; border-bottom: 1px solid var(--gray-1); }
.orders-table th { font-weight: 700; color: var(--gray-5); background: var(--gray-bg); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.orders-table td { color: var(--text); }
.orders-table tr:hover td { background: var(--gray-bg); }

/* Rating stars */
.stars { color: var(--gold); font-size: 16px; }
.stars-sm { font-size: 13px; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-content { padding: 32px; }
  .hero-inner { gap: 20px; }
  .hero-stats { width: 280px; }
  .trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-h: 58px; }

  body.has-install-banner { padding-bottom: 172px; }
  .container { padding: 0 16px; }
  .card { padding: 20px; border-radius: 20px; }

  .section    { padding: 42px 0; }
  .section-sm { padding: 32px 0; }

  /* Hero */
  .hero { padding: 30px 16px 34px; }
  .hero-inner { flex-direction: column; gap: 16px; }
  .hero-content { padding: 24px 20px; border-radius: 24px; }
  .hero-tag { margin-bottom: 14px; font-size: 12px; }
  .hero h1 { max-width: none; }
  .hero-stats { width: 100%; grid-template-columns: repeat(2,1fr); gap: 10px; }
  .hero-stat  { padding: 16px 12px; border-radius: 18px; }
  .hero-stat .num { font-size: 20px; }
  .hero-desc  { font-size: 14px; margin-bottom: 22px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-search {
    flex-direction: column;
    gap: 0;
    border-radius: 18px;
    overflow: hidden;
  }
  .hero-search input { border-radius: 0; }
  .hero-search button { border-radius: 0; width: 100%; }
  .hero-notes { display: grid; grid-template-columns: 1fr; }

  /* Nav */
  .nav-links, .nav-actions { display: none; }
  .nav-inner { padding: 0 16px; }
  .nav-logo a { padding: 4px 0; font-size: 18px; }
  .brand-logo-img { height: 30px; }
  .nav-toggle { display: inline-flex; }
  .mobile-quick-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 16px 0;
    background: var(--dark);
  }
  .page-back-strip {
    background: var(--dark);
    border-bottom: 0;
  }
  .page-back-inner {
    padding: 8px 16px 10px;
  }
  .page-back-link {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
    color: var(--white);
  }
  .page-back-icon {
    width: 34px;
    height: 34px;
    background: rgba(201,162,39,.16);
    color: var(--white);
  }
  .page-back-copy small {
    display: none;
  }
  .mobile-quick-nav a,
  .mobile-quick-nav button {
    min-height: 42px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: var(--gray-3);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }
  .mobile-quick-nav a.active,
  .mobile-quick-nav button:active {
    color: var(--white);
    border-color: rgba(201,162,39,.42);
    background: rgba(201,162,39,.16);
  }
  .install-banner {
    inset-inline: 12px;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .install-banner-close {
    top: 8px;
    inset-inline-end: 8px;
  }
  .install-banner-actions {
    width: 100%;
    justify-content: stretch;
    padding-inline-end: 0;
  }
  .install-banner-actions .btn,
  .install-dismiss {
    flex: 1;
  }
  .drawer-text p { font-size: 12px; }
  .drawer-minor-links { grid-template-columns: 1fr; }

  /* Trust */
  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px;
  }
  .trust-item {
    min-width: 0;
    padding: 14px;
    border-inline-end: none;
    border-bottom: none;
  }
  .trust-item strong { font-size: 16px; }

  /* Service and spotlight cards */
  .svc-card { padding: 24px 20px; }
  .svc-card .icon { width: 52px; height: 52px; font-size: 24px; margin-bottom: 14px; }
  .step-card { padding: 24px 20px; }
  .spotlight-card { padding: 24px 20px; }

  /* Provider card */
  .pcard { flex-wrap: wrap; }
  .pcard-actions { flex-direction: row; width: 100%; }
  .pcard-actions .btn { flex: 1; }

  /* Profile */
  .profile-header-inner { flex-direction: column; text-align: center; }
  .profile-badges { justify-content: center; }

  /* Dashboard */
  .dash-layout { flex-direction: column; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 16px; }
  .dash-title { font-size: 18px; }

  /* Footer */
  .cta-actions .btn { width: 100%; }
  .footer { padding: 44px 16px 24px; }
  .footer {
    padding: 38px 16px 18px;
  }
  .footer-grid {
    display: flex;
    gap: 14px;
    margin: 0 -16px 24px;
    padding: 0 16px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .footer-grid::-webkit-scrollbar { display: none; }
  .footer-grid > * {
    flex: 0 0 82%;
    min-width: 82%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px 16px;
  }
  .footer-brand p { max-width: none; }
  .footer-col a:last-child { margin-bottom: 0; }
  .footer-bottom {
    padding-top: 16px;
    font-size: 12px;
    line-height: 1.8;
  }

  /* Auth */
  .auth-body   { padding: 24px 18px; }
  .auth-header { padding: 22px 18px; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Sticky CTA */
  .sticky-cta { display: flex; }

  /* Filters */
  .sort-select { margin-inline-start: 0; width: 100%; }

  /* Orders table */
  .orders-table { font-size: 13px; }
  .orders-table th, .orders-table td { padding: 9px 10px; }
  .table-responsive { overflow-x: auto; }
}

@media (max-width: 375px) {
  h1 { font-size: 20px; }
  h2 { font-size: 17px; }
  .hero-content { padding: 20px 16px; }
  .hero-stat .lbl { font-size: 11px; }
  body.has-install-banner { padding-bottom: 188px; }
  .install-banner-actions {
    flex-direction: column;
  }
}

/* ── RTL ───────────────────────────────────────────────────────── */
[dir="rtl"] .hero-desc { text-align: right; }
[dir="rtl"] .trust-item { align-items: flex-end; text-align: right; }
[dir="rtl"] .sort-select { margin-inline-start: auto; margin-inline-end: 0; }
