:root {
  /* palette taken from the reference page: coral orange on cream, white cards, near-black text */
  --bg: #fcf4ec;
  --phone-bg: #fcf8f4;
  --surface: #ffffff;
  --surface-alt: #fbf1e7;
  --text: #1c1c20;
  --text-muted: #6b6b70;
  --border: #efe4d8;
  --primary: #f48050;
  --primary-deep: #c4552b;
  --on-primary: #1c1c20;
  --success: #1e7e34;
  --success-bg: #e6f4ea;
  --warning: #8a6300;
  --warning-bg: #fff3cd;
  --danger: #b71c1c;
  --danger-bg: #fdecea;
  --info: #1565c0;
  --info-bg: #e8f0fb;
  --shadow: 0 24px 60px -20px rgba(196, 85, 43, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #f48050;
    --primary-deep: #c4552b;
    --bg: #0b0b0d;
    --phone-bg: #101012;
    --surface: #18181b;
    --surface-alt: #202024;
    --text: #f5f5f7;
    --text-muted: #b3b3bb;
    --border: #34343a;
    --on-primary: #1c1c20;
    --success: #4caf6d;
    --success-bg: #16281c;
    --warning: #e0b23d;
    --warning-bg: #2c2410;
    --danger: #ff6b78;
    --danger-bg: #2a1417;
    --info: #6fa8e0;
    --info-bg: #14202c;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  }
}

:root[data-theme="dark"] {
  --primary: #f48050;
  --primary-deep: #c4552b;
  --bg: #0b0b0d;
  --phone-bg: #101012;
  --surface: #18181b;
  --surface-alt: #202024;
  --text: #f5f5f7;
  --text-muted: #b3b3bb;
  --border: #34343a;
  --on-primary: #1c1c20;
  --success: #4caf6d;
  --success-bg: #16281c;
  --warning: #e0b23d;
  --warning-bg: #2c2410;
  --danger: #ff6b78;
  --danger-bg: #2a1417;
  --info: #6fa8e0;
  --info-bg: #14202c;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}

/* Deals page: a browsable list first, with every distance included. */
.deals-page { max-width: 940px; margin: 0 auto; padding: 2px 0 30px; color: var(--text); }
.deals-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; border-radius:22px; color:#fff; background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.18),transparent 38%),linear-gradient(125deg,#c4552b,#f48050 70%,#dc6954); box-shadow:0 12px 28px rgba(196,85,43,.16); }
.deals-hero h1 { margin:8px 0 5px; font-size:clamp(23px,4vw,31px); line-height:1.15; }
.deals-hero p { margin:0; opacity:.88; font-size:14px; }
.deals-kicker { font-size:12px; font-weight:700; opacity:.9; }
.deals-hero-art { display:grid; place-items:center; flex:none; width:66px; height:66px; border-radius:22px; background:rgba(255,255,255,.16); font-size:37px; transform:rotate(-8deg); }
.deals-segments { display:flex; gap:6px; padding:5px; margin:15px 0 10px; border-radius:15px; background:var(--surface-alt); }
.deals-segments button { flex:1; min-height:42px; border:0; border-radius:11px; background:transparent; color:var(--text-muted); font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.deals-segments button.on { color: var(--on-primary); background:var(--primary); box-shadow:0 4px 12px rgba(244,128,80,.2); }
.deals-search { display:flex; align-items:center; gap:9px; min-height:50px; padding:0 12px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.deals-search>span { color:var(--primary); font-size:25px; line-height:1; }
.deals-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--text); font:inherit; }
.deals-search>button { width:36px; height:36px; border:0; border-radius:11px; background:var(--surface-alt); color:var(--primary); font-size:23px; cursor:pointer; }
.deals-filter-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:10px; padding:12px 14px; border:1px solid var(--border); border-radius:13px; background:var(--surface); color:var(--text); font:inherit; font-weight:700; text-align:start; cursor:pointer; }
.deals-filter-toggle b { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-inline-start:5px; border-radius:20px; color: var(--on-primary); background:var(--primary); font-size:11px; }
.deals-quick-filters { display:flex; gap:7px; overflow:auto; padding:10px 1px 2px; scrollbar-width:none; }
.deals-quick-filters button { flex:none; padding:8px 11px; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text-muted); font:inherit; font-size:12px; white-space:nowrap; cursor:pointer; }
.deals-filter-panel { margin-top:8px; padding:13px; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:0 8px 24px rgba(50,20,20,.05); }
.deals-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.deals-filter-grid label,.deals-filter-footer label { display:grid; gap:5px; color:var(--text-muted); font-size:12px; font-weight:700; }
.deals-filter-grid input,.deals-filter-grid select,.deals-filter-footer select { width:100%; min-height:40px; padding:7px 9px; border:1px solid var(--border); border-radius:10px; background:var(--phone-bg); color:var(--text); font:inherit; font-size:13px; }
.deals-filter-footer { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-top:12px; padding-top:10px; border-top:1px solid var(--border); }
.deals-results-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 1px 10px; }
.deals-results-head>div { display:grid; gap:3px; }
.deals-results-head b { font-size:15px; }
.deals-results-head small { color:var(--text-muted); font-size:11px; }
.deals-results-head>button { flex:none; padding:9px 12px; border:1px solid var(--primary); border-radius:11px; background:var(--surface); color:var(--primary); font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.deals-list { display:grid; gap:10px; }
.deal-shop-card,.deal-product-card { position:relative; display:flex; align-items:stretch; gap:12px; min-height:128px; padding:12px; border:1px solid var(--border); border-radius:17px; background:var(--surface); box-shadow:0 5px 16px rgba(42,20,20,.045); cursor:pointer; transition:transform .16s ease,box-shadow .16s ease; }
.deal-shop-card:hover,.deal-product-card:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(42,20,20,.09); }
.deal-shop-icon { display:grid; place-items:center; flex:none; width:86px; min-height:96px; border-radius:13px; background:linear-gradient(145deg,#f9e6dc,#f2c7b8); font-size:37px; }
.deal-shop-copy,.deal-product-copy { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; gap:4px; padding:1px 24px 1px 0; }
.deal-shop-copy>small,.deal-product-copy>small { color:var(--text-muted); font-size:11px; }
.deal-shop-copy>strong,.deal-product-copy>strong { max-width:100%; overflow:hidden; color:var(--text); font-size:16px; text-overflow:ellipsis; white-space:nowrap; }
.deal-shop-off { color:var(--primary); font-size:13px; }
.deal-shop-off b { display:inline-block; padding:1px 6px; border-radius:10px; background:var(--danger-bg); }
.deal-shop-copy>p { margin:0; color:var(--text-muted); font-size:12px; }
.deal-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; color:var(--text-muted); font-size:11px; }
.deal-meta span { overflow:hidden; max-width:100%; text-overflow:ellipsis; white-space:nowrap; }
.deal-card-link { margin-top:auto; padding-top:5px; color:var(--primary); font-size:12px; font-weight:800; }
.deal-heart { position:absolute; top:13px; inset-inline-end:13px; color:var(--primary); font-size:22px; }
.deal-product-image { position:relative; flex:none; width:104px; overflow:hidden; border-radius:13px; background:var(--surface-alt); }
.deal-product-image .store-pic { height:100%; min-height:112px; }
.deal-product-image>b { position:absolute; top:6px; inset-inline-start:6px; padding:4px 7px; border-radius:10px; color: var(--on-primary); background:var(--primary); font-size:11px; }
.deal-product-copy { padding-inline-start:0; }
.deal-product-copy>p { margin:0; color:var(--primary); font-weight:800; font-size:14px; }
.deal-product-copy>p s { margin-inline-start:5px; color:var(--text-muted); font-size:12px; font-weight:400; }
.deals-empty,.deals-loading { display:grid; place-items:center; gap:8px; min-height:220px; padding:22px; border:1px dashed var(--border); border-radius:17px; color:var(--text-muted); text-align:center; }
.deals-empty>span { font-size:38px; }
.deals-empty>b { color:var(--text); font-size:17px; }
.deals-empty>p,.deals-loading>p { margin:0; font-size:13px; }
@media(max-width:560px) { .deals-page { padding-top:0; } .deals-hero { padding:17px; border-radius:18px; } .deals-hero-art { width:54px; height:54px; font-size:30px; } .deals-filter-grid { grid-template-columns:1fr; } .deal-shop-icon { width:70px; } .deal-product-image { width:88px; } .deal-shop-card,.deal-product-card { gap:9px; padding:10px; } }

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Tajawal", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px 16px 56px;
}

.page-head {
  max-width: 420px;
  text-align: center;
  direction: rtl;
}

.page-head .brand {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-wrap: balance;
}

.page-head .brand .mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-logo {
  display: block;
  width: 130px !important;
  max-width: 130px !important;
  height: auto;
  margin: 8px auto 14px;
  object-fit: contain;
}
.auth-logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-logo.on-light { display: none; }
  :root:not([data-theme="light"]) .auth-logo.on-dark { display: block; }
}
:root[data-theme="dark"] .auth-logo.on-light { display: none; }
:root[data-theme="dark"] .auth-logo.on-dark { display: block; }

.page-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-bg);
}

/* ---------- phone frame ---------- */

.device {
  width: 390px;
  max-width: calc(100vw - 24px);
  height: 844px;
  max-height: 86vh;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(180deg, #26262a, #0b0b0d);
  box-shadow: var(--shadow);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--phone-bg);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.statusbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.statusbar .notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #0b0b0d;
  border-radius: 12px;
}

.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 100px;
  scrollbar-width: thin;
}

.screen-body.no-pad {
  padding: 0 0 100px;
}

.screen-body::-webkit-scrollbar {
  width: 5px;
}

.screen-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 4px calc(env(safe-area-inset-bottom, 0) + 8px);
}

.tabbar button {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
}

.tabbar button svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.8;
}

.tabbar button.active {
  color: var(--primary);
}

.tabbar button.active svg {
  stroke: var(--primary);
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: "Cairo", "Tajawal", sans-serif;
  margin: 0;
  text-wrap: balance;
}

.screen-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.screen-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 10px;
}

/* ---------- form controls ---------- */

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 13px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: var(--on-primary);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn.small {
  width: auto;
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 10px;
}

.btn.icon {
  width: auto;
  padding: 8px 10px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* ---------- cards & lists ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  margin-bottom: 10px;
}

.card.clickable {
  cursor: pointer;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.list-row .meta {
  flex: 1;
  min-width: 0;
}

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

.title-line strong {
  font-size: 14.5px;
  font-weight: 700;
}

.muted {
  color: var(--text-muted);
  font-size: 12px;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.price.strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: var(--surface-alt); color: var(--text-muted); }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 10px;
}

.error-banner {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  margin: 10px 0;
  line-height: 1.6;
}

.success-banner {
  background: var(--success-bg);
  color: var(--success);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  margin: 10px 0;
  line-height: 1.6;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.center-pad {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ---------- membership card ---------- */

.member-card {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(155deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(196, 85, 43, 0.55);
}

.member-card .label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  opacity: 0.85;
  text-transform: uppercase;
  font-weight: 700;
}

.member-card .member-number {
  font-size: 19px;
  font-weight: 800;
  margin: 3px 0 14px;
  font-variant-numeric: tabular-nums;
}

.qr-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 14px;
}

.qr-wrap img, .qr-wrap canvas {
  display: block;
}

.otp-code {
  text-align: center;
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.countdown {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ---------- quantity stepper ---------- */

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px;
}

.stepper button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.stepper span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- toggle switch ---------- */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.switch .track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  right: 3px;
  transition: transform 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.switch input:checked + .track {
  background: var(--primary);
}

.switch input:checked + .track::before {
  transform: translateX(-18px);
}

/* ---------- misc ---------- */

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.scanner-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.scanner-frame video {
  width: 100%;
  display: block;
}

/* ---- map-first discover, place page, guests ---- */
.map-search { position: relative; margin-bottom: 8px; z-index: 20; }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 4px 14px; box-shadow: 0 6px 18px -8px rgba(196, 85, 43, 0.35); }
.searchbox input { flex: 1; border: none; outline: none; background: transparent; padding: 10px 4px; font: inherit; color: var(--text); min-width: 0; }
.searchbox .clear-x { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; }
.login-pill { background: var(--primary); color: var(--on-primary); border: none; border-radius: 20px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.suggest-box { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.suggest-head { padding: 8px 14px; font-size: 12px; color: var(--text-muted); }
.suggest-item { padding: 11px 14px; cursor: pointer; border-top: 1px solid var(--border); }
.suggest-item:hover { background: var(--surface-alt); }
.map-wrap { position: relative; height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.map-fab { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); font-size: 20px; cursor: pointer; }
.area-btn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; background: var(--surface); color: var(--primary); border: none; border-radius: 22px; padding: 9px 16px; font: inherit; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); cursor: pointer; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
.heart { background: none; border: none; font-size: 22px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px 4px; }
.heart.on { color: var(--primary); }
.place-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.place-actions { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.place-actions a, .place-actions button { flex: 1; min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.place-actions span { font-size: 20px; }
.place-actions button.on { background: var(--primary); color: var(--on-primary); }
.place-row { padding: 10px 2px; color: var(--text); }
.hours-table .hours-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); }
.hours-table .hours-line:last-child { border-bottom: none; }
.hours-table .hours-line.today { font-weight: 800; color: var(--primary); }
.guest-prompt { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 8px 0; }
.guest-ico { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 14px; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); }
.guest-prompt ul { list-style: none; padding: 0; margin: 4px 0 22px; text-align: right; color: var(--text); }
.guest-prompt li { padding: 4px 0; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #1c1413; color: #fff; padding: 10px 18px; border-radius: 22px; z-index: 9999; font-size: 14px; }

/* ================= modern pass: full-screen map with floating controls ================= */

.screen-body.map-mode { padding: 0; overflow: hidden; position: relative; }
.mapfull { position: absolute; inset: 0; overflow: hidden; }
#discover-map-slot { position: absolute; inset: 0; z-index: 0; isolation: isolate; }

.map-top { position: absolute; top: 10px; inset-inline: 10px; z-index: 30; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-top .map-search { margin: 0; }
.map-top .searchbox { box-shadow: 0 10px 28px -10px rgba(30, 10, 10, 0.55); border-color: transparent; padding: 3px 14px; }
.float-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.float-chips::-webkit-scrollbar { display: none; }
.float-chips .chip { border-color: transparent; background: var(--surface); color: var(--text); box-shadow: 0 6px 16px -6px rgba(30, 10, 10, 0.5); }
.float-chips .chip.active { background: var(--primary); color: var(--on-primary); }
.float-note { align-self: flex-start; background: var(--surface); color: var(--text); border-radius: 14px; padding: 8px 12px; font-size: 12px; box-shadow: 0 6px 16px -6px rgba(30, 10, 10, 0.5); max-width: 92%; }

.mapfull .area-btn { top: 128px; }
.mapfull .map-fab { bottom: calc(var(--sheet-h, 232px) + 14px); inset-inline-start: 12px; transition: bottom 0.25s; }
.mapfull .leaflet-top.leaflet-right { top: 124px; }
.mapfull .leaflet-bar { border: none; box-shadow: 0 6px 16px -6px rgba(30, 10, 10, 0.5); border-radius: 14px; overflow: hidden; }
.mapfull .leaflet-bar a { color: var(--primary); }

.sheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 40; height: var(--sheet-h, 232px); display: flex; flex-direction: column; background: var(--phone-bg); border-radius: 28px 28px 0 0; box-shadow: 0 -14px 40px -12px rgba(30, 10, 10, 0.45); transition: height 0.25s ease; }
.sheet.dragging { transition: none; }
.sheet-handle { padding: 10px 0 6px; display: flex; justify-content: center; cursor: grab; touch-action: none; }
.sheet-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--border); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 8px; }
.sheet-head strong { font-family: "Cairo", "Tajawal", sans-serif; font-size: 16px; }
.sheet-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 8px; scrollbar-width: none; }
.sheet-chips::-webkit-scrollbar { display: none; }
.sheet-list { flex: 1; overflow-y: auto; padding: 4px 14px 110px; scrollbar-width: none; }
.sheet-list::-webkit-scrollbar { display: none; }

.place-card { border-radius: 20px; padding: 14px; }
.place-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.place-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.place-card-actions .btn { flex: 1; width: auto; }

/* floating, glassy bottom navigation */
.tabbar { left: 12px; right: 12px; bottom: 12px; z-index: 100; border: 1px solid var(--border); border-radius: 26px; padding: 6px 6px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 34px -12px rgba(30, 10, 10, 0.55); }
.tabbar button { border-radius: 20px; padding: 7px 2px; transition: background 0.2s; }
.tabbar button.active { background: color-mix(in srgb, var(--primary) 12%, transparent); }
/* the auto-responder: the one button that stands out, raised in the middle of the bar */
.tabbar button.hero { color: var(--primary); font-weight: 700; }
.tabbar button.hero svg { width: 40px; height: 40px; padding: 9px; margin-top: -22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-deep) -40%, var(--primary) 80%); stroke: #fff; box-shadow: 0 8px 18px -6px rgba(244, 128, 80, 0.75); border: 3px solid var(--surface); }
.tabbar button.hero.active { background: transparent; }

/* softer, rounder surfaces everywhere else */
.card { border-radius: 20px; border-color: transparent; box-shadow: 0 1px 2px rgba(30, 10, 10, 0.05), 0 12px 30px -16px rgba(196, 85, 43, 0.28); }
.btn { border-radius: 15px; }
.btn:not(.outline):not(.secondary):not(.danger) { background: linear-gradient(135deg, var(--primary-deep) -60%, var(--primary) 70%); box-shadow: 0 10px 22px -10px rgba(244, 128, 80, 0.7); }
.btn.small { box-shadow: none; border-radius: 12px; }
.screen-title { letter-spacing: -0.2px; }
.badge { border-radius: 999px; }

/* ---- frosted glass: floating controls let the map show through ---- */
:root { --glass: color-mix(in srgb, var(--surface) 58%, transparent); --glass-edge: rgba(255, 255, 255, 0.45); }
.map-top .searchbox,
.float-chips .chip:not(.active),
.float-note,
.mapfull .map-fab,
.mapfull .area-btn,
.mapfull .leaflet-bar {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--glass-edge);
}
.mapfull .leaflet-bar a { background: transparent; }
.float-chips .chip.active { box-shadow: 0 6px 16px -6px rgba(244, 128, 80, 0.7); }
.tabbar { background: color-mix(in srgb, var(--surface) 62%, transparent); border-color: var(--glass-edge); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.sheet { background: color-mix(in srgb, var(--phone-bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* ---- location picker, setup checklist, in-app route ---- */
.pick-map { height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); isolation: isolate; }
.address-suggest { position: relative; z-index: 1200; margin-top: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.address-suggest button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; color: var(--text); background: transparent; text-align: start; cursor: pointer; }
.address-suggest button:hover, .address-suggest button:focus { background: var(--surface-2, rgba(244,128,80,.08)); }
.address-suggest button small, .address-suggest-credit { color: var(--text-muted); font-size: 11px; }
.address-suggest-credit { display: block; padding: 4px 9px; }
.checklist .check-item { padding: 8px 4px; border-top: 1px solid var(--border); cursor: pointer; font-size: 13.5px; }
.checklist .check-item.ok { cursor: default; color: var(--text-muted); }
.route-bar { background: var(--glass, var(--surface)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-edge, var(--border)); border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 28px -10px rgba(30, 10, 10, 0.55); }
.route-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.route-x { border: none; background: transparent; font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; color: var(--text-muted); }
.mapfull.routing .map-search, .mapfull.routing .float-chips, .mapfull.routing .float-note { display: none; }
.mapfull.routing .area-btn { top: 150px; }
.mapfull.routing .leaflet-top.leaflet-right { top: 146px; }
.route-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.route-actions { display: flex; gap: 6px; align-items: center; }
.route-actions .chip { padding: 6px 11px; text-decoration: none; display: inline-flex; }

/* ---- theme button + dark map tiles ---- */
.mapfull .theme-fab { bottom: calc(var(--sheet-h, 232px) + 68px); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(0.9) brightness(0.8) contrast(0.95); }

/* ---- profile photo, description, printable documents ---- */
img.avatar { object-fit: cover; background: var(--surface-alt); }
.avatar.huge { width: 112px; height: 112px; font-size: 46px; border: 3px solid var(--surface); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.5); }
.place-bio { margin: 12px 0 4px; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
.field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  body { background: #fff !important; }
}

/* ---- sections browser, category picker, language menu ---- */
.mapfull .lang-fab { bottom: calc(var(--sheet-h, 232px) + 122px); }
.lang-menu { position: absolute; z-index: 60; inset-inline-start: 66px; bottom: calc(var(--sheet-h, 232px) + 122px); display: flex; flex-direction: column; min-width: 130px; padding: 6px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border: 1px solid var(--glass-edge); box-shadow: 0 10px 28px -10px rgba(30, 10, 10, 0.55); }
.lang-menu button { border: none; background: transparent; color: var(--text); font: inherit; padding: 10px 14px; border-radius: 10px; text-align: start; cursor: pointer; }
.lang-menu button.active { background: var(--primary); color: var(--on-primary); }

.browse { position: absolute; inset: 0; z-index: 600; display: flex; flex-direction: column; background: var(--phone-bg); }
.browse-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.browse-title { flex: 1; font-weight: 800; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browse-back, .browse-x { border: none; background: var(--surface); color: var(--text); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.4); }
.browse-body { flex: 1; overflow-y: auto; padding: 4px 12px 24px; }
.browse-all { width: 100%; border: 1px dashed var(--primary); background: transparent; color: var(--primary); font: inherit; font-weight: 700; padding: 12px; border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
.browse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.browse-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 18px; font: inherit; text-align: start; cursor: pointer; min-height: 96px; }
.browse-tile.empty { opacity: 0.62; }
.bt-ico { font-size: 28px; line-height: 1; }
.bt-name { font-weight: 800; font-size: 14.5px; }
.bt-count { font-size: 12px; color: var(--text-muted); }

.cat-select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; }
.guest-prompt ul { text-align: start; }

/* ---- pricing page ---- */
.plan-features { list-style: none; margin: 8px 0 10px; padding: 0; font-size: 13.5px; line-height: 1.9; }
.plan-features li.off { color: var(--text-muted); text-decoration: line-through; opacity: 0.8; }

.intro-card h2 { margin: 0 0 6px; color: var(--primary); font-size: 18px; }
.intro-card p { margin: 6px 0; }

.social-or { text-align: center; color: var(--text-muted); margin: 14px 0 8px; font-size: 13px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; margin-bottom: 8px; }
.social-ico { width: 22px; height: 22px; flex: none; }

.switch-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; }

/* ================= website layout: like a maps site (the Android app keeps its own design) =================
   Wide screens drop the phone frame: a slim rail with the logo and tabs, a results panel, and the map filling the rest.
   Phones and tablets get the same screen full width, without any frame. */

@media (min-width: 900px) {
  body { display: block; padding: 0; gap: 0; height: 100vh; overflow: hidden; }
  .page-head { display: none; }
  .device { position: fixed; inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; padding: 0; background: var(--bg); box-shadow: none; }
  .screen { border-radius: 0; border: none; background: var(--bg); }
  .statusbar, .notch { display: none; }

  /* the rail (logo + tabs) on the starting edge */
  .tabbar { position: fixed; left: auto; right: auto; bottom: 0; top: 0; inset-inline-start: 0; width: 84px; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 6px; padding: 14px 6px; border: 0; border-inline-end: 1px solid var(--border); border-radius: 0; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 28px -10px rgba(0, 0, 0, 0.3); z-index: 700; }
  .tabbar::before { content: ""; flex: none; width: 46px; height: 46px; margin: 2px auto 14px; background: url("/brand/logo.png") center / contain no-repeat; }
  .tabbar button { flex: none; padding: 10px 2px; border-radius: 14px; font-size: 11px; }
  .tabbar button:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
  .tabbar button.hero svg { margin-top: 0; }

  /* ordinary screens: a centred column next to the rail */
  .screen-body:not(.map-mode) { padding: 28px 24px 48px; display: flex; flex-direction: column; align-items: center; }
  .screen-body:not(.map-mode):has(> .tabbar) { padding-inline-start: 108px; }
  .screen-body:not(.map-mode) > *:not(.tabbar):not(.scan-fab):not(.brand-mark) { width: 100%; max-width: 1100px; flex: none; }
  /* Unlike account forms, the offers page is a full browsing page and should use the space beside the navigation rail. */
  .screen-body:not(.map-mode) > *:not(.tabbar):not(.scan-fab):has(> .deals-page) { max-width: none; }
  .deals-page { width: 100%; max-width: none; }
  .deals-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 14px; }

  /* the discover screen: results panel on the starting edge, map on the rest */
  .mapfull { inset-inline-start: 84px; }
  #discover-map-slot { inset-inline-start: 420px; }
  .sheet { inset-inline-start: 0; inset-inline-end: auto; width: 420px; top: 0; bottom: 0; height: auto !important; padding-top: 132px; border-radius: 0; background: var(--phone-bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 28px -10px rgba(0, 0, 0, 0.35); transition: none; }
  .sheet-handle { display: none; }
  .sheet-list { padding-bottom: 28px; }
  .map-top { top: 12px; inset-inline-start: 12px; inset-inline-end: auto; width: 396px; z-index: 60; }
  .map-top .searchbox { border-color: var(--border); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.35); }
  .float-chips .chip { box-shadow: 0 1px 6px -2px rgba(0, 0, 0, 0.35); }
  .browse { inset-inline-start: 0; inset-inline-end: auto; width: 420px; }

  .mapfull .map-fab { bottom: 24px; inset-inline-start: 440px; }
  .mapfull .theme-fab { bottom: 78px; }
  .mapfull .lang-fab { bottom: 132px; }
  .lang-menu { inset-inline-start: 500px; bottom: 132px; }
  .mapfull .area-btn, .mapfull.routing .area-btn { top: 14px; }
  html[dir="rtl"] .mapfull .area-btn { left: calc((100% - 420px) / 2); }
  html[dir="ltr"] .mapfull .area-btn { left: calc(420px + (100% - 420px) / 2); }
  .mapfull .leaflet-top.leaflet-right { top: auto; bottom: 24px; }
  html[dir="rtl"] .mapfull .leaflet-top.leaflet-right { right: auto; left: 0; }
}

@media (max-width: 899px) {
  body { display: block; padding: 0; gap: 0; }
  .page-head { display: none; }
  .device { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; border: none; }
  .statusbar, .notch { display: none; }
}

/* ================= directions: choose the way, start the trip, live guidance ================= */

.route-opts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.route-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: start; }
.route-opt.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.route-opt-ico { font-size: 22px; }
.route-opt-text { flex: 1; font-weight: 700; }
.route-opt-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.route-opt-val b { font-size: 15px; }
.route-opt-val small { color: var(--text-muted); font-size: 12px; }
.route-start { width: 100%; }
.route-start[disabled] { opacity: 0.5; pointer-events: none; }
.route-google { display: block; text-align: center; margin-top: 8px; font-size: 12.5px; color: var(--primary); text-decoration: none; }

.nav-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; box-shadow: 0 12px 30px -10px rgba(30, 10, 10, 0.7); }
.nav-banner.arrived { background: linear-gradient(135deg, #1e6a32, #2e9a4c); }
.nav-arrow { flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 38px; line-height: 1; background: rgba(255, 255, 255, 0.16); border-radius: 14px; }
.nav-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-text strong { font-family: "Cairo", "Tajawal", sans-serif; font-size: 24px; line-height: 1.1; }
.nav-text span { font-size: 15px; opacity: 0.95; }
.nav-banner .chip { color: var(--primary); background: #fff; border: none; }

.nav-bottom { position: absolute; z-index: 60; bottom: 14px; inset-inline: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 12px 30px -10px rgba(30, 10, 10, 0.6); }
.nav-stats { display: flex; flex-direction: column; line-height: 1.3; }
.nav-stats strong { font-family: "Cairo", "Tajawal", sans-serif; font-size: 18px; color: var(--success); }
.nav-stats span { color: var(--text-muted); font-size: 13px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-end { background: var(--danger); color: #fff; border: none; font-weight: 700; }

.mapfull.navigating .sheet, .mapfull.navigating .area-btn, .mapfull.navigating .map-fab { display: none !important; }
body.navigating .tabbar { display: none; }

.nav-me-wrap { background: none; border: none; }
.nav-me { position: relative; width: 34px; height: 34px; }
.nav-me-dot { position: absolute; inset: 7px; border-radius: 50%; background: #1e6fe0; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(30, 111, 224, 0.25), 0 2px 8px rgba(0, 0, 0, 0.45); }
.nav-me-arrow { position: absolute; left: 50%; top: -4px; width: 0; height: 0; margin-left: -7px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 13px solid #1e6fe0; transform-origin: 50% 21px; }

@media (min-width: 900px) {
  .mapfull.routing .sheet { padding-top: 300px; }
  body.navigating #discover-map-slot { inset-inline-start: 0; }
  body.navigating .mapfull { inset-inline-start: 0; }
  body.navigating .screen-body.map-mode { padding-inline-start: 0; }
  .nav-bottom { inset-inline: auto; inset-inline-start: 12px; width: 420px; }
  body.navigating .mapfull .leaflet-top.leaflet-right { right: 0; left: auto; }
}

/* ================= the store: a clean, dense fashion-marketplace look (white, black ink, red sale prices) ================= */

.screen-body:has(> .store), .screen-body:has(> div > .store) { background: var(--store-page); }
:root { --store-page: #f5f5f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --store-page: #08080a; } }
:root[data-theme="dark"] { --store-page: #08080a; }
.store { --ink: var(--text); --mute: var(--text-muted); --line: var(--border); --sale: #fa6338; --tag: #7b4fd6; width: 100%; display: flex; flex-direction: column; gap: 10px; background: transparent; color: var(--ink); }
.store .btn { background: var(--ink); color: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px; font-weight: 700; letter-spacing: 0.2px; }
.store .btn.outline { background: transparent; color: var(--ink); }
.store .btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; margin-inline-end: 6px; }

.store-head { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 10px 14px; background: var(--surface-alt); color: var(--text); }
.store-brand { flex: none; font-family: "Cairo", "Tajawal", sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 1px; color: var(--text); }
.store-icon-btn { flex: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.store-icon-btn:hover { background: rgba(28, 28, 32, 0.07); }
.store-icon-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.store-badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.store-search { flex: 1; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; }
.store-search input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.store-search button { flex: none; width: 48px; align-self: stretch; border: 0; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.store-search button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.store-tabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; background: var(--surface-alt); border-bottom: 1px solid var(--border); position: sticky; top: 62px; z-index: 25; margin-top: -10px; }
.store-tabs::-webkit-scrollbar { display: none; }
.store-tabs button { flex: none; padding: 13px 0 11px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.store-tabs button.on { color: var(--text); border-bottom-color: var(--primary); font-weight: 800; }

.store-where { padding: 0 16px; }
.store-where-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.store-where-pill span { color: var(--mute); font-size: 10px; }
.store-where-panel { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 10px; }
.store-where-opts, .store-where-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-where button:not(.store-where-pill) { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.store-where button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.store-where select { padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }

.store-hero { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 12px; }
.store-picks { display: none; }
.store-banner { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 190px; padding: 22px 26px; border: 0; border-radius: 8px; text-align: start; font: inherit; cursor: pointer; color: #fff; background: linear-gradient(115deg, #ff7a59, #ff4d6d 62%, #e8336d); }
.store-banner h1 { margin: 0; font-family: "Cairo", "Tajawal", sans-serif; font-size: 30px; line-height: 1.15; font-weight: 900; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.store-banner p { margin: 0; font-size: 16px; font-weight: 700; }
.store-banner .btn-pill { margin-top: 8px; padding: 9px 22px; background: #000; color: #fff; border-radius: 3px; font-size: 13.5px; font-weight: 700; }
.store-banner i { position: absolute; inset-inline-end: 22px; bottom: 6px; font-style: normal; font-size: 110px; line-height: 1; opacity: 0.95; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25)); transform: rotate(-8deg); }
.store-picks button { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.store-picks .store-pic { aspect-ratio: 16 / 10; }
.store-picks .store-emoji { font-size: 44px; margin-bottom: 0; }
.store-picks .store-pic::after { display: none; }

.store-circles { display: flex; gap: 14px; overflow-x: auto; padding: 16px 14px 14px; margin: 0 12px; background: var(--surface); border-radius: 8px; scrollbar-width: none; }
.store-circles::-webkit-scrollbar { display: none; }
.store-circles button { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.store-circles span { width: 68px; height: 68px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 30px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); transition: transform 0.12s; }
.store-circles button:hover span { transform: scale(1.06); }
.store-circles em { font-style: normal; font-size: 12px; text-align: center; line-height: 1.25; }

.store-sec { margin: 0 12px; padding: 16px 14px 18px; background: var(--surface); border-radius: 8px; }
.store-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.store-sec-head h2, .store-bar h2 { margin: 0; font-family: "Cairo", "Tajawal", sans-serif; font-size: 19px; font-weight: 800; }
.store-sec-head button { border: 0; background: none; color: var(--mute); font: inherit; font-size: 13px; cursor: pointer; }
.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 12px; padding: 14px; background: var(--surface); border-radius: 8px 8px 0 0; }
.store-bar h2 small { color: var(--mute); font-weight: 500; font-size: 13px; margin-inline-start: 6px; }
.store-sort { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.store-more { text-align: center; padding: 22px 0 8px; }
.store-more .btn { width: auto; padding: 0 36px; }
.store > .empty { margin: 0 12px; padding: 60px 16px; text-align: center; color: var(--mute); background: var(--surface); border-radius: 8px; }
.store > .store-grid { margin: -10px 12px 0; padding: 4px 14px 16px; background: var(--surface); border-radius: 0 0 8px 8px; }
.store > .spinner, .store > .center-pad { margin: 40px auto; }

.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
.store-card { display: flex; flex-direction: column; cursor: pointer; min-width: 0; }
.store-card-img { position: relative; overflow: hidden; border-radius: 4px; }
.store-pic { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, hsl(var(--h, 30) 30% 97%), hsl(var(--h, 30) 24% 89%)); }
.store-pic img { width: 100%; height: 100%; object-fit: cover; }
.store-pic::after { content: ""; position: absolute; left: 50%; bottom: 17%; width: 46%; height: 5%; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, 0.13); filter: blur(7px); }
.store-pic:has(img)::after { display: none; }
.store-emoji { position: relative; z-index: 1; font-size: clamp(54px, 9vw, 92px); line-height: 1; margin-bottom: 8%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.16)); transition: transform 0.18s; }
.store-card:hover .store-emoji { transform: translateY(-4px) scale(1.04); }
.store-tag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; padding: 3px 7px; border-radius: 3px; font-size: 11.5px; font-weight: 800; line-height: 1.3; }
.store-tag.off { background: var(--sale); color: #fff; }
.store-tag.hot { background: #111; color: #fff; font-weight: 700; }
.store-tag.inline { position: static; display: inline-block; vertical-align: middle; }
.store-bag { position: absolute; z-index: 3; bottom: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #111; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 800; transition: transform 0.12s, background 0.12s; }
.store-bag:hover { transform: scale(1.1); background: #111; color: #fff; }
.store-bag.done { background: #1e8a3a; color: #fff; }
.store-bag svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.store-card-body { padding: 8px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.store-name { font-size: 13px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.store-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.store-price b { font-family: "Cairo", "Tajawal", sans-serif; font-size: 16px; font-weight: 800; color: var(--ink); }
.store-price.sale b { color: var(--sale); }
.store-off { color: var(--sale); font-size: 12.5px; }
.store-hash { color: var(--tag); font-size: 12px; }
.store-price s { color: var(--mute); font-size: 12px; }
.store-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--mute); }
.store-meta .star, .pd-rate .star { color: #e6a100; }

.pd-crumbs { padding: 2px 16px 0; font-size: 12.5px; color: var(--mute); }
.pd-crumbs button { border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; padding: 0; }
.pd { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 12px; padding: 16px; background: var(--surface); border-radius: 8px; }
.pd-pic { position: relative; }
.pd-pic .store-pic { border-radius: 6px; aspect-ratio: 1 / 1; }
.pd-pic .store-emoji { font-size: clamp(110px, 22vw, 190px); }
.pd-info { display: flex; flex-direction: column; gap: 12px; }
.pd-title { margin: 0; font-family: "Cairo", "Tajawal", sans-serif; font-size: 22px; line-height: 1.35; font-weight: 800; }
.pd-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.pd-rate b { color: var(--ink); }
.pd-price-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: #fff4ef; border-radius: 6px; }
:root[data-theme="dark"] .pd-price-box { background: #1f1f23; }
.pd-price-box b { font-family: "Cairo", "Tajawal", sans-serif; font-size: 30px; font-weight: 800; }
.pd-price-box b.sale { color: var(--sale); }
.pd-price-box s { color: var(--mute); font-size: 15px; }
.pd-member { flex-basis: 100%; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.pd-desc { margin: 0; line-height: 1.8; color: var(--ink); }
.pd-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pd-rows > div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-rows span { color: var(--mute); }
.pd-rows a { color: var(--ink); font-weight: 700; text-decoration: underline; cursor: pointer; }
.pd-rows .ok { color: #1e8a3a; }
.pd-rows .low { color: var(--sale); }
.pd-actions { display: flex; flex-direction: column; gap: 10px; }
.pd-actions .btn { width: 100%; height: 50px; font-size: 15px; }

@media (min-width: 600px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .store-banner { min-height: 210px; }
}

@media (min-width: 900px) {
  /* the shop and the store use the width of the screen (the narrow 700px column is for the other pages); more products fit in a row as it gets wider */
  .screen-body:not(.map-mode) > .store:not(.tabbar):not(.scan-fab), .screen-body:not(.map-mode) > div:has(> .store):not(.tabbar):not(.scan-fab) { max-width: 1640px; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .store-hero { grid-template-columns: 1fr 3.2fr 1fr; padding: 0; }
  .store-picks { display: flex; flex-direction: column; gap: 10px; }
  .store-picks .store-pic { aspect-ratio: 16 / 9.4; }
  /* the big banner takes the height of the ad pictures beside it (it never makes the row taller than they are) */
  .store-hero > .store-banner { min-height: 0; contain: size; padding: clamp(18px, 2.4vw, 36px) clamp(22px, 3vw, 44px); }
  .store-banner h1 { font-size: clamp(24px, 2.8vw, 46px); }
  .store-banner p { font-size: clamp(14px, 1.5vw, 22px); }
  .store-banner i { font-size: clamp(100px, 11vw, 180px); }
  .store-circles { gap: 22px; justify-content: center; }
  .store-circles button { width: 96px; }
  .store-circles span { width: 84px; height: 84px; border-radius: 28px; font-size: 40px; }
  .store-head { padding-inline: 28px; }
  .store-tabs { padding-inline: 28px; top: 64px; }
  .store-where, .pd-crumbs { padding-inline: 28px; }
  .store-sec, .store-bar, .store-hero, .store-circles, .store > .store-grid, .pd, .store > .empty { margin-inline: 28px; }
}

.store-alt { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s; }
.store-card:hover .store-alt { opacity: 1; }
.store-card-img .store-tag, .store-card-img .store-bag { z-index: 3; }
.pd-main .store-pic { border-radius: 6px; aspect-ratio: 1 / 1; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; opacity: 0.7; }
.pd-thumbs button.on { border-color: var(--ink); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- the store's big rotating banners ---- */
.store-slider { position: relative; overflow: hidden; border-radius: 8px; min-height: 190px; background: #222; }
.store-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start; padding: 22px 56px; border: 0; text-align: start; font: inherit; color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; background-size: cover; background-position: center; }
.store-slide.on { opacity: 1; pointer-events: auto; }
.store-slide.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%); }
html[dir="rtl"] .store-slide.has-img::before { background: linear-gradient(270deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%); }
.store-slide-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 70%; }
.store-slide h1 { margin: 0; font-family: "Cairo", "Tajawal", sans-serif; font-size: 30px; line-height: 1.15; font-weight: 900; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.store-slide p { margin: 0; font-size: 16px; font-weight: 700; }
.store-slide .btn-pill { margin-top: 8px; padding: 9px 22px; background: #000; color: #fff; border-radius: 3px; font-size: 13.5px; font-weight: 700; }
.store-slide.bg-coral { background-image: linear-gradient(115deg, #f48050, #e0653a 62%, #c4552b); }
.store-slide.bg-black { background-image: linear-gradient(115deg, #111, #3a3a3a); }
.store-slide.bg-blue { background-image: linear-gradient(115deg, #1e6fe0, #12b3d6); }
.store-slide.bg-green { background-image: linear-gradient(115deg, #1e8a3a, #7bcf5a); }
.store-slide.bg-purple { background-image: linear-gradient(115deg, #5b2bd6, #c04bd6); }
.store-slide.bg-gold { background-image: linear-gradient(115deg, #d98a00, #f5c542); color: #1b1200; }
.store-slide.has-img { background-image: inherit; }
/* the Dalilacom brand slide: the logo drifts in, soft circles float, the line rises (restarts each time the slide is shown) */
.store-slide.brand-slide { background-image: linear-gradient(120deg, #c4552b, #f48050 62%, #e0653a); gap: clamp(18px, 4vw, 54px); justify-content: center; overflow: hidden; }
.brand-slide .bs-orb { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); pointer-events: none; }
.brand-slide .bs-orb.o1 { width: 220px; height: 220px; inset-inline-start: -60px; top: -90px; }
.brand-slide .bs-orb.o2 { width: 150px; height: 150px; inset-inline-end: 12%; bottom: -70px; }
.brand-slide .bs-orb.o3 { width: 70px; height: 70px; inset-inline-end: 34%; top: 14%; }
.brand-slide .bs-logo { position: relative; flex: none; }
.brand-slide .bs-logo img { display: block; height: 128px; width: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3)); }
.brand-slide .bs-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-slide h1 em { font-style: normal; opacity: 0.92; }
.brand-slide .btn-pill { background: #fff; color: #f48050; }
.store-slide.brand-slide.on .bs-logo img { animation: bsLogoIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, bsFloat 4.2s ease-in-out 0.9s infinite; }
.store-slide.brand-slide.on .bs-text h1 { animation: bsRise 0.8s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.store-slide.brand-slide.on .bs-text .btn-pill { animation: bsRise 0.8s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.store-slide.brand-slide.on .bs-orb.o1 { animation: bsDrift 7s ease-in-out infinite alternate; }
.store-slide.brand-slide.on .bs-orb.o2 { animation: bsDrift 5.5s ease-in-out -2s infinite alternate-reverse; }
.store-slide.brand-slide.on .bs-orb.o3 { animation: bsDrift 4.5s ease-in-out -1s infinite alternate; }
@keyframes bsLogoIn { from { opacity: 0; transform: translateY(18px) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes bsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bsRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bsDrift { from { transform: translate(0, 0); } to { transform: translate(14px, 18px); } }
@media (prefers-reduced-motion: reduce) {
  .store-slide.brand-slide.on .bs-logo img, .store-slide.brand-slide.on .bs-text h1, .store-slide.brand-slide.on .bs-text .btn-pill, .store-slide.brand-slide.on .bs-orb { animation: none; }
}
@media (max-width: 520px) { .brand-slide h1 { font-size: 23px; } .brand-slide .bs-logo img { height: 96px; } .store-slide.brand-slide { padding-inline: 22px; } }
.store-slide-arrow { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.85); color: #111; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.store-slide-arrow.prev { inset-inline-start: 10px; }
.store-slide-arrow.next { inset-inline-end: 10px; }
.store-dots { position: absolute; z-index: 5; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.store-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.store-dots i.on { background: #fff; width: 22px; border-radius: 4px; }

/* ---- the advertising spaces ---- */
.store-slot { position: relative; display: block; overflow: hidden; border-radius: 6px; cursor: pointer; background: #eee; }
.store-slot .store-pic { aspect-ratio: 16 / 10; }
.store-slot .store-emoji { font-size: 44px; margin-bottom: 0; }
.store-slot .store-pic::after { display: none; }
.store-slot-tag { position: absolute; z-index: 3; top: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 3px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 11px; font-weight: 700; }
.store-slot-here { position: absolute; z-index: 3; top: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.92); color: #111; font-size: 11px; font-weight: 700; cursor: pointer; }
.store-slot-here:hover { background: #fff; text-decoration: underline; }
.store-slot-info { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 18px 10px 8px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); color: #fff; }
.store-slot-info b { font-family: "Cairo", "Tajawal", sans-serif; font-size: 15px; }
.store-slot-info em { font-style: normal; background: var(--sale, #fa6338); padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 800; }
.store-slot-info small { flex-basis: 100%; font-size: 11.5px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-slot .store-bag { width: 30px; height: 30px; bottom: 8px; }
.store-slot .store-bag svg { width: 16px; height: 16px; }
.store-slotstrip { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.store-slotstrip::-webkit-scrollbar { display: none; }
.store-slotstrip .store-slot { flex: none; width: 168px; }
.store-adstrip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text); font-size: 13.5px; }
.store-seller-cta { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:10px 12px 0; padding:14px 16px; border:1px solid color-mix(in srgb,var(--primary) 28%,var(--border)); border-radius:12px; background:color-mix(in srgb,var(--primary) 5%,var(--surface)); }
.store-seller-cta>div { display:grid; gap:4px; }
.store-seller-cta small { color:var(--text-muted); line-height:1.45; }
.store-seller-cta button { flex:none; border:0; border-radius:9px; padding:10px 13px; background:var(--primary); color: var(--on-primary); font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
@media(max-width:560px) { .store-seller-cta { align-items:stretch; flex-direction:column; } }
.store-adstrip button { padding: 8px 18px; border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }

.ad-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ad-pack { display: flex; flex-direction: column; gap: 3px; padding: 12px 10px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.ad-pack span { color: var(--text-muted); font-size: 12.5px; }
.ad-pack.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

@media (min-width: 900px) {
  .store-slider { min-height: 0; }
  .store-slide { padding: clamp(18px, 2.4vw, 36px) clamp(36px, 4.5vw, 70px); }
  .store-slide h1 { font-size: clamp(24px, 2.8vw, 46px); }
  .store-slide p { font-size: clamp(14px, 1.5vw, 22px); }
  .store-slotstrip { display: none; }
  .store-picks .store-slot .store-pic { aspect-ratio: 16 / 9.4; }
  .store-adstrip { margin-inline: 28px; }
}
@media (max-width: 899px) {
  .store-hero .store-slider { min-height: 190px; }
  .store-adstrip { flex-direction: column; align-items: flex-start; }
}

/* ---- a shop's own page, in the store's look ---- */
.shop-cover { margin: 0 12px; padding: 22px 18px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #b84c24, #e0653a); } /* one fixed brand gradient for every shop (it used to take a colour from the shop's id: green, blue, purple...) */
.shop-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop-id .avatar, .shop-id .avatar.big { width: 76px; height: 76px; flex: none; border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.shop-id-text { flex: 1; min-width: 180px; }
.shop-id-text h1 { margin: 0; font-family: "Cairo", "Tajawal", sans-serif; font-size: 22px; line-height: 1.2; font-weight: 800; }
.shop-id-text p { margin: 2px 0 8px; opacity: 0.9; font-size: 13.5px; }
.shop-verified { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--primary-deep); font-size: 11px; font-weight: 800; vertical-align: middle; }
.shop-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.shop-stats .star { color: #ffd04a; }
.shop-stats .badge { background: rgba(255, 255, 255, 0.95); }
.shop-follow { flex: none; padding: 9px 22px; border: 1.5px solid #fff; border-radius: 4px; background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.shop-follow.on { background: #fff; color: #111; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; }
.shop-actions a, .shop-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line, var(--border)); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.shop-actions a:hover, .shop-actions button:hover { border-color: var(--text); }
.shop-page .store-sec { margin-top: 0; }
@media (min-width: 900px) {
  .shop-cover { margin-inline: 28px; padding: 32px 36px; }
  .shop-id .avatar, .shop-id .avatar.big { width: 96px; height: 96px; }
  .shop-id-text h1 { font-size: 30px; }
  .shop-actions { padding-inline: 28px; }
}

/* ---- search by photo, and the "product from a photo" steps ---- */
.store-search .photo-btn { flex: none; width: 42px; align-self: stretch; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.photo-seen { display: flex; align-items: center; gap: 12px; margin: 0 12px; padding: 12px 14px; background: var(--surface); border-radius: 8px; }
.photo-seen img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.pd-specs { border: 1px solid var(--line, var(--border)); border-radius: 8px; overflow: hidden; }
.pd-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line, var(--border)); font-size: 13.5px; }
.pd-specs > div:last-child { border-bottom: 0; }
.pd-specs span { color: var(--text-muted); }

.wiz-start { font-size: 17px; padding: 16px; margin-top: 14px; }
.wiz-steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.wiz-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.wiz-steps i.on { background: var(--primary); }
.wiz-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; }
.wiz-photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-alt); }
.wiz-photo img { width: 100%; height: 100%; object-fit: cover; }
.wiz-photo button { position: absolute; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 15px; cursor: pointer; }
.wiz-photo span { position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 11.5px; }
.wiz-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border: 2.5px dashed var(--primary); border-radius: 14px; color: var(--primary); font-weight: 800; cursor: pointer; text-align: center; padding: 8px; }
.wiz-add b { font-size: 42px; line-height: 1; }
.wiz-add.alt { border-color: var(--border); color: var(--text-muted); }
.wiz-go { margin-top: 16px; font-size: 17px; padding: 15px; }
.wiz-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 10px; text-align: center; }
.wiz-top { display: flex; gap: 8px; margin: 6px 0 12px; }
.wiz-top img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.wiz-row { display: flex; gap: 8px; align-items: flex-start; }
.wiz-row input, .wiz-row textarea { flex: 1; font-size: 16px; }
.wiz-mic { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: var(--on-primary); font-size: 20px; cursor: pointer; }
.wiz-mic.on { background: #d32f2f; animation: wizpulse 1s infinite; }
@keyframes wizpulse { 50% { transform: scale(1.1); } }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wiz-chips button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.wiz-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wiz-tiles button { display: flex; align-items: center; gap: 8px; padding: 12px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: start; }
.wiz-tiles button span { font-size: 24px; }
.wiz-tiles button.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.wiz-seg { display: flex; gap: 8px; }
.wiz-seg button { flex: 1; padding: 13px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.wiz-seg button.on { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.wiz-spec { display: flex; gap: 6px; margin-bottom: 6px; }
.wiz-spec input { flex: 1; min-width: 0; }
.wiz-spec button { flex: none; width: 38px; border: 0; border-radius: 8px; background: var(--surface-alt); color: var(--text); cursor: pointer; }
.wiz-price { font-size: 24px; font-weight: 800; padding: 14px; text-align: center; }
.wiz-done { text-align: center; padding: 40px 10px; }
.wiz-done-ico { font-size: 70px; }
@media (min-width: 600px) { .wiz-photos { grid-template-columns: repeat(3, 1fr); } .wiz-tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---- ratings and comments ---- */
.rv-sec { padding-bottom: 18px; }
.rv-sum { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.rv-avg { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 110px; }
.rv-avg b { font-family: "Cairo", "Tajawal", sans-serif; font-size: 44px; line-height: 1; }
.rv-avg small { color: var(--text-muted); }
.rv-bars { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 5px; }
.rv-bars > div { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rv-bars span { width: 26px; color: var(--text-muted); }
.rv-bars i { flex: 1; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.rv-bars u { display: block; height: 100%; background: #f0a30a; border-radius: 4px; }
.rv-bars em { width: 26px; font-style: normal; color: var(--text-muted); text-align: end; }
.rv-note { margin: 6px 0 4px; font-size: 13px; }
.rv-write { width: auto; margin: 4px 0 8px; }
.rv-item { padding: 12px 0; border-top: 1px solid var(--border); }
.rv-item p { margin: 6px 0 0; line-height: 1.7; }
.rv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.rv-ok { color: #1e8a3a; font-weight: 700; }
.star { color: #f0a30a; letter-spacing: 1px; }
.rv-rate-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
#rv-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rv-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.rv-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--text); border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.rv-card h3 { margin: 0 0 10px; font-size: 17px; }
.rv-card textarea { width: 100%; padding: 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.rv-pick { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.rv-pick button { border: 0; background: none; font-size: 40px; line-height: 1; color: var(--border); cursor: pointer; padding: 0 2px; }
.rv-pick button.on { color: #f0a30a; }
.rv-actions { display: flex; gap: 10px; margin-top: 12px; }
.rv-actions .btn { flex: 1; }

/* ---- the sections show a real photo, like the big marketplaces (not an emoji) ---- */
.store-circles span { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; font-size: 0; border: 2px solid var(--border); background: var(--surface-alt); }
.store-circles span img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.store-circles button:hover span img { transform: scale(1.08); }
.store-circles em { font-weight: 600; }
.wiz-tiles button img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
@media (min-width: 900px) { .store-circles span { width: 88px; height: 88px; border-radius: 50%; } }

.store-adstrip-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---- discounts and the shop's scanner ---- */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row .chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.disc-products { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.disc-products label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.disc-card { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); }
.disc-card > b { flex: none; min-width: 54px; text-align: center; padding: 8px 6px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: 17px; }
.disc-card p { margin: 3px 0 0; font-size: 13px; }
.disc-card small { display: block; margin-top: 3px; color: var(--text-muted); }
.disc-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.disc-pick button { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-align: start; padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.disc-pick button b { grid-row: span 2; align-self: center; font-size: 22px; color: var(--primary); }
.disc-pick button small { color: var(--text-muted); }
.disc-pick button.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.disc-pick button:disabled { opacity: 0.5; cursor: not-allowed; }

.scan-fab { position: fixed; z-index: 900; inset-inline-end: 18px; bottom: 96px; width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(244, 128, 80, 0.62); color: #fff; font-size: 26px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.scan-fab:hover { background: rgba(244, 128, 80, 0.9); }
#scan-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 14px; }
.scan-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.scan-card { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--text); text-align: center; }
.scan-card video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #000; }
.scan-frame { position: absolute; top: 16px; inset-inline: 16px; aspect-ratio: 1; border-radius: 12px; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9); clip-path: inset(0 round 12px); }

/* deals tab: the encouraging overlay over the discount map */
.deals-intro { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: dealsFade .25s ease; }
.deals-box { width: 100%; max-width: 340px; text-align: center; padding: 26px 22px 18px; border-radius: 24px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
:root[data-theme="dark"] .deals-box { background: rgba(30, 33, 40, 0.88); color: #fff; }
.deals-box .deals-emoji { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.deals-box h2 { margin: 6px 0 8px; font-size: 21px; }
.deals-box p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; opacity: .85; }
.deals-never { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; background: none; color: inherit; opacity: .6; font: inherit; font-size: 13px; cursor: pointer; }
@keyframes dealsFade { from { opacity: 0; } to { opacity: 1; } }

/* shipping methods, stock and photo improvement */
.ship-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ship-row input:first-child { flex: 2; }
.ship-row input:nth-child(2) { flex: 1; min-width: 80px; }
.ship-choice .ship-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.ship-choice .ship-opt span { flex: 1; }
.ship-choice .ship-opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.pd-ship { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.pd-ship > div { display: flex; justify-content: space-between; padding-top: 6px; }
.wiz-photo { position: relative; }
.wiz-photo .wiz-enh { position: absolute; bottom: 4px; left: 4px; right: 4px; border: 0; border-radius: 8px; padding: 4px 6px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.62); color: #fff; cursor: pointer; }
.wiz-photo .wiz-enh:disabled { opacity: 0.8; }

/* photos of a product being edited */
.pe-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.pe-photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.pe-photo img { width: 100%; height: 100%; object-fit: cover; }
.pe-photo .pe-x, .pe-photo .pe-btn { position: absolute; top: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 13px; cursor: pointer; }
.pe-photo .pe-x { right: 4px; }
.pe-photo .pe-btn { left: 4px; }
.pe-photo .pe-main { position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); color: #fff; }
.pe-photo .wiz-enh { position: absolute; bottom: 4px; left: 4px; right: 4px; border: 0; border-radius: 8px; padding: 4px 6px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.62); color: #fff; cursor: pointer; }

/* editing a product photo */
.pm-overlay { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 23, 42, 0.5); }
.pm-box { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 14px 16px 18px; border-radius: 22px 22px 0 0; background: var(--bg, #fff); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3); }
.pm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pm-img { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); aspect-ratio: 1; max-height: 38vh; margin: 0 auto 8px; }
.pm-img img { width: 100%; height: 100%; object-fit: contain; }
.pm-wait { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.78); font-weight: 700; }
.pm-quota { margin: 4px 0 8px; font-size: 13px; color: var(--primary); font-weight: 700; }
.pm-act { display: block; width: 100%; margin: 6px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; font-weight: 700; text-align: start; cursor: pointer; }
.pm-act:disabled { opacity: 0.5; }
.pm-undo { border-color: var(--primary); color: var(--primary); }
.pm-colors { margin: 8px 0; }
.pm-colors > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pm-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.18); cursor: pointer; }
.pm-dot:disabled { opacity: 0.45; }
.ai-current { border-color: var(--primary); }
.ai-pack .btn { margin-top: 4px; }

/* finding a profession */
.cat-hits { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cat-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.cat-hit span { font-weight: 700; }
.cat-hit small { color: var(--muted, #888); font-size: 12px; }
.cat-suggest { margin: 4px 0 10px; }
.cat-suggest input { margin-top: 6px; }



/* the hint over the shop's discount button */
.mfab-tip { position: relative; pointer-events: auto; max-width: min(280px, 72vw); padding: 12px 30px 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff8e1; color: #3b2f0b; border: 1.5px solid #f3c969; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); font-size: 13.5px; line-height: 1.45; animation: mfab-tip-in .35s ease; }
.mfab-tip span { cursor: pointer; display: block; }
.mfab-tip-x { position: absolute; top: 4px; inset-inline-end: 6px; border: 0; background: transparent; color: inherit; opacity: .55; cursor: pointer; font-size: 13px; }
@keyframes mfab-tip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the shop's setup checklist: one slim line that opens on tap */
.checklist.slim { padding: 10px 14px; }
.check-line { height: 4px; border-radius: 4px; background: rgba(128, 128, 128, .25); margin-top: 8px; overflow: hidden; }
.check-line i { display: block; height: 100%; background: var(--primary, #c8283a); border-radius: 4px; transition: width .3s ease; }

/* the round floating buttons, like the map's own: the member card, and for shops the discount button */
.rfab, .map-fab.card-fab, .map-fab.disc-fab, .map-fab.globe-fab { display: grid; place-items: center; color: var(--primary, #c8283a); }
.rfab { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); cursor: pointer; padding: 0; }
.rfab:active, .map-fab.card-fab:active, .map-fab.disc-fab:active, .map-fab.globe-fab:active { transform: scale(.94); }
.lang-menu.in-stack { position: fixed; z-index: 600; inset-inline-start: 70px; bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
.lang-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
@media (min-width: 900px) { .lang-menu.in-stack { inset-inline-start: 150px; bottom: 80px; } }
.fab-stack { position: fixed; inset-inline-start: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 500; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: max-content; pointer-events: none; } /* the box can be wider than its two buttons: only the buttons take taps, never the page area around them */
.fab-stack > * { pointer-events: auto; }
@media (min-width: 900px) { .fab-stack { bottom: 24px; inset-inline-start: 96px; } } /* the rail is 84px wide: the buttons sit beside it, not under it */
.mfab-pop { position: fixed; z-index: 502; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.mfab-pop > * { pointer-events: auto; }
.mfab-menu { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.mfab-menu button { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--surface, #fff); color: inherit; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); white-space: nowrap; }
.mfab-menu button span { font-size: 18px; }
.mfab-shade { position: fixed; inset: 0; z-index: 501; background: rgba(0, 0, 0, .2); }

/* a discount's live countdown and the places left */
.cd { font-variant-numeric: tabular-nums; font-weight: 700; }
.disc-cd { margin-top: 4px; font-size: 13px; color: var(--primary, #c8283a); font-weight: 700; }
.disc-left { height: 5px; border-radius: 5px; background: rgba(128, 128, 128, .25); margin-top: 6px; overflow: hidden; }
.disc-left i { display: block; height: 100%; background: var(--primary, #c8283a); border-radius: 5px; }

/* sign-up: who are you, as two cards */
.intent-cards { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.intent-card { display: flex; align-items: center; gap: 14px; text-align: start; padding: 14px 16px; border: 1.5px solid var(--border, #ddd); border-radius: 16px; background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; }
.intent-card.on { border-color: var(--primary, #c8283a); box-shadow: 0 0 0 2px rgba(200, 40, 58, .18); }
.intent-card .ic { font-size: 26px; flex: none; }
.intent-card b { display: block; font-size: 16px; margin-bottom: 2px; }
.intent-card small { display: block; color: var(--muted, #888); line-height: 1.45; }

/* the store's advertising calendar */
.cal { margin-top: 6px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head span { text-align: center; font-size: 12px; color: var(--muted, #888); padding-bottom: 4px; }
.cal-day { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; font: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; color: #fff; }
.cal-day b { font-size: 14px; }
.cal-day em { position: absolute; top: 1px; inset-inline-start: 3px; font-style: normal; font-size: 9px; opacity: .85; }
.cal-day.ok, .cal-legend i.ok { background: #2e9b57; }
.cal-day.few, .cal-legend i.few { background: #e0a21c; }
.cal-day.full, .cal-legend i.full { background: #c8283a; }
.cal-day.blocked, .cal-legend i.blocked { background: repeating-linear-gradient(45deg, #b9b9b9, #b9b9b9 4px, #d6d6d6 4px, #d6d6d6 8px); color: #666; cursor: not-allowed; }
.cal-day.sel { border-color: var(--text, #111); box-shadow: 0 0 0 2px var(--surface, #fff) inset; transform: scale(1.06); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* the admin's queue of shops' announcements */
.adr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adr-hint { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); color: var(--text); font-size: 13.5px; line-height: 1.7; }
.adr-note { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #e6f4ea; color: #1b5e20; font-weight: 700; }
.adr-card { margin-bottom: 16px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.25); }
.adr-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.adr-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 20px; font-weight: 800; }
.adr-shop { display: flex; flex-direction: column; min-width: 0; }
.adr-shop b { font-size: 16px; color: var(--primary); }
.adr-shop small { color: var(--text-muted); font-size: 12.5px; }
.adr-title { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.adr-body { margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: 15.5px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.adr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adr-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; line-height: 1.4; }
.adr-ai { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.adr-ai.ok { background: #e6f4ea; color: #1b5e20; }
.adr-ai.warn { background: #fff4e0; color: #8a4b00; }
.adr-ai.none { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-muted); }
.adr-ai ul { margin: 6px 0 0; padding-inline-start: 20px; }
.adr-actions { display: flex; gap: 10px; }
.adr-actions .btn { flex: 1; height: 48px; font-size: 15px; }
.adr-ok { background: #2e9b57; }
.adr-no { color: #b3261e; border-color: #b3261e; }

/* the list of applied discounts */
.dh-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-bottom: 14px; }
.dh-sum b { display: block; font-size: 17px; }
.dh-sum small { color: var(--text-muted); font-size: 12px; }
.dh-item { margin-bottom: 12px; }

/* text for search engines, AI assistants and screen readers: it is in the page but not drawn (the app is the picture) */
.seo-static { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* the follow button to our official Facebook page */
.follow-us { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px auto; text-align: center; }
.follow-fb { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.follow-fb:hover { filter: brightness(1.08); }
.follow-us small { color: var(--muted, #6b5d5b); font-size: 12px; max-width: 280px; line-height: 1.5; }

/* a sign-in button that is not open yet looks a little quieter */
.social-btn.soon { opacity: 0.7; }

/* the invitation tiles in the advertising spaces: a Dalilacom tile where nobody advertises yet */
.store-slot.is-ph { background: linear-gradient(135deg, #c4552b, #f48050 70%); color: #fff; aspect-ratio: 16 / 10; }
.store-slot.is-ph.ph-1 { background: linear-gradient(135deg, #1c1413, #c4552b 80%); }
.store-slot.is-ph.ph-2 { background: linear-gradient(135deg, #f48050, #e0653a 75%); }
.store-picks .store-slot.is-ph { aspect-ratio: 16 / 9.4; }
.ph-body { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ph-ico { flex: none; font-size: 34px; line-height: 1; }
.ph-logo { flex: none; height: 56%; width: auto; max-height: 64px; }
.ph-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-text b { font-family: "Cairo", "Tajawal", sans-serif; font-size: 14px; line-height: 1.3; }
.ph-text small { font-size: 11.5px; opacity: 0.9; line-height: 1.4; }
.ph-cta { position: absolute; inset-inline-end: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: #fff; color: #f48050; font-size: 11px; font-weight: 800; }
.store-slide.invite-slide { background-image: linear-gradient(120deg, #1c1413, #c4552b 55%, #f48050); gap: clamp(18px, 4vw, 54px); justify-content: center; overflow: hidden; }
.invite-slide .bs-orb { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); pointer-events: none; }
.invite-slide .bs-orb.o1 { width: 200px; height: 200px; inset-inline-end: -50px; top: -80px; }
.invite-slide .bs-orb.o2 { width: 120px; height: 120px; inset-inline-start: 10%; bottom: -60px; }
.invite-slide .bs-logo { position: relative; flex: none; }
.invite-slide .bs-logo img { display: block; height: 110px; width: auto; opacity: 0.95; }
.invite-slide .bs-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.invite-slide h1 em { font-style: normal; opacity: 0.92; font-size: 0.7em; font-weight: 700; }
.invite-slide .btn-pill { background: #fff; color: #f48050; }
@media (max-width: 520px) { .invite-slide h1 { font-size: 21px; } .invite-slide .bs-logo img { height: 84px; } .store-slide.invite-slide { padding-inline: 22px; } }

/* the essential pages: small links at the bottom of the main screens */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 10px auto 22px; padding: 0 12px; }
.legal-links a { color: var(--muted, #6b5d5b); font-size: 12.5px; text-decoration: none; }
.legal-links a:hover { color: #f48050; text-decoration: underline; }

/* dark theme: the logo on the side rail is the white one (the black part of the colour logo vanishes on a dark background) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar::before { background-image: url("/brand/mark-white-192.png") !important; } }
:root[data-theme="dark"] .tabbar::before { background-image: url("/brand/mark-white-192.png") !important; }

/* our social media pages: small round icons (the ones switched on in the admin panel) */
.follow-label { color: var(--muted, #6b5d5b); font-size: 13px; font-weight: 700; }
.follow-icons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.follow-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f48050; text-decoration: none; }
.follow-icon:hover { filter: brightness(1.12); }

.follow-apk { color: #f48050; font-size: 13px; font-weight: 700; text-decoration: none; }
.follow-apk:hover { text-decoration: underline; }

/* the places sheet can be pulled down to a thin strip that only says "Places directory", so the whole map shows */
.sheet-head { gap: 8px; }
.sheet-head .t-min { display: none; }
.sheet-collapse { margin-inline-start: auto; background: transparent; border: 0; padding: 4px 6px; cursor: pointer; color: #f48050; display: inline-flex; align-items: center; border-radius: 8px; }
.sheet-collapse svg { transition: transform 0.2s; }
.sheet.is-min .sheet-collapse svg { transform: rotate(180deg); }
.sheet.is-min .t-full, .sheet.is-min .sheet-count, .sheet.is-min .sheet-chips, .sheet.is-min .sheet-list { display: none; }
.sheet.is-min .t-min { display: inline; }
.sheet.is-min .sheet-handle { padding: 8px 0 4px; }
.sheet.is-min .sheet-head { padding-bottom: 4px; }

.chip-links { font-weight: 700; color: #f48050; }

/* wide screens: the results are a panel on the side. Pulled down it becomes a thin strip at the bottom corner that only says
   "Places directory", and the map spreads under it so the whole map shows. */
@media (min-width: 900px) {
  .mapfull .sheet.is-min { top: auto; bottom: 14px; inset-inline-start: 14px; width: 392px; height: 52px !important; padding-top: 0; border-radius: 16px; box-shadow: 0 6px 22px -6px rgba(0, 0, 0, 0.45); overflow: hidden; }
  .mapfull .sheet.is-min .sheet-head { padding: 0 8px 0 18px; height: 52px; }
  .mapfull.sheet-min #discover-map-slot { inset-inline-start: 0; }
  .mapfull.sheet-min .map-fab { inset-inline-start: 428px; }
  html[dir="rtl"] .mapfull.sheet-min .area-btn { left: 50%; }
  html[dir="ltr"] .mapfull.sheet-min .area-btn { left: 50%; }
}

/* the floating bar of our pages: on the edge opposite the side rail, in the middle of the height, always visible */
.dock-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f48050; text-decoration: none; }
.dock-icon:hover { filter: brightness(1.12); }
.dock-icon:active { transform: scale(.94); }

/* on a phone the sheet is pulled by the line and the title bar: no arrow (the wide screens, which have no line, keep it) */
@media (max-width: 899px) { .sheet-head { touch-action: none; } .sheet-collapse { display: none; } }

/* the English logo is wide: give it width, not height, where the Arabic one is tall */
html[lang="en"] .auth-logo { width: 240px !important; max-width: 82% !important; height: auto !important; }
html[lang="en"] .brand-slide .bs-logo img { height: auto; width: min(300px, 70vw); }
html[lang="en"] .invite-slide .bs-logo img { height: auto; width: min(260px, 64vw); }
html[lang="en"] .ph-logo { height: auto; width: auto; max-height: 44px; max-width: 60%; }

/* the Google Play icon: its own four colours on white, so people recognise the store */
.follow-icon.is-play, .dock-icon.is-play { background: #fff; box-shadow: inset 0 0 0 2px #f48050; }

/* the bar of our pages: top corner, open for 5 seconds, then only a small arrow stays (it opens the bar again) */
.social-dock { position: fixed; inset-inline-end: 0; top: 150px; z-index: 480; display: flex; align-items: flex-start; gap: 0; }
.dock-icons { display: flex; flex-direction: column; gap: 8px; padding: 9px 6px; background: var(--surface, #fff); border-start-start-radius: 16px; border-end-start-radius: 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, .28); max-width: 0; padding-inline: 0; opacity: 0; overflow: hidden; pointer-events: none; transition: max-width .28s ease, padding .28s ease, opacity .2s ease; }
.social-dock.open .dock-icons { max-width: 60px; padding-inline: 6px; opacity: 1; pointer-events: auto; }
.dock-tab { width: 22px; height: 46px; padding: 0; border: 0; background: #f48050; color: #fff; display: grid; place-items: center; border-start-start-radius: 12px; border-end-start-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); cursor: pointer; }
.dock-tab svg { transition: transform .25s; }
.social-dock.open .dock-tab { border-radius: 0; }
html[dir="rtl"] .dock-tab svg { transform: scaleX(-1); }
html[dir="rtl"] .social-dock.open .dock-tab svg { transform: none; }
html[dir="ltr"] .social-dock.open .dock-tab svg { transform: scaleX(-1); }

/* the floating bar is not a page column: it keeps its own size on every screen */
.screen-body:not(.map-mode) > .social-dock:not(.tabbar):not(.scan-fab) { width: auto; max-width: none; }

/* the example inside an empty field: faint, so it reads as a hint and not as something already typed */
input::placeholder, textarea::placeholder { color: #b3a8a5; opacity: 1; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #6f6461; }

/* the public places on the map (mosques, hospitals, parks, main streets) */
/* public places, the way a map draws them: a small soft dot from afar, a small round icon closer, its name closer still */
.lm-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .25); opacity: .9; }
.lm-poi { position: relative; width: 22px; height: 22px; }
.lm-pico { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .96); border: 1px solid rgba(60, 64, 67, .18); box-shadow: 0 1px 3px rgba(0, 0, 0, .22); display: grid; place-items: center; font-size: 12px; line-height: 1; }
.lm-name { position: absolute; inset-inline-start: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 600; color: #3c4043; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff; pointer-events: none; }
.lm-street-label { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 600; font-size: 11px; color: #5f6368; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff; pointer-events: auto; }
.lm-card { text-align: start; }
.lm-card p { margin: 6px 0; font-size: 14px; }
.lm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lm-head h3 { margin: 0; font-size: 18px; }
.lm-head small { color: var(--muted, #6b5d5b); }
.lm-ico { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); display: grid; place-items: center; font-size: 22px; flex: none; }
.lm-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.lm-actions .btn { flex: 1; }

.lm-claim-note { font-size: 13px; color: var(--muted, #6b5d5b); }
.lm-card .field { margin-bottom: 10px; }
.lm-card .btn.outline { background: transparent; color: var(--primary, #f48050); border: 1.5px solid var(--primary, #f48050); }

/* the preview of an ad picture, in the shape the store shows it */
.ad-preview { margin-top: 8px; width: 100%; max-width: 520px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, #e5dcda); background: #eee; }
.ad-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the list shows one shop (its pin was touched): the way back to all of them */
.sheet-list .show-all { display: block; width: 100%; margin: 0 0 10px; padding: 10px 14px; border: 1.5px solid var(--primary, #f48050); border-radius: 12px; background: transparent; color: var(--primary, #f48050); font: inherit; font-weight: 700; cursor: pointer; }

/* the home of the shop in merchant mode: the setup steps (always open) with a progress ring, and the quick ways in */
.setup-card { border: 1px solid var(--border); border-radius: 20px; padding: 16px; margin: 8px 0 14px; background: linear-gradient(160deg, var(--surface, #fff), color-mix(in srgb, var(--primary, #f48050) 7%, var(--surface, #fff))); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.setup-titles h2 { margin: 0 0 3px; font-size: 18px; }
.setup-titles p { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.setup-ring { --p: 0; flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1.05; background: radial-gradient(closest-side, var(--surface, #fff) 78%, transparent 80% 100%), conic-gradient(var(--primary, #f48050) calc(var(--p) * 1%), rgba(128, 128, 128, .22) 0); }
.setup-ring b { font-size: 21px; color: var(--primary, #f48050); }
.setup-ring small { font-size: 10.5px; color: var(--text-muted); }
.setup-wait { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(240, 173, 78, .16); font-size: 12.5px; }
.setup-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.setup-step:not(:disabled):active { transform: scale(.985); }
.setup-step:not(:disabled):hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.setup-step .s-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: color-mix(in srgb, var(--primary, #f48050) 12%, transparent); color: var(--primary, #f48050); }
.setup-step.done .s-ico { background: #1e8e3e; color: #fff; }
.setup-step .s-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.setup-step .s-txt b { font-size: 14px; }
.setup-step .s-txt small { color: var(--text-muted); font-size: 12px; }
.setup-step.done .s-txt b { color: var(--text-muted); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(128, 128, 128, .5); }
.setup-step .s-go { flex: none; color: var(--primary, #f48050); font-size: 22px; line-height: 1; }
html[dir="ltr"] .setup-step .s-go { transform: scaleX(-1); }
.setup-step:disabled { cursor: default; }
.setup-done { display: flex; align-items: center; gap: 12px; }
.setup-done span { font-size: 30px; }
.setup-done small { display: block; color: var(--text-muted); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface, #fff); color: inherit; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: start; transition: transform .15s ease, box-shadow .15s ease; }
.quick:active { transform: scale(.98); }
.quick:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.quick .q-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--primary, #f48050) 10%, transparent); }

/* the city question (first use / first sign-in) and the "set my place" card */
.city-gate { text-align: center; }
.city-gate .city-ico { font-size: 38px; margin-bottom: 4px; }
.city-gate h3 { margin: 0 0 6px; }
.city-gate select { width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface, #fff); color: inherit; font: inherit; }
.loc-saved { margin: 8px 0 0; color: #1e8e3e; font-weight: 700; font-size: 13px; }

/* what a search found on the map: the places drawn bigger with their name; the best one has a ring that pulses */
.lm-hit { position: relative; width: 30px; height: 30px; }
.lm-hit-ico { position: relative; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; background: #fff; border: 2.5px solid var(--c, #f48050); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.lm-hit.top .lm-hit-ico, .lm-hit.best .lm-hit-ico { transform: scale(1.25); }
.lm-hit-name { position: absolute; z-index: 2; inset-inline-start: 36px; top: 50%; transform: translateY(-50%); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; color: #202124; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff; pointer-events: none; }
.lm-pulse { position: absolute; z-index: 1; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--c, #f48050); opacity: .35; animation: lmPulse 1.8s ease-out infinite; pointer-events: none; }
.lm-pulse.two { animation-delay: .9s; }
@keyframes lmPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.4); opacity: 0; } }
.place-rows-head { font-size: 12px; font-weight: 700; margin: 2px 4px 4px; }
.place-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

.auth-feats { margin: 4px 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--border, #ddd); }
.auth-feats h2 { margin: 0 0 8px; font-size: 15px; }
.auth-feat { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.auth-feat .ic { font-size: 22px; line-height: 1.2; }
.auth-feat b { display: block; font-size: 14px; }
.auth-feat small { display: block; color: var(--muted, #777); font-size: 12.5px; line-height: 1.5; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; font-size: 13.5px; cursor: pointer; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.muted b.ok { color: var(--success, #2e7d32); }

/* Merchant shop management: clear product actions first, with store tools grouped below. */
.merchant-manage { max-width: 900px; margin: 0 auto; padding: 4px 0 28px; }
.manage-hero { padding: 20px 22px; margin-bottom: 14px; border-radius: 20px; color: #fff; background: linear-gradient(130deg, #8d1424, #c02e3b); box-shadow: 0 10px 26px rgba(112, 17, 32, .15); }
.manage-hero > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.15); font-size: 12px; font-weight: 700; }
.manage-hero h1 { margin: 10px 0 4px; font-size: 24px; }
.manage-hero p { margin: 0; max-width: 660px; line-height: 1.65; color: rgba(255,255,255,.88); }
.manage-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.manage-action { min-height: 92px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-content: center; gap: 3px 11px; padding: 15px; text-align: start; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: 0 4px 16px rgba(30,20,20,.04); }
.manage-action > span { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(189,39,53,.1); font-size: 22px; }
.manage-action b { font-size: 15px; }
.manage-action small { color: var(--muted); line-height: 1.4; }
.manage-action.primary { border-color: transparent; color: #fff; background: linear-gradient(130deg,#aa1e30,#ce3a45); }
.manage-action.primary > span { background: rgba(255,255,255,.17); }
.manage-action.primary small { color: rgba(255,255,255,.85); }
.manage-products,.manage-tools,.manage-details,.manage-closed { margin: 0 0 14px; padding: 17px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.manage-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.manage-section-head h2,.manage-tools h2 { margin: 0; font-size: 18px; }
.manage-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.manage-count { flex: none; padding: 6px 10px; border-radius: 999px; color: var(--primary); background: rgba(189,39,53,.09); font-size: 12px; font-weight: 700; }
.manage-product-list { display: grid; gap: 8px; }
.manage-product-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; text-align: start; color: var(--text); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; }
.manage-product-row:hover,.manage-tool-grid button:hover,.manage-action:hover { border-color: var(--primary); }
.manage-product-thumb { flex: none; width: 62px; height: 62px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--surface-2,#f4f1ef); font-size: 25px; }
.manage-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-product-info { min-width: 0; flex: 1; display: grid; gap: 4px; }
.manage-product-info > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-product-info > small { color: var(--muted); }
.manage-product-state { display: flex; flex-wrap: wrap; gap: 5px; }
.manage-product-state .badge { width: max-content; }
.manage-review { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-style: normal; }
.manage-review.pending { flex: 1 1 100%; max-width: 100%; white-space: normal; line-height: 1.45; color: #845b00; background: #fff2c7; }
.manage-review.rejected { color: #a51d2d; background: #ffeaec; }
.manage-edit { flex: none; padding: 7px; border-radius: 10px; background: rgba(189,39,53,.08); }
.manage-empty { display: grid; justify-items: center; gap: 7px; padding: 26px 14px; text-align: center; border: 1px dashed var(--border); border-radius: 15px; }
.manage-empty > span { font-size: 32px; }
.manage-empty p { margin: 0; max-width: 440px; color: var(--muted); line-height: 1.55; }
.manage-tools h2 { margin-bottom: 12px; }
.manage-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.manage-tool-grid button { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; text-align: start; color: var(--text); border: 1px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; }
.manage-tool-grid button > span { font-size: 21px; }
.manage-details summary { cursor: pointer; font-weight: 700; }
.manage-details[open] > .manage-tool-grid,.manage-details[open] > .manage-subdetails { margin-top: 13px; }
.manage-subdetails { padding: 12px; border-radius: 13px; background: var(--surface-2,#f7f4f2); }
.manage-subdetails summary { cursor: pointer; font-weight: 700; }
.manage-closed { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: rgba(189,39,53,.35); }
.manage-closed p { margin: 5px 0 0; color: var(--muted); }
.manage-affiliate { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.manage-affiliate > div { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.manage-affiliate small { color: var(--muted); }
@media (max-width: 520px) { .manage-actions { grid-template-columns: 1fr; } .manage-hero { padding: 17px; } .manage-hero h1 { font-size: 21px; } .manage-products,.manage-tools,.manage-details,.manage-closed { padding: 13px; } .manage-section-head { align-items: flex-start; } .manage-count { font-size: 11px; } .manage-product-thumb { width: 54px; height: 54px; } .manage-closed { align-items: flex-start; flex-direction: column; } }

/* the row of map filters: two arrows for a mouse (shown only on the side that has more), the row itself still swipes by touch */
.float-chips-wrap { position: relative; }
.float-chips { cursor: grab; }
.chips-arrow { display: none; position: absolute; top: 2px; bottom: 8px; width: 34px; align-items: center; justify-content: center; z-index: 2; padding: 0; border: 0; border-radius: 999px; background: var(--surface); color: var(--primary); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(30, 10, 10, 0.55); }
.chips-arrow.show { display: flex; }
.chips-arrow.left { left: 0; }
.chips-arrow.right { right: 0; }
.location-search-btn{border:0;background:#edf4e9;color:#326f2b;border-radius:50%;width:34px;height:34px;flex:0 0 34px;font-size:17px;cursor:pointer}
.location-search-page{position:fixed;inset:0;z-index:5000;background:#e9edeb;font-family:inherit}
.location-search-map{position:absolute;inset:0;z-index:0}
.location-search-panel{position:absolute;z-index:2;top:calc(env(safe-area-inset-top,0px) + 12px);left:12px;right:12px;margin-inline:auto;max-width:620px;background:rgba(255,255,255,.96);border-radius:16px;padding:12px 14px;box-shadow:0 3px 18px #0002}
.location-search-title{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.location-search-title b{font-size:17px}
.loc-back{border:0;background:#f1f0ed;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer}
.location-search-field{height:42px;display:flex;align-items:center;gap:8px;padding:0 10px;border-radius:22px;background:#f3f2ef}
.location-search-field input{min-width:0;flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:14px}
.location-search-field>button{border:0;background:#e9f2e5;color:#39782d;border-radius:50%;height:32px;width:32px;font-size:17px;cursor:pointer}
.location-current{font-size:12px;color:#687168;margin:8px 3px 2px;min-height:17px}
.location-radius-label{display:flex;justify-content:space-between;align-items:center;margin-top:6px;font-size:12px;color:#40443e}
.location-radius-label b{font-size:13px}
.location-radius-slider{width:100%;accent-color:#3d7e31;display:block;margin:7px 0 0}
.location-radius-ends{display:flex;justify-content:space-between;color:#767b74;font-size:10px}
.location-search-apply{width:100%;margin-top:10px}
.location-search-suggestions{position:absolute;z-index:5;top:96px;left:14px;right:14px;display:flex;flex-direction:column;max-height:42vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 5px 18px #0003}
.location-search-suggestions button{border:0;border-bottom:1px solid #eee;background:#fff;padding:10px 12px;text-align:start;font:inherit;cursor:pointer}
.location-search-suggestions small{display:block;color:#747a74;margin-inline-start:24px}
@media(max-width:600px){.location-search-panel{left:8px;right:8px;top:calc(env(safe-area-inset-top,0px) + 8px);padding:10px 12px}.location-search-suggestions{top:90px}}

/* ---- Section intro pages (accounting, auto-responder): a hero, what it offers, how it works ---- */
.intro { max-width: 760px; margin: 0 auto; padding: 4px 4px 28px; color: var(--text); }
.intro-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 34px 22px 28px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--surface-alt) 55%, #fde6d6 100%); border: 1px solid var(--border); }
.intro-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.intro-hero h1 { margin: 16px 0 10px; font-size: clamp(26px, 6vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.intro-hero p { margin: 0 auto 20px; max-width: 520px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.intro-actions .btn { width: auto; min-width: 150px; padding-inline: 22px; border-radius: 999px; }
.intro-dot { position: absolute; border-radius: 50%; background: var(--primary); opacity: .9; }
.intro-dot.d1 { width: 9px; height: 9px; top: 26px; inset-inline-start: 7%; }
.intro-dot.d2 { width: 6px; height: 6px; top: 60%; inset-inline-end: 8%; }
.intro-dot.d3 { width: 12px; height: 12px; bottom: 20px; inset-inline-start: 12%; background: transparent; border: 2px solid var(--primary); }
.intro-h { margin: 26px 4px 12px; font-size: 19px; font-weight: 800; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 16px 14px; }
.intro-feat b { display: block; margin: 8px 0 4px; font-size: 15px; }
.intro-feat p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.intro-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--surface-alt); font-size: 22px; }
.intro-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.intro-steps li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; font-weight: 600; }
.intro-steps li span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.intro-final { margin-top: 22px; text-align: center; }
.intro-final .btn { width: auto; min-width: 190px; padding-inline: 26px; border-radius: 999px; }
.intro-note { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--warning-bg); color: var(--warning); font-size: 13px; text-align: center; }
.intro-link { border: 0; background: none; color: var(--primary-deep); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0 4px; }
@media (max-width: 420px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---- Account page: header, quick tiles and sections that open one at a time ---- */
.prof { width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 2px 30px; display: flex; flex-direction: column; gap: 14px; }
.prof-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px 18px; border-radius: 28px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%); }
.prof-head h1 { margin: 8px 0 0; font-size: 21px; font-weight: 800; }
.prof-head .muted { margin: 0; max-width: 300px; font-size: 13px; }
.prof-edit { margin-top: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.prof-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prof-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.prof-quick button span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--surface-alt); font-size: 20px; }
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); overflow: hidden; }
.acc.open { border-color: var(--primary); box-shadow: 0 8px 24px -16px var(--primary-deep); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.acc-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--surface-alt); font-size: 21px; }
.acc.open .acc-ico { background: var(--primary); }
.acc-title { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-title b { font-size: 15px; }
.acc-title small { color: var(--text-muted); font-size: 12px; }
.acc-chev { flex: none; color: var(--text-muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.acc.open .acc-chev { transform: rotate(180deg); color: var(--primary-deep); }
.acc-body { padding: 2px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.prof-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 16px; background: var(--surface-alt); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.prof-row-ico { flex: none; width: 30px; text-align: center; font-size: 19px; }
.prof-row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prof-row-text b { font-size: 14px; font-weight: 700; }
.prof-row-text small { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.prof-chev { flex: none; color: var(--text-muted); font-size: 20px; }
[dir="rtl"] .prof-chev, :root[dir="rtl"] .prof-chev { transform: scaleX(-1); }
.acc-sub .card { width: 100% !important; box-shadow: none; border: 1px solid var(--border); background: var(--surface); }
.acc-legacy .btn { max-width: none !important; width: 100%; justify-content: flex-start; border: 0; background: var(--surface-alt); border-radius: 16px; margin-bottom: 8px; }
.acc-legacy div[style*="height"] { display: none; }
.acc-danger { align-self: center; margin-top: 6px; color: var(--danger, #b71c1c); }
.prof .card { width: 100% !important; text-align: start; }

/* ---- laptops: the account page and the section intro pages use the width too ---- */
@media (min-width: 900px) {
  .prof { max-width: 860px; }
  .intro { max-width: 1040px; }
  .intro-grid { grid-template-columns: repeat(4, 1fr); }
  .intro-steps { grid-template-columns: repeat(3, 1fr); }
  .prof-quick { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---- the seller on a product page: a card with the shop's logo that opens the shop ---- */
.pd-seller { width: 100%; display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-alt); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.pd-seller:hover { border-color: var(--primary); }
.pd-seller .avatar, .pd-seller .avatar.big { width: 52px; height: 52px; flex: none; font-size: 22px; border: 2px solid var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.pd-seller-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-seller-text small { color: var(--text-muted); font-size: 12px; }
.pd-seller-text b { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-seller-go { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 800; white-space: nowrap; }
.pd-seller-go::after { content: "›"; display: inline-block; margin-inline-start: 6px; }
html[dir="rtl"] .pd-seller-go::after { transform: scaleX(-1); }

/* =====================================================================================================
   The three sections as small sites of their own (accounting, auto-responder, HR):
   a title bar, a tab bar whose first tab is the home page, and a home page with moving slides.
   ===================================================================================================== */
.site { width: 100%; max-width: 1040px; margin: 0 auto; padding: 4px 0 36px; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.site-bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.site-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--primary); font-size: 21px; }
.site-bar b { font-size: 19px; font-weight: 800; }
.site-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; position: sticky; top: 0; z-index: 20; background: var(--phone-bg); }
.site-tabs::-webkit-scrollbar { display: none; }
.site-tabs button { flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.site-tabs button.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.site-slider { position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--border); background: linear-gradient(135deg, #fff6ee, #fde3d1 60%, #fbcdb2); transition: background .6s; }
.site-slider[data-i="1"] { background: linear-gradient(135deg, #fff3ea, #fbd9c3 55%, #f7b995); }
.site-slider[data-i="2"] { background: linear-gradient(135deg, #fffaf4, #fde9da 50%, #fbd0b6); }
.site-slide { display: none; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 30px 30px 58px; min-height: 340px; }
.site-slide.on { display: grid; animation: siteFade .5s both; }
.site-slide-text h2 { margin: 0 0 10px; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #1c1c20; }
.site-slide-text p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.75; color: #55555b; max-width: 460px; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-actions .btn { width: auto; min-width: 150px; padding-inline: 22px; border-radius: 999px; }
.site-dots { position: absolute; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.site-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(28, 28, 32, .25); cursor: pointer; transition: all .3s; }
.site-dots button.on { width: 28px; background: var(--primary-deep); }
@keyframes siteFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.site-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.site-stats b { font-size: 24px; font-weight: 800; color: var(--primary-deep); }
.site-stats span { font-size: 12.5px; color: var(--text-muted); }
.site-h { margin: 18px 4px 2px; font-size: 21px; font-weight: 800; }
.site-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.site-feat { padding: 18px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.site-feat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px var(--primary-deep); }
.site-feat span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 16px; background: var(--surface-alt); font-size: 25px; }
.site-feat b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.site-feat p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.site-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.site-detail { display: flex; gap: 12px; padding: 18px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.site-detail > span { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--surface-alt); font-size: 23px; }
.site-detail b { display: block; margin-bottom: 6px; font-size: 15.5px; }
.site-detail ul { margin: 0; padding-inline-start: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.75; }
@media (max-width: 700px) { .site-details { grid-template-columns: 1fr; } }
.site-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.site-steps li { display: flex; gap: 12px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.site-steps li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.site-steps b { display: block; margin-bottom: 3px; font-size: 15px; }
.site-steps p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.site-faq { display: grid; gap: 8px; }
.site-faq details { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 0 16px; }
.site-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after { content: "+"; font-size: 22px; color: var(--primary-deep); transition: transform .2s; }
.site-faq details[open] summary::after { transform: rotate(45deg); }
.site-faq p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.75; font-size: 14px; }
.site-cta { margin-top: 10px; padding: 30px 20px; border-radius: 28px; text-align: center; color: #fff; background: linear-gradient(120deg, #b84c24, #e0653a); }
.site-cta h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.site-cta p { margin: 0 0 16px; opacity: .92; }
.site-cta .site-actions { justify-content: center; }
.site-cta .btn { background: #fff; color: #1c1c20; border-color: #fff; }
.site-cta .btn.outline { background: transparent; color: #fff; border-color: #fff; }

/* the pictures of the slides */
.art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 230px; }
.art-chat { flex-direction: column; align-items: stretch; gap: 10px; width: min(360px, 100%); margin-inline: auto; }
.bub { max-width: 82%; padding: 11px 15px; border-radius: 20px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(12px); animation: bubIn .5s var(--d) forwards; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.bub.in { align-self: flex-start; background: #fff; color: #1c1c20; border-end-start-radius: 6px; }
.bub.out { align-self: flex-end; background: var(--primary); color: #1c1c20; border-end-end-radius: 6px; }
@keyframes bubIn { to { opacity: 1; transform: none; } }
.art-orbit { width: 240px; height: 240px; margin-inline: auto; }
.art-orbit .ring { position: absolute; inset: 14px; border: 2px dashed rgba(196, 85, 43, .5); border-radius: 50%; animation: artSpin 20s linear infinite; }
.art-orbit .core { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; background: var(--primary); box-shadow: 0 0 0 0 rgba(244, 128, 80, .6); animation: artPulse 2.2s infinite; }
.art-orbit .sat { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; font-size: 20px; color: #c4552b; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); animation: artBob 3s ease-in-out infinite; }
.art-orbit .s1 { top: 0; inset-inline-start: 95px; }
.art-orbit .s2 { bottom: 14px; inset-inline-start: 4px; animation-delay: -1s; }
.art-orbit .s3 { bottom: 14px; inset-inline-end: 4px; animation-delay: -2s; }
@keyframes artSpin { to { transform: rotate(360deg); } }
@keyframes artPulse { 70% { box-shadow: 0 0 0 26px rgba(244, 128, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 128, 80, 0); } }
@keyframes artBob { 50% { transform: translateY(-9px); } }
.art-ai { flex-direction: column; gap: 14px; }
.ai-card { position: relative; width: 250px; padding: 22px 18px 18px; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.ai-spark { position: absolute; top: -16px; inset-inline-end: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); font-size: 20px; animation: artPulse 2s infinite; }
.ai-line { height: 10px; margin: 9px 0; border-radius: 6px; background: linear-gradient(90deg, #f3e3d8 25%, #fbc9ad 50%, #f3e3d8 75%); background-size: 200% 100%; animation: shimmer 1.8s infinite linear; }
.ai-line.l1 { width: 90%; } .ai-line.l2 { width: 70%; } .ai-line.l3 { width: 82%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ai-chips { display: flex; gap: 8px; }
.ai-chips em { font-style: normal; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 700; opacity: 0; animation: bubIn .5s var(--d) forwards, artBob 3s ease-in-out calc(var(--d) + 1s) infinite; }
.art-bars { flex-direction: column; gap: 10px; }
.bars-chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding: 18px 22px; border-radius: 24px; background: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.bars-chart span { width: 28px; height: 0; border-radius: 9px 9px 4px 4px; background: var(--primary); animation: barGrow 1s var(--d) forwards; }
.bars-chart span.exp { background: #1c1c20; }
@keyframes barGrow { to { height: var(--h); } }
.bars-legend { display: flex; gap: 10px; align-items: center; padding: 8px 18px; border-radius: 999px; background: #fff; font-size: 14px; }
.bars-legend span { font-weight: 800; color: #1e7e34; }
.art-receipt .rc { position: relative; overflow: hidden; width: 220px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.rc i { display: block; height: 9px; margin: 11px 0; border-radius: 5px; background: #f0e6de; }
.rc i.s { width: 60%; }
.rc-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #e6d6ca; font-size: 14px; }
.rc .scan { position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--primary); box-shadow: 0 0 14px 3px rgba(244, 128, 80, .75); animation: scanMove 2.4s ease-in-out infinite alternate; }
.rc-ok { position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #1e7e34; color: #fff; font-weight: 800; opacity: 0; animation: bubIn .4s 2.4s forwards; }
@keyframes scanMove { to { top: calc(100% - 3px); } }
.art-stock { flex-direction: column; align-items: stretch; gap: 10px; width: min(330px, 100%); margin-inline: auto; }
.stk { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .4); opacity: 0; animation: bubIn .5s var(--d) forwards; font-size: 13px; font-weight: 700; }
.stk div { height: 8px; border-radius: 5px; background: #f0e6de; overflow: hidden; }
.stk i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--primary); animation: barW 1.2s calc(var(--d) + .3s) forwards; }
.stk.low i { background: #d93025; }
.stk em { font-style: normal; padding: 3px 9px; border-radius: 999px; background: #fdecea; color: #b71c1c; font-size: 11px; animation: artPulse 2s infinite; }
@keyframes barW { to { width: var(--w); } }
.art-team { flex-wrap: wrap; gap: 12px; width: 280px; margin-inline: auto; }
.art-team span { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-weight: 800; font-size: 22px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .4); opacity: 0; transform: scale(.4); animation: popIn .5s var(--d) forwards; }
.art-team span i { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; background: #1e7e34; border: 3px solid #fff; }
@keyframes popIn { to { opacity: 1; transform: none; } }
.team-note { width: 100%; text-align: center; padding: 8px; border-radius: 999px; background: #fff; font-weight: 800; color: #1e7e34; }
.art-pay .pay { width: 230px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.pay-row { display: flex; justify-content: space-between; margin: 12px 0; }
.pay-row span { height: 9px; border-radius: 5px; background: #f0e6de; width: 40%; } .pay-row span + span { width: 22%; }
.pay-row.m span + span { background: #f9c9b3; }
.pay-net { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--primary); animation: artPulse 2.4s infinite; }
.pay-net b { font-size: 20px; }
.art-cal { flex-direction: column; gap: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 28px); gap: 6px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.cal-grid span { height: 28px; border-radius: 9px; background: #f3e9e1; opacity: 0; animation: bubIn .3s var(--d) forwards; }
.cal-grid span.lv { background: var(--primary); animation: bubIn .3s var(--d) forwards, artPulse 2s 1.5s infinite; }
.cal-grid span.off { background: #cfe9d6; }
.cal-note { padding: 7px 16px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; }

@media (max-width: 760px) {
  .site-slide { grid-template-columns: 1fr; text-align: center; padding: 22px 18px 58px; }
  .site-slide .art { order: -1; min-height: 210px; }
  .site-slide-text p { margin-inline: auto; }
  .site-actions { justify-content: center; }
  .site-grid { grid-template-columns: 1fr 1fr; }
  .site-steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .site-grid { grid-template-columns: 1fr; } .site-stats b { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .site *, .site *::before, .site *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; } }

/* store slider: slides that introduce the app's sections */
.store-slide.promo-slide { gap: clamp(18px, 4vw, 54px); justify-content: center; overflow: hidden; }
.promo-slide.pr-accounting { background-image: linear-gradient(120deg, #0f6b5a, #1fa58a 65%, #16806c); }
.promo-slide.pr-hr { background-image: linear-gradient(120deg, #3b3fb8, #6a6ff0 65%, #4b50d4); }
.promo-slide.pr-responder { background-image: linear-gradient(120deg, #7a2fb0, #b35be0 65%, #9640cc); }
.promo-slide.pr-map { background-image: linear-gradient(120deg, #1a5fa8, #3a97e0 65%, #2478c4); }
.promo-slide.pr-card { background-image: linear-gradient(120deg, #c4552b, #f48050 62%, #e0653a); }
.promo-slide .bs-orb { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); pointer-events: none; }
.promo-slide .bs-orb.o1 { width: 220px; height: 220px; inset-inline-start: -60px; top: -90px; }
.promo-slide .bs-orb.o2 { width: 150px; height: 150px; inset-inline-end: 12%; bottom: -70px; }
.promo-slide .ps-ico { position: relative; flex: none; font-size: clamp(64px, 14vw, 120px); line-height: 1; filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }
.promo-slide .bs-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.promo-slide h1 em { font-style: normal; opacity: .92; }
.promo-slide .ps-badge { background: #ffd54a; color: #3a2a00; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; }

/* the Dalilacom mark, fixed in the top corner of every page */
.brand-mark { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); inset-inline-start: 10px; z-index: 450; width: 38px; height: 38px; padding: 5px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 900px) { .brand-mark { inset-inline-start: 22px; top: 14px; } }
