:root {
  --violet: #5b2ee6;
  --violet-dark: #4420c2;
  --violet-deep: #3a1aa6;
  --violet-soft: #eee8ff;
  --coral: #ff5a3c;
  --coral-soft: #ffe8e2;
  --lime: #c6f135;
  --lime-soft: #f2fccc;
  --sky: #2fb8ff;
  --pink: #ff6fb5;
  --ink: #1c1240;
  --muted: #6b6589;
  --line: #e6e1f5;
  --bg: #f7f5ff;
  --card: #ffffff;
  --danger: #e5322d;
  --radius: 22px;
  --shadow: 0 1px 2px rgb(28 18 64 / 6%), 0 8px 24px rgb(28 18 64 / 8%);
  --font: 'Readex Pro', system-ui, sans-serif;
  --display: 'Lalezar', 'Readex Pro', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--violet); }
h1, h2 { line-height: 1.25; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 2px solid transparent; border-radius: 999px;
  padding: 9px 18px; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn:active { transform: translate(2px, 2px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); }
/* زر "ستيكر" بظل ليموني مثل الشعار */
.btn-pop { box-shadow: 4px 4px 0 var(--lime); border-color: var(--ink); background: var(--violet); }
.btn-pop:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--lime); }
.btn-pop:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--lime); }
.btn-ghost { background: var(--card); color: var(--violet); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); background: var(--violet-soft); }
.btn-glass { background: rgb(255 255 255 / 16%); color: #fff; border-color: rgb(255 255 255 / 30%); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgb(255 255 255 / 26%); }
.btn-near { background: var(--coral-soft); color: #c2361c; }
.btn-near:hover, .btn-near.active { background: var(--coral); color: #fff; }
.btn-near.active .pulse { background: #fff; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 18px; width: 100%; }
.plus { font-size: 20px; line-height: 1; font-weight: 700; }

.pulse {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex: 0 0 auto;
}
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid currentColor; opacity: .5; animation: ping 1.6s ease-out infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--violet-soft); color: var(--violet); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--violet); color: #fff; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; background: var(--card);
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 40px; width: auto; }
.tagline {
  flex: 1; color: var(--muted); font-size: 14px; font-weight: 500;
  padding-inline-start: 14px; border-inline-start: 2px solid var(--line);
}

.demo-banner {
  background: var(--lime-soft); color: #4d5c0c; text-align: center;
  padding: 6px 16px; font-size: 13px; font-weight: 500;
}
.demo-banner.inline { border-radius: 14px; text-align: start; margin: 0 0 18px; border: 1px dashed #b7d63a; }

/* ---------- صفحة التصفح: الخريطة فوق والقائمة تحت ---------- */
.screen-browse { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

.filters {
  display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.filter-row { display: flex; gap: 8px; align-items: center; }
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }

input, select, textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 8px 14px; min-height: 44px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #a39fba; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft);
}
select:disabled { background: #f3f1fa; color: var(--muted); }
.filters select { width: auto; flex: 0 0 auto; border-radius: 999px; padding-inline: 14px 32px; min-height: 42px; font-size: 14px; }
.filters .btn { min-height: 42px; flex: 0 0 auto; }

.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search svg {
  position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round;
}
.search input { border-radius: 999px; padding-inline-start: 42px; min-height: 42px; background: var(--bg); border-color: transparent; }
.search input:focus { background: var(--card); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 5px 14px 5px 12px; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--violet); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--lime); }
.chip:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.split { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.map { flex: 1 1 50%; min-height: 0; z-index: 0; background: #e8e4f4; }
/* القائمة كورقة سفلية بزوايا دائرية تتداخل قليلًا مع الخريطة */
.sheet {
  flex: 1 1 50%; min-height: 0; overflow-y: auto; position: relative; z-index: 1;
  margin-top: -24px; border-radius: 28px 28px 0 0; background: var(--bg);
  box-shadow: 0 -8px 30px rgb(28 18 64 / 14%);
  padding: 0 16px 28px;
}
.sheet-head {
  position: sticky; top: 0; z-index: 2; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 0 -16px; padding: 22px 16px 12px;
}
.grabber {
  position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 44px; height: 5px; border-radius: 99px; background: #d5cfea;
}
.sheet-head h1 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0; line-height: 1.1; }
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.legend { display: flex; gap: 12px; font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-store { background: var(--violet); }

.status {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  color: var(--muted); padding: 28px 16px;
}
.status .big { font-size: 44px; line-height: 1; }
.status strong { color: var(--ink); font-size: 17px; }
.status .btn { margin-top: 8px; }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.card {
  display: flex; flex-direction: column; padding: 16px; background: var(--card);
  border: 2px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
  animation: pop-in .35s both;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(28 18 64 / 6%), 0 14px 32px rgb(28 18 64 / 12%); }
.card.selected { border-color: var(--ink); box-shadow: 5px 5px 0 var(--lime); }
.card:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.card-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: 0 0 54px; width: 54px; height: 54px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; font-family: var(--display); font-size: 28px; line-height: 1;
  padding-top: 4px; background: var(--violet-soft); color: var(--violet);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; margin-top: -4px; }
.avatar-violet { background: var(--violet); color: #fff; }
.avatar-coral { background: var(--coral); color: #fff; }
.avatar-lime { background: var(--lime); color: var(--ink); }
.avatar-sky { background: var(--sky); color: #fff; }
.avatar-pink { background: var(--pink); color: #fff; }
.card-head { flex: 1; min-width: 0; }
.card-head h2 { font-size: 17px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.badge { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; align-self: flex-start; }
.badge-distance { background: var(--lime); color: var(--ink); }
.badge-pending { background: var(--coral-soft); color: #c2361c; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag { font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); }
.desc {
  margin: 10px 0 0; font-size: 14.5px; color: #3d355e;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.delivery { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.social { display: flex; gap: 6px; margin-inline-start: auto; }

/* ---------- الخريطة ---------- */
.geo-note {
  position: absolute; z-index: 500; top: 12px; left: 50%; translate: -50% 0;
  width: max-content; max-width: calc(100% - 120px); padding: 8px 16px; border-radius: 16px;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; text-align: center;
  box-shadow: 3px 3px 0 var(--lime), 0 8px 24px rgb(0 0 0 / 20%); animation: pop-in .25s both;
}
.geo-warn { background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--coral), 0 8px 24px rgb(0 0 0 / 18%); }
@media (max-width: 640px) { .geo-note { max-width: calc(100% - 80px); font-size: 13px; } }

.soft-tiles { filter: saturate(.55) brightness(1.03) contrast(.96); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom { border: none !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-control-zoom a { color: var(--ink) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.leaflet-control-attribution { border-radius: 0 0 0 10px; font-size: 10px; }
.leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 16px; }

.pin { transition: transform .15s; }
.pin:hover { transform: scale(1.1); z-index: 1000 !important; }
.pin-body {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--violet); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(28 18 64 / 35%);
}
.pin-body i { transform: rotate(45deg); font-style: normal; font-size: 17px; line-height: 1; }
.user-dot span {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky); border: 4px solid #fff; box-shadow: 0 0 0 8px rgb(47 184 255 / 25%), 0 2px 6px rgb(0 0 0 / 25%);
}
.cluster span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  border: 3px solid var(--lime); box-shadow: 0 0 0 6px rgb(198 241 53 / 35%);
}
.popup { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.popup strong { font-size: 15px; }
.popup span { color: var(--muted); font-size: 13px; }
.popup a { font-weight: 600; }

/* ---------- صفحة إضافة متجر ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #7a4dff 0%, var(--violet) 45%, var(--violet-deep) 100%);
  padding: 14px 16px 64px;
}
.hero-nav { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-body { position: relative; z-index: 1; max-width: 860px; margin: 28px auto 0; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 64px); margin: 8px 0 6px; line-height: 1.1; }
.hero p { margin: 0; max-width: 520px; font-size: 17px; opacity: .92; }
.sticker {
  display: inline-block; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 4px 14px; border-radius: 999px; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink);
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-lime { width: 220px; height: 220px; background: var(--lime); left: -60px; bottom: -110px; opacity: .9; }
.blob-coral { width: 90px; height: 90px; background: var(--coral); left: 120px; top: 40px; opacity: .85; }

.container { max-width: 860px; margin: -36px auto 0; padding: 0 16px 56px; position: relative; z-index: 1; }

fieldset {
  border: none; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  padding: 20px 20px 22px; margin: 0 0 18px; min-width: 0;
}
legend {
  float: right; width: 100%; display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 400; font-size: 24px; padding: 0; margin-bottom: 14px;
}
legend + * { clear: both; }
.step {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--lime); color: var(--ink); font-family: var(--font); font-weight: 700; font-size: 16px;
  transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--ink);
}
.private { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; clear: both; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; margin-top: 16px; }
.grid .field.full { margin-top: 0; }
.field > span { font-weight: 600; font-size: 14.5px; }
.field b { color: var(--coral); font-weight: 700; }
.field small, .field > span small { font-weight: 400; color: var(--muted); }
input[dir="ltr"]::placeholder { text-align: right; }
form.validated :is(input, select, textarea):invalid { border-color: var(--danger); background: #fff6f5; }

.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { cursor: pointer; }
.toggle { position: relative; }
.toggle input, .switch input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.toggle span {
  display: inline-block; padding: 7px 16px; border-radius: 999px; border: 2px solid var(--line);
  font-size: 14.5px; font-weight: 500; transition: all .15s; user-select: none;
}
.toggle:hover span { border-color: var(--violet); }
.toggle input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 3px 3px 0 var(--lime); }
.toggle input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; margin-top: 12px; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--violet); flex: 0 0 auto; }

.switch { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; margin-top: 16px; }
.switch .track {
  flex: 0 0 46px; height: 26px; border-radius: 999px; background: #ddd8ee; position: relative; transition: background .2s;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: right .2s;
}
.switch input:checked + .track { background: var(--violet); }
.switch input:checked + .track::after { right: 23px; }
.switch input:focus-visible + .track { outline: 3px solid var(--violet-soft); }

.more { margin-top: 18px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--violet); margin-bottom: 12px; }

.segmented { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 14px; clear: both; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: all .15s; }
.segmented input:checked + span { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--lime); }
.segmented input:focus-visible + span { outline: 3px solid var(--violet); }

.hint { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.picker-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.or { color: var(--muted); font-size: 14px; }
.paste { display: flex; gap: 6px; flex: 1 1 260px; }
.paste input { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 999px; }
.picker-map {
  height: 360px; border-radius: 18px; border: 2px solid var(--line); z-index: 0; cursor: crosshair; overflow: hidden;
}
.picker-map.invalid { border-color: var(--danger); }
.coords { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.coords.ok { color: var(--violet); font-weight: 600; }
.coords.ok::before { content: '✅ '; }
.error { color: var(--danger); font-size: 14px; font-weight: 500; margin: 6px 0; }
.terms { margin: 4px 4px 18px; }

.hp {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); opacity: 0;
}

.success {
  position: relative; overflow: hidden; text-align: center; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 20px;
}
.success-icon { font-size: 64px; line-height: 1; margin-bottom: 10px; animation: bounce 1s ease 2; }
.success h2 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0 0 8px; }
.success p { color: var(--muted); margin: 0 auto 22px; max-width: 420px; }
@keyframes bounce { 50% { transform: translateY(-12px) rotate(-8deg); } }
.confetti i {
  position: absolute; top: -12px; width: 10px; height: 16px; border-radius: 3px; opacity: 0;
  animation: fall 2.4s ease-in forwards;
}
.confetti i:nth-child(odd) { background: var(--lime); }
.confetti i:nth-child(even) { background: var(--coral); }
.confetti i:nth-child(3n) { background: var(--violet); }
.confetti i:nth-child(1) { left: 8%; animation-delay: .05s; }
.confetti i:nth-child(2) { left: 18%; animation-delay: .3s; }
.confetti i:nth-child(3) { left: 28%; animation-delay: .15s; }
.confetti i:nth-child(4) { left: 38%; animation-delay: .45s; }
.confetti i:nth-child(5) { left: 48%; animation-delay: .1s; }
.confetti i:nth-child(6) { left: 58%; animation-delay: .35s; }
.confetti i:nth-child(7) { left: 68%; animation-delay: .2s; }
.confetti i:nth-child(8) { left: 78%; animation-delay: .5s; }
.confetti i:nth-child(9) { left: 88%; animation-delay: .25s; }
.confetti i:nth-child(10) { left: 94%; animation-delay: .4s; }
@keyframes fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(340px) rotate(540deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- الجوال ---------- */
@media (max-width: 640px) {
  .topbar { padding: 8px 16px; }
  .tagline { display: none; }
  .topbar .btn { margin-inline-start: auto; }
  .brand img { height: 34px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .search { flex: 0 0 auto; }
  #nearMe { order: -1; }
  .legend { display: none; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  fieldset { padding: 16px 16px 18px; }
  legend { font-size: 22px; }
  .picker-map { height: 300px; }
  .hero { padding-bottom: 56px; }
  .hero-body { margin-top: 18px; }
  .hero p { font-size: 15.5px; }
  .blob-lime { width: 160px; height: 160px; left: -50px; bottom: -90px; }
  .blob-coral { width: 54px; height: 54px; left: 30px; top: 70px; }
  .segmented span { padding: 8px 14px; font-size: 14px; }
}

/* ---------- نوع النشاط والأسعار ---------- */
.entity-field { margin-bottom: 18px; }
.entity-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.entity-card { position: relative; cursor: pointer; }
.entity-card input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.entity-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--card);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.entity-icon { font-size: 26px; line-height: 1.2; }
.entity-body strong { font-size: 16px; }
.entity-body small { color: var(--muted); font-size: 13px; white-space: pre-line; }
.entity-card:hover .entity-body { border-color: var(--violet); }
.entity-card input:checked + .entity-body { border-color: var(--ink); background: var(--violet-soft); box-shadow: 4px 4px 0 var(--lime); }
.entity-card input:focus-visible + .entity-body { outline: 3px solid var(--violet); outline-offset: 2px; }
form.validated .entity-card input:invalid + .entity-body { border-color: var(--danger); }
.pricing-note {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--lime-soft);
  border: 1px dashed #b7d63a; color: #3f4d0a; font-size: 13.5px; line-height: 1.7;
}
.opt.req { color: var(--coral); font-weight: 700; }
.role-field { margin-bottom: 14px; }
.role-field .segmented { margin: 4px 0 0; }
.socials-block .hint { margin: 0 0 4px; }
.socials-block .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.disclaimer {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--card); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--coral);
}
.disclaimer strong { display: block; margin-bottom: 4px; }
.disclaimer p { margin: 0; font-size: 14px; color: #3d355e; line-height: 1.8; }

.tag-entity { background: #fff3d6; color: #8a5a00; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 82%); padding: 32px 20px 20px; }
.site-footer.in-sheet { margin: 28px -16px -28px; border-radius: 28px 28px 0 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.9; max-width: 520px; }
.footer-side { display: flex; flex-direction: column; gap: 18px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 14.5px; width: fit-content; }
.footer-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgb(255 255 255 / 10%); flex: 0 0 auto; transition: background .15s;
}
.footer-reach { font-size: 13px; color: rgb(255 255 255 / 60%); margin-top: 4px; }
.footer-icons { display: flex; gap: 10px; }
.footer-icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgb(255 255 255 / 10%); color: #fff; transition: background .15s, color .15s, transform .15s;
}
.footer-icon-btn:hover, .footer-icon-btn:focus-visible { background: var(--lime); color: var(--ink); transform: translateY(-2px); outline: none; }
.footer-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--lime); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer {
  max-width: 1100px; margin: 24px auto 0; padding: 12px 16px; border-radius: 14px;
  background: rgb(255 255 255 / 6%); font-size: 12.5px; line-height: 1.8; color: rgb(255 255 255 / 70%);
}
.footer-disclaimer strong { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 16px auto 0; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 12.5px; color: rgb(255 255 255 / 55%);
}

@media (max-width: 640px) {
  .entity-cards { grid-template-columns: 1fr; }
  .socials-block .grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- المواقع المتعددة في النموذج ---------- */
.loc-intro { margin: 0 0 12px; font-size: 14.5px; color: #3d355e; line-height: 1.8; }
.loc-intro strong { color: var(--ink); }
.loc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.loc-tab {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 12px;
}
.loc-tab b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--violet-soft); color: var(--violet); font-size: 12.5px;
}
.loc-tab.active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--lime); }
.loc-tab.active b { background: var(--lime); color: var(--ink); }
.loc-tab.empty:not(.active) { border-style: dashed; color: var(--muted); }
.loc-tab.add { border-style: dashed; color: var(--violet); font-weight: 600; }
.loc-tab.add:hover { border-color: var(--violet); background: var(--violet-soft); }
.loc-remove { font-size: 11px; opacity: .7; padding: 0 2px; }
.loc-remove:hover { opacity: 1; color: var(--coral); }
.search-box { position: relative; }
.search-results {
  position: absolute; z-index: 600; top: calc(100% + 6px); inset-inline: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--lime), var(--shadow);
  max-height: 280px; overflow-y: auto;
}
.search-results button {
  display: block; width: 100%; text-align: start; font: inherit; font-size: 14px; color: var(--ink);
  background: none; border: none; border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.search-results button:hover, .search-results button:focus-visible { background: var(--violet-soft); outline: none; }
.more-locs { display: inline-block; margin-inline-start: 4px; font-size: 12px; font-weight: 600; color: var(--violet); }

/* ---------- طلب تفعيل الموقع ---------- */
.status.gate { padding: 36px 16px; max-width: 520px; margin: 0 auto; }
.status.gate strong { font-size: 19px; }
.status.gate .btn { margin-top: 10px; padding: 11px 26px; font-size: 16px; }
.gate-or { margin-top: 10px; font-size: 14px; }
.link-btn { border: none; background: none; padding: 0; font: inherit; color: var(--violet); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- حساب صاحب المتجر ---------- */
.btn-account { margin-inline-start: auto; }
.topbar .btn-account + .btn { margin-inline-start: 0; }
.hero-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-rules { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules li {
  font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: #f3f1fa; color: var(--muted);
}
.pw-rules li::before { content: '○ '; }
.pw-rules li.ok { background: var(--lime-soft); color: #3f5209; }
.pw-rules li.ok::before { content: '✓ '; font-weight: 700; }
.edit-notice {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #fff3d6; color: #6b4700;
  border: 1px dashed #e0b44a; font-size: 14px;
}
.ok-msg { color: #3f7d10; font-size: 14px; font-weight: 500; margin: 6px 0; }

.hero-slim { padding-bottom: 54px; }
.hero-slim .hero-body { margin-top: 14px; }
.hero-slim h1 { font-size: clamp(34px, 6vw, 48px); }
.screen-account .container { margin-top: -30px; }
.screen-account .panel { margin-bottom: 16px; }
.owner-login { max-width: 460px; margin: 0 auto 16px; }
.owner-login h2 { margin: 0 0 14px; }
.owner-login .field { margin-bottom: 12px; }
.owner-login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.owner-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 10px 14px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px;
}
.owner-bar select { width: auto; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.owner-bar .btn { margin-inline-start: auto; }
.owner-status {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 16px;
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border-inline-start: 6px solid var(--violet);
}
.owner-status.status-approved { border-color: #7ac70c; }
.owner-status.status-pending { border-color: #e0b44a; }
.owner-status.status-suspended, .owner-status.status-rejected { border-color: var(--coral); }
.owner-status-icon { font-size: 28px; line-height: 1; }
.owner-status strong { font-size: 16.5px; }
.owner-status p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.owner-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin: 4px 0 8px; }
.owner-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.owner-info { margin: 0; }
.owner-info > div { display: grid; grid-template-columns: 9em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.owner-info dt { color: var(--muted); }
.owner-info dd { margin: 0; overflow-wrap: anywhere; }
.edit-state { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.edit-state.pending { background: #fff3d6; color: #6b4700; }
.edit-state.rejected { background: var(--coral-soft); color: #b8331a; }
.edit-state.approved { background: var(--lime-soft); color: #3f5209; }
.owner-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 36px 20px; }
.owner-empty .big { font-size: 44px; }

@media (max-width: 640px) {
  .btn-account span { display: none; }
  .owner-tiles { grid-template-columns: 1fr 1fr !important; }
  .owner-bars { grid-template-columns: 1fr; }
  .owner-info > div { grid-template-columns: 7em 1fr; }
}

/* ---------- مجالات المتجر ---------- */
.cat-toggles .toggle span { font-size: 14px; padding: 6px 14px; }
.cat-toggles .toggle.primary input:checked + span { box-shadow: 3px 3px 0 var(--amber, #e0a03a), 0 0 0 2px var(--lime); }
