/* =========================================================
   Lebabak Design System — shared by every prototype screen
   RTL-first · Readex Pro · Pink brand
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
  /* brand */
  --pink: #F0287A;
  --pink-600: #D91C68;
  --pink-700: #B3134F;
  --blush: #FFE4EE;
  --blush-2: #FFF0F5;
  --petal: #FFF7FA;
  --lavender: #F1EAFF;
  --grape: #7C4DFF;
  --grape-700: #5B2FD6;

  /* ink */
  --ink: #241629;          /* plum-black for text & footer */
  --ink-2: #4A3A50;
  --muted: #85758B;
  --line: #F1DCE6;
  --line-2: #EADFEE;
  --surface: #FFFFFF;
  --canvas: #FCF6F9;

  /* status */
  --ok: #12A150;   --ok-bg: #E4F7EC;
  --warn: #D97706; --warn-bg: #FEF3DC;
  --info: #2F6FEB; --info-bg: #E6EEFF;
  --bad: #E11D48;  --bad-bg: #FFE4EA;
  --idle: #6B6475; --idle-bg: #F1EEF3;

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* depth — pink-tinted, never grey */
  --sh-1: 0 1px 2px rgba(178, 19, 79, .06), 0 2px 8px rgba(178, 19, 79, .05);
  --sh-2: 0 10px 30px -12px rgba(178, 19, 79, .22);
  --sh-3: 0 24px 60px -20px rgba(178, 19, 79, .35);
  --sh-btn: 0 8px 18px -8px rgba(240, 40, 122, .7);

  --font: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; } /* off-canvas sidebar sits past the RTL edge on mobile */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid rgba(240, 40, 122, .45); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--blush); color: var(--pink-700); }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.num, .ltr { direction: ltr; unicode-bidi: isolate; }
span.num, span.ltr, b.num, b.ltr { display: inline-block; }
.muted { color: var(--muted); }
.pink { color: var(--pink); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.semi { font-weight: 600; }

/* ---------- type scale ---------- */
.t-display { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.t-h1 { font-size: clamp(28px, 3.4vw, 40px); }
.t-h2 { font-size: clamp(22px, 2.4vw, 28px); }
.t-h3 { font-size: 20px; }
.t-h4 { font-size: 16px; }

/* ---------- layout ---------- */
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
/* grid tracks default to min-content — let every grid child shrink so long content can't push the column wider than the screen */
[class*="grid"] > *, [class*="-in"] > *, .stack > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 24px; letter-spacing: .02em; color: var(--pink); direction: ltr; }
.logo svg { width: 26px; height: 32px; flex: none; }
.logo.light { color: #fff; }
.logo.sm { font-size: 18px; }
.logo.sm svg { width: 20px; height: 25px; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--sh-btn); }
.btn-primary:hover { background: var(--pink-600); }
.btn-soft { background: var(--blush); color: var(--pink-700); }
.btn-soft:hover { background: #FFD3E3; }
.btn-outline { border: 1.5px solid var(--pink); color: var(--pink); background: #fff; }
.btn-outline:hover { background: var(--blush-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--blush-2); color: var(--pink-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-grape { background: var(--grape); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-bad { background: var(--bad-bg); color: var(--bad); }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; position: relative;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--blush-2); color: var(--pink); }
.icon-btn svg { width: 20px; height: 20px; }
.dot-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(240, 40, 122, .12); }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.input-icon .input { padding-inline-start: 42px; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- switch ---------- */
.switch { position: relative; display: inline-block; vertical-align: middle; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #E4D9E8; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: inset-inline-start .2s var(--ease); }
.switch input:checked + span { background: var(--pink); }
.switch input:checked + span::after { inset-inline-start: 23px; }

/* ---------- segmented ---------- */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--blush-2); }
.segmented button { height: 34px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.segmented button.active { background: #fff; color: var(--pink); box-shadow: var(--sh-1); }

/* ---------- chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; }
.chip.active, .chip:hover { border-color: var(--pink); color: var(--pink); background: var(--blush-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--blush); color: var(--pink-700); font-size: 13px; font-weight: 600; }
.tag svg { width: 14px; height: 14px; }
.tag.grape { background: var(--lavender); color: var(--grape-700); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-info { background: var(--info-bg); color: var(--info); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-idle { background: var(--idle-bg); color: var(--idle); }
.b-pink { background: var(--blush); color: var(--pink-700); }
.b-grape { background: var(--lavender); color: var(--grape-700); }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid #F6E8EF; }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; }
.card-body { padding: 22px; }
.panel-soft { background: var(--blush-2); border-radius: var(--r-md); padding: 16px; }

/* ---------- 3D emoji / art ---------- */
.emo { width: 48px; height: 48px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(178, 19, 79, .18)); }
.emo.xs { width: 22px; height: 22px; filter: none; }
.emo.sm { width: 32px; height: 32px; }
.emo.lg { width: 72px; height: 72px; }
.emo.xl { width: 110px; height: 110px; }
.emo-tile { display: grid; place-items: center; border-radius: var(--r-md); background: linear-gradient(160deg, #FFF0F6, #FFE1EC); flex: none; }

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; background: var(--blush); color: var(--pink-700); overflow: hidden; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.grape { background: var(--lavender); color: var(--grape-700); }

/* ---------- rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.rating svg { width: 15px; height: 15px; fill: #FFB800; color: #FFB800; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 600; font-size: 12px; color: var(--muted); padding: 12px 16px; background: var(--petal); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--petal); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; padding: 12px 16px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs button.active { color: var(--pink); }
.tabs button.active::after { content: ''; position: absolute; inset-inline: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- KPI ---------- */
.kpi { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blush); color: var(--pink); }
.kpi-ico svg { width: 22px; height: 22px; }
.kpi-ico.grape { background: var(--lavender); color: var(--grape); }
.kpi-ico.ok { background: var(--ok-bg); color: var(--ok); }
.kpi-ico.warn { background: var(--warn-bg); color: var(--warn); }
.kpi-val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi-label { font-size: 13px; color: var(--muted); }
.trend { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; direction: ltr; }
.trend.up { color: var(--ok); }
.trend.down { color: var(--bad); }

/* ---------- progress ---------- */
.bar { height: 8px; border-radius: 8px; background: var(--blush-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #FF6FA8); }

/* ---------- order timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.timeline .tl-dot svg { width: 16px; height: 16px; }
.timeline li.done .tl-dot { background: var(--pink); border-color: var(--pink); color: #fff; }
.timeline li.done::before { background: var(--pink); }
.timeline li.now .tl-dot { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 0 6px rgba(240, 40, 122, .14); }
.timeline .tl-title { font-weight: 600; font-size: 14px; }
.timeline .tl-time { font-size: 12px; color: var(--muted); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(36, 22, 41, .45); backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fade .2s var(--ease); }
.modal-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); animation: pop .25s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(36, 22, 41, .4); }
.drawer.open { display: block; }
.drawer-box { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: var(--sh-3); animation: slideIn .3s var(--ease); }

/* ---------- toast ---------- */
.toast-host { position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sh-3); animation: pop .25s var(--ease); }
.toast svg { width: 18px; height: 18px; color: #6EE7A8; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- dashboard shell (seller & admin) ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #fff; border-inline-end: 1px solid var(--line);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 18px;
  scrollbar-width: thin; scrollbar-color: #F2D3E1 transparent;
}
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: #F2D3E1; border-radius: 6px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-title { font-size: 12px; color: var(--muted); padding: 8px 12px 4px; font-weight: 500; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; width: 100%; text-align: start; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link:hover { background: var(--blush-2); color: var(--pink-700); }
.side-link.active { background: var(--pink); color: #fff; box-shadow: var(--sh-btn); }
.side-link .count { margin-inline-start: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--blush); color: var(--pink-700); }
.side-link.active .count { background: rgba(255, 255, 255, .25); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(252, 246, 249, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .search { width: min(380px, 100%); }
.content { padding: 26px 28px 48px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.view { display: none; flex-direction: column; gap: 22px; }
.view.active { display: flex; animation: fade .25s var(--ease); }
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 80; translate: 100% 0; transition: translate .3s var(--ease); box-shadow: var(--sh-3); }
  .side.open { translate: 0 0; }
  .menu-toggle { display: inline-grid; }
  .topbar, .content { padding-inline: 16px; }
}

/* ---------- phone device frame ---------- */
.device {
  width: 340px; height: 712px; flex: none; position: relative;
  border-radius: 52px; padding: 11px; background: #1C1420;
  box-shadow: 0 0 0 2px #3A2D40 inset, var(--sh-3);
}
.device::before { content: ''; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 5; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.statusbar { height: 50px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 6px; font-size: 13px; font-weight: 600; direction: ltr; }
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.statusbar svg { width: 15px; height: 15px; }
.scr-body { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.scr-body::-webkit-scrollbar { display: none; }
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 10px 10px 22px; border-top: 1px solid var(--line); background: #fff; }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .active { color: var(--pink); }
.home-ind { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; width: 120px; height: 5px; border-radius: 4px; background: var(--ink); opacity: .85; }
.device-cap { text-align: center; margin-top: 16px; }
.device-cap b { display: block; font-size: 15px; }
.device-cap span { font-size: 13px; color: var(--muted); }

/* ---------- map placeholder ---------- */
.map {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
    repeating-linear-gradient(0deg, transparent 0 46px, #F3E4EC 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 62px, #F3E4EC 62px 64px),
    linear-gradient(135deg, #FDF1F6, #F6EEFB);
}
.map svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; translate: -50% -100%; display: grid; place-items: center; }
.pin-dot { width: 38px; height: 38px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--pink); display: grid; place-items: center; box-shadow: var(--sh-2); }
.pin-dot > * { rotate: 45deg; color: #fff; width: 18px; height: 18px; }
.pulse { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--pink); translate: -50% -50%; box-shadow: 0 0 0 0 rgba(240, 40, 122, .5); animation: pulse 1.8s infinite; }

/* ---------- real map (Leaflet) ---------- */
.lmap { position: relative; z-index: 0; isolation: isolate; direction: ltr; overflow: hidden; border-radius: var(--r-md); background: #EEF0F2; font-family: var(--font); }
.lmap .leaflet-control-attribution { font-size: 9px; background: rgba(255, 255, 255, .75); }
.lmap .leaflet-control-zoom { border: 0; box-shadow: var(--sh-2); border-radius: 12px; overflow: hidden; }
.lmap .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; color: var(--ink); }
.lmap .leaflet-popup-content { direction: rtl; font-family: var(--font); font-size: 13px; margin: 10px 14px; }
.lmap .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--sh-2); }
.lb-icon { background: none; border: 0; }
.lb-pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; rotate: -45deg; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(178, 19, 79, .55); border: 2.5px solid #fff; }
.lb-pin > * { rotate: 45deg; width: 22px; height: 22px; }
.lb-pin-store { background: #fff; border-color: var(--pink); }
.lb-pin-store img { width: 26px; height: 26px; object-fit: contain; }
.lb-pin-store svg { color: var(--pink); }
.lb-pin-home { background: var(--ink); }
.lb-pin-order { background: var(--grape); }
.lb-pin-home svg, .lb-pin-order svg { width: 18px; height: 18px; }
.lb-driver { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -4px rgba(240, 40, 122, .6); }
.lb-driver svg { width: 22px; height: 22px; position: relative; }
.lb-driver span { position: absolute; inset: -3px; border-radius: 50%; animation: pulse 1.8s infinite; }
.lb-driver.idle { background: var(--ok); box-shadow: 0 6px 16px -4px rgba(18, 161, 80, .5); }
.lb-driver.idle span { display: none; }
.lb-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--pink); border: 3px solid #fff; box-shadow: var(--sh-2); }
.lb-pin-label { position: absolute; top: -26px; left: 50%; translate: -50% 0; white-space: nowrap; direction: rtl; padding: 2px 8px; border-radius: 8px; background: #fff; color: var(--ink); font: 600 11px/1.6 var(--font); box-shadow: var(--sh-1); }

/* ---------- role switcher sheet ---------- */
.role-sheet { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-end; justify-content: center; background: rgba(36, 22, 41, .5); backdrop-filter: blur(3px); }
.role-sheet.open { display: flex; animation: fade .2s var(--ease); }
.role-box { width: min(480px, 100%); background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--sh-3); animation: sheetUp .28s var(--ease); max-height: 90dvh; overflow-y: auto; }
.role-grip { display: block; width: 44px; height: 5px; border-radius: 4px; background: #EAD7E1; margin: 0 auto 12px; }
.role-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.role-head b { display: block; font-size: 18px; }
.role-head span { font-size: 13px; color: var(--muted); }
.role-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.role-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); }
.role-item:hover, .role-item:focus-visible { border-color: var(--pink); background: var(--blush-2); }
.role-item.current { background: var(--petal); border-color: var(--blush); }
.role-item b { display: block; font-size: 15px; }
.role-item small { display: block; font-size: 12.5px; color: var(--muted); }
.role-item > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.role-item.current > svg { color: var(--pink); }
.role-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.role-ico svg { width: 21px; height: 21px; }
.role-ico.pink { background: var(--blush); color: var(--pink); }
.role-ico.ink { background: var(--ink); color: #fff; }
.role-ico.grape { background: var(--lavender); color: var(--grape); }
@media (min-width: 601px) { .role-sheet { align-items: center; } .role-box { border-radius: 26px; } .role-grip { display: none; } }
.role-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--pink); }
.role-link svg { width: 16px; height: 16px; }
@keyframes sheetUp { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* ---------- dual currency ---------- */
.price.syp { direction: rtl; }
.lmap .leaflet-tile-pane { filter: saturate(.7) brightness(1.03); }
/* the hint line follows the surrounding text direction, so it lines up under the main price in RTL cards */
.price-alt { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cur-toggle button { min-width: 40px; padding: 0 12px; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.dashed { border-top: 1.5px dashed var(--line-2); }
.price { font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.price small { font-size: .72em; font-weight: 500; color: var(--muted); }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.qty { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--r-pill); background: var(--blush-2); }
.qty button { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--pink); box-shadow: var(--sh-1); }
.qty button svg { width: 15px; height: 15px; }
.qty b { min-width: 16px; text-align: center; font-size: 14px; }
.scroll-x { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.scroll-x::-webkit-scrollbar { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- prototype banner (back to hub) ---------- */
.proto-back {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 100; opacity: .92;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: var(--sh-3);
}
.proto-back svg { width: 16px; height: 16px; }

/* ---------- motion ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { translate: -100% 0; } to { translate: 0 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 40, 122, .5); } 70% { box-shadow: 0 0 0 18px rgba(240, 40, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 40, 122, 0); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
