:root {
  color-scheme: light;
  --navy: #15233a;
  --navy-2: #203653;
  --ink: #202b3a;
  --muted: #667287;
  --line: #e2e7ee;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --gold: #c49a4a;
  --gold-2: #e5c57b;
  --gold-pale: #fbf4e4;
  --red: #9d3b42;
  --green: #2d725c;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(21, 35, 58, .09);
  font-family: "Cairo", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 10px; right: 10px; transform: translateY(-160%);
  padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #cc8d19; outline-offset: 3px; }

.initial-loading { min-height: 100vh; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.loading-logo { width: 68px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); background: #05070b; }

.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(21,35,58,.1); backdrop-filter: blur(12px);
}
.header-inner { max-width: 1280px; min-height: 78px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; text-decoration: none; }
.brand-logo { width: 52px; aspect-ratio: 1; border-radius: 50%; background: #05070b; object-fit: cover; border: 1px solid rgba(196,154,74,.85); box-shadow: 0 4px 12px rgba(21,35,58,.16); }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { color: var(--navy); font-size: 16px; font-weight: 900; }
.brand-copy small { margin-top: 3px; color: var(--muted); font: 700 11px/1.3 Arial, sans-serif; direction: ltr; text-align: right; letter-spacing: .25px; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-inline: auto; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; color: #536075; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--navy); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.lang-button, .icon-button { border: 1px solid var(--line); background: white; border-radius: 12px; color: var(--navy); min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; font-weight: 800; }
.lang-button { padding: 0 12px; }
.icon-button { padding: 0; }
.icon-button:hover, .lang-button:hover { background: var(--canvas); }
.mobile-menu-button { display: none; }

.button { border: 1px solid transparent; border-radius: 13px; min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-weight: 800; line-height: 1.2; transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; transform: none; opacity: .55; }
.button-primary { background: var(--gold); color: #17243a; box-shadow: 0 6px 15px rgba(196,154,74,.2); }
.button-primary:hover { background: #d2aa5c; }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { background: var(--navy-2); }
.button-outline { background: white; border-color: var(--line); color: var(--navy); }
.button-outline:hover { background: var(--canvas); }
.button-quiet { background: transparent; border-color: transparent; color: var(--navy); padding-inline: 12px; }
.button-danger { background: #fff1f1; border-color: #f1d2d3; color: #8c3136; }
.button-small { min-height: 38px; padding: 0 13px; border-radius: 11px; font-size: 13px; }
.button-full { width: 100%; }

.offline-banner { padding: 10px 18px; text-align: center; background: #fff5dd; border-bottom: 1px solid #e7ca7b; color: #5d491c; font-size: 13px; font-weight: 700; }
.stale-banner { max-width: 1280px; padding: 10px 16px; margin: 16px auto 0; border-radius: 12px; background: #edf4fb; color: #344b68; font-size: 13px; }

.hero {
  min-height: 470px; position: relative; overflow: hidden; background: var(--navy);
  color: white; display: flex; align-items: center;
  background-image: linear-gradient(90deg, rgba(21,35,58,.52), rgba(21,35,58,.92) 48%, rgba(21,35,58,.98)),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1800&q=86");
  background-position: center; background-size: cover;
}
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 7px; background: linear-gradient(to bottom, #ce3945 0 33%, #fff 33% 66%, #3159a1 66%); }
.hero-inner { width: min(100%, 1280px); position: relative; margin: 0 auto; padding: 64px 32px 60px; text-align: center; }
.hero h1 { max-width: 800px; margin: 0 auto; color: white; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.22; letter-spacing: -.7px; font-weight: 900; }
.hero p { max-width: 690px; margin: 19px auto 28px; color: rgba(255,255,255,.88); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.8; }
.search-panel { max-width: 850px; margin: 0 auto; background: white; color: var(--ink); display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 8px; padding: 8px; border-radius: 16px; box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 13px; }
.search-field + .search-field { border-right: 1px solid var(--line); }
.search-field svg { color: #788395; flex: 0 0 auto; }
.search-field input, .search-field select { min-width: 0; width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #788395; }
.hero .search-submit { min-height: 50px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 22px; color: rgba(255,255,255,.75); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 42px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(22px, 3vw, 30px); line-height: 1.35; font-weight: 900; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: #8a641f; }

.category-strip { display: grid; grid-template-columns: repeat(8, minmax(95px,1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 3px 10px rgba(21,35,58,.03); }
.category-tile { border: 0; border-left: 1px solid var(--line); min-height: 116px; background: white; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 13px; text-align: center; }
.category-tile:last-child { border-left: 0; }
.category-tile:hover, .category-tile.selected { background: var(--gold-pale); }
.category-icon { width: 29px; height: 29px; color: #a87928; }

.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.listing-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 18px rgba(21,35,58,.04); transition: transform .18s ease, box-shadow .18s ease; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-card-media { position: relative; aspect-ratio: 1.38; overflow: hidden; background: #e8ecf1; cursor: pointer; }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.listing-card:hover .listing-card-media img { transform: scale(1.035); }
.listing-card-body { padding: 13px 15px 15px; }
.listing-title { min-height: 2.8em; margin: 0; font-size: 15px; line-height: 1.55; font-weight: 800; color: var(--ink); cursor: pointer; }
.listing-meta { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.listing-price { color: var(--navy); font-size: 17px; font-weight: 900; white-space: nowrap; }
.listing-price small { font-size: 12px; }
.demo-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; background: #f0f2f6; color: #5d687a; font-size: 10px; line-height: 1.2; font-weight: 800; }
.card-top-label { position: absolute; top: 11px; right: 11px; z-index: 1; }
.favorite-toggle { position: absolute; top: 10px; left: 10px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.96); color: var(--navy); display: grid; place-items: center; }
.favorite-toggle.saved { background: var(--navy); color: white; }
.favorite-toggle:disabled { cursor: not-allowed; opacity: .62; }
.empty-state { padding: 48px 22px; text-align: center; border: 1px dashed #cbd3de; border-radius: 18px; background: rgba(255,255,255,.75); }
.empty-state-mark { width: 58px; height: 58px; border-radius: 18px; background: var(--gold-pale); color: #9a6f24; display: grid; place-items: center; margin: 0 auto 12px; }
.empty-state h3 { margin: 0; color: var(--navy); font-size: 20px; }
.empty-state p { margin: 8px auto 18px; max-width: 460px; color: var(--muted); }
.skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.skeleton-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; }
.skeleton-photo, .skeleton-line { background: linear-gradient(90deg, #edf0f4 20%, #f8f9fb 40%, #edf0f4 60%); background-size: 220% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-photo { aspect-ratio: 1.38; }
.skeleton-content { padding: 14px; }
.skeleton-line { height: 12px; border-radius: 8px; margin: 9px 0; }
.skeleton-line.short { width: 55%; }
@keyframes shimmer { to { background-position-x: -220%; } }

.trust-band { display: grid; grid-template-columns: .9fr 1.1fr 1fr; gap: 18px; align-items: stretch; padding: 6px 0 48px; }
.trust-item { padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.trust-item h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--navy); font-size: 19px; }
.trust-item p, .trust-item li { color: var(--muted); font-size: 13px; }
.trust-item ul { padding-right: 19px; margin: 10px 0 0; }
.trust-item li + li { margin-top: 5px; }
.founder-card { display: flex; align-items: center; gap: 17px; background: var(--navy); color: white; border-color: var(--navy); }
.founder-portrait { width: 94px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #06080b; border: 2px solid var(--gold); }
.founder-card h3 { color: white; margin-bottom: 7px; }
.founder-card p { color: rgba(255,255,255,.78); margin: 0; }
.sell-promo { background: var(--gold-pale); border-color: #ead8ad; display: flex; flex-direction: column; justify-content: center; }
.sell-promo p { margin: 0 0 16px; }

.page-title { padding: 34px 0 22px; }
.page-title h1 { margin: 0; color: var(--navy); font-size: clamp(27px,4vw,38px); font-weight: 900; }
.page-title p { color: var(--muted); margin: 8px 0 0; }
.filter-bar { display: grid; grid-template-columns: 1.3fr 1fr .8fr .8fr auto; gap: 10px; align-items: end; margin: 4px 0 22px; padding: 16px; border: 1px solid var(--line); background: white; border-radius: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { color: #38465a; font-weight: 800; font-size: 13px; }
.field input, .field select, .field textarea, .control {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8dfe8; border-radius: 11px; background: white; color: var(--ink);
}
.field textarea { min-height: 112px; resize: vertical; }
.field small { color: var(--muted); font-size: 12px; }
.field-error { color: #922e34 !important; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-stack { display: grid; gap: 14px; }
.form-hint { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.form-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 20px; }
.required { color: #96343a; }

.listing-detail { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(310px,.75fr); gap: 30px; padding: 35px 0 52px; }
.detail-gallery { display: grid; gap: 10px; }
.detail-main-photo { width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 19px; background: #e4e8ed; }
.detail-thumb-row { display: flex; gap: 9px; overflow: auto; }
.detail-thumb { width: 78px; height: 64px; border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: white; flex: 0 0 auto; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.active { border-color: var(--gold); }
.detail-info { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; align-self: start; }
.detail-info h1 { font-size: 27px; line-height: 1.4; color: var(--navy); margin: 9px 0 8px; }
.detail-info .listing-price { font-size: 26px; }
.detail-location { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; color: var(--muted); font-size: 13px; }
.detail-divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.seller-mini { display: flex; align-items: center; gap: 11px; }
.seller-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold-pale); font-size: 17px; font-weight: 900; }
.seller-mini strong { display: block; color: var(--navy); }
.seller-mini small { display: block; color: var(--muted); font-size: 12px; }
.detail-description { white-space: pre-line; line-height: 1.9; }
.demo-warning { background: #f0f2f6; color: #46546a; padding: 13px 14px; margin: 18px 0; border-radius: 12px; font-size: 13px; }

.wizard-shell { max-width: 830px; padding: 28px; margin: 0 auto 52px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 24px rgba(21,35,58,.04); }
.wizard-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.stepper { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 20px 0 28px; }
.step-item { position: relative; text-align: center; color: #778397; font-size: 12px; font-weight: 800; }
.step-item::before { content: ""; position: absolute; top: 16px; left: 58%; right: -42%; height: 2px; background: #dfe4eb; z-index: 0; }
.step-item:last-child::before { display: none; }
.step-dot { width: 34px; height: 34px; margin: 0 auto 7px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; color: #6a7587; background: #e9edf2; }
.step-item.active { color: var(--navy); }
.step-item.active .step-dot, .step-item.done .step-dot { color: var(--navy); background: var(--gold-2); }
.step-item.done::before { background: var(--gold); }
.wizard-shell h2 { color: var(--navy); margin: 0 0 7px; font-size: 24px; }
.photo-drop { border: 2px dashed #c7d0dc; border-radius: 16px; background: #fafbfd; padding: 26px 16px; display: grid; place-items: center; text-align: center; }
.photo-drop:hover, .photo-drop.drag-over { border-color: var(--gold); background: #fffcf4; }
.photo-drop p { margin: 8px 0 13px; color: var(--muted); font-size: 13px; }
.photo-preview-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.photo-preview { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #e9edf2; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 5px; left: 5px; border: 0; border-radius: 50%; width: 30px; height: 30px; background: #fff; color: #852f34; font-weight: 900; }
.upload-progress { margin: 16px 0; }
.progress-track { width: 100%; height: 10px; overflow: hidden; border-radius: 99px; background: #e6eaf0; }
.progress-value { height: 100%; width: 0; background: var(--gold); transition: width .22s ease; }
.upload-progress p { color: var(--muted); font-size: 13px; }
.wizard-preview { border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: #fbfcfe; }
.wizard-preview h3 { color: var(--navy); margin: 0 0 7px; }
.wizard-preview ul { color: var(--muted); padding-right: 20px; }

.account-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 22px; padding: 28px 0 54px; }
.account-menu { align-self: start; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.account-menu button { width: 100%; min-height: 43px; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: #506077; text-align: right; font-weight: 800; }
.account-menu button:hover, .account-menu button.active { background: var(--gold-pale); color: var(--navy); }
.account-content { min-width: 0; }
.surface { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.surface + .surface { margin-top: 16px; }
.surface h2, .surface h3 { margin-top: 0; color: var(--navy); }
.metric-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; }
.metric strong { display: block; font-size: 24px; color: var(--navy); }
.metric span { color: var(--muted); font-size: 12px; }
.data-list { display: grid; gap: 10px; }
.data-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.data-row img { width: 64px; height: 56px; object-fit: cover; border-radius: 9px; background: #e6eaf0; }
.data-row strong { display: block; color: var(--navy); }
.data-row small { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; justify-content: end; }
.status-tag { display: inline-flex; align-items: center; border-radius: 30px; padding: 5px 10px; font-size: 11px; font-weight: 900; background: #edf1f6; color: #46566e; }
.status-active { background: #e4f4eb; color: #286147; }
.status-under_review, .status-requested { background: #fff4d9; color: #70551c; }
.status-needs_changes { background: #fdebec; color: #8d3439; }
.status-draft { background: #eef0f4; color: #5e6878; }
.status-sold { background: #e8effa; color: #31527c; }
.status-free { background: #e3f3eb; color: #286147; }
.message-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.message-card + .message-card { margin-top: 10px; }
.message-card p { margin: 9px 0 0; white-space: pre-line; }
.message-card small { color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); background: white; border-radius: 17px; }
.plan-card.featured { border-color: var(--gold); box-shadow: 0 8px 25px rgba(196,154,74,.12); }
.plan-card h3 { margin: 0; color: var(--navy); font-size: 21px; }
.plan-price { color: #7d6027; font-weight: 900; font-size: 14px; min-height: 1.8em; }
.plan-card p { margin: 0; color: var(--muted); font-size: 13px; }
.plan-card ul { flex: 1; padding-right: 20px; color: #526074; font-size: 13px; }
.plan-card li + li { margin-top: 7px; }
.plan-card .button { margin-top: auto; }
.no-charge-note { padding: 13px 15px; background: #edf4fb; border-radius: 12px; color: #344b68; font-size: 13px; }

.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.help-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 21px; }
.help-card h2 { color: var(--navy); font-size: 19px; }
.help-card p, .help-card li { color: var(--muted); font-size: 14px; }
.help-card ol, .help-card ul { padding-right: 20px; }

.site-footer { margin-top: 22px; padding: 37px 0 22px; background: var(--navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 54px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: black; border: 1px solid var(--gold); }
.footer-brand strong { display: block; font-size: 17px; }
.footer-brand small { direction: ltr; display: block; text-align: right; font: 700 11px Arial,sans-serif; margin-top: 4px; color: rgba(255,255,255,.68); }
.site-footer p { max-width: 390px; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 5px; }
.footer-links a, .footer-links button { border: 0; padding: 0; background: transparent; color: rgba(255,255,255,.72); text-align: right; text-decoration: none; font-size: 13px; }
.footer-links a:hover, .footer-links button:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 15px; display: flex; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.62); font-size: 11px; }
.footer-stripe { display: inline-flex; gap: 3px; align-items: center; }
.footer-stripe i { width: 17px; height: 3px; display: inline-block; background: #3159a1; }
.footer-stripe i:nth-child(2) { background: #fff; }
.footer-stripe i:nth-child(3) { background: #ce3945; }

.bottom-nav { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(12,20,33,.6); display: grid; place-items: center; padding: 18px; overflow: auto; }
.modal { width: min(100%, 540px); max-height: min(90vh,900px); overflow: auto; padding: 24px; border-radius: 19px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.27); }
.modal-wide { width: min(100%, 740px); }
.modal-header { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 17px; }
.modal-header h2 { margin: 0; color: var(--navy); font-size: 23px; }
.modal-close { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--navy); font-size: 22px; }
.modal-copy { color: var(--muted); font-size: 14px; margin: 0 0 17px; }
.modal .form-actions { justify-content: stretch; }
.modal .form-actions .button { flex: 1; }
.toast-region { position: fixed; z-index: 150; bottom: 22px; left: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 15px; color: white; background: var(--navy); border-radius: 13px; box-shadow: 0 10px 28px rgba(10,18,31,.22); font-size: 13px; }
.toast.error { background: #8d3037; }
.toast.success { background: #28694f; }
.toast button { border: 0; background: transparent; color: white; font-weight: 900; }
.onboarding-modal { max-width: 650px; }
.onboarding-hero { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 17px; align-items: center; padding: 19px; margin-bottom: 20px; border-radius: 15px; background: var(--navy); color: white; }
.onboarding-hero img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; background: black; border: 2px solid var(--gold); }
.onboarding-hero h2 { color: white; margin: 0; line-height: 1.35; }
.onboarding-hero p { color: rgba(255,255,255,.75); font-size: 13px; margin: 7px 0 0; }
.onboarding-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.choice-card { min-height: 105px; text-align: right; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--navy); }
.choice-card:hover { border-color: var(--gold); background: var(--gold-pale); }
.choice-card strong { display: block; font-size: 16px; }
.choice-card span { color: var(--muted); font-size: 12px; }
.onboard-progress { display: flex; gap: 6px; margin-top: 17px; }
.onboard-progress i { width: 28px; height: 4px; border-radius: 4px; background: #d9dfe8; }
.onboard-progress i.active { background: var(--gold); }
.toggle-row { display: flex; align-items: center; gap: 10px; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--navy); }
.notice { padding: 13px 15px; border-radius: 12px; font-size: 13px; }
.notice-info { background: #edf4fb; color: #334b6d; }
.notice-warn { background: #fff3d5; color: #5f491e; }
.notice-danger { background: #fff0f0; color: #842d34; }
.notice-success { background: #e8f5ec; color: #286147; }
.error-summary { padding: 12px 14px; margin-bottom: 14px; border-right: 4px solid #8e3036; background: #fff0f0; color: #78282e; border-radius: 8px; font-weight: 800; }

@media (max-width: 1050px) {
  .header-inner { gap: 18px; padding-inline: 20px; }
  .main-nav { gap: 15px; }
  .listing-grid, .skeleton-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .category-tile:nth-child(4n) { border-left: 0; }
  .category-tile:nth-child(n+5) { border-top: 1px solid var(--line); }
  .trust-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 68px; padding: 7px 15px; gap: 12px; }
  .brand-logo { width: 44px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .main-nav { display: none; position: absolute; inset: 68px 10px auto; padding: 10px; background: white; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 14px; align-items: stretch; }
  .main-nav.open { display: grid; }
  .main-nav .nav-link { padding: 0 10px; }
  .header-actions { margin-right: auto; }
  .header-actions .button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .lang-button { min-width: 40px; min-height: 40px; padding-inline: 9px; font-size: 12px; }
  .mobile-menu-button { display: inline-grid; }
  .header-login { display: none !important; }
  .hero { min-height: 500px; background-position: 40% center; }
  .hero-inner { padding: 49px 17px 43px; }
  .hero h1 { font-size: clamp(33px,9vw,46px); }
  .hero p { font-size: 15px; line-height: 1.8; margin: 14px auto 20px; }
  .search-panel { grid-template-columns: 1fr; padding: 8px; gap: 2px; }
  .search-field { min-height: 46px; }
  .search-field + .search-field { border-right: 0; border-top: 1px solid var(--line); }
  .hero .search-submit { width: 100%; min-height: 47px; margin-top: 4px; }
  .hero-note { font-size: 11px; gap: 7px 12px; }
  .container { padding: 0 15px; }
  .section { padding: 31px 0; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 12px; }
  .section-heading .text-link { font-size: 12px; }
  .category-strip { display: flex; overflow-x: auto; border-radius: 14px; scroll-snap-type: x mandatory; }
  .category-tile { min-width: 113px; min-height: 104px; border-top: 0 !important; border-left: 1px solid var(--line) !important; scroll-snap-align: start; }
  .category-tile:last-child { border-left: 0 !important; }
  .listing-grid, .skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .listing-card { border-radius: 13px; }
  .listing-card-media { aspect-ratio: 1.18; }
  .listing-card-body { padding: 10px 11px 12px; }
  .listing-title { min-height: 3.2em; font-size: 13px; }
  .listing-meta { align-items: start; flex-direction: column; gap: 4px; font-size: 11px; }
  .listing-price { font-size: 15px; }
  .favorite-toggle { width: 34px; height: 34px; }
  .trust-band { grid-template-columns: 1fr; gap: 12px; padding-bottom: 30px; }
  .trust-item { padding: 18px; }
  .founder-card { align-items: flex-start; }
  .founder-portrait { width: 72px; }
  .page-title { padding: 25px 0 15px; }
  .page-title h1 { font-size: 28px; }
  .filter-bar { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 9px; }
  .filter-bar .field:first-child { grid-column: 1 / -1; }
  .filter-bar .button { grid-column: 1 / -1; }
  .listing-detail { grid-template-columns: 1fr; gap: 16px; padding: 20px 0 35px; }
  .detail-info { padding: 18px; }
  .detail-info h1 { font-size: 23px; }
  .wizard-shell { padding: 18px 14px; margin-bottom: 25px; border-radius: 16px; }
  .wizard-shell h2 { font-size: 21px; }
  .step-item { font-size: 10px; }
  .step-dot { width: 30px; height: 30px; }
  .step-item::before { top: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > .button { flex: 1; }
  .photo-preview-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .account-layout { grid-template-columns: 1fr; gap: 13px; padding: 20px 0 35px; }
  .account-menu { display: flex; gap: 5px; overflow-x: auto; padding: 8px; }
  .account-menu button { flex: 0 0 auto; width: auto; min-width: max-content; padding-inline: 13px; }
  .surface { padding: 16px; }
  .metric-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .metric { padding: 11px; }
  .metric strong { font-size: 19px; }
  .metric span { font-size: 10px; }
  .data-row { grid-template-columns: 52px minmax(0,1fr); }
  .data-row img { width: 52px; height: 50px; }
  .data-row .row-actions { grid-column: 1 / -1; justify-content: start; padding-right: 62px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 18px; }
  .help-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .bottom-nav {
    position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; display: grid;
    grid-template-columns: repeat(5,1fr); min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); backdrop-filter: blur(12px);
  }
  .bottom-nav button { border: 0; background: transparent; color: #657286; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 10px; font-weight: 800; }
  .bottom-nav button.active { color: var(--navy); }
  .bottom-nav button[data-page="sell"] .bottom-plus { width: 37px; height: 37px; margin-top: -19px; color: var(--navy); background: var(--gold); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 5px 12px rgba(196,154,74,.35); }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 19px 19px 10px 10px; padding: 19px; }
  .onboarding-hero { grid-template-columns: 67px minmax(0,1fr); padding: 14px; gap: 12px; }
  .onboarding-hero img { width: 66px; height: 66px; }
  .onboarding-hero h2 { font-size: 18px; }
  .onboarding-choice { grid-template-columns: 1fr; gap: 8px; }
  .choice-card { min-height: 77px; padding: 12px 14px; }
  .toast-region { bottom: calc(75px + env(safe-area-inset-bottom)); left: 12px; width: calc(100vw - 24px); }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 12px; }
  .brand-logo { width: 40px; }
  .header-inner { padding-inline: 11px; }
  .header-actions .button { padding-inline: 9px; }
  .listing-grid, .skeleton-grid { gap: 8px; }
  .listing-card-body { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shahbandar France visual direction: warm Parisian market, navy and gold. */
:root {
  --navy: #142b49;
  --navy-2: #1a3b60;
  --ink: #152a45;
  --muted: #65758b;
  --line: #e9dfca;
  --canvas: #fff7e7;
  --gold: #e3b63f;
  --gold-2: #f4d36d;
  --gold-pale: #fff2cc;
  --shadow: 0 16px 42px rgba(21, 35, 58, .12);
}

body {
  background-color: var(--canvas);
  background-image:
    radial-gradient(circle, rgba(224, 175, 67, .17) 0 5px, transparent 5.5px),
    linear-gradient(45deg, transparent 48.5%, rgba(211, 165, 72, .11) 49.2%, rgba(211, 165, 72, .11) 50.8%, transparent 51.5%),
    linear-gradient(-45deg, transparent 48.5%, rgba(211, 165, 72, .11) 49.2%, rgba(211, 165, 72, .11) 50.8%, transparent 51.5%);
  background-size: 80px 80px;
}

.site-header { color: white; background: rgba(20, 43, 73, .98); border-bottom-color: rgba(255,255,255,.12); }
.header-inner { min-height: 82px; gap: clamp(14px, 2.2vw, 30px); }
.brand { gap: 13px; }
.brand-logo { width: 60px; border-width: 2px; }
.brand-copy strong { color: white; font-size: 19px; }
.brand-copy small { color: rgba(255,255,255,.83); font-size: 12px; }
.brand-stripe { display: block; width: 100%; height: 4px; margin-top: 6px; border-radius: 4px; background: linear-gradient(90deg,#355da8 0 33%,#fff 33% 66%,#df394a 66%); }
.main-nav { gap: clamp(12px, 1.7vw, 25px); }
.nav-link { color: rgba(255,255,255,.86); font-size: 15px; }
.nav-link:hover, .nav-link.active { color: white; border-bottom-color: var(--gold); }
.header-actions .button-outline { color: white; border-color: rgba(255,255,255,.27); background: rgba(255,255,255,.04); }
.header-actions .button-primary { color: #2c230c; }
.mobile-menu-button, .lang-button { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }

.hero {
  min-height: clamp(560px, 56vw, 690px);
  background-image:
    linear-gradient(90deg, rgba(9, 34, 56, .40) 0%, rgba(12, 45, 65, .82) 36%, rgba(13, 48, 68, .95) 100%),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1800&q=86");
  background-position: center, 32% center;
  border-bottom: 9px solid #fff8ea;
}
.hero::before { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(45deg, transparent 48%, rgba(255,255,255,.6) 49%, rgba(255,255,255,.6) 50%, transparent 51%), linear-gradient(-45deg, transparent 48%, rgba(255,255,255,.6) 49%, rgba(255,255,255,.6) 50%, transparent 51%);
  background-size: 80px 80px;
}
.hero-inner { z-index: 1; padding: 72px 32px 85px; }
.hero-greeting, .hero-community { display: block; width: fit-content; margin-inline: auto; }
.hero-greeting { color: var(--gold-2); font-size: clamp(24px, 3vw, 38px); font-weight: 900; }
.hero-community { margin-top: 11px; padding: 7px 16px; color: #ffe08a; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 100px; font-weight: 800; }
.hero h1 { max-width: 1000px; margin-top: 24px; font-size: clamp(37px, 6.3vw, 72px); }
.hero p { max-width: 880px; margin: 12px auto 24px; font-size: clamp(17px, 2vw, 23px); }
.hero-actions { max-width: 900px; margin: 26px auto 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.hero-actions .button { min-height: 72px; border-radius: 22px; font-size: clamp(18px, 2vw, 25px); }
.button-primary { background: linear-gradient(110deg, #f5d66c, #dfa928); color: #30250b; box-shadow: 0 10px 23px rgba(227,182,63,.2); }
.button-primary:hover { background: linear-gradient(110deg, #ffe083, #e7b332); }
.button-light { background: #fff; color: var(--navy); box-shadow: 0 10px 25px rgba(0,0,0,.13); }
.search-panel { max-width: 1100px; grid-template-columns: 1fr 1.5fr auto; gap: 8px; padding: 9px; border-radius: 19px; }
.search-field { min-height: 58px; }
.search-field input, .search-field select { min-height: 56px; font-size: 16px; }
.hero .search-submit { min-width: 160px; min-height: 58px; }
.hero-note { gap: 9px 24px; color: #ffdc7e; font-weight: 800; font-size: 14px; }
.hero-note span { gap: 6px; }

.container { max-width: 1400px; }
.section { padding: 46px 0; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { color: var(--navy); font-size: clamp(23px,3vw,34px); }
.section-kicker { display: inline-block; margin-bottom: 5px; color: #a37a21; font-size: 13px; font-weight: 900; }
.category-strip { grid-template-columns: repeat(8,minmax(0,1fr)); border-radius: 22px; box-shadow: 0 8px 24px rgba(20,43,73,.07); }
.category-tile { min-height: 126px; padding: 16px 9px; border-left-color: #eee4d2; font-size: 14px; }
.category-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--gold-pale); font-size: 31px; }
.category-tile:hover, .category-tile.selected { background: #fff9ea; }

.community-services { padding: 22px; margin: 4px 0 20px; border: 1px solid rgba(218,179,91,.38); border-radius: 25px; background: rgba(255,251,241,.78); }
.food-guide { padding: 22px; margin: 4px 0 24px; border: 1px solid #eedfbf; border-radius: 25px; background: linear-gradient(145deg,#fffdf7,#fff8e9); }
.food-guide .listing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.food-guide-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; }
.service-tile { min-width: 0; min-height: 164px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; border: 1px solid #eee2ca; border-radius: 21px; background: white; color: var(--navy); text-align: center; box-shadow: 0 6px 16px rgba(20,43,73,.045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg,#fff3cc,#ffe29a); font-size: 31px; }
.service-tile strong { font-size: 15px; }
.service-tile small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.service-promo { margin-top: 18px; padding: 22px 25px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 2px solid var(--gold); border-radius: 25px; background: linear-gradient(110deg,#183d61,#102a48); color: white; }
.service-promo span { color: #ffdc7e; font-size: 13px; font-weight: 800; }
.service-promo h3 { margin: 4px 0; font-size: clamp(20px,2.8vw,29px); }
.service-promo p { margin: 0; color: rgba(255,255,255,.77); }
.service-page-grid .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.service-results { padding-bottom: 48px; }

.listing-grid { gap: 18px; }
.listing-card { border-radius: 22px; box-shadow: 0 8px 23px rgba(20,43,73,.075); }
.listing-card-media { aspect-ratio: 1.35; }
.listing-card-body { padding: 16px 17px 18px; }
.listing-price { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 12px; border-radius: 14px; background: var(--gold-pale); color: #30250b; }
.favorite-toggle { color: #d83f4b; font-size: 23px; box-shadow: 0 3px 9px rgba(20,43,73,.14); }
.demo-label { color: #423514; background: var(--gold-2); }
.listing-detail { overflow: hidden; gap: 0; border: 2px solid var(--gold); border-radius: 23px; background: var(--navy); box-shadow: var(--shadow); }
.detail-gallery { align-content: start; background: var(--navy); }
.detail-main-photo { aspect-ratio: 1.1; border-radius: 0; }
.detail-info { height: 100%; border: 0; border-radius: 0; background: linear-gradient(165deg,#183d61,#101e31); color: white; }
.detail-info h1, .detail-info h2 { color: white; }
.detail-info .listing-price { color: #30250b; }
.detail-description, .detail-location { color: rgba(255,255,255,.82); }
.detail-divider { border-color: rgba(255,255,255,.19); }
.detail-info .button-dark { background: linear-gradient(110deg,#f5d66c,#dfa928); color: #30250b; }
.detail-info .button-outline { color: white; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); }
.founder-card { background: linear-gradient(130deg,#183d61,#102744); }
.trust-item, .help-card, .surface, .plan-card { box-shadow: 0 5px 18px rgba(20,43,73,.045); }
.page-title h1 { color: var(--navy); }
.filter-bar { border-radius: 19px; box-shadow: 0 5px 18px rgba(20,43,73,.045); }
.site-footer { background: #102744; }
.bottom-nav { border-color: #e5d9be; }

@media (max-width: 1050px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 12px; }
  .nav-link { font-size: 13px; }
  .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 70px; }
  .brand-logo { width: 45px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .brand-stripe { height: 3px; margin-top: 4px; }
  .header-actions .button-primary { min-height: 39px; font-size: 11px; }
  .hero { min-height: 600px; background-position: center, 24% center; }
  .hero-inner { padding: 50px 15px 70px; }
  .hero-greeting { font-size: 25px; }
  .hero-community { font-size: 12px; }
  .hero h1 { margin-top: 19px; font-size: clamp(34px,8.4vw,48px); }
  .hero p { margin: 10px auto 20px; font-size: 15px; }
  .hero-actions { grid-template-columns: 1fr; gap: 9px; margin: 19px auto 12px; }
  .hero-actions .button { min-height: 57px; border-radius: 17px; font-size: 18px; }
  .search-panel { grid-template-columns: 1fr; gap: 3px; padding: 8px; }
  .search-field { min-height: 46px; }
  .search-field + .search-field { border-top: 1px solid var(--line); border-right: 0; }
  .search-field input, .search-field select { min-height: 45px; font-size: 14px; }
  .hero .search-submit { width: 100%; min-height: 48px; min-width: 0; }
  .hero-note { gap: 5px 12px; font-size: 10px; }
  .community-services { margin-inline: -2px; padding: 15px; border-radius: 19px; }
  .food-guide { margin-inline: -2px; padding: 15px; border-radius: 19px; }
  .food-guide .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .service-tile { min-height: 140px; border-radius: 17px; padding: 12px 8px; }
  .service-icon { width: 55px; height: 55px; font-size: 27px; }
  .service-tile strong { font-size: 13px; }
  .service-promo { flex-direction: column; align-items: stretch; padding: 18px; border-radius: 19px; }
  .service-page-grid .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .listing-detail { border-radius: 19px; }
  .detail-main-photo { aspect-ratio: 1.05; }
  .detail-info { border-radius: 0; }
}

@media (max-width: 390px) {
  .header-actions .button-primary { padding-inline: 8px; }
  .hero { min-height: 620px; }
  .hero-community { padding-inline: 11px; }
  .service-grid { gap: 7px; }
  .service-tile small { font-size: 10px; }
}


/* Claude reference refinement: keep the two audience paths and search order obvious. */
.hero-actions { direction: rtl; }
.hero-actions .button { direction: rtl; }
.search-panel { direction: rtl; }
.search-panel > .search-field { direction: rtl; }

@media (max-width: 1050px) and (min-width: 761px) {
  .header-inner { gap: 9px; padding-inline: 16px; }
  .brand { gap: 8px; }
  .brand-logo { width: 49px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .main-nav { gap: 8px; }
  .nav-link { font-size: 11px; }
  .header-actions .button { padding-inline: 9px; font-size: 11px; }
}

@media (max-width: 760px) {
  .main-nav {
    background: #142b49;
    border-color: rgba(255,255,255,.18);
    gap: 4px;
    max-height: min(70vh, 600px);
    overflow-y: auto;
  }
  .main-nav .nav-link {
    min-height: 48px;
    padding-inline: 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-link:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.1);
  }
  .main-nav .nav-link.active {
    color: var(--navy);
    background: var(--gold-2);
  }
  .main-nav .nav-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }
  .hero-actions { direction: rtl; }
  .hero-actions .hero-sell { order: 0; }
  .hero-actions .button-light { order: 1; }
  .search-panel { direction: rtl; }
}

/* Resizable viewport support: outer/inner foldable screens, split views, and side safe areas. */
@media (max-width: 900px) {
  .header-inner {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .mobile-menu-button { display: inline-grid; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    padding: 10px;
    background: #142b49;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    box-shadow: var(--shadow);
    align-items: stretch;
    gap: 4px;
    max-height: min(70vh, 600px);
    overflow-y: auto;
  }
  .main-nav.open { display: grid; }
  .mobile-menu-button:hover,
  .mobile-menu-button[aria-expanded="true"] {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.52);
  }
  .main-nav .nav-link {
    min-height: 48px;
    padding-inline: 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
  }
  .main-nav .nav-link:hover,
  .main-nav .nav-link:focus-visible { color: #fff; background: rgba(255,255,255,.1); }
  .main-nav .nav-link.active { color: var(--navy); background: var(--gold-2); }
  .main-nav .nav-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .header-actions { margin-right: auto; }
  .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .hero-inner {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 760px) {
  .header-inner { padding-left: max(15px, env(safe-area-inset-left, 0px)); padding-right: max(15px, env(safe-area-inset-right, 0px)); }
  .container { padding-left: max(15px, env(safe-area-inset-left, 0px)); padding-right: max(15px, env(safe-area-inset-right, 0px)); }
  .hero-inner { padding-left: max(15px, env(safe-area-inset-left, 0px)); padding-right: max(15px, env(safe-area-inset-right, 0px)); }
  .main-nav { top: calc(100% + 8px); left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); }
  .bottom-nav { padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
  .modal-backdrop { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .toast-region { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; }
}

@media (max-height: 540px) {
  .hero { min-height: 390px; }
  .hero-inner { padding-top: 28px; padding-bottom: 34px; }
  .hero-greeting { font-size: clamp(20px, 5vh, 30px); }
  .hero-community { margin-top: 7px; padding-block: 5px; }
  .hero h1 { margin-top: 13px; font-size: clamp(28px, 7vh, 44px); }
  .hero p { margin: 8px auto 14px; font-size: 15px; }
  .hero-actions { margin: 12px auto; gap: 8px; }
  .hero-actions .button { min-height: 50px; }
}

@supports (height: 100dvh) {
  .initial-loading { min-height: 100dvh; }
  .main-nav { max-height: min(70dvh, 600px); }
}

/* Claude reference layout: compact Paris hero, floating categories and fast paths. */
.site-header .header-inner { min-height: 82px; }
.brand-logo { width: 64px; }
.brand-copy strong { font-size: 22px; }
.brand-copy small { font-size: 13px; }
.main-nav .nav-link { font-size: clamp(15px, 1.18vw, 18px); }
.header-actions .button-primary { min-width: 184px; min-height: 56px; padding-inline: 19px; font-size: 17px; }
.header-login { display: none !important; }
.hero { min-height: 540px; }
.hero-inner { max-width: 1260px; padding: 28px 32px 32px; margin-inline: auto; }
.hero-greeting { font-size: clamp(25px, 2.6vw, 36px); }
.hero-community { margin-top: 7px; padding: 6px 16px; font-size: 14px; }
.hero h1 { max-width: 1320px; margin: 16px auto 7px; font-size: clamp(34px, 3.3vw, 72px); line-height: 1.2; text-wrap: balance; }
.hero p { max-width: 1080px; margin: 8px auto 15px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.hero-actions { max-width: 900px; margin: 18px auto 8px; }
.hero-actions .button { min-height: 64px; border-radius: 20px; }
.hero-home-pill { display: block; width: fit-content; margin: 0 auto 12px; padding: 6px 18px; border: 1px dashed rgba(255,220,126,.8); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-weight: 800; }
.search-panel { max-width: 900px; grid-template-columns: 1.2fr 1.2fr .78fr; gap: 8px; padding: 8px; }
.search-field, .search-field input, .search-field select, .hero .search-submit { min-height: 54px; }
.hero-note { margin-top: 11px; font-size: 13px; }
.home-content { position: relative; }
.home-categories { position: relative; z-index: 3; margin-top: -19px; padding: 0 0 2px; }
.home-categories .category-strip { grid-template-columns: repeat(8, minmax(0,1fr)); border-radius: 22px; }
.home-categories .category-tile { min-height: 124px; }
.quick-filter-row { display: flex; align-items: center; gap: 9px; margin: 22px 0 30px; direction: rtl; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.quick-filter { min-height: 46px; flex: 0 0 auto; padding: 0 19px; border: 1px solid #e6dfd0; border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 800; white-space: nowrap; }
.quick-filter:hover, .quick-filter:focus-visible { border-color: var(--gold); background: #fffaf0; }
.quick-filter.active { border-color: var(--gold); background: var(--gold-2); color: #30250b; }
.seller-start-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 38px; padding: 26px 34px; border-radius: 28px; background: linear-gradient(105deg, #d9343e 0%, #e96332 50%, #eba928 100%); color: #fff; }
.seller-start-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font-size: 12px; font-weight: 900; }
.seller-start-banner h2 { margin: 8px 0 3px; font-size: clamp(21px, 2.7vw, 32px); line-height: 1.35; }
.seller-start-banner p { margin: 0; color: rgba(255,255,255,.9); }
.seller-start-button { min-width: 190px; min-height: 54px; background: #fff; color: var(--navy); font-size: 16px; }
.reference-services { margin: 0 0 34px; }
.reference-service-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.reference-service-grid .service-tile { min-height: 154px; }
.in-feed-seller-banner { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0; padding: 24px 30px; border: 2px solid var(--gold); border-radius: 26px; background: linear-gradient(100deg,#183d61,#102744); color: #fff; }
.in-feed-seller-banner h3 { margin: 7px 0 3px; color: #fff; font-size: clamp(20px,2.4vw,30px); }
.in-feed-seller-banner p { margin: 0; color: rgba(255,255,255,.8); }
.in-feed-seller-banner .button-light { min-width: 175px; min-height: 54px; }
.latest-section { padding-top: 34px; }
.community-directory { margin: 28px 0 34px; padding: 24px; border: 1px solid #eadfc9; border-radius: 26px; background: linear-gradient(150deg,#fffdf7,#fff8e8); }
.directory-tabs { display: flex; gap: 9px; margin: 0 0 18px; }
.directory-tab { min-height: 44px; padding: 0 18px; border: 1px solid #e7dfd2; border-radius: 999px; background: white; color: var(--navy); font-weight: 900; cursor: pointer; }
.directory-tab.active { border-color: var(--gold); background: var(--gold-2); color: #30250b; }
.directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.directory-card { min-width: 0; display: grid; grid-template-columns: 112px minmax(0,1fr); overflow: hidden; border: 1px solid #eee3d0; border-radius: 19px; background: white; box-shadow: 0 5px 17px rgba(20,43,73,.045); }
.directory-card > img { width: 112px; height: 100%; min-height: 180px; object-fit: cover; background: #f2e8d5; }
.directory-card-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 13px; }
.directory-card-body h3 { margin: 0; color: var(--navy); font-size: 15px; line-height: 1.45; }
.directory-card-body p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.directory-city { color: var(--muted); font-size: 11px; }
.directory-card-body .text-link { margin-top: auto; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }
.directory-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.directory-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 17px 20px; border-radius: 19px; background: linear-gradient(110deg,#d9343e,#e97832,#eba928); color: white; }
.directory-promo span { font-size: 12px; font-weight: 900; }
.directory-promo h3 { margin: 5px 0 2px; color: white; font-size: 19px; }
.directory-promo p { margin: 0; color: rgba(255,255,255,.9); font-size: 13px; }
.community-share { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 10px; padding: 25px 30px; border-radius: 24px; background: linear-gradient(110deg,#123b59,#0f2d4a); color: white; }
.community-share h2 { margin: 4px 0; color: white; font-size: clamp(21px,2.5vw,31px); }
.community-share p { margin: 0; color: rgba(255,255,255,.82); }
.whatsapp-share { min-width: 230px; min-height: 54px; background: #24c964; color: white; font-weight: 900; }
.whatsapp-share:hover { background: #1db65a; }

@media (max-width: 900px) {
  .site-header .header-inner { min-height: 70px; }
  .brand-logo { width: 48px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 10px; }
  .header-actions .button-primary { min-width: 0; min-height: 44px; padding-inline: 12px; font-size: 13px; }
  .hero { min-height: auto; }
  .hero-inner { max-width: 850px; padding: 34px 24px 38px; }
  .hero h1 { max-width: 820px; font-size: clamp(34px,5vw,50px); }
  .search-panel { max-width: 760px; }
  .home-categories .category-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .home-categories .category-tile { min-width: 118px; scroll-snap-align: start; }
  .reference-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .site-header .header-inner { min-height: 68px; }
  .brand-logo { width: 44px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .header-actions .button-primary { min-height: 42px; padding-inline: 10px; font-size: 12px; }
  .hero-inner { padding: 36px 15px 34px; }
  .hero-greeting { font-size: 25px; }
  .hero-community { font-size: 12px; }
  .hero h1 { max-width: 560px; margin-top: 17px; font-size: clamp(32px,8.2vw,44px); }
  .hero p { margin: 9px auto 17px; font-size: 15px; }
  .hero-actions { grid-template-columns: 1fr; gap: 9px; margin: 17px auto 10px; }
  .hero-actions .button { min-height: 55px; border-radius: 17px; font-size: 17px; }
  .hero-home-pill { margin-bottom: 9px; font-size: 13px; }
  .search-panel { grid-template-columns: 1fr; max-width: 560px; gap: 2px; }
  .search-field, .search-field input, .search-field select { min-height: 45px; }
  .hero .search-submit { min-height: 47px; width: 100%; }
  .hero-note { gap: 5px 12px; font-size: 10px; }
  .home-categories { margin-top: -14px; }
  .home-categories .category-tile { min-width: 104px; min-height: 112px; }
  .quick-filter-row { margin: 17px 0 24px; gap: 7px; }
  .quick-filter { min-height: 42px; padding-inline: 15px; font-size: 13px; }
  .seller-start-banner { flex-direction: column; align-items: stretch; margin-bottom: 28px; padding: 19px; border-radius: 20px; }
  .seller-start-banner h2 { font-size: 22px; }
  .seller-start-button { width: 100%; }
  .reference-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .reference-service-grid .service-tile { min-height: 132px; }
  .community-directory { margin: 20px 0 25px; padding: 15px; border-radius: 20px; }
  .directory-grid { grid-template-columns: 1fr; gap: 10px; }
  .directory-card { grid-template-columns: 96px minmax(0,1fr); }
  .directory-card > img { width: 96px; min-height: 154px; }
  .directory-card-body { padding: 10px; }
  .directory-card-body h3 { font-size: 14px; }
  .directory-promo, .community-share { flex-direction: column; align-items: stretch; padding: 17px; border-radius: 19px; }
  .directory-promo h3 { font-size: 17px; }
  .whatsapp-share { width: 100%; min-width: 0; }
  .in-feed-seller-banner { flex-direction: column; align-items: stretch; padding: 19px; border-radius: 20px; }
  .in-feed-seller-banner .button-light { width: 100%; }
  .latest-section { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-filter, .seller-start-banner, .in-feed-seller-banner { scroll-behavior: auto; transition-duration: .01ms; }
}

/* Free marketplace and operational cockpit */
.free-access-panel { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 18px 0 22px; padding: 24px; border: 1px solid #e4d4ae; border-radius: 18px; background: #fffaf0; }
.free-access-panel h2 { margin: 3px 0 8px; color: var(--navy); font-size: 25px; }
.free-access-panel p { margin: 0 0 10px; color: #47546a; line-height: 1.75; }
.free-access-panel ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding-inline-start: 20px; color: #33425a; }
.free-access-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--gold-2); color: #34280d; font-size: 27px; font-weight: 900; }
.free-access-panel .button { min-width: 185px; }
.admin-free-panel { grid-template-columns: auto minmax(0,1fr); margin: 15px 0; }
.seller-listing-list, .admin-managed-list, .admin-user-list { display: grid; gap: 11px; margin-top: 15px; }
.seller-listing-row, .admin-user-row { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.seller-listing-row > img { width: 76px; height: 68px; border-radius: 10px; object-fit: cover; background: #f1eee8; }
.seller-listing-copy, .admin-user-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.seller-listing-copy strong, .admin-user-main strong { color: var(--navy); }
.seller-listing-copy small, .admin-user-main small, .admin-user-main a { color: var(--muted); overflow-wrap: anywhere; }
.seller-listing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.status-removed { background: #fdebec; color: #822e35; }
.admin-search { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; align-items: end; gap: 9px; margin: 15px 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfd; }
.admin-search label { color: var(--navy); font-weight: 800; }
.admin-search input { min-height: 42px; padding: 8px 11px; border: 1px solid #c8d0db; border-radius: 10px; background: white; color: #172840; }
.admin-managed-list .admin-managed-listing { align-items: center; }
.admin-user-row { grid-template-columns: minmax(0,1fr) auto auto; }
.admin-user-main a { direction: ltr; }
.account-menu button:focus-visible, .admin-tab:focus-visible, .seller-listing-actions button:focus-visible, .admin-user-row button:focus-visible { outline: 3px solid #1b63ad; outline-offset: 2px; }
.button-whatsapp { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; border-radius: 11px; background: #16834b; color: #fff; font-weight: 900; text-decoration: none; }
.button-whatsapp:hover { background: #11683c; color: #fff; }
.message-from { color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .free-access-panel { grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 17px; }
  .free-access-panel .button { grid-column: 1 / -1; width: 100%; }
  .free-access-panel h2 { font-size: 21px; }
  .free-access-panel ul { display: block; }
  .seller-listing-row { grid-template-columns: 58px minmax(0,1fr); align-items: start; gap: 10px; }
  .seller-listing-row > img { width: 58px; height: 58px; }
  .seller-listing-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .seller-listing-actions .button { flex: 1 1 auto; }
  .admin-user-row { grid-template-columns: minmax(0,1fr) auto; }
  .admin-user-row > button, .admin-user-row > small { grid-column: 1 / -1; justify-self: start; }
  .admin-search { grid-template-columns: 1fr 1fr; }
  .admin-search label { grid-column: 1 / -1; }
  .admin-search input { grid-column: 1 / -1; }
  .admin-row-actions { justify-content: stretch; }
  .admin-row-actions .button { flex: 1 1 125px; }
}
