/* BuySell UAE — design tokens
   Petrol teal brand, amber for highlights and warnings, green for success, red for errors.
   Barlow Condensed carries prices, timers and headings; Barlow for reading; Noto Kufi Arabic in RTL. */
:root {
  --chalk: #edf0f2;
  --paper: #ffffff;
  --sunk: #f5f7f8;
  --ink: #15212b;
  --muted: #5e6b76;
  --line: #d5dce1;
  --petrol: #0b5d5e;
  --petrol-ink: #ffffff;
  --petrol-soft: #dcecec;
  --amber: #f2a516;
  --amber-ink: #3a2600;
  --amber-soft: #fdf1d8;
  --win: #138a5a;
  --win-soft: #dcf2e8;
  --lose: #c8323c;
  --lose-soft: #fbe3e5;
  --focus: #1d6fd6;
  --studio-a: #dfe5e9;
  --studio-b: #f6f8f9;
  --shadow: 0 1px 0 rgba(21, 33, 43, 0.04), 0 8px 24px -12px rgba(21, 33, 43, 0.18);

  --f-display: 'Barlow Condensed', 'Noto Kufi Arabic', system-ui, sans-serif;
  --f-body: 'Barlow', 'Noto Kufi Arabic', system-ui, sans-serif;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --chalk: #0e1820; --paper: #15232d; --sunk: #112029; --ink: #e6edf2; --muted: #8fa0ac; --line: #26363f;
    --petrol: #2fa3a0; --petrol-ink: #04201f; --petrol-soft: #123637; --amber: #f5b232; --amber-soft: #3a2c0f;
    --win: #3cc48a; --win-soft: #10372a; --lose: #f0606a; --lose-soft: #3f1a1e; --focus: #6aa8ff;
    --studio-a: #1d2b35; --studio-b: #2a3a45; --shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --chalk: #0e1820; --paper: #15232d; --sunk: #112029; --ink: #e6edf2; --muted: #8fa0ac; --line: #26363f;
  --petrol: #2fa3a0; --petrol-ink: #04201f; --petrol-soft: #123637; --amber: #f5b232; --amber-soft: #3a2c0f;
  --win: #3cc48a; --win-soft: #10372a; --lose: #f0606a; --lose-soft: #3f1a1e; --focus: #6aa8ff;
  --studio-a: #1d2b35; --studio-b: #2a3a45; --shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  font-feature-settings: 'tnum' 1;
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
html[lang='ar'] body { font-family: 'Noto Kufi Arabic', var(--f-body); font-size: 15px; }
html[lang='ar'] { --f-display: 'Noto Kufi Arabic', 'Barlow Condensed', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: fixed; inset-inline-start: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; transform: translateY(-300%); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
html[lang='ar'] .num { font-family: 'Barlow Condensed', sans-serif; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; outline: none; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { line-height: 1.35; font-weight: 700; }
p { margin: 0 0 0.8em; max-width: 68ch; }

/* ---------- Buttons & fields ---------- */
.btn {
  --b: var(--paper); --c: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-s);
  border: 1px solid var(--bd); background: var(--b); color: var(--c);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.primary { --b: var(--petrol); --c: var(--petrol-ink); --bd: var(--petrol); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.amber { --b: var(--amber); --c: var(--amber-ink); --bd: var(--amber); }
.btn.ghost { --b: transparent; --bd: transparent; }
.btn.ghost:hover { --b: var(--sunk); }
.btn.danger { --c: var(--lose); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 0.9rem; }
.btn.block { width: 100%; }
.iconbtn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; position: relative; color: var(--ink);
}
.iconbtn:hover { background: var(--sunk); }
.iconbtn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--lose); color: #fff; font: 700 10px/16px var(--f-body); text-align: center; }

label.f { display: grid; gap: 6px; align-content: start; font-weight: 600; font-size: 0.92rem; }
label.f small { font-weight: 400; color: var(--muted); }
.in, select.in, textarea.in {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--paper); font-weight: 400;
}
textarea.in { min-height: 120px; resize: vertical; }
.in:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--petrol); }
.err { color: var(--lose); font-weight: 600; font-size: 0.92rem; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand .logo-img { width: 44px; height: 44px; flex-shrink: 0; display: block; object-fit: contain; -webkit-user-drag: none; user-select: none; }
/* Dark theme: a thin light ring keeps the logo's edge clear against the dark navbar. */
/* Dark theme: a very thin light outline that follows the logo's rounded shape, so the green square stands out. */
:root[data-theme='dark'] .logo-img, :root[data-theme='dark'] .auth-logo, :root[data-theme='dark'] .foot-logo img { filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .85)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .logo-img, :root:not([data-theme='light']) .auth-logo, :root:not([data-theme='light']) .foot-logo img { filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .85)); } }
.auth-logo { display: block; width: 44px; height: 44px; margin-bottom: 12px; }
.foot-logo { display: inline-block; vertical-align: middle; margin-inline-end: 10px; }
.foot-logo img { display: block; width: 36px; height: 36px; }
.brand { flex-shrink: 0; white-space: nowrap; }
.nav a { white-space: nowrap; }
.brand b { color: #0a8a5c; font-weight: 700; }
:root[data-theme='dark'] .brand b { color: #3cc48a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand b { color: #3cc48a; } }
.brand .ar { font-family: 'Noto Kufi Arabic', sans-serif; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-s); font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--petrol); border-radius: 0; }
.search { flex: 1; max-width: 360px; margin-inline-start: auto; position: relative; }
.search input { padding-inline-start: 38px; min-height: 40px; background: var(--sunk); border-color: transparent; }
.search svg { position: absolute; inset-inline-start: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 4px; }
.menu { position: relative; }
.menu-pop { position: absolute; inset-inline-end: 0; top: 48px; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 6px; display: none; }
.menu-pop.open { display: block; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; text-align: start; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; border: 0; background: none; cursor: pointer; font-weight: 500; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--sunk); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.burger { display: none; }
/* The longer brand name needs more room: drop the Arabic tag, then switch to the menu button, before the header can overflow. */
@media (max-width: 1240px) { .brand .ar { display: none; } }
@media (max-width: 1130px) { .nav { display: none; } .burger { display: inline-grid; } }
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .search { max-width: none; }
}
@media (max-width: 640px) {
  .top .wrap { gap: 8px; height: 64px; }
  .brand .logo-img { width: 40px; height: 40px; }
  .brand .ar, .brand span.word { display: none; }
  .search { display: none; }
  #register { display: none; }
}
/* Mobile menu: solid panel right under the navbar, dark backdrop over the page */
.mnav { position: fixed; inset: 0; top: var(--mnav-top, 64px); z-index: 950; visibility: hidden; pointer-events: none; transition: visibility 0s linear .2s; }
.mnav.open { visibility: visible; pointer-events: auto; transition: none; }
.mnav-scrim { position: absolute; inset: 0; background: rgba(5, 12, 18, .6); opacity: 0; transition: opacity .2s ease; }
.mnav.open .mnav-scrim { opacity: 1; }
.mnav-panel { position: absolute; top: 0; inset-inline: 0; max-height: calc(100dvh - var(--mnav-top, 64px)); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-l) var(--r-l); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
.mnav.open .mnav-panel { opacity: 1; transform: none; }
.mnav-links { display: flex; flex-direction: column; padding: 6px 0; }
.mnav-links a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; transition: background .12s ease; }
.mnav-links a:last-child { border-bottom: 0; }
.mnav-links a:hover, .mnav-links a:active { background: var(--sunk); }
.mnav-links a.on { color: var(--petrol); box-shadow: inset 3px 0 0 var(--petrol); }
[dir=rtl] .mnav-links a.on { box-shadow: inset -3px 0 0 var(--petrol); }
.mnav-links a:focus-visible { outline: 2px solid var(--petrol); outline-offset: -2px; }
.mnav-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.mnav-tools .btn { width: 100%; min-height: 44px; justify-content: center; white-space: nowrap; }
html.mnav-lock { overflow: hidden; }
@media (min-width: 1131px) { .mnav { display: none; } }
@media (prefers-reduced-motion: reduce) { .mnav-scrim, .mnav-panel { transition: none; } }

/* ---------- Status pills & plates ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-weight: 600; font-size: 0.8rem; background: var(--sunk); color: var(--ink); border: 1px solid var(--line); }
.pill.soon { background: var(--petrol-soft); color: var(--petrol); border-color: transparent; }
.pill.win { background: var(--win-soft); color: var(--win); border-color: transparent; }
.pill.lose { background: var(--lose-soft); color: var(--lose); border-color: transparent; }
.pill.amber { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; }
:root[data-theme='dark'] .pill.amber { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .pill.amber { color: var(--amber); } }

/* ---------- Prices, amount fields, state notes ---------- */
.price { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 6.4vw, 4.6rem); line-height: 0.9; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[lang='ar'] .price { font-family: 'Barlow Condensed', sans-serif; }
.price small { font-size: 0.36em; font-weight: 600; color: var(--muted); margin-inline-end: 6px; letter-spacing: 0.04em; }

.amount { display: flex; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); overflow: hidden; }
.amount span { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-weight: 600; background: var(--sunk); }
.amount input { flex: 1; min-width: 0; border: 0; padding: 0 12px; min-height: 52px; font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 600; background: transparent; direction: ltr; }
.amount input:focus { outline: none; }
.amount:focus-within { outline: 2px solid var(--focus); outline-offset: -1px; }
.state { padding: 12px 14px; border-radius: var(--r-m); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.state.win { background: var(--win-soft); color: var(--win); }
.state.lose { background: var(--lose-soft); color: var(--lose); }
.state.info { background: var(--sunk); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: 34px 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Browse ---------- */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 24px; }
.filters { display: grid; gap: 16px; align-content: start; position: sticky; top: 84px; }
.filters .grp { display: grid; gap: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--muted); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--ink); border-bottom-color: var(--petrol); }
.tabs .count { font-size: 0.78rem; background: var(--sunk); border-radius: 10px; padding: 1px 7px; margin-inline-start: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { width: auto; min-height: 38px; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}
.pager { display: flex; gap: 6px; justify-content: center; padding: 26px 0; }
.empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-l); color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty h3 { color: var(--ink); }

/* ---------- Listing page ---------- */
.lotpage { padding-block: 22px 40px; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lothead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lothead .chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.lotgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); gap: 26px; align-items: start; }
.lotgrid .side { position: sticky; top: 84px; }
@media (max-width: 1000px) {
  .lotgrid { grid-template-columns: 1fr; gap: 0; }
  .lotgrid .mainc { display: contents; }
  .lotgrid .side { position: static; order: 3; margin: 18px 0; }
  .lotgrid .mainc > * { order: 4; }
  .lotgrid #gallery, .lotgrid .mainc > .mx-gallery { order: 1; }
  .lotgrid #thumbs, .lotgrid .mainc > .thumbs { order: 2; }
  .lotgrid .mainc > .panel { margin-top: 0; margin-bottom: 18px; }
}
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.45rem; margin-bottom: 14px; }
.gallery { background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 10; position: relative; border: 1px solid var(--line); }
.gallery img, .gallery svg { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav-g { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); color: #111; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.gallery .prev { inset-inline-start: 12px; }
.gallery .next { inset-inline-end: 12px; }
.gallery .count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 0.82rem; }
/* Click the photo to open the full-screen viewer */
.gallery .zoomable { width: 100%; height: 100%; }
.zoom-host img, .zoom-host svg, .zoom-host .zoomable { cursor: zoom-in; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.zoom-host .nav-g svg, .zoom-host .zoom-g svg { cursor: pointer; }
.zoom-host .zoom-g { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: zoom-in; opacity: 0; transform: scale(.9); transition: opacity .15s ease, transform .15s ease; }
.zoom-host:hover .zoom-g, .zoom-host .zoom-g:focus-visible { opacity: 1; transform: none; }
.zoom-host .zoom-g svg { cursor: zoom-in; }
@media (hover: none) { .zoom-host .zoom-g { display: none; } }

/* Full-screen photo viewer */
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: 1fr auto; background: rgba(8, 12, 16, .9); color: #fff; opacity: 0; transition: opacity .2s ease; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb.open { opacity: 1; }
.lb-stage { position: relative; overflow: hidden; padding: 64px 72px 12px; min-height: 0; }
.lb-frame { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform: scale(.96); transition: transform .2s ease; }
.lb.open .lb-frame { transform: none; }
.lb-frame img, .lb-art { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-m); cursor: zoom-in; will-change: transform; -webkit-user-drag: none; }
.lb-art { width: min(100%, 1100px, calc((100vh - 120px) * 1.6)); aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); }
.lb-art svg { width: 100%; height: 100%; display: block; }
.lb.zoomed .lb-frame img, .lb.zoomed .lb-art { cursor: grab; border-radius: 0; }
.lb.zoomed.dragging .lb-frame img, .lb.zoomed.dragging .lb-art { cursor: grabbing; }
.lb-btn { position: absolute; z-index: 2; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s ease; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn:focus-visible, .lb-thumbs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; }
.lb-nav { top: calc(50% - 60px); width: 48px; height: 48px; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
.lb-next svg { transform: scaleX(-1); }
[dir=rtl] .lb-prev svg { transform: scaleX(-1); }
[dir=rtl] .lb-next svg { transform: none; }
.lb-foot { display: grid; justify-items: center; gap: 10px; padding: 8px 16px 18px; min-width: 0; }
.lb-count { font-size: .9rem; background: rgba(0,0,0,.45); padding: 3px 12px; border-radius: 12px; }
.lb-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 auto; width: 72px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: var(--r-s); overflow: hidden; background: rgba(255,255,255,.1); cursor: pointer; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.on { opacity: 1; border-color: var(--petrol); box-shadow: 0 0 0 1px #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .lb-stage { padding: 60px 8px 8px; }
  .lb-nav { width: 40px; height: 40px; top: auto; bottom: 108px; background: rgba(0,0,0,.45); }
  .lb-thumbs button { width: 56px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lb, .lb-frame, .zoom-host .zoom-g { transition: none; } }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 92px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sunk); }
.thumbs button.on { border-color: var(--petrol); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.spec div { padding: 12px 14px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); margin: 0 -1px -1px 0; }
.spec dt { font-size: 0.8rem; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-weight: 600; }
.chart { width: 100%; height: 160px; display: block; }
.chart .ln { fill: none; stroke: var(--petrol); stroke-width: 2.2; }
.chart .ar { fill: var(--petrol); opacity: 0.08; }
.chart .rs { stroke: var(--amber); stroke-dasharray: 5 5; stroke-width: 1.5; }
.chart text { fill: var(--muted); font: 12px var(--f-body); }

/* ---------- Stats strip ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 28px; padding: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.stats b { font-family: 'Barlow Condensed', sans-serif; color: var(--ink); font-size: 1.35rem; margin-inline-end: 6px; font-weight: 600; }

/* ---------- Pages, dashboards ---------- */
.page { padding-block: 26px 50px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.money { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); overflow: hidden; }
.money div { padding: 18px 20px; display: grid; gap: 4px; }
.money div + div { border-inline-start: 1px solid var(--line); }
.money span { color: var(--muted); font-size: 0.88rem; }
.money b { font-family: 'Barlow Condensed', sans-serif; font-size: 2.2rem; line-height: 1; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.money .main b { color: var(--petrol); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .money div + div { border-inline-start: 0; border-top: 1px solid var(--line); } }
table.t { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.t th { text-align: start; font-weight: 600; color: var(--muted); font-size: 0.82rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.n { text-align: end; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 600; direction: ltr; }
table.t .neg { color: var(--lose); }
.tablewrap { overflow-x: auto; }
.note { background: var(--amber-soft); padding: 10px 14px; border-radius: var(--r-s); font-size: 0.9rem; }
.list-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list-row .thumb { width: 96px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); }
.list-row .thumb svg, .list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row h3 { font-size: 1.1rem; }
.list-row .r { text-align: end; display: grid; gap: 4px; justify-items: end; }
@media (max-width: 560px) { .list-row { grid-template-columns: 72px 1fr; } .list-row .thumb { width: 72px; } .list-row .r { grid-column: 1 / -1; justify-items: start; text-align: start; } }
.notif { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: start; }
.notif i { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: transparent; }
.notif.unread i { background: var(--lose); }
.notif small { color: var(--muted); white-space: nowrap; }

/* ---------- Modal, toasts ---------- */
.modal-root { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; }
.modal-root.open { display: grid; }
.modal-root .scrim { position: absolute; inset: 0; background: rgba(5, 12, 18, 0.5); }
.modal { position: relative; width: min(440px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); border-radius: var(--r-l); padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); animation: rise 0.18s ease; }
.modal h2 { margin-bottom: 6px; }
.modal form { display: grid; gap: 14px; margin-top: 16px; }
.modal .x { position: absolute; top: 12px; inset-inline-end: 12px; }
.modal .alt { text-align: center; color: var(--muted); font-size: 0.92rem; }
.modal .alt button { border: 0; background: none; color: var(--petrol); font-weight: 600; cursor: pointer; padding: 0; }
/* Forgot password */
.forgot-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.forgot-link, .rs-link { border: 0; background: none; padding: 0; color: var(--petrol); font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.forgot-link:hover, .rs-link:hover:not(:disabled) { text-decoration: underline; }
.rs-link:disabled { color: var(--muted); cursor: default; font-weight: 500; }
.modal .rs-form { display: grid; gap: 14px; margin-top: 16px; }
.rs-steps { list-style: none; display: flex; align-items: center; gap: 0; margin: 0 0 18px; padding: 0; padding-inline-end: 40px; }
.rs-steps li { display: flex; align-items: center; flex: 1; }
.rs-steps li:last-child { flex: 0; }
.rs-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; border: 2px solid var(--line); color: var(--muted); background: var(--paper); flex: 0 0 auto; }
.rs-steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--line); margin: 0 6px; }
.rs-steps li.on span { border-color: var(--petrol); color: var(--petrol); }
.rs-steps li.done span { border-color: var(--petrol); background: var(--petrol); color: var(--petrol-ink); }
.rs-steps li.done::after { background: var(--petrol); }
.rs-sent { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.rs-sent b, .rs-form .ltr, .note .ltr { color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.rs-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; max-width: 360px; width: 100%; justify-self: center; }
.rs-code .in { text-align: center; font-size: 1.35rem; font-weight: 700; padding: 0; height: 52px; min-width: 0; font-variant-numeric: tabular-nums; }
.rs-code .in[aria-invalid] { border-color: var(--lose); }
.rs-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rs-pw { position: relative; display: block; }
.rs-pw .in { padding-inline-end: 44px; width: 100%; }
.rs-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: var(--r-s); }
.rs-eye:hover { color: var(--ink); }
.rs-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.rs-rules li { display: flex; align-items: center; gap: 8px; transition: color .15s ease; }
.rs-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .15s ease; }
.rs-rules li.ok { color: var(--win); }
.rs-rules li.ok .rs-dot { background: var(--win); border-color: var(--win); color: #fff; }
.rs-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 8px; }
.rs-done .btn { margin-top: 8px; }
.rs-ok { color: var(--win); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Create account: buyer or seller cards, the chosen-type badge, errors under each field. */
.ac-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ac-type { position: relative; display: grid; gap: 6px; align-content: start; justify-items: start; text-align: start; min-height: 72px; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ac-type:hover { border-color: var(--win); }
.ac-type[aria-checked='true'] { border-color: var(--win); background: var(--win-soft); box-shadow: inset 0 0 0 1px var(--win); }
.ac-type b { font-size: 1rem; }
.ac-type small { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.ac-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-soft); color: var(--petrol); }
.ac-type[aria-checked='true'] .ac-ico { background: var(--paper); color: var(--win); }
.ac-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--win); color: #fff; display: none; place-items: center; }
.ac-type[aria-checked='true'] .ac-check { display: grid; }
.ac-actions { display: grid; gap: 14px; margin-top: 18px; }
.ac-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding-inline-end: 40px; }
.ac-badge { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 999px; background: var(--win-soft); color: var(--win); font-size: 0.85rem; font-weight: 600; }
.ac-link { border: 0; background: none; padding: 0; color: var(--petrol); font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.ac-link:hover { text-decoration: underline; }
.ac-badge .ac-link { font-size: 0.82rem; }
.auth-modal .ac-ferr { margin: -8px 0 0; color: var(--lose); font-size: 0.85rem; font-weight: 500; }
.auth-modal .ac-ferr:empty { display: none; }
.auth-modal .in[aria-invalid='true'] { border-color: var(--lose); }
.ac-rule { font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.ac-same { display: flex; align-items: center; gap: 8px; margin-top: -6px; font-size: 0.9rem; cursor: pointer; }
.ac-same input { accent-color: var(--win); width: 16px; height: 16px; }
.auth-modal .in[readonly], .auth-modal select:disabled { background: var(--sunk); }
.ac-terms { margin: -4px 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
.ac-terms a { color: var(--petrol); font-weight: 600; }
.menu-pop .ac-become { color: var(--petrol); font-size: 0.88rem; font-weight: 600; }
.ac-legal { max-width: 760px; }
.ac-legal p { line-height: 1.6; }
@media (max-width: 480px) {
  .modal-root:has(.auth-modal) { padding: 0; }
  .modal.auth-modal { width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; padding: 22px 18px; }
  .ac-types { grid-template-columns: 1fr; }
  .ac-type { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px; padding-inline-end: 40px; }
  .ac-type .ac-ico { grid-row: span 2; }
  .rs-code { gap: 6px; }
  .rs-code .in { height: 48px; }
}
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--chalk); padding: 12px 16px; border-radius: var(--r-m); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; animation: rise 0.2s ease; font-weight: 500; }
.toast.win { background: var(--win); color: #fff; }
.toast.lose { background: var(--lose); color: #fff; }
.toast a { color: inherit; font-weight: 700; }
.toast button { background: none; border: 0; color: inherit; cursor: pointer; opacity: 0.7; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: 0.9rem; }
.foot .foot-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

.skeleton { background: linear-gradient(90deg, var(--sunk), var(--line), var(--sunk)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-m); }
@keyframes sk { to { background-position: -200% 0; } }
.conn { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 70; background: var(--amber); color: var(--amber-ink); padding: 6px 12px; border-radius: 16px; font-size: 0.82rem; font-weight: 600; display: none; }
.conn.show { display: block; }

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

/* =====================================================================
   Marketplace: Sell your car, listings, dashboards
   ===================================================================== */
.sell-cta { margin-inline-start: 4px; }
@media (max-width: 420px) { .sell-cta { padding: 0 10px; font-size: .82rem; } }
.mx-big { min-height: 52px; padding: 0 24px; font-size: 1.05rem; }
.mx-two { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-narrow { max-width: 820px; }
.mx-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--ink); }
.tick { color: var(--win); font-weight: 700; }
.mx-hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Landing */
.mx-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 10px 6px; }
.mx-hero-copy { display: grid; gap: 16px; align-content: start; }
.mx-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lede { font-size: 1.12rem; color: var(--muted); margin: 0; }
.mx-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.mx-process { margin: 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); display: grid; gap: 14px; counter-reset: mxs; list-style: none; }
.mx-process li { counter-increment: mxs; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.mx-process li::before { content: counter(mxs); width: 30px; height: 30px; border-radius: 50%; background: var(--petrol-soft); color: var(--petrol); display: grid; place-items: center; font: 700 1rem 'Barlow Condensed', sans-serif; }
.mx-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.mx-info .panel + .panel { margin-top: 0; }
.mx-info h3 { margin-bottom: 10px; }
.mx-sticky-cta { display: none; }
@media (max-width: 860px) {
  .mx-hero { grid-template-columns: 1fr; }
  .mx-sticky-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); z-index: 30; }
  .mx-landing { padding-bottom: 90px; }
}
.mx-sellband { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 26px; border-radius: var(--r-l); background: var(--petrol); color: var(--petrol-ink); }
.mx-sellband h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.mx-sellband p { margin: 6px 0 0; opacity: .85; }
.mx-sellband .btn:not(.amber) { --b: transparent; --c: var(--petrol-ink); --bd: color-mix(in srgb, var(--petrol-ink) 50%, transparent); }

/* Packages */
.mx-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.mx-pkg { position: relative; display: grid; gap: 10px; align-content: start; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-l); padding: 18px; cursor: default; }
label.mx-pkg { cursor: pointer; }
label.mx-pkg:hover { border-color: var(--muted); }
.mx-pkg.on { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }
.mx-pkg.top { border-top: 6px solid var(--amber); }
.mx-pkg:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-pkg-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.mx-pkg-head b { font-family: var(--f-display); font-size: 1.3rem; }
.mx-pkg-price { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700; line-height: 1; direction: ltr; unicode-bidi: isolate; text-align: start; }
.mx-pkg-price small { display: block; font: 500 .82rem var(--f-body); color: var(--muted); margin-top: 4px; }

/* Seller type */
.mx-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
@media (max-width: 640px) { .mx-types { grid-template-columns: 1fr; } }
.mx-type { display: grid; gap: 4px; padding: 16px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--paper); cursor: pointer; }
.mx-type b { font-size: 1.1rem; }
.mx-type span { color: var(--muted); font-size: .9rem; }
.mx-type.on { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }
.mx-type:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
#stf { display: grid; gap: 16px; }

/* Wizard */
.mx-wizard { padding-bottom: 110px; }
.mx-wiz-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mx-wiz-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.mx-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mx-steps button { width: 100%; display: grid; gap: 6px; justify-items: center; padding: 8px 2px; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .82rem; }
.mx-steps button:disabled { cursor: default; opacity: .55; }
.mx-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--paper); font: 700 .95rem 'Barlow Condensed', sans-serif; }
.mx-steps li { position: relative; }
.mx-steps li + li::before { content: ''; position: absolute; top: 23px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.mx-steps li.done .n { background: var(--petrol); border-color: var(--petrol); color: var(--petrol-ink); }
.mx-steps li.done + li::before, .mx-steps li.on::before { background: var(--petrol); }
.mx-steps li.on .n { border-color: var(--petrol); color: var(--petrol); box-shadow: 0 0 0 4px var(--petrol-soft); }
.mx-steps li.on button { color: var(--ink); }
@media (max-width: 560px) { .mx-steps .lbl { display: none; } .mx-steps li.on .lbl { display: block; position: absolute; top: 46px; white-space: nowrap; } .mx-steps { margin-bottom: 30px; } }
.mx-form { display: grid; gap: 18px; }
.mx-form .panel + .panel { margin-top: 0; }
.mx-form .panel { display: grid; gap: 14px; }
.mx-form h2 { margin-bottom: 2px; }
.mx-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 35; display: flex; gap: 10px; justify-content: flex-end; padding: 10px max(16px, calc((100vw - var(--maxw)) / 2 + var(--gutter))) calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.mx-bar #back { margin-inline-end: auto; }
.mx-bar .btn { min-height: 48px; }
@media (max-width: 480px) { .mx-bar #saveNow { display: none; } .mx-bar #next { flex: 1; } }
.mx-q { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mx-q legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.mx-seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; justify-self: start; }
.mx-seg label { position: relative; }
.mx-seg input { position: absolute; opacity: 0; inset: 0; }
.mx-seg span { display: block; min-width: 76px; text-align: center; padding: 10px 16px; font-weight: 600; cursor: pointer; background: var(--paper); border-inline-end: 1px solid var(--line); }
.mx-seg label:last-child span { border-inline-end: 0; }
.mx-seg input:checked + span { background: var(--ink); color: var(--paper); }
.mx-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.mx-gcc { background: var(--amber-soft); padding: 12px 14px; border-radius: var(--r-s); }
.mx-feat { border: 0; padding: 0; margin: 0; }
.mx-feat legend { font-weight: 600; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.mx-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chipset label { position: relative; }
.mx-chipset input { position: absolute; opacity: 0; inset: 0; }
.mx-chipset span { display: inline-block; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 500; font-size: .92rem; }
.mx-chipset input:checked + span { background: var(--petrol); color: var(--petrol-ink); border-color: var(--petrol); }
.mx-chipset input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-desc { min-height: 220px; font-size: 1rem; line-height: 1.6; }
.mx-desc-meta { display: flex; justify-content: space-between; gap: 12px; }
.mx-desc-meta small { font-weight: 400; color: var(--muted); }
[aria-invalid="true"] { border-color: var(--lose) !important; }
.mx-ferr { display: block; margin-top: 4px; }
.mx-note { display: grid; gap: 4px; }
.mx-note span { font-weight: 400; }

/* Photos */
.mx-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.mx-slot { position: relative; display: grid; gap: 6px; }
.mx-slot > img, .mx-slot-add { aspect-ratio: 4 / 3; width: 100%; border-radius: 10px; object-fit: cover; }
.mx-slot-add { display: grid; place-items: center; border: 2px dashed var(--line); background: var(--paper); cursor: pointer; color: var(--muted); }
.mx-slot.req .mx-slot-add { border-color: color-mix(in srgb, var(--petrol) 45%, var(--line)); }
.mx-slot-add:hover { border-color: var(--petrol); color: var(--petrol); }
.mx-slot-add:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.mx-plus { font: 600 2rem/1 var(--f-body); }
.mx-slot-lbl { font-size: .85rem; font-weight: 600; }
.mx-slot-lbl small { font-weight: 400; color: var(--muted); }
.mx-cover { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--petrol); color: var(--petrol-ink); font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.mx-warn { position: absolute; top: 6px; inset-inline-start: 6px; margin-inline-start: 52px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #3a2600; display: grid; place-items: center; font-weight: 800; font-size: .8rem; cursor: help; }
.mx-slot-acts { position: absolute; top: 6px; inset-inline-end: 6px; display: flex; gap: 4px; }
.mx-slot-acts button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(10, 16, 22, .7); color: #fff; cursor: pointer; font-size: 1rem; }
.mx-drop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding: 22px; border: 2px dashed var(--line); border-radius: var(--r-m); background: var(--paper); text-align: center; cursor: pointer; color: var(--muted); }
.mx-drop.over { border-color: var(--petrol); background: var(--petrol-soft); color: var(--ink); }
.mx-progress { font-weight: 600; color: var(--petrol); min-height: 1.4em; }
.mx-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mx-order li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; cursor: grab; }
.mx-order li.drag { opacity: .5; }
.mx-order img { width: 64px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.mx-move { display: flex; gap: 4px; }
.mx-move button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunk); cursor: pointer; }
.mx-docs { display: grid; gap: 8px; }
.mx-doc { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mx-doc .muted { flex: 1; min-width: 120px; font-size: .88rem; overflow-wrap: anywhere; }
.mx-docadd { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.mx-docadd .f { flex: 1; min-width: 200px; }

/* Location, contact, verification */
.mx-map-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-map { height: 300px; border-radius: var(--r-m); border: 1px solid var(--line); overflow: hidden; }
.mx-toggle { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; background: var(--paper); }
.mx-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--petrol); }
.mx-toggle span { display: grid; gap: 2px; }
.mx-toggle small { color: var(--muted); }
.mx-toggle:has(input:checked) { border-color: var(--petrol); background: var(--petrol-soft); }
.mx-verify { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mx-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-code .in { width: 180px; min-height: 36px; letter-spacing: .2em; }
.mx-declare { display: grid; gap: 14px; }
.mx-declare .check { align-items: flex-start; font-weight: 400; }
.mx-declare .check input { margin-top: 3px; flex: none; }
.mx-pay { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-s); background: var(--sunk); }
.mx-preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; }
.mx-preview-frame { border: 2px dashed var(--line); border-radius: var(--r-l); padding: 18px; background: var(--chalk); }
.mx-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px 0; }
.mx-done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--win); color: #fff; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; }

/* Cards */
.mx-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.mx-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.mx-card:hover { border-color: var(--muted); }
.mx-media { display: block; position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); }
.mx-media img, .mx-media svg { width: 100%; height: 100%; object-fit: cover; }
.mx-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-badge { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: #fff; color: #15212b; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.mx-badge.feat { background: #f2a516; color: #3a2600; }
.mx-badge.ver { background: #138a5a; color: #fff; }
.mx-badge.res { background: #15212b; color: #fff; }
.mx-badge.sold { background: #c8323c; color: #fff; }
.mx-count { position: absolute; bottom: 8px; inset-inline-end: 8px; display: inline-flex; gap: 4px; align-items: center; background: rgba(10,16,22,.65); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 10px; }
.mx-heart { position: absolute; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #c8323c; display: grid; place-items: center; cursor: pointer; }
.mx-body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.mx-body h3 { font-size: 1.25rem; }
.mx-body h3 a { text-decoration: none; }
.mx-variant { font-size: .88rem; margin-top: -4px; }
.mx-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.55rem; line-height: 1.05; direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir='rtl'] .mx-price { text-align: end; }
.mx-price small { margin-inline-start: 8px; font: 600 .74rem var(--f-body); color: var(--win); vertical-align: middle; }
.mx-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; color: var(--muted); }
.mx-view { justify-self: start; margin-top: 4px; }
.mx-searchbar { display: flex; gap: 8px; }
.mx-searchbar .in { flex: 1; }

/* Listing page */
.mx-gallery { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); border: 1px solid var(--line); max-width: 100%; }
.mx-gallery img, .mx-gallery svg { width: 100%; height: 100%; object-fit: cover; }
.mx-gallery .nav-g { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); color: #111; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.mx-gallery .prev { inset-inline-start: 12px; }
.mx-gallery .next { inset-inline-end: 12px; }
.mx-gallery .count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: .82rem; }
.mx-contact { display: grid; gap: 14px; }
.mx-contact .price small { font-size: .36em; }
.row-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-actions { display: grid; gap: 8px; }
.mx-actions .mx-two .btn { flex: 1; }
.mx-contact .mx-two .btn { flex: 1; }
.mx-contact [data-fav].on { color: var(--lose); border-color: var(--lose); }
.mx-seller { display: grid; gap: 6px; margin-top: 18px; }
.mx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chips li { padding: 6px 12px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); font-size: .9rem; }
.mx-hist { margin: 0; display: grid; }
.mx-hist div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mx-hist div:last-child { border-bottom: 0; }
.mx-hist dd { margin: 0; font-weight: 600; }
.mx-hist dd.warn { color: var(--lose); }
.mx-detail .lothead h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* Seller dashboard */
.mx-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mx-row .thumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); }
.mx-row .thumb img, .mx-row .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.mx-row-main { display: grid; gap: 8px; align-content: start; min-width: 0; }
.mx-row-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-row-top h3 { font-size: 1.25rem; }
.mx-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.mx-mini b { color: var(--ink); font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; }
.mx-row-acts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { .mx-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } }
.mx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin-top: 14px; }
.mx-stats div { padding: 10px 12px; display: grid; gap: 2px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.mx-stats b { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; line-height: 1; }
.mx-stats span { font-size: .78rem; color: var(--muted); }
@media (max-width: 520px) { .mx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Messages */
.mx-inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.mx-threads { display: grid; gap: 4px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px; max-height: 70vh; overflow: auto; }
.mx-threads a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; }
.mx-threads a:hover { background: var(--sunk); }
.mx-threads a.on { background: var(--petrol-soft); }
.mx-last { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-thread { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.mx-thread:empty { display: none; }
.mx-thread-head { display: flex; gap: 12px; align-items: center; }
.mx-thread-head img { width: 72px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.mx-thread-head > div { flex: 1; min-width: 0; }
.mx-msgs { list-style: none; margin: 0; padding: 4px; display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.mx-msgs li { max-width: 78%; justify-self: start; background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.mx-msgs li.me { justify-self: end; background: var(--petrol); color: var(--petrol-ink); border-color: var(--petrol); }
.mx-msgs p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mx-msgs time { display: block; font-size: .72rem; opacity: .7; margin-top: 2px; }
.mx-compose { display: flex; gap: 8px; align-items: end; }
.mx-compose .in { flex: 1; min-height: 48px; }
@media (max-width: 860px) {
  .mx-inbox { grid-template-columns: 1fr; }
  .mx-inbox.has-active .mx-threads { display: none; }
}

/* Admin */
.mx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mx-tiles a { display: grid; gap: 4px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; }
.mx-tiles a:hover { border-color: var(--petrol); }
.mx-tiles span { color: var(--muted); font-size: .88rem; }
.mx-tiles b { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1; }
.mx-afilters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-bottom: 14px; }
.mx-afilters .in { min-height: 38px; padding: 6px 10px; }
.mx-bulk { position: sticky; top: 78px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: var(--ink); color: var(--chalk); border-radius: var(--r-m); margin-bottom: 10px; }
.mx-atable td { vertical-align: top; }
.mx-risk { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--win-soft); color: var(--win); font-weight: 700; cursor: help; }
.mx-risk.md { background: var(--amber-soft); color: var(--amber-ink); }
.mx-risk.hi { background: var(--lose-soft); color: var(--lose); }
.mx-risk-big { display: grid; justify-items: center; padding: 10px 18px; border-radius: var(--r-m); background: var(--win-soft); color: var(--win); }
.mx-risk-big.md { background: var(--amber-soft); color: var(--amber-ink); }
.mx-risk-big.hi { background: var(--lose-soft); color: var(--lose); }
.mx-risk-big b { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1; }
.mx-risk-big span { font-size: .8rem; font-weight: 600; }
.mx-aphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mx-aphotos figure { margin: 0; display: grid; gap: 4px; }
.mx-aphotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.mx-aphotos figcaption { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mx-aphotos .pill { height: 20px; font-size: .7rem; }
.mx-flags { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.mx-kv { margin: 0; display: grid; }
.mx-kv div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mx-kv dt { color: var(--muted); }
.mx-kv dd { margin: 0; overflow-wrap: anywhere; }
.mx-audit { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; font-size: .9rem; max-height: 420px; overflow: auto; }
.mx-audit .muted { display: block; font-size: .8rem; }
.mx-audit code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .76rem; margin-top: 2px; }
.mx-pkgform { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; align-items: end; }
.mx-pkgform .in { min-height: 38px; padding: 6px 10px; }
details.panel summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: end; }
.mx-settings .btn { justify-self: start; }

body:has(.mx-bar) .toasts, body:has(.mx-sticky-cta) .toasts { bottom: 92px; }
.check { flex-wrap: wrap; }
.check > .mx-ferr { flex-basis: 100%; margin-inline-start: 28px; margin-top: 0; }
.search-mini { display: none; }
@media (min-width: 981px) and (max-width: 1340px) { .search { display: none; } .search-mini { display: inline-grid; margin-inline-start: auto; } }
@media (max-width: 820px) { .search { display: none; } .search-mini { display: inline-grid; margin-inline-start: auto; } }
@media (max-width: 760px) { .brand span.word { display: none; } }

@media (max-width: 480px) { #theme { display: none; } .top .wrap { gap: 6px; } .actions .btn.sm { padding: 0 10px; } }
.mx-threads a .dot { justify-self: start; position: static; }
@media (min-width: 861px) { .mx-thread-head .btn.ghost { display: none; } }

/* ===================================================================== Orders, offers, My vehicles */
/* Segmented countdown (order payment deadline): 02 DAYS 04 HOURS 12 MIN 09 SEC */
.segclock { display: grid; gap: 6px; }
.segclock .label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.segclock .cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; direction: ltr; }
.segclock .cell { display: grid; justify-items: center; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 4px 6px; }
.segclock .cell b { font-family: 'Barlow Condensed', sans-serif; font-size: 1.9rem; line-height: 1; font-weight: 600; color: var(--ink); }
.segclock .cell small { font-size: .66rem; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 3px; }
.segclock.sm .cell { padding: 5px 2px 4px; } .segclock.sm .cell b { font-size: 1.25rem; }
.segclock.warm .cell { border-color: var(--amber); background: var(--amber-soft); }
.segclock.hot .cell { border-color: var(--lose); background: var(--lose-soft); } .segclock.hot .cell b { color: var(--lose); }
.pill.sm { height: 20px; padding: 0 6px; font-size: .7rem; }

/* Wizard: selling summary */
.sl-summary h3 { margin: 0 0 6px; }

/* Seller: my vehicles */
.sl-stats { margin-bottom: 18px; padding-top: 0; }
.sl-veh { display: grid; gap: 14px; margin-bottom: 16px; }
.sl-veh-h { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; }
.sl-veh-h .thumb { aspect-ratio: 4/3; border-radius: var(--r-s); overflow: hidden; background: var(--sunk); }
.sl-veh-h .thumb img, .sl-veh-h .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-veh-h h3 { margin: 0; font-size: 1.2rem; }
.sl-chan { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sl-chan > section { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; display: grid; gap: 10px; align-content: start; }
.sl-chan-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sl-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.sl-kv li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 3px; }
.sl-kv li span { color: var(--muted); }
@media (max-width: 760px) { .sl-chan { grid-template-columns: 1fr; } .sl-veh-h { grid-template-columns: 80px 1fr; } .sl-veh-acts { grid-column: 1 / -1; } }

/* Orders, offers, admin tables */
.otable { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.otable th { text-align: start; font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.otable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.otable td.num, .otable td:last-child.num { text-align: end; white-space: nowrap; }
.otable tr.tot td { font-weight: 700; border-bottom: 2px solid var(--ink); }
.otable tr.win td { background: var(--win-soft); }
.sl-admtable { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: block; overflow-x: auto; }
.sl-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sl-offer { display: grid; gap: 8px; align-content: start; }
.sl-offer-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.in.sm { min-height: 32px; padding: 2px 8px; width: auto; }
.sl-offers > .panel, .sl-chan > section { margin: 0; }
.sl-utools-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sl-utools-f .in[type=search] { min-width: 240px; flex: 1; }
.sl-utools-f select.in { width: auto; min-height: 38px; }
.sl-utable td { white-space: nowrap; }
.sl-utable th { vertical-align: bottom; }
.sl-utable .ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 600px) { .sl-utools, .sl-utools-f { width: 100%; } .sl-utools-f .in[type=search] { min-width: 0; flex-basis: 100%; } .sl-utools-f select.in { flex: 1; } }

/* Very small phones (360px): a little less space in the navbar so it never runs off the screen (the Arabic labels are longer). */
@media (max-width: 380px) { .top .wrap { gap: 4px; padding-inline: 12px; } .actions .btn.sm { padding: 0 6px; } }

/* ---------- Marketplace home: Deal of the week, Featured ads, Premium ---------- */
.hm-deal-wrap { padding-top: 22px; }
.hm-deal { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.hm-deal-media { position: relative; display: grid; min-height: 340px; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); }
.hm-deal-media img, .hm-deal-media svg { width: 100%; height: 100%; object-fit: cover; }
.hm-deal-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hm-deal-media .hm-deal-tag { position: absolute; top: 16px; inset-inline-start: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.hm-deal-side { padding: 26px 28px; display: grid; gap: 16px; align-content: start; border-inline-start: 1px solid var(--line); }
.hm-deal-side h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.hm-deal-side h1 a { text-decoration: none; }
.hm-deal-side .sub { color: var(--muted); margin: 4px 0 0; }
.hm-deal-side .price { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hm-deal-side .price small { font-size: .38em; margin-inline-end: 6px; color: var(--muted); font-family: inherit; }
.hm-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hm-facts li { background: var(--sunk); border-radius: 999px; padding: 4px 10px; font-size: .86rem; font-weight: 600; }
.hm-desc { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.hm-deal-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hm-ends { font-size: .9rem; }
.hm-deal-empty { grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 28px; }
.hm-deal-empty .hm-deal-tag { margin-bottom: 10px; }
@media (max-width: 900px) {
  .hm-deal { grid-template-columns: 1fr; }
  .hm-deal-side { border-inline-start: 0; border-top: 1px solid var(--line); padding: 20px; }
  .hm-deal-media { min-height: 220px; aspect-ratio: 16 / 10; }
  .hm-deal-empty { grid-template-columns: 1fr; }
}
.hm-premium { position: relative; }
.hm-premium .section-head h2::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, #f7c65a, #c98a0b); margin-inline-end: 10px; vertical-align: 3px; }
.mx-badge.prem { background: linear-gradient(135deg, #1b2b38, #0f1a22); color: #f7c65a; }

/* Sign-up: how the verification code is sent */
.mx-hp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Location screen (#/welcome): its own light, teal look ---------- */
body.welcome-mode #top, body.welcome-mode #foot { display: none; }
body.welcome-mode { background: #fff; }
.wl {
  --wl-teal: #0b4f55; --wl-teal-2: #0e6b6e; --wl-green: #14a07a; --wl-gold: #e7b725; --wl-ink: #0d3b40;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; color: var(--wl-ink); background: #fff; min-height: 100vh;
  display: flex; flex-direction: column; transition: opacity .22s ease, transform .22s ease;
}
html[lang='ar'] .wl { font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', system-ui, sans-serif; }
.wl.wl-leaving { opacity: 0; transform: scale(.985); }
.wl-top { position: relative; display: flex; justify-content: center; align-items: center; height: 84px; padding: 0 16px; background: #fff; }
.wl-logo { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; text-decoration: none; }
.wl-logo img { display: block; height: 48px; width: 48px; }
.wl-word { font: 700 1.75rem/1 'Barlow Condensed', var(--f-display); color: #15212b; letter-spacing: .01em; white-space: nowrap; }
.wl-word b { color: #0a8a5c; }
.wl-lang { position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); border: 1px solid #d6e3e3; background: #fff; color: var(--wl-teal);
  font: inherit; font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.wl-lang:hover { border-color: var(--wl-green); }
.wl-lang:lang(ar) { font-family: 'Cairo', 'Noto Kufi Arabic', sans-serif; }
.wl-lang:lang(en) { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.wl :focus-visible { outline: 3px solid var(--wl-gold); outline-offset: 3px; }

.wl-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #0a4d57, #127a6e); min-height: clamp(380px, 46vw, 560px);
  display: grid; place-items: center; padding: 56px 20px 120px; isolation: isolate; }
.wl-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -2; opacity: 0; transition: opacity .5s ease; }
.wl-photo.ready { opacity: 1; }
.wl-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 76, 86, .94) 0%, rgba(12, 98, 98, .86) 38%, rgba(18, 128, 110, .62) 68%, rgba(24, 140, 116, .30) 100%),
              linear-gradient(0deg, rgba(8, 70, 74, .55) 0%, rgba(8, 70, 74, 0) 45%); }
[dir='rtl'] .wl-shade { background: linear-gradient(270deg, rgba(9, 76, 86, .94) 0%, rgba(12, 98, 98, .86) 38%, rgba(18, 128, 110, .62) 68%, rgba(24, 140, 116, .30) 100%),
              linear-gradient(0deg, rgba(8, 70, 74, .55) 0%, rgba(8, 70, 74, 0) 45%); }
.wl-circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); z-index: -1; pointer-events: none; }
.wl-circle.c1 { width: 360px; height: 360px; top: -170px; inset-inline-start: -150px; }
.wl-circle.c2 { width: 260px; height: 260px; top: -110px; inset-inline-end: -90px; }
.wl-circle.c3 { width: 180px; height: 180px; bottom: -70px; inset-inline-end: 12%; background: rgba(255, 255, 255, .04); }
.wl-arc { position: absolute; width: 230px; height: 230px; z-index: -1; pointer-events: none; }
.wl-arc path { fill: none; stroke: var(--wl-gold); stroke-width: 2.4; stroke-linecap: round; opacity: .9; }
.wl-arc.a1 { top: 18%; inset-inline-start: -20px; }
.wl-arc.a2 { bottom: 4%; inset-inline-end: -10px; transform: scaleY(-1); }
[dir='rtl'] .wl-arc { transform: scaleX(-1); }
[dir='rtl'] .wl-arc.a2 { transform: scale(-1, -1); }
.wl-copy { text-align: center; color: #fff; max-width: 920px; }
.wl-copy h1 { font-family: inherit; font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 4.1rem); line-height: 1.12; letter-spacing: -.01em; margin: 0;
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
html[lang='ar'] .wl-copy h1 { line-height: 1.35; letter-spacing: 0; }
.wl-copy p { font-weight: 300; font-size: clamp(1.02rem, 2vw, 1.5rem); margin: 18px 0 0; opacity: .95; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
html[lang='ar'] .wl-copy p { font-weight: 400; }

.wl-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px;
  width: min(1720px, calc(100% - 32px)); margin: -84px auto 0; }
.wl-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 124px; padding: 18px 10px;
  background: #fff; border: 1.5px solid transparent; border-radius: 16px; cursor: pointer; font: inherit; color: var(--wl-teal);
  box-shadow: 0 6px 18px -6px rgba(6, 46, 52, .28), 0 2px 4px rgba(6, 46, 52, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; -webkit-tap-highlight-color: transparent; }
.wl-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -10px rgba(6, 46, 52, .38), 0 3px 6px rgba(6, 46, 52, .08); border-color: var(--wl-green); }
.wl-card:active { transform: translateY(-1px) scale(.97); }
.wl-card.on { border-color: var(--wl-green); }
.wl-card-logo img { display: block; height: 22px; width: 22px; }
.wl-card-name { font-weight: 700; font-size: clamp(1rem, 1.15vw, 1.18rem); line-height: 1.25; text-align: center; }
.wl-all { display: flex; justify-content: center; align-self: stretch; width: 100%; max-width: none; box-sizing: border-box; text-align: center; margin: 24px 0 0; padding: 0 16px; }
.wl-alllink { border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--wl-teal-2); text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px; cursor: pointer; padding: 8px 6px; border-radius: 6px; transition: color .15s ease, text-decoration-thickness .15s ease; }
.wl-alllink:hover, .wl-alllink:focus-visible { color: #08474a; text-decoration-thickness: 3px; }
.wl-trust { display: flex; align-items: center; justify-content: center; gap: 16px; margin: auto auto 0; padding: 56px 20px 48px; text-align: center; max-width: 1100px; }
.wl-shield { color: var(--wl-teal); display: inline-flex; flex-shrink: 0; }
.wl-trust-text { font-size: clamp(1rem, 1.6vw, 1.35rem); color: var(--wl-ink); }
.wl-line { width: 72px; height: 2px; background: var(--wl-gold); border-radius: 2px; flex-shrink: 0; }

@media (max-width: 1180px) {
  .wl-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(920px, calc(100% - 32px)); }
}
@media (max-width: 640px) {
  .wl-top { height: 68px; justify-content: flex-start; }
  .wl-logo img { height: 38px; width: 38px; }
  .wl-word { font-size: 1.4rem; }
  .wl-lang { inset-inline-end: 12px; padding: 6px 12px; min-height: 36px; }
  .wl-hero { min-height: 300px; padding: 40px 18px 96px; }
  .wl-photo { object-position: 78% 60%; }
  .wl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -64px; width: calc(100% - 28px); }
  .wl-card { min-height: 88px; padding: 14px 8px; gap: 8px; border-radius: 14px; }
  .wl-card-logo img { height: 20px; width: 20px; }
  .wl-alllink { font-size: 15px; }
  .wl-trust { gap: 10px; padding: 40px 18px 36px; }
  .wl-line { width: 28px; }
  .wl-arc { width: 150px; height: 150px; }
}
@media (max-width: 380px) { .wl-line { display: none; } }
@media (prefers-reduced-motion: reduce) { .wl, .wl-card, .wl-photo { transition: none; } .wl-card:hover { transform: none; } }

/* Navbar location chip (reopens the location screen) */
.loc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .85rem; color: var(--ink); white-space: nowrap; max-width: 150px; flex-shrink: 0; }
.loc-chip span { overflow: hidden; text-overflow: ellipsis; }
.loc-chip svg { width: 15px; height: 15px; color: var(--petrol); flex-shrink: 0; }
.loc-chip:hover { border-color: var(--petrol); background: var(--sunk); }
@media (max-width: 560px) { .loc-chip { display: none; } }
/* Arabic navbar: with the location chip the Arabic brand tag no longer fits below 1440px (the tag repeats the page language anyway). */
@media (max-width: 1440px) { [dir="rtl"] .brand .ar { display: none; } }
.mnav-loc { color: var(--petrol); }

/* ---- Photo watermark: note in the sell flow, admin settings preview */
.mx-wm-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.mx-wm-note svg { flex-shrink: 0; color: var(--petrol); }
.mx-wm { grid-column: 1 / -1; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); }
.mx-wm h3 { margin: 0 0 4px; }
.mx-wm .f output { font-weight: 600; color: var(--petrol); margin-inline-start: 6px; }
.mx-wm input[type=range] { width: 100%; accent-color: var(--petrol); }
.mx-wm-ctl { display: grid; gap: 12px; }
.mx-wm-prev { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-m); background: linear-gradient(135deg, #0b4f55, #14a07a); }
.mx-wm-prev .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-wm-prev .mk { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: auto; pointer-events: none; }
.mx-wm-prev.off .mk { display: none; }
@media (max-width: 720px) { .mx-wm { grid-template-columns: 1fr; } }

/* ---- Seller panel: delete a draft, free listing and packages */
.btn.mx-del { --c: var(--lose); --bd: var(--lose); gap: 6px; }
.btn.mx-del:hover { --b: var(--lose-soft); border-color: var(--lose); }
.btn.mx-del-icon { width: 34px; padding: 0; justify-content: center; }
.btn.mx-del-solid { --b: var(--lose); --c: #fff; --bd: var(--lose); gap: 6px; }
.btn.mx-del-solid:hover { filter: brightness(1.08); border-color: var(--lose); }
.mx-deldraft p { margin: 6px 0 0; }
.mx-deldraft-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .modal-root:has(.mx-deldraft) { padding: 0; place-items: end stretch; }
  .modal:has(.mx-deldraft) { width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; }
  .mx-deldraft-acts .btn { flex: 1 1 0; }
}
.mx-wiz-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mx-plan { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); font-size: .9rem; }
.mx-plan b { color: var(--petrol); }
.mx-plan-link { border: 0; background: none; padding: 0; color: var(--petrol); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.mx-free-banner { margin-bottom: 14px; font-weight: 600; }
.mx-free-note { margin: 14px 0 0; }
.mx-freeform { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
@media (max-width: 640px) { .mx-freeform { grid-template-columns: 1fr; } .mx-freeform .btn { justify-self: start; } }

/* ---- One-time codes: code entry, loading, verified, phone number with country code */
.otp-form { display: grid; gap: 14px; margin-top: 16px; }
.otp-exp { margin: 0; font-size: .85rem; }
.otp-ok { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0; color: var(--win); font-size: 1.05rem; }
.otp-ok b { color: var(--win); }
.btn.is-busy { position: relative; cursor: progress; opacity: .85; }
.btn.is-busy::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: otpspin .7s linear infinite; flex: 0 0 14px; }
.rs-link.is-busy::before { width: 10px; height: 10px; flex-basis: 10px; display: inline-block; margin-inline-end: 6px; vertical-align: -1px; }
@keyframes otpspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::before { animation-duration: 2s; } }
.ph-field { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 8px; }
.ph-field .ph-cc { padding-inline: 8px; }
.ph-field input { direction: ltr; text-align: left; }
.mx-verify { display: block; }
.mx-verify-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.mx-verify-v { direction: ltr; text-align: start; unicode-bidi: plaintext; }
.mx-vact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mx-vact[hidden] { display: none; }
.mx-verify > .err:not(:empty) { margin-top: 8px; }
.mx-vbox { margin-top: 10px; max-width: 420px; }
.mx-vbox .otp-form { margin-top: 10px; }
.mx-vchange { display: grid; gap: 10px; }
.mx-otp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx-otp-stats > div { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); }
.mx-otp-stats b { font-size: 1.6rem; color: var(--petrol); }
.mx-otp-stats span { color: var(--muted); font-size: .85rem; }
.mx-otp-log { max-height: 320px; overflow: auto; }
.mx-otp .check .pill { margin-inline-start: 6px; }
.mx-vbox .rs-code { justify-self: start; }
.mx-pay-off { margin: 4px 0 0; font-size: .88rem; }
.err.mx-neutral { color: var(--ink); }

/* ===================================================================== Seller dashboard (#/seller…) */
:root { --sd-green: #0f6a47; --sd-green-2: #0a5236; --sd-green-3: #0c5d3e; --sd-gold: #f5c518; --sd-gold-ink: #3a2b00; --sd-gold-soft: #fff6d6; --sd-bg: #f4f6f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --sd-bg: #0b141b; --sd-gold-soft: #3a300c; } }
:root[data-theme='dark'] { --sd-bg: #0b141b; --sd-gold-soft: #3a300c; }
body.seller-mode #top, body.seller-mode #foot, body.seller-mode #drawer { display: none; }
body.seller-mode { background: var(--sd-bg); }
body.seller-mode #main { padding: 0; }
.menu-pop .menu-dash { gap: 10px; align-items: center; font-weight: 600; color: var(--sd-green); }
:root[data-theme='dark'] .menu-pop .menu-dash { color: var(--win); }
.mnav-dash, .mnav-lock { display: inline-flex; margin-inline-end: 8px; }
.sell-cta.is-locked { opacity: .72; display: inline-flex; align-items: center; gap: 6px; }

.sd { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(var(--sd-green-2), var(--sd-green-2)) no-repeat left top / 260px 100%, var(--sd-bg); }
html[dir='rtl'] .sd { background: linear-gradient(var(--sd-green-2), var(--sd-green-2)) no-repeat right top / 260px 100%, var(--sd-bg); }
.sd-side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 18px; color: #fff;
  background: radial-gradient(120% 60% at 0% 100%, rgba(245, 197, 24, .22), transparent 55%), linear-gradient(180deg, var(--sd-green) 0%, var(--sd-green-2) 100%); }
.sd-side-top { display: flex; align-items: center; justify-content: space-between; }
.sd-back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r-s); color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .86rem; font-weight: 600; }
.sd-back:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.sd-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.sd-brand b { color: var(--sd-gold); }
.sd-brand img { border-radius: 10px; background: #fff; }
.sd-nav { display: grid; gap: 4px; }
.sd-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-m); color: rgba(255, 255, 255, .92); text-decoration: none; font-weight: 600; font-size: .96rem; transition: background .15s ease; }
.sd-nav a:hover { background: rgba(255, 255, 255, .09); }
.sd-nav a.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sd-nav a > span:first-of-type { flex: 1; }
.sd-nav a.is-locked { opacity: .55; }
.sd-lock { display: inline-flex; }
.sd-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--sd-gold); color: var(--sd-gold-ink); font-size: .8rem; font-weight: 700; }
.sd-nav a.sd-upgrade { background: linear-gradient(90deg, rgba(245, 197, 24, .28), rgba(245, 197, 24, .12)); box-shadow: inset 3px 0 0 var(--sd-gold); }
html[dir='rtl'] .sd-nav a.sd-upgrade { box-shadow: inset -3px 0 0 var(--sd-gold); background: linear-gradient(270deg, rgba(245, 197, 24, .28), rgba(245, 197, 24, .12)); }
.sd-upbadge { padding: 2px 8px; border-radius: 10px; background: var(--sd-gold); color: var(--sd-gold-ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.sd-nav a.pulse::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; will-change: opacity;
  box-shadow: 0 0 0 4px rgba(245, 197, 24, .28), 0 0 18px 2px rgba(245, 197, 24, .25); animation: sdGlow 2.4s ease-in-out infinite; }
@keyframes sdGlow { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sd-nav a.pulse::after { animation: none; opacity: .6; } }
.sd-promo { margin-top: auto; position: relative; padding: 16px; border-radius: var(--r-l); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 10px; }
.sd-promo.gold { border: 2px solid var(--sd-gold); background: rgba(245, 197, 24, .12); }
.sd-promo-art { width: 110px; margin-inline-start: auto; margin-top: -8px; }
.sd-promo-art svg { width: 100%; height: auto; display: block; }
.sd-promo p { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.sd-btn-gold { background: var(--sd-gold); color: var(--sd-gold-ink); border-color: var(--sd-gold); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sd-btn-gold:hover { filter: brightness(1.05); background: var(--sd-gold); color: var(--sd-gold-ink); }
.sd-scrim { display: none; }
.sd-body { min-width: 0; display: flex; flex-direction: column; }
.sd-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 2.4vw, 28px); background: var(--paper); border-bottom: 1px solid var(--line); }
.sd-iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-m); background: none; color: inherit; cursor: pointer; text-decoration: none; }
.sd-iconbtn:hover { background: var(--sunk); }
.sd-side .sd-iconbtn:hover { background: rgba(255, 255, 255, .1); }
.sd-burger, .sd-closeside { display: none; }
.sd-search { flex: 1 1 auto; min-width: 0; max-width: 600px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); color: var(--muted); }
.sd-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; color: var(--ink); }
.sd-search:focus-within { border-color: var(--sd-green); box-shadow: 0 0 0 3px rgba(15, 106, 71, .15); }
.sd-bell { margin-inline-start: auto; color: var(--ink); }
.sd-dot { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--lose); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.sd-prof { position: relative; flex: 0 0 auto; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.sd-prof-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 4px; border-radius: var(--r-m); font: inherit; text-align: start; }
.sd-prof-btn:hover { background: var(--sunk); }
.sd-av { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem; }
.sd-av.sm { width: 36px; height: 36px; font-size: .82rem; }
.sd-prof-txt { display: grid; line-height: 1.2; }
.sd-prof-txt b { font-size: .98rem; }
.sd-prof-txt small { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.sd-prof-txt small.ok { color: var(--sd-green); font-weight: 600; }
:root[data-theme='dark'] .sd-prof-txt small.ok { color: var(--win); }
.sd-vtick { width: 14px; height: 14px; border-radius: 50%; background: var(--sd-green); color: #fff; display: inline-grid; place-items: center; }
.sd-prof-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; padding: 6px; display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); z-index: 30; }
.sd-prof-pop.open { display: grid; }
.sd-prof-pop a, .sd-prof-pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--r-s); background: none; color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; cursor: pointer; text-align: start; }
.sd-prof-pop a:hover, .sd-prof-pop button:hover { background: var(--sunk); }
.sd-lockbar { display: flex; align-items: center; gap: 12px; padding: 8px clamp(16px, 2.4vw, 28px); background: var(--sd-gold-soft); border-bottom: 1px solid rgba(245, 197, 24, .55); font-weight: 600; font-size: .92rem; }
.sd-lockbar > span { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.sd-main { padding: clamp(16px, 2.4vw, 28px); min-width: 0; }
.sd-main > .wrap.page { padding: 0; max-width: none; }
.sd-page { display: grid; gap: 18px; }
.sd-welcome { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sd-welcome h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sd-welcome p { margin: 6px 0 0; }
.sd-date { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.sd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sd-stat, .sd-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.sd-stat { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; padding: 18px 18px 20px; min-width: 0; }
.sd-stat-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; align-self: start; }
.sd-stat-ico.green { background: var(--sd-green); }
.sd-stat-ico.gold { background: var(--sd-gold); color: var(--sd-gold-ink); }
.sd-stat-txt { display: grid; gap: 2px; min-width: 0; }
.sd-stat-txt > span { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-stat-txt b { font-size: 2rem; line-height: 1.1; }
.sd-stat-txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.sd-ch { font-style: normal; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; margin-inline-end: 4px; }
.sd-ch.up { color: var(--win); }
.sd-ch.down { color: var(--lose); }
.sd-stat:has(svg.sd-spark) { padding-bottom: 52px; }
.sd-spark { position: absolute; bottom: 12px; inset-inline-start: 18px; width: calc(100% - 36px); height: 32px; }
@media (min-width: 1560px) { .sd-stat:has(svg.sd-spark) { padding-bottom: 20px; } .sd-spark { inset-inline-start: auto; inset-inline-end: 18px; top: 50%; bottom: auto; width: 30%; max-width: 120px; height: 40px; } }
html[dir='rtl'] .sd-spark { transform: scaleX(-1); }
.sd-spark.green { color: var(--win); }
.sd-spark.gold { color: #e0a800; }
.sd-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1.05fr) minmax(0, 1.05fr);
  grid-template-areas: 'perf quick banner' 'perf quick tier' 'table table leads'; }
.sd-perf { grid-area: perf; } .sd-quick { grid-area: quick; } .sd-banner { grid-area: banner; } .sd-tier { grid-area: tier; } .sd-table { grid-area: table; } .sd-leads { grid-area: leads; }
.sd-card { padding: 18px; min-width: 0; }
.sd-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sd-card-h h2 { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.sd-card-h h2 svg { color: var(--sd-green); }
:root[data-theme='dark'] .sd-card-h h2 svg { color: var(--win); }
.sd-card-h .sd-days { width: auto; max-width: 170px; flex: 0 0 auto; height: 36px; padding: 0 30px 0 10px; font-size: .88rem; }
html[dir='rtl'] .sd-card-h .sd-days { padding: 0 10px 0 30px; }
.sd-chart { position: relative; color: var(--sd-green); }
:root[data-theme='dark'] .sd-chart { color: var(--win); }
.sd-svg { width: 100%; height: auto; display: block; overflow: visible; direction: ltr; }
.sd-grid-l line { stroke: var(--line); stroke-dasharray: 3 4; }
.sd-svg text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.sd-area { fill: url(#sdArea); }
.sd-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sd-svg circle { fill: var(--paper); stroke: currentColor; stroke-width: 2; }
.sd-chart-empty { position: absolute; inset: 0 0 30px 40px; display: grid; place-items: center; margin: 0; padding: 16px; text-align: center; color: var(--muted); font-weight: 600; }
html[dir='rtl'] .sd-chart-empty { inset: 0 40px 30px 0; }
.sd-qlist { display: grid; gap: 12px; }
.sd-q { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.sd-q > span { flex: 1; }
.sd-q:hover { border-color: var(--sd-green); }
.sd-q svg:first-child { color: var(--sd-green); }
html[dir='rtl'] .sd-q > svg:last-child, html[dir='rtl'] .sd-more svg, html[dir='rtl'] .sd-banner .btn svg { transform: scaleX(-1); }
.sd-q-main { background: var(--sd-green); border-color: var(--sd-green); color: #fff; }
.sd-q-main svg:first-child, .sd-q-main svg { color: #fff; }
.sd-q-main:hover { background: var(--sd-green-3); }
.sd-q.is-locked, .btn.is-locked { opacity: .6; }
.btn.is-locked { display: inline-flex; align-items: center; gap: 8px; }
.sd-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 160px; padding: 18px; border-radius: var(--r-l); color: #fff;
  background: radial-gradient(90% 120% at 100% 100%, var(--sd-gold) 0 28%, transparent 28.5%), linear-gradient(135deg, var(--sd-green) 0%, var(--sd-green-2) 100%); }
html[dir='rtl'] .sd-banner { background: radial-gradient(90% 120% at 0% 100%, var(--sd-gold) 0 28%, transparent 28.5%), linear-gradient(225deg, var(--sd-green) 0%, var(--sd-green-2) 100%); }
.sd-banner.gold { box-shadow: 0 0 0 3px var(--sd-gold), var(--shadow); }
.sd-banner > div:first-child { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; }
.sd-banner h2 { font-size: 1.7rem; line-height: 1; }
.sd-banner p { margin: 0 0 6px; opacity: .92; }
.sd-banner-art { position: absolute; inset-inline-end: -10px; bottom: 6px; width: 58%; max-width: 220px; }
html[dir='rtl'] .sd-banner-art { transform: scaleX(-1); }
.sd-banner-art svg { width: 100%; height: auto; display: block; }
.sd-plan { padding: 3px 12px; border-radius: 12px; background: var(--win-soft); color: var(--sd-green); font-weight: 700; font-size: .82rem; }
.sd-tier-line { margin: 0 0 10px; font-weight: 600; }
.sd-bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.sd-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sd-green), var(--sd-gold)); }
html[dir='rtl'] .sd-bar i { background: linear-gradient(270deg, var(--sd-green), var(--sd-gold)); }
.sd-more { display: inline-flex; align-items: center; gap: 4px; color: var(--sd-green); font-weight: 600; font-size: .88rem; text-decoration: none; }
:root[data-theme='dark'] .sd-more { color: var(--win); }
.sd-tablewrap { overflow-x: auto; }
.sd-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sd-tbl th { text-align: start; font-weight: 600; font-size: .82rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sd-tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sd-tbl tr:last-child td { border-bottom: 0; }
.sd-img img, .sd-art { width: 72px; height: 48px; border-radius: var(--r-s); object-fit: cover; display: block; background: var(--sunk); overflow: hidden; }
.sd-art svg { width: 100%; height: 100%; }
.sd-veh b { display: block; }
.sd-veh small { font-size: .8rem; }
.sd-acts { position: relative; width: 48px; }
.sd-actmenu { position: absolute; inset-inline-end: 8px; top: 44px; z-index: 5; min-width: 150px; padding: 6px; display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.sd-actmenu.open { display: grid; }
.sd-actmenu a { padding: 8px 10px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.sd-actmenu a:hover { background: var(--sunk); }
.sd-leadlist { list-style: none; margin: 0; padding: 0; display: grid; }
.sd-leadlist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sd-leadlist li:last-child { border-bottom: 0; }
.sd-leadlist li > div { display: grid; min-width: 0; }
.sd-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.sd-leadlist b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sd-leadst { flex: 0 0 auto; }
.sd-leadlist small { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-leadst { max-width: 110px; overflow: hidden; text-overflow: ellipsis; padding: 3px 8px; border-radius: 12px; font-size: .7rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; background: var(--petrol-soft); color: var(--petrol); }
.sd-leadst.st-new { background: #e1edff; color: #1d5fbf; }
.sd-leadst.st-negotiating, .sd-leadst.st-offer_received { background: var(--amber-soft); color: #9a5b00; }
.sd-leadst.st-contacted, .sd-leadst.st-sold { background: var(--win-soft); color: var(--win); }
.sd-leadst.st-viewing { background: #efe6ff; color: #6a3fc0; }
.sd-leadst.st-lost { background: var(--lose-soft); color: var(--lose); }
.sd-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; text-align: center; color: var(--muted); }
.sd-empty > svg { width: 36px; height: 36px; color: var(--sd-green); opacity: .7; }
.sd-empty b { color: var(--ink); font-size: 1.02rem; }
.sd-empty p { margin: 0 0 6px; max-width: 360px; }
.sd-pk-soon b { max-width: 440px; }
.sd-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sd-helpcard { display: grid; gap: 6px; justify-items: start; color: var(--ink); text-decoration: none; }
.sd-helpcard svg { color: var(--sd-green); }
.sd-helpcard:hover { border-color: var(--sd-green); }
.sd-lockpop { display: grid; justify-items: center; gap: 8px; text-align: center; padding-top: 6px; }
.sd-lockpop-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-gold-soft); color: #9a7200; }
.sd-lockpop-ico svg { width: 24px; height: 24px; }
.sd-lockpop p { margin: 0; }
.sd-lockpop-btns { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

@keyframes sdIn { from { transform: translateX(-100%); } }
@keyframes sdInR { from { transform: translateX(100%); } }
@media (max-width: 1280px) {
  .sd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'perf perf' 'quick banner' 'quick tier' 'table table' 'leads leads'; }
}
@media (max-width: 1100px) { .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .sd { grid-template-columns: minmax(0, 1fr); }
  .sd, html[dir='rtl'] .sd { background: var(--sd-bg); }
  .sd-side { position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 86vw); display: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .sd.side-open .sd-side { display: flex; animation: sdIn .22s ease; }
  html[dir='rtl'] .sd.side-open .sd-side { animation-name: sdInR; }
  .sd-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 12, 18, .5); }
  .sd.side-open .sd-scrim { display: block; }
  .sd-burger, .sd-closeside { display: inline-grid; }
  .sd-closeside { color: #fff; }
  .sd-prof-txt { display: none; }
  .sd-prof { padding-inline-start: 6px; }
  .sd-help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .sd-top { gap: 8px; padding: 10px 12px; }
  .sd-search { height: 40px; padding: 0 10px; }
  .sd-prof-btn > svg { display: none; }
  .sd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'perf' 'quick' 'banner' 'tier' 'table' 'leads'; }
  .sd-stats { gap: 10px; }
  .sd-stat { grid-template-columns: auto 1fr; padding: 14px; gap: 10px; }
  .sd-stat-ico { width: 38px; height: 38px; }
  .sd-stat-ico svg { width: 18px; height: 18px; }
  .sd-stat-txt b { font-size: 1.6rem; }
  .sd-stat { grid-template-columns: auto 1fr; padding-bottom: 14px; }
  .sd-stat:has(svg.sd-spark) { padding-bottom: 46px; }
  .sd-spark { bottom: 10px; inset-inline-start: 14px; width: calc(100% - 28px); height: 28px; }
  .sd-stat-txt > span, .sd-stat-txt small { white-space: normal; }
  .sd-lockbar { flex-wrap: wrap; }
  /* Listings table becomes cards */
  .sd-tbl thead { display: none; }
  .sd-tbl, .sd-tbl tbody { display: block; }
  .sd-tbl tr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sd-tbl tr:last-child { border-bottom: 0; }
  .sd-tbl td { display: block; padding: 0; border: 0; }
  .sd-tbl td.sd-img { grid-row: span 2; }
  .sd-tbl td.sd-veh { grid-column: 2; }
  .sd-tbl td.sd-acts { grid-column: 3; grid-row: 1; width: auto; }
  .sd-tbl td[data-label] { grid-column: 2 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; }
  .sd-tbl td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .sd-actmenu { top: 40px; }
}

/* ===================================================================== Marketplace admin dashboard (#/admin-market…) */
:root { --ad-g: #0d7a3e; --ad-g2: #075a2d; --ad-g3: #0a6a35; --ad-gsoft: #e7f5ec; --ad-y: #f3d21c; --ad-y2: #f7e25a; --ad-ysoft: #fffadb; --ad-yink: #3b3000; --ad-bg: #f3f7f4; --ad-r: 18px; --ad-shadow: 0 1px 2px rgba(10, 40, 20, .05), 0 10px 28px -16px rgba(10, 40, 20, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --ad-bg: #0b141b; --ad-gsoft: #11331f; --ad-ysoft: #3a330c; --ad-g: #2fb86b; } }
:root[data-theme='dark'] { --ad-bg: #0b141b; --ad-gsoft: #11331f; --ad-ysoft: #3a330c; --ad-g: #2fb86b; }
body.admin-mode #top, body.admin-mode #foot, body.admin-mode #drawer { display: none; }
body.admin-mode { background: var(--ad-bg); }
body.admin-mode #main { padding: 0; }
.ad { --f-ad: 'Poppins', 'Barlow', 'Noto Kufi Arabic', system-ui, sans-serif; font-family: var(--f-ad); min-height: 100vh; min-height: 100dvh; background: var(--ad-bg); color: var(--ink); }
html[lang='ar'] .ad { --f-ad: 'Noto Kufi Arabic', 'Poppins', system-ui, sans-serif; }
.ad h1, .ad h2, .ad h3 { font-family: var(--f-ad); letter-spacing: 0; }
.ad .num { font-family: var(--f-ad); font-variant-numeric: tabular-nums; }
.ad .ltr { direction: ltr; unicode-bidi: isolate; }

/* top bar */
.ad-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: 76px; padding: 0 24px 0 0; background: var(--paper); border-bottom: 1px solid var(--line); }
html[dir='rtl'] .ad-top { padding: 0 0 0 24px; }
.ad-logo { flex: 0 0 auto; width: 230px; display: flex; align-items: center; gap: 10px; padding-inline-start: 20px; text-decoration: none; color: var(--ad-g2); font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; }
:root[data-theme='dark'] .ad-logo { color: #fff; }
.ad-logo b { color: var(--ad-g); }
.ad-logo img { border-radius: 12px; }
.ad-gsearch { flex: 1; min-width: 0; max-width: 500px; margin-inline-start: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid #cfe3d6; border-radius: 12px; background: #f4faf6; color: var(--muted); }
:root[data-theme='dark'] .ad-gsearch { background: var(--sunk); border-color: var(--line); }
.ad-gsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: .9rem; color: var(--ink); }
.ad-gsearch:focus-within { border-color: var(--ad-g); box-shadow: 0 0 0 3px rgba(13, 122, 62, .15); }
.ad-range { position: relative; flex: 0 0 auto; margin-inline-start: auto; }
.ad-range-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ad-range-btn > svg:first-child { color: var(--ad-g); }
.ad-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50; min-width: 220px; padding: 8px; display: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--ad-shadow); }
.ad-pop.open { display: grid; gap: 2px; }
.ad-pop > a, .ad-pop > button, .ad-preset { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; text-align: start; }
.ad-pop > a:hover, .ad-pop > button:hover, .ad-preset:hover { background: var(--ad-gsoft); }
.ad-preset.on { background: var(--ad-gsoft); color: var(--ad-g); font-weight: 600; }
.ad-range-pop { min-width: 270px; }
.ad-rcustom { display: grid; gap: 8px; margin-top: 6px; padding: 10px 12px 4px; border-top: 1px solid var(--line); font-size: .86rem; }
.ad-rcustom label { display: grid; gap: 4px; }
.ad-iconbtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.ad-iconbtn:hover { background: var(--ad-gsoft); }
.ad-bell { color: var(--ad-g); }
.ad-dot { position: absolute; top: 5px; inset-inline-end: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5383b; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.ad-prof { position: relative; flex: 0 0 auto; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.ad-prof > button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; padding: 4px; border-radius: 12px; text-align: start; }
.ad-prof > button:hover { background: var(--ad-gsoft); }
.ad-prof-txt { display: grid; line-height: 1.2; }
.ad-prof-txt b { font-size: 1rem; font-weight: 600; }
.ad-prof-txt small { color: var(--muted); font-size: .8rem; }
.ad-av { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: inline-grid; place-items: center; background: var(--av, var(--ad-g)); color: #fff; font-weight: 600; font-size: .85rem; }
.ad-av.sm { width: 34px; height: 34px; font-size: .76rem; }
.ad-av.xs { width: 28px; height: 28px; font-size: .68rem; }
.ad-av.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.ad-av-me { width: 46px; height: 46px; background: var(--ad-g); }
.ad-burger { display: none; }

/* sidebar */
.ad-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.ad-side { position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100dvh - 76px); overflow-y: auto; display: flex; flex-direction: column; padding: 18px 12px; color: #fff;
  background: radial-gradient(130% 34% at 0% 100%, var(--ad-y) 0 38%, transparent 38.5%), radial-gradient(150% 40% at 0% 100%, #36a24a 0 46%, transparent 46.5%), linear-gradient(180deg, var(--ad-g3) 0%, var(--ad-g2) 100%); }
html[dir='rtl'] .ad-side { background: radial-gradient(130% 34% at 100% 100%, var(--ad-y) 0 38%, transparent 38.5%), radial-gradient(150% 40% at 100% 100%, #36a24a 0 46%, transparent 46.5%), linear-gradient(180deg, var(--ad-g3) 0%, var(--ad-g2) 100%); }
.ad-side-top { display: none; }
.ad-nav { display: grid; gap: 4px; }
.ad-nav-top { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: rgba(255, 255, 255, .95); font: inherit; font-weight: 500; font-size: .98rem; text-decoration: none; cursor: pointer; text-align: start; }
.ad-nav-top > span { flex: 1; }
.ad-nav-top:hover { background: rgba(255, 255, 255, .1); }
.ad-nav-top.on, .ad-navgrp.cur > .ad-nav-top { background: var(--ad-y); color: var(--ad-g2); font-weight: 600; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.ad-navchev { display: inline-flex; transition: transform .15s ease; }
html[dir='rtl'] .ad-navchev { transform: scaleX(-1); }
.ad-navgrp.open .ad-navchev { transform: rotate(90deg); }
.ad-navsub { display: none; padding: 4px 0 6px; padding-inline-start: 46px; }
.ad-navgrp.open .ad-navsub { display: grid; gap: 2px; }
.ad-navsub a { padding: 8px 12px; border-radius: 10px; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .88rem; }
.ad-navsub a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ad-navsub a.on { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }
.ad-side-foot { margin-top: auto; padding: 24px 8px 10px; color: #fff; }
.ad-linecar { display: block; width: 150px; color: var(--ad-y); margin-bottom: 10px; }
.ad-linecar svg { width: 100%; height: auto; }
html[dir='rtl'] .ad-linecar { transform: scaleX(-1); }
.ad-side-foot p { margin: 0; font-weight: 600; font-size: 1.02rem; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ad-scrim { display: none; }

/* page */
.ad-main { min-width: 0; padding: 20px 24px 32px; }
.ad-page { display: grid; gap: 18px; min-width: 0; }
.ad-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ad-head h1 { font-size: 1.75rem; font-weight: 700; color: var(--ad-g2); }
:root[data-theme='dark'] .ad-head h1 { color: #fff; }
.ad-head p { margin: 4px 0 0; }
.ad-head-act { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-demo { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.ad-demo a { color: var(--ad-g); font-weight: 600; }
.ad-pill-demo { padding: 4px 12px; border-radius: 999px; background: var(--ad-ysoft); color: var(--ad-yink); font-weight: 600; border: 1px solid var(--ad-y); }
.ad-card { background: var(--paper); border: 1px solid #e3ece6; border-radius: var(--ad-r); box-shadow: var(--ad-shadow); padding: 18px; min-width: 0; }
:root[data-theme='dark'] .ad-card { border-color: var(--line); }
.ad-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ad-card-h > div { flex: 1; min-width: 0; }
.ad-card-h h2, .ad-h2 { font-size: 1.12rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.ad-card-h p { margin: 2px 0 0; font-size: .82rem; }
.ad-h2 { margin-bottom: 12px; }
.ad-h3 { font-size: 1rem; font-weight: 600; margin: 16px 0 8px; }
.ad-ico-badge { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ad-y); color: var(--ad-g2); }
.ad-ico-badge.g { background: var(--ad-g); color: #fff; }
.ad-ico-badge.y { background: var(--ad-y); color: var(--ad-g2); }
.ad-ico-badge svg { width: 26px; height: 26px; }
.ad-ico-plain { color: var(--ad-g); }
.ad-ico-plain svg { width: 30px; height: 30px; }
.ad-ico-mini { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ad-g); }
.ad-tip { display: inline-flex; color: var(--muted); cursor: help; }
.ad-btn, .btn.ad-btn { background: var(--ad-g); border-color: var(--ad-g); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.ad-btn:hover { background: var(--ad-g2); color: #fff; }
.ad-btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.ad-btn-y, .btn.ad-btn-y { background: var(--ad-y); border-color: var(--ad-y); color: var(--ad-g2); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ad-btn-y:hover { background: var(--ad-y2); }
.ad-more { display: inline-flex; align-items: center; gap: 4px; color: var(--ad-g); font-weight: 600; font-size: .85rem; text-decoration: none; }
html[dir='rtl'] .ad-more svg, html[dir='rtl'] .ad-btn svg[viewBox] { transform: scaleX(-1); }
.ad-two { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ad-note { margin: 6px 0; font-size: .82rem; }
.ad-ch { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: .85rem; }
.ad-ch.up { color: #16924a; }
.ad-ch.down { color: #d13438; }
.ad-ch.light { color: #fff; }
.ad-ch.pillish { padding: 3px 12px; border-radius: 999px; background: var(--ad-g); color: #fff; }
.ad-ch.pillish.down { background: #d13438; }
.ad-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 16px; text-align: center; color: var(--muted); }
.ad-empty > svg { width: 36px; height: 36px; color: var(--ad-g); opacity: .7; }
.ad-empty b { color: var(--ink); }
.ad-empty.sm { padding: 18px 10px; }
.ad-empty p { margin: 0; }

/* dashboard grid */
.ad-dash { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas: 'inc inc inc inc inc emi emi emi st st st st' 'crm crm crm crm crm crm crm top top top top top' 'crm crm crm crm crm crm crm lbs lbs lbs lbs lbs' 'dea dea dea dea dea dea ind ind ind ind ind ind' 'grow grow grow grow grow grow fre fre fre fre fre fre' 'grow grow grow grow grow grow week week week week week week'; }
.ad-dash > * { min-width: 0; }
.ad-dash > .ad-card { overflow: hidden; }
.ad-income { grid-area: inc; } .ad-emirates { grid-area: emi; } .ad-stats { grid-area: st; } .ad-crm { grid-area: crm; } .ad-dealers { grid-area: dea; } .ad-individuals { grid-area: ind; }
.ad-topsel { grid-area: top; } .ad-lbs { grid-area: lbs; } .ad-free { grid-area: fre; } .ad-week { grid-area: week; } .ad-grow { grid-area: grow; }

/* income */
.ad-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 22px; background: var(--ad-gsoft); margin-inline-start: auto; max-width: 100%; }
.ad-tabs > * { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--ad-g2); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
:root[data-theme='dark'] .ad-tabs > * { color: var(--ink); }
.ad-tabs > .on { background: var(--ad-g); color: #fff; box-shadow: 0 4px 10px -4px rgba(13, 122, 62, .6); }
.ad-tabs-page { margin: 0; justify-self: start; }
.ad-grand { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.ad-grand b { color: var(--ink); font-size: 1.1rem; }
.ad-income-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad-ibox { display: flex; gap: 12px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.ad-ibox.g { background: #eef8ef; } .ad-ibox.y { background: #fffbe2; }
:root[data-theme='dark'] .ad-ibox.g { background: var(--ad-gsoft); } :root[data-theme='dark'] .ad-ibox.y { background: var(--ad-ysoft); }
.ad-ibox.on.g { border-color: rgba(13, 122, 62, .35); } .ad-ibox.on.y { border-color: rgba(243, 210, 28, .7); }
.ad-ibox-ico { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.ad-ibox.g .ad-ibox-ico { background: var(--ad-g); color: #fff; } .ad-ibox.y .ad-ibox-ico { background: var(--ad-y); color: var(--ad-g2); }
.ad-ibox > div { display: grid; gap: 2px; min-width: 0; }
.ad-ibox span { font-size: .84rem; font-weight: 500; }
.ad-ibox b { font-size: 1.45rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.ad-ibox small { font-size: .78rem; }
.ad-chart { margin-top: 12px; min-height: 120px; }
.ad-svg { width: 100%; height: auto; display: block; overflow: visible; direction: ltr; }
.ad-gridl line { stroke: var(--line); }
.ad-svg text { fill: var(--muted); font-size: 11px; font-family: var(--f-ad); }
.ad-ser.g { color: #16924a; } .ad-ser.y { color: #e4c000; }
.ad-area { fill: currentColor; fill-opacity: .12; }
.ad-line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.ad-ser circle { fill: var(--paper); stroke: currentColor; stroke-width: 2.4; }
.ad-legend { display: flex; gap: 16px; justify-content: center; font-size: .8rem; color: var(--muted); }
.ad-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; }
.ad-legend .g::before { background: #16924a; } .ad-legend .y::before { background: #e4c000; }
.ad-itab { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ad-split { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.ad-split b { color: var(--ink); }
.ad-latest { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.ad-latest a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ad-latest a:hover { background: var(--ad-gsoft); }
.ad-latest span { display: grid; min-width: 0; }
.ad-latest small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-none { margin: 4px 0 8px; font-size: .86rem; }

/* emirates */
.ad-em-total { margin: -4px 0 6px; font-size: .86rem; }
.ad-em-total b { font-size: 1.5rem; color: var(--ad-g2); }
:root[data-theme='dark'] .ad-em-total b { color: #fff; }
.ad-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; height: 230px; align-items: end; }
.ad-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 4px; text-decoration: none; color: var(--ink); text-align: center; min-width: 0; }
.ad-bar-n { font-size: .8rem; font-weight: 600; }
.ad-bar-col { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.ad-bar-col i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px; transition: filter .15s ease, transform .15s ease; transform-origin: bottom; }
.ad-bar:hover .ad-bar-col i, .ad-bar:focus-visible .ad-bar-col i { filter: brightness(1.08); transform: scaleY(1.03); }
.ad-bar-l { font-size: .72rem; color: var(--muted); line-height: 1.2; min-height: 2.4em; }
.ad-bar.g1 i { background: linear-gradient(180deg, #2fbf4c, #138a3a); } .ad-bar.y1 i { background: linear-gradient(180deg, #ffe24a, #f0c400); } .ad-bar.g2 i { background: linear-gradient(180deg, #48b84f, #1f8a35); }
.ad-bar.l1 i { background: linear-gradient(180deg, #b8e04a, #8cc63f); } .ad-bar.g3 i { background: linear-gradient(180deg, #3cc25c, #20963e); } .ad-bar.t1 i { background: linear-gradient(180deg, #2ad5a0, #12a37a); }
.ad-bar.t2 i { background: linear-gradient(180deg, #2bb5a3, #14877a); } .ad-bar.y2 i { background: linear-gradient(180deg, #f9e07a, #e3b800); }

/* stat cards */
.ad-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ad-stat { position: relative; display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 14px; }
.ad-stat:hover { border-color: var(--ad-g); }
.ad-stat-ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.ad-stat-ico.green { background: var(--ad-g); color: #fff; } .ad-stat-ico.yellow { background: var(--ad-y); color: var(--ad-g2); }
.ad-stat-ico svg { width: 22px; height: 22px; }
.ad-stat > div { display: grid; gap: 2px; min-width: 0; }
.ad-stat-l { font-size: .86rem; font-weight: 500; }
.ad-stat b { font-size: 1.55rem; font-weight: 600; line-height: 1.15; }
.ad-stat small { font-size: .76rem; }
.ad-types { color: var(--muted); margin-top: 4px; }
.ad-stat-side { position: absolute; inset-inline-end: 14px; bottom: 16px; color: var(--ad-g); }

/* CRM */
.ad-crm-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 14px; align-items: stretch; margin-bottom: 8px; }
.ad-crm-title { display: flex; gap: 12px; align-items: flex-start; }
.ad-crm-title p { margin: 4px 0 0; font-size: .84rem; }
.ad-hl { display: inline; font-size: 1.45rem !important; font-weight: 700 !important; padding: 0 4px; background: linear-gradient(transparent 58%, var(--ad-y) 58%, var(--ad-y) 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ad-total-leads { display: grid; align-content: center; gap: 2px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--ad-g) 0%, var(--ad-g2) 100%); color: #fff; text-decoration: none; }
.ad-total-leads span { font-size: .86rem; }
.ad-total-leads b { font-size: 1.9rem; font-weight: 700; }
.ad-total-leads small { font-size: .76rem; opacity: .9; }
.ad-status { display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; border: 1px solid #e3ece6; }
:root[data-theme='dark'] .ad-status { border-color: var(--line); }
.ad-status-t { font-weight: 600; font-size: .9rem; }
.ad-status-b { display: flex; align-items: center; gap: 12px; }
.ad-donut { flex: 0 0 auto; }
.ad-status ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; min-width: 0; }
.ad-status li a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: .8rem; padding: 2px 4px; border-radius: 6px; }
.ad-status li a:hover { background: var(--ad-gsoft); }
.ad-status li i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ad-status li b { margin-inline-start: auto; font-weight: 600; }
.ad-sub-h { margin: 10px 0 6px; }
.ad-sub-h h3 { flex: 1; margin: 0; font-size: 1.02rem; font-weight: 600; }
.ad-tablewrap { overflow-x: auto; }
.ad-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.ad-tbl th { text-align: start; font-weight: 600; font-size: .76rem; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); background: #f6faf7; white-space: nowrap; }
:root[data-theme='dark'] .ad-tbl th { background: var(--sunk); }
.ad-tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ad-tbl tr:last-child td { border-bottom: 0; }
.ad-tbl td.num { white-space: nowrap; }
.ad-rowlink { cursor: pointer; }
.ad-rowlink:hover td { background: var(--ad-gsoft); }
.ad-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ad-who > span { display: grid; min-width: 0; }
.ad-who b { font-weight: 500; }
.ad-who small { color: var(--muted); font-size: .74rem; }
.ad-car { display: inline-flex; align-items: center; gap: 8px; }
.ad-car > i { display: inline-flex; color: var(--muted); }
.ad-car > span { display: grid; }
.ad-car small { color: var(--muted); font-size: .72rem; }
.ad-dt { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.ad-lead { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: #fff; }
.ad-lead.st-hot { background: #ef4444; } .ad-lead.st-interested { background: #f3d21c; color: #3b3000; } .ad-lead.st-new { background: #2f80ed; } .ad-lead.st-follow_up { background: #8b5cf6; }
.ad-lead.st-closed { background: #0d7a3e; } .ad-lead.st-lost { background: #9aa6a0; }
.ad-st { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--sunk); color: var(--muted); }
.ad-st.st-active { background: #e2f5e8; color: #157a3c; } .ad-st.st-expired { background: #fdf0d8; color: #9a5b00; } .ad-st.st-cancelled { background: var(--lose-soft); color: var(--lose); }
:root[data-theme='dark'] .ad-st.st-active { background: #12371f; color: #5fd68f; }
.pill.ad-plan-dealer { background: var(--ad-g); color: #fff; border-color: transparent; } .pill.ad-plan-individual { background: var(--ad-y); color: var(--ad-yink); border-color: transparent; } .pill.ad-plan-free { background: var(--sunk); }
.ad-custom { display: inline-block; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: .68rem; font-weight: 700; background: #efe6ff; color: #6a3fc0; vertical-align: middle; }

/* boxes */
.ad-box .ad-card-h { margin-bottom: 8px; }
.ad-mini td, .ad-mini th { padding: 8px 6px; }
.ad-free-link { font-size: .82rem; color: var(--ad-g); font-weight: 600; }
.ad-rank { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.ad-rank a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(90px, 1fr); gap: 10px; align-items: center; padding: 7px 6px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.ad-rank a:hover { background: var(--ad-gsoft); }
.ad-rank-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ad-ysoft); color: var(--ad-yink); font-size: .74rem; font-weight: 700; }
.ad-rank li:first-child .ad-rank-n { background: var(--ad-y); }
.ad-rank-name { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-rank-bar { display: grid; gap: 4px; }
.ad-rank-bar b { font-size: .78rem; font-weight: 600; }
.ad-rank-bar i { display: block; height: 7px; border-radius: 4px; background: #e6ece8; overflow: hidden; }
:root[data-theme='dark'] .ad-rank-bar i { background: var(--sunk); }
.ad-rank-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16924a, #2fbf4c); }
html[dir='rtl'] .ad-rank-bar em { background: linear-gradient(270deg, #16924a, #2fbf4c); }
.ad-rank-full a { grid-template-columns: auto auto minmax(0, 1fr) minmax(140px, 2fr); padding: 10px; }
.ad-lbs-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.ad-lbs-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.ad-lbs-list a:hover { background: var(--ad-gsoft); }
.ad-lbs-name { display: grid; gap: 4px; min-width: 0; }
.ad-lbs-name b { font-weight: 500; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-mini-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--sunk); gap: 1px; }
.ad-mini-bar i { display: block; }
.ad-dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.ad-free-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ad-free-car { width: 52px; height: 44px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.ad-stepper { display: inline-flex; align-items: center; gap: 8px; }
.ad-stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ad-stepper button:hover { border-color: var(--ad-g); color: var(--ad-g); }
.ad-stepper input { width: 70px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-align: center; font-size: 1.1rem; font-weight: 600; -moz-appearance: textfield; }
.ad-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ad-free .ad-btn-y { margin-inline-start: auto; }
.ad-week-b { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-week-b > b { font-size: 1.3rem; }
.ad-week-sp { flex: 1; min-width: 140px; color: #16924a; }
.ad-spark { width: 100%; height: 50px; display: block; }
.ad-spark.green { color: #16924a; }
.ad-grow { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 16px 22px; border-radius: var(--ad-r);
  background: radial-gradient(28% 90% at 100% 100%, var(--ad-g) 0 60%, transparent 61%), radial-gradient(36% 110% at 100% 100%, var(--ad-y) 0 60%, transparent 61%), linear-gradient(90deg, #fffef4, #fffbe0); border: 1px solid #efe8b0; align-self: stretch; }
html[dir='rtl'] .ad-grow { background: radial-gradient(28% 90% at 0% 100%, var(--ad-g) 0 60%, transparent 61%), radial-gradient(36% 110% at 0% 100%, var(--ad-y) 0 60%, transparent 61%), linear-gradient(270deg, #fffef4, #fffbe0); }
.ad-grow > div { max-width: 60%; }
:root[data-theme='dark'] .ad-grow { background: linear-gradient(90deg, var(--ad-ysoft), var(--paper)); border-color: var(--line); }
.ad-grow-art { width: 180px; flex: 0 0 auto; }
.ad-grow-art svg { width: 100%; height: auto; display: block; }
.ad-grow h2 { font-size: 1.25rem; font-weight: 700; color: var(--ad-g2); margin: 0 0 10px; }
:root[data-theme='dark'] .ad-grow h2 { color: #fff; }
.ad-grow-l { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ad-grow-l a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; }
.ad-grow-l a svg { color: var(--ad-g); }

/* list pages */
.ad-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px; }
.ad-search-in { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.ad-search-in input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; color: var(--ink); }
.ad-search-in:focus-within { border-color: var(--ad-g); }
.ad-filter { display: grid; gap: 4px; font-size: .76rem; color: var(--muted); font-weight: 500; }
.ad-filter .in { height: 42px; min-width: 130px; border-radius: 12px; }
.ad-tablecard { padding: 8px 12px 12px; }
.ad-count { font-size: .8rem; padding: 6px 4px; }
.ad-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ad-sort::after { content: '↕'; opacity: .35; font-size: .8em; }
.ad-sort.on.desc::after { content: '↓'; opacity: 1; } .ad-sort.on.asc::after { content: '↑'; opacity: 1; }
.ad-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; font-size: .84rem; }
.ad-sumrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.ad-sum { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.ad-sum span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.ad-sum b { font-size: 1.5rem; font-weight: 600; }
.ad-sum.y { background: #fffbe2; border-color: #f2e7a6; }
:root[data-theme='dark'] .ad-sum.y { background: var(--ad-ysoft); border-color: var(--line); }
.ad-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ad-dl { margin: 0; display: grid; gap: 0; }
.ad-dl-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ad-dl-row:last-child { border-bottom: 0; }
.ad-dl dt { color: var(--muted); }
.ad-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ad-wa { display: block; }
.ad-profile-h { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ad-profile-h > div:not(.ad-head-act) { flex: 1; min-width: 200px; }
.ad-profile-h h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.ad-profile-h p { margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ad-legacy .tabs { display: none; }

/* forms */
.ad-form { display: grid; gap: 16px; }
.ad-step .f, .ad-form .f { margin-bottom: 10px; }
.ad-stepn { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ad-y); color: var(--ad-g2); font-size: .82rem; font-weight: 700; }
.ad-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; align-items: start; }
.ad-fgrid > .ad-ferr { grid-column: 1 / -1; margin-top: -8px; }
.ad-ferr { margin: -6px 0 8px; color: var(--lose); font-size: .82rem; font-weight: 500; }
.ad-ferr:empty { display: none; }
.ad-form .in[aria-invalid='true'], .ad-pick [aria-invalid='true'] { border-color: var(--lose); }
.ad-radio { border: 0; padding: 0; margin: 0 0 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.ad-radio legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.ad-radio label { display: flex; align-items: center; gap: 6px; }
.ad-radio input { accent-color: var(--ad-g); }
.ad-summary { border: 2px solid var(--ad-y); background: #fffef4; }
:root[data-theme='dark'] .ad-summary { background: var(--paper); }
.ad-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.ad-summary dt { color: var(--muted); font-size: .82rem; }
.ad-summary dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.ad-form-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.ad-pick { position: relative; }
.ad-pick-in { display: flex; align-items: center; gap: 8px; position: relative; }
.ad-pick-in > svg { position: absolute; inset-inline-start: 12px; color: var(--muted); }
.ad-pick-in .in { padding-inline-start: 38px; }
.ad-pick-list { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% - 4px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--ad-shadow); }
.ad-pick-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.ad-pick-list li:hover, .ad-pick-list li:focus { background: var(--ad-gsoft); outline: 0; }
.ad-pick-list li span { display: grid; min-width: 0; }
.ad-pick-list small { color: var(--muted); font-size: .76rem; }
.ad-pick-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--ad-gsoft); }
.ad-pick-card > div { display: grid; flex: 1; min-width: 0; }
.ad-pick-card small { color: var(--muted); font-size: .8rem; }
.ad-statusedit { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ad-statusedit .f { margin: 0; }
.ad-carcard { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.ad-carcard img, .ad-carph { width: 96px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--sunk); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.ad-carcard > span { display: grid; gap: 2px; min-width: 0; }
.ad-carcard small { color: var(--muted); font-size: .8rem; }
.ad-first-msg { padding: 10px 12px; border-radius: 12px; background: var(--sunk); margin: 0 0 10px; }
.ad-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ad-msgs li { max-width: 80%; padding: 10px 12px; border-radius: 14px; background: var(--sunk); justify-self: start; }
.ad-msgs li.seller { background: var(--ad-gsoft); justify-self: end; }
.ad-msgs p { margin: 4px 0; white-space: pre-wrap; }
.ad-msgs time { font-size: .74rem; color: var(--muted); }
.ad-notef { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.ad-notef textarea { flex: 1; }
.ad-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ad-notes li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.ad-notes p { margin: 0 0 4px; white-space: pre-wrap; }
.ad-grow1 { flex: 1 1 240px; margin: 0 !important; }
.ad-okmsg { padding: 10px 14px; border-radius: 12px; background: #e2f5e8; color: #157a3c; font-weight: 600; }
.ad-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ad-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ad-item .in { width: 100px; margin-inline-start: auto; }
.ad-item .ad-ferr { flex-basis: 100%; margin: 0; }
.ad-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .88rem; font-weight: 500; }
.ad-toggle input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 11px; background: #cfd8d3; position: relative; cursor: pointer; transition: background .15s ease; flex: 0 0 auto; margin: 0; }
.ad-toggle input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ad-toggle input:checked { background: var(--ad-g); }
.ad-toggle input:checked::after { inset-inline-start: 21px; }
.ad-toggle input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ad-xrow { display: grid; grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ad-mt { margin-top: 14px; }
.ad-noexp { align-self: center; }
.ad-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-weight: 500; }
.ad-changes { margin: 6px 0 0; padding-inline-start: 18px; font-size: .8rem; color: var(--muted); }
.ad-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ad-results a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ad-results a:hover { background: var(--ad-gsoft); }

/* tablet: two columns */
@media (max-width: 1400px) {
  .ad-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'inc inc' 'emi st' 'crm crm' 'dea ind' 'top lbs' 'fre week' 'grow grow'; }
  .ad-grow > div { max-width: none; }
}
@media (max-width: 1100px) {
  .ad-body { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-start: 0; width: min(290px, 86vw); height: 100vh; height: 100dvh; display: none; }
  .ad.side-open .ad-side { display: flex; animation: sdIn .22s ease; }
  html[dir='rtl'] .ad.side-open .ad-side { animation-name: sdInR; }
  .ad-side-top { display: flex; justify-content: flex-end; margin-bottom: 6px; }
  .ad-side-top .ad-iconbtn { color: #fff; }
  .ad-side-top .ad-iconbtn:hover { background: rgba(255, 255, 255, .12); }
  .ad-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 12, 18, .5); }
  .ad.side-open .ad-scrim { display: block; }
  .ad-burger { display: inline-grid; }
  .ad-top { padding: 0 16px; gap: 10px; }
  html[dir='rtl'] .ad-top { padding: 0 16px; }
  .ad-logo { width: auto; padding: 0; font-size: 1.3rem; }
  .ad-crm-top { grid-template-columns: 1fr 1fr; }
  .ad-crm-title { grid-column: 1 / -1; }
  .ad-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ad-prof-txt, .ad-prof > button > svg:last-child { display: none; }
  .ad-prof { padding-inline-start: 8px; }
  .ad-logo span { display: none; }
  .ad-gsearch { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .ad-top { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 14px; }
  html[dir='rtl'] .ad-top { padding: 10px 14px; }
  .ad-range-btn span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .ad-side { top: 0; }
}
/* phone: one column, tables as cards */
@media (max-width: 700px) {
  .ad-main { padding: 14px 12px 24px; }
  .ad-dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'inc' 'emi' 'st' 'crm' 'dea' 'ind' 'top' 'lbs' 'fre' 'week' 'grow'; gap: 14px; }
  .ad-head h1 { font-size: 1.45rem; }
  .ad-card { padding: 14px; }
  .ad-income-boxes, .ad-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ad-tabs { margin-inline-start: 0; flex-basis: 100%; }
  .ad-tabs > * { flex: 1; white-space: normal; text-align: center; }
  .ad-grow > div { max-width: none; }
  .ad-crm-top { grid-template-columns: minmax(0, 1fr); }
  .ad-bars { gap: 4px; height: 200px; }
  .ad-bar-l { font-size: .64rem; }
  .ad-bar-n { font-size: .7rem; }
  .ad-summary dl { grid-template-columns: minmax(0, 1fr); }
  .ad-grow { flex-direction: column; align-items: flex-start; }
  .ad-grow-art { width: 140px; }
  .ad-range-btn { padding: 0 10px; gap: 6px; }
  .ad-range-btn span { max-width: 96px; }
  .ad-range-btn > svg:last-child { display: none; }
  .ad-logo img { width: 40px; height: 40px; }
  .ad-iconbtn { width: 40px; }
  .ad-av-me { width: 40px; height: 40px; }
  .ad-xrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ad-xrow [data-x=value] { grid-column: 2 / 3; }
  .ad-tbl-cards thead { display: none; }
  .ad-tbl-cards, .ad-tbl-cards tbody { display: block; }
  .ad-tbl-cards tr { display: grid; gap: 6px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .ad-tbl-cards tr:last-child { border-bottom: 0; }
  .ad-tbl-cards td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0; border: 0; text-align: end; }
  .ad-tbl-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .76rem; text-align: start; flex: 0 0 auto; }
  .ad-tbl-cards td:first-child { font-weight: 600; }
  .ad-mini thead { display: none; }
  .ad-mini, .ad-mini tbody { display: block; }
  .ad-mini tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ad-mini td { padding: 0; border: 0; font-size: .8rem; }
  .ad-mini td:first-child { grid-column: 1 / -1; }
  .ad-rank-full a, .ad-rank a { grid-template-columns: auto auto minmax(0, 1fr) 90px; }
  .ad-free .ad-btn-y { margin-inline-start: 0; }
}
.sd-pk-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sd-pk-items li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-m); background: var(--win-soft); }
.sd-pk-items li > svg { width: 14px; height: 14px; color: var(--win); flex: 0 0 auto; }
.ad-pick label[hidden] { display: none; }
.ad-bar-l { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 1401px) { .ad-bars { gap: 5px; } .ad-bar-l { font-size: .66rem; } .ad-bar-n { font-size: .72rem; } }

/* ===================================================================== Package & Subscription (seller dashboard) */
.sd-pk { --pk-red: #c8102e; --pk-teal: #0fa37f; }
.sd-pk-plan .sd-card-h h2 { white-space: normal; }
.sd-pk-plan-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sd-pk-type, .sd-pk-st { padding: 3px 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; background: var(--sunk); color: var(--ink); }
.sd-pk-type.t-dealer { background: var(--sd-green); color: #fff; } .sd-pk-type.t-individual { background: var(--sd-gold); color: var(--sd-gold-ink); }
.sd-pk-type.t-custom, .sd-pk-type.t-showroom { background: #fde7ea; color: var(--pk-red); }
.sd-pk-st.on { background: var(--win-soft); color: var(--win); } .sd-pk-st.off { background: var(--lose-soft); color: var(--lose); }
.sd-pk-dates { margin: -6px 0 14px; font-size: .9rem; }
.sd-pk-uses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 18px; }
.sd-pk-use { display: grid; gap: 6px; min-width: 0; }
.sd-pk-use-h { display: grid; gap: 2px; font-size: .84rem; }
.sd-pk-use-h span { color: var(--muted); }
.sd-pk-use-h b { white-space: nowrap; font-size: .95rem; }
.sd-pk-use.off .sd-pk-use-h b { color: var(--muted); font-weight: 500; }
.sd-pk-note { margin: 14px 0 0; padding: 8px 12px; border-radius: var(--r-m); background: var(--sunk); font-size: .9rem; }
.sd-pk-note.gold { background: var(--sd-gold-soft); }
.sd-pk-plan-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sd-pk-plan-btns .btn { gap: 6px; }
.sd-pk-pricing { padding: clamp(18px, 3vw, 30px); display: grid; gap: 0; }
.sd-pk-brand { display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--sd-green); margin-bottom: 16px; }
.sd-pk-brand img { width: 40px; height: 40px; border-radius: 10px; }
.sd-pk-brand b { color: #12b38d; margin-inline-start: 4px; }
.sd-pk-pricing h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; max-width: 18ch; margin: 0; }
.sd-pk-sub { color: var(--muted); max-width: 54ch; margin: 10px 0 22px; }
.sd-pk-switch { display: inline-flex; justify-self: start; border: 2px solid var(--sd-green); border-radius: var(--r-m); overflow: hidden; background: var(--paper); margin-bottom: 26px; max-width: 100%; }
.sd-pk-switch button { font: 600 1rem var(--f-body); padding: 10px 20px; min-height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; flex: 1 1 0; white-space: nowrap; }
.sd-pk-switch button + button { border-inline-start: 2px solid var(--sd-green); }
.sd-pk-switch button[aria-pressed='true'] { background: var(--sd-green); color: #fff; }
.sd-pk-switch button:focus-visible { outline: 3px solid var(--sd-gold); outline-offset: -3px; }
.sd-pk-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.sd-pk-grid.n1 { grid-template-columns: minmax(0, 380px); }
.sd-pk-grid.n2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
.sd-pk-grid.show { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 420px)); }
.sd-pkc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border: 1.5px solid var(--line); border-radius: var(--r-l); background: var(--paper); min-width: 0; }
.sd-pkc.tone-gold { border-color: var(--sd-gold); background: linear-gradient(180deg, rgba(245, 197, 24, .16), var(--paper) 58%); }
.sd-pkc.tone-green { border-color: var(--pk-teal); background: linear-gradient(180deg, rgba(15, 163, 127, .14), var(--paper) 58%); }
.sd-pkc.tone-dark { border: 2px solid var(--sd-green); background: linear-gradient(180deg, rgba(15, 106, 71, .12), var(--paper) 58%); }
.sd-pkc.tone-custom, .sd-pkc.tone-show { border: 2px solid var(--pk-red); }
.sd-pkc.cur { box-shadow: 0 0 0 3px var(--win-soft); }
.sd-pkc-tag { position: absolute; top: -12px; inset-inline-end: 16px; padding: 3px 12px; border-radius: 6px; background: var(--sd-green); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sd-pkc.tone-green .sd-pkc-tag { background: var(--pk-teal); }
.sd-pkc-tag.red { background: var(--pk-red); text-transform: none; letter-spacing: 0; inset-inline-start: 16px; inset-inline-end: auto; border-radius: 999px; }
.sd-pkc-tag.inline { position: static; display: inline-block; font-size: .72rem; }
.sd-pkc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sd-pkc-name { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; color: #fff; background: linear-gradient(#0e7565, #073f37); }
.sd-pkc.tone-gold .sd-pkc-name { background: linear-gradient(#f7c82a, #e0a800); color: var(--sd-gold-ink); }
.sd-pkc.tone-green .sd-pkc-name { background: linear-gradient(#12b38d, #0b7f64); }
.sd-pkc.tone-custom .sd-pkc-name { background: linear-gradient(#e8112d, #a50d24); }
.sd-pkc-cur { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--win-soft); color: var(--win); font-size: .8rem; font-weight: 700; }
.sd-pkc-wait { padding: 3px 10px; border-radius: 999px; background: var(--sd-gold-soft); font-size: .8rem; font-weight: 700; }
.sd-pkc-sub { margin: -4px 0 0; font-size: .86rem; }
.sd-pkc-price { font-family: 'Barlow Condensed', var(--f-display); font-size: 2.2rem; font-weight: 700; line-height: 1.05; margin-top: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sd-pkc-price small { font: 500 .95rem var(--f-body); color: var(--muted); margin-inline-start: 4px; }
.sd-pkc-was { font-size: 1.3rem; font-weight: 600; color: var(--muted); margin-inline-end: 8px; text-decoration-thickness: 2px; }
.sd-pkc-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px; border-radius: var(--r-m); background: var(--sd-gold-soft); color: var(--ink); border: 1px dashed var(--sd-gold); font-size: .88rem; }
.sd-pkc-promo b { font-weight: 800; }
.sd-pkc-promo svg { flex: 0 0 auto; }
.sd-pkc-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; flex: 0 0 auto; }
.sd-pkc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: .94rem; }
.sd-pkc-list svg { color: var(--sd-green); margin-top: 2px; }
.sd-pkc-why { margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); display: grid; gap: 4px; font-size: .9rem; }
.sd-pkc-why span { display: flex; gap: 6px; align-items: center; } .sd-pkc-why svg { color: var(--sd-green); flex: 0 0 auto; }
.sd-pkc-note { margin: 0; font-size: .86rem; }
.sd-pkc-btn { margin-top: auto; background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; gap: 6px; }
.sd-pkc.tone-dark .sd-pkc-btn { background: var(--sd-green); border-color: var(--sd-green); color: #fff; }
.sd-pkc-btn:hover:not(:disabled) { filter: brightness(1.12); }
.sd-pkc-btn:disabled, .sd-pkc-btn[aria-disabled='true'] { background: var(--sunk); color: var(--muted); border-color: var(--line); cursor: not-allowed; opacity: 1; }
html[dir='rtl'] .sd-pkc-btn svg:last-child, html[dir='rtl'] .sd-buy-btns svg:last-child { transform: scaleX(-1); }
.sd-pkc-title { font-size: 1.3rem; margin: 8px 0 0; }
.sd-pkc-text { color: var(--muted); margin: 0; }
.sd-pkc-actions { display: grid; gap: 10px; margin-top: auto; }
.sd-pkc-actions .btn { gap: 8px; flex-wrap: wrap; height: auto; min-height: 46px; padding-block: 8px; }
.sd-pkc-actions .btn small { font-weight: 600; opacity: .85; }
.sd-pk-wa { background: #25d366; border-color: #25d366; color: #06301a; font-weight: 700; }
.sd-pk-wa:hover { filter: brightness(1.05); background: #25d366; color: #06301a; }
.sd-pk-none { margin: 0; }
.sd-pk-trust h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 6px 0 14px; }
.sd-pk-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sd-pk-trust-grid .sd-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; padding: 14px 16px; }
.sd-pk-trust-grid .sd-card > span:not(.sd-pk-ti) { grid-column: 2; color: var(--muted); font-size: .92rem; }
.sd-pk-trust-grid .sd-card b { grid-column: 2; }
.sd-pk-ti { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--win-soft); color: var(--sd-green); }
.sd-pk-tbl td small { display: block; }
.sd-pk-ost { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sunk); }
.sd-pk-ost.st-paid { background: var(--win-soft); color: var(--win); } .sd-pk-ost.st-awaiting_payment { background: var(--sd-gold-soft); color: #7a5a00; } .sd-pk-ost.st-cancelled { background: var(--lose-soft); color: var(--lose); }
:root[data-theme='dark'] .sd-pk-ost.st-awaiting_payment { color: var(--sd-gold); }
.sd-pk-inv { text-align: end; } .sd-pk-inv .btn { gap: 6px; white-space: nowrap; }
/* Buying: 3 steps (the rest of the page is hidden meanwhile) */
.sd-pk.buying > :not(.sd-welcome):not(.sd-buy) { display: none; }
.sd-buy { padding: clamp(16px, 3vw, 28px); display: grid; gap: 18px; }
.sd-buy-h h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 14px; outline: 0; }
.sd-buy-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-buy-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-weight: 600; font-size: .9rem; }
html[dir='rtl'] .sd-buy-steps li { padding: 6px 6px 6px 14px; }
.sd-buy-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; }
.sd-buy-steps li.on { background: var(--sd-green); color: #fff; } .sd-buy-steps li.on span { background: var(--sd-gold); color: var(--sd-gold-ink); border-color: var(--sd-gold); }
.sd-buy-steps li.done { background: var(--win-soft); color: var(--sd-green); } .sd-buy-steps li.done span { background: var(--sd-green); color: #fff; border-color: var(--sd-green); }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sd-buy-body { display: grid; gap: 12px; max-width: 720px; }
.sd-buy-body h3 { margin: 6px 0 0; font-size: 1.05rem; }
.sd-buy-dl { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.sd-buy-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sd-buy-dl > div:last-child { border-bottom: 0; }
.sd-buy-dl dt { color: var(--muted); } .sd-buy-dl dd { margin: 0; text-align: end; }
.sd-buy-price { background: var(--sunk); } .sd-buy-price dd { font: 700 1.4rem 'Barlow Condensed', var(--f-display); }
.sd-buy-price small { font: 500 .85rem var(--f-body); color: var(--muted); }
.sd-buy-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.sd-buy-btns .btn { gap: 6px; }
.sd-id-box { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: var(--r-m); }
.sd-id-box.has { border-style: solid; border-color: var(--sd-green); background: var(--win-soft); }
.sd-id-box b { display: block; } .sd-id-box small { display: block; overflow-wrap: anywhere; }
.sd-id-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); color: var(--sd-green); }
.sd-id-btn { cursor: pointer; } .sd-id-btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.sd-pk-private { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--sd-gold-soft); font-weight: 600; font-size: .92rem; }
.sd-pay-area { display: grid; gap: 10px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.sd-pay-area h3 { margin: 0; }
.sd-pay-off { display: grid; gap: 4px; margin: 0; padding: 12px 14px; border-radius: var(--r-m); background: var(--sunk); }
.sd-pay-off span { color: var(--muted); font-size: .92rem; }
.sd-pay-note { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .84rem; }
.sd-pk-ok { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--win-soft); color: var(--win); font-weight: 700; }
/* Contact us form */
.sd-pk-form { display: grid; gap: 12px; }
.sd-pk-form h2 { margin: 0; }
.sd-pk-form > p { margin: 0; }
.sd-pk-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sd-pk-ferr { display: block; color: var(--lose); font-size: .82rem; min-height: 0; }
.sd-pk-thanks { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 16px 0 4px; }
.sd-pk-thanks h2 { margin: 0; font-size: 1.3rem; max-width: 28ch; }
.sd-pk-thanks-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--win-soft); color: var(--win); }
.sd-pk-thanks-ico svg { width: 28px; height: 28px; }
@media (max-width: 1280px) { .sd-pk-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sd-pk-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-pk-grid, .sd-pk-grid.n1, .sd-pk-grid.n2, .sd-pk-grid.show { grid-template-columns: minmax(0, 1fr); }
  .sd-pk-trust-grid, .sd-pk-fgrid { grid-template-columns: minmax(0, 1fr); }
  .sd-pk-switch { display: flex; justify-self: stretch; }
  .sd-pk-switch button { padding: 10px 8px; font-size: .95rem; }
  .sd-buy-btns .btn { flex: 1 1 auto; }
}
@media (max-width: 700px) {
  .sd-pk-tbl tr { grid-template-columns: minmax(0, 1fr); }
  .sd-pk-tbl td[data-label], .sd-pk-tbl td.sd-pk-inv { grid-column: 1 / -1; }
  .sd-pk-tbl td.sd-pk-inv { text-align: start; }
  .sd-pk-tbl td small { display: inline; margin-inline-start: 6px; }
}
@media (max-width: 340px) { .sd-pk-uses { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .sd-id-box { grid-template-columns: 36px minmax(0, 1fr); } .sd-id-box .sd-id-btn { grid-column: 1 / -1; } .sd-id-ico { width: 36px; height: 36px; } }

/* Posting form: Promote this car */
.mx-promote h2 { margin-bottom: 10px; }
.mx-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mx-promo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); cursor: pointer; background: var(--paper); }
.mx-promo:hover:not(.off) { border-color: var(--petrol); }
.mx-promo:has(input:checked) { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }
.mx-promo input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--petrol); }
.mx-promo.off { cursor: default; opacity: .62; background: var(--sunk); }
.mx-promo.off a { opacity: 1; font-weight: 700; }
.mx-promo-t { display: grid; gap: 2px; }
.mx-promo-t small { color: var(--muted); font-size: .84rem; }
.mx-promo-left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 600; color: var(--ink) !important; }
.mx-promo-fast { margin: 0 0 12px; }
@media (max-width: 760px) { .mx-promos { grid-template-columns: minmax(0, 1fr); } }

/* My Listings: promotions and Refresh to top */
.sl-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sl-promo, .sl-refresh { gap: 6px; }
.sl-promo small, .sl-refresh small { color: var(--muted); font-weight: 500; }
.sl-promo-on { display: inline-flex; align-items: center; }
.sl-promo-off { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-s); background: var(--sunk); color: var(--muted); font-size: .86rem; }
.sl-promo-off a { font-weight: 700; }

/* Marketplace admin: packages, orders, custom packages, ID approvals */
.ad-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ad-pk { display: grid; gap: 12px; align-content: start; }
.ad-pk.off { opacity: .7; }
.ad-pk-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ad-pk-h > div > b { font-size: 1.15rem; }
.ad-pk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ad-pk-price { font-size: 1.25rem; white-space: nowrap; } .ad-pk-price small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.ad-pk-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: .86rem; color: var(--muted); }
.ad-pk-facts b { color: var(--ink); }
.ad-pk-facts li:has(svg) { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; color: var(--ink); }
.ad-pk-feat { margin: 0; padding-inline-start: 18px; font-size: .88rem; display: grid; gap: 2px; }
.ad-pk .ad-two { flex-wrap: wrap; }
.ad-awaiting { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); color: var(--ink); text-decoration: none; font-size: .9rem; }
.ad-awaiting.on { background: var(--ad-ysoft); box-shadow: inset 0 0 0 1px var(--ad-y); }
.ad-awaiting > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.ad-awaiting b { display: inline-flex; align-items: center; gap: 2px; color: var(--ad-g); white-space: nowrap; font-size: .86rem; }
.ad-awaiting-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ad-y); color: var(--ad-yink); flex: 0 0 auto; }
.ad-awaiting-ico svg { width: 18px; height: 18px; }
.ad-custom.ad-show { background: #fde7ea; color: #c8102e; }
.pill.ad-plan-showroom { background: #c8102e; color: #fff; border-color: transparent; } .pill.ad-plan-custom { background: #efe6ff; color: #6a3fc0; border-color: transparent; }
.ad-st.st-awaiting_payment, .ad-st.st-sent, .ad-st.st-rq-in_talks { background: #fdf0d8; color: #9a5b00; }
.ad-st.st-paid, .ad-st.st-rq-package_created { background: #e2f5e8; color: #157a3c; }
.ad-st.st-draft, .ad-st.st-rq-closed { background: var(--sunk); color: var(--muted); }
.ad-st.st-rq-new { background: #e3edff; color: #2457c5; }
:root[data-theme='dark'] .ad-st.st-paid, :root[data-theme='dark'] .ad-st.st-rq-package_created { background: #12371f; color: #5fd68f; }
.ad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.ad-chip.on { background: var(--ad-g); border-color: var(--ad-g); color: #fff; }
.ad-needs { max-width: 280px; white-space: pre-line; overflow-wrap: anywhere; font-size: .86rem; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 260px; }
.ad-block { display: block; }
.ad-acts .btn, .ad-idrow .btn { gap: 4px; }
.ad-idrow .btn { white-space: nowrap; }
td a.ltr { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.in.sm { min-height: 34px; padding: 4px 8px; font-size: .86rem; width: auto; }
.ad-idlist { list-style: none; margin: 0; padding: 0; display: grid; }
.ad-idrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.ad-idrow:last-child { border-bottom: 0; }
.ad-idrow > a { text-decoration: none; color: inherit; min-width: 220px; }
.ad-reqcard p { margin: 4px 0 0; white-space: pre-line; }
.ad-limits { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.ad-cf-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ad-cf-btns .err { flex: 1 1 100%; margin: 0; }
.ad-paidf { display: grid; gap: 12px; }
.ad-paidf h2 { margin: 0; }

/* ---- Home page picks (admin): Deal of the week, Featured ads, Premium added by an admin */
.mx-badge.deal { background: #0d7a3e; color: #fff; }
.hp-box { display: grid; gap: 4px; }
.hp-box h2 { margin: 0; }
.hp-sub { font-size: .85rem; margin: 0 0 6px; }
.hp-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.hp-kind { font-weight: 600; }
.hp-state { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.hp-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.hp-tag svg { width: 14px; height: 14px; flex: 0 0 auto; }
.hp-tag.admin { background: #e2f5e8; color: #157a3c; }
.hp-tag.pkg { background: var(--sunk); color: var(--muted); cursor: help; }
:root[data-theme='dark'] .hp-tag.admin { background: #12371f; color: #5fd68f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hp-tag.admin { background: #12371f; color: #5fd68f; } }
.hp-dates-l { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.hp-dates-l b { color: var(--ink); font-weight: 600; }
.hp-left { color: var(--ad-g); font-weight: 600; }
.hp-note { margin: 0; font-size: .82rem; font-style: italic; color: var(--muted); }
.hp-acts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.btn.hp-remove { background: transparent; border: 1.5px solid #c8323c; color: #c8323c; }
.btn.hp-remove:hover { background: #c8323c; color: #fff; }
.hp-link { border: 0; background: none; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ad-g); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp-link:hover { color: var(--ad-g2); }
.hp-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; }
.btn.hp-add svg { width: 15px; height: 15px; }
.btn.hp-add[disabled] { opacity: .45; cursor: not-allowed; }
.hp-slots { font-size: .82rem; margin: 6px 0 0; }
.hp-slots a { color: var(--ad-g); font-weight: 600; }
/* popup */
.hp-pop { display: grid; gap: 14px; }
.hp-pop-car { margin: -4px 0 14px; }
.hp-dur { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 8px; }
.hp-dur legend { padding: 0 6px; font-weight: 600; }
.hp-or { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.hp-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.hp-pop textarea { min-height: 70px; }
.hp-pop-act { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.hp-full { border: 1px solid #f0c36d; background: #fff7e6; color: #5a3d00; border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
:root[data-theme='dark'] .hp-full { background: #3a2c0c; color: #f7d991; border-color: #6b5214; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hp-full { background: #3a2c0c; color: #f7d991; border-color: #6b5214; } }
.hp-full p { margin: 0; font-size: .85rem; }
.hp-replace { display: grid; gap: 6px; }
.hp-rep { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.hp-rep span { display: grid; min-width: 0; }
.hp-rep small { color: var(--muted); }
/* All listings */
.hp-badges { white-space: nowrap; }
.hp-b { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; margin-inline-end: 4px; }
.hp-b.deal { background: #0d7a3e; color: #fff; }
.hp-b.feat { background: #f2a516; color: #3a2600; }
.hp-b.prem { background: #1b2b38; color: #f7c65a; }
.hp-b.off { background: var(--sunk); color: var(--muted); font-weight: 600; }
.btn.hp-bulk { border-color: var(--ad-g); color: var(--ad-g); }
/* Home page picks page */
.hp-tbl .hp-grip { width: 1%; white-space: nowrap; color: var(--muted); }
.hp-tbl .hp-grip > span[aria-hidden] { cursor: grab; vertical-align: middle; }
.hp-move { display: inline-flex; gap: 2px; vertical-align: middle; }
.hp-mv { width: 26px; height: 26px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.hp-mv[disabled] { opacity: .35; cursor: default; }
.hp-drag.dragging { opacity: .5; background: var(--ad-gsoft); }
.hp-thumb { width: 64px; height: 46px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--sunk); color: var(--muted); flex: 0 0 auto; }
.hp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-num { display: block; }
.hp-src { display: inline-block; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.hp-src.admin { background: #e2f5e8; color: #157a3c; }
.hp-src.pkg { background: var(--sunk); color: var(--muted); }
.hp-search { display: flex; gap: 8px; margin-bottom: 12px; }
.hp-search .in { flex: 1 1 auto; min-width: 0; }
.hp-res { display: grid; gap: 8px; max-height: min(60vh, 520px); overflow-y: auto; }
.hp-res-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.hp-res-t { display: grid; flex: 1 1 auto; min-width: 0; }
.hp-res-t b, .hp-res-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-res-on { font-size: .8rem; white-space: nowrap; }
@media (max-width: 760px) {
  .hp-tbl .hp-grip { width: auto; justify-content: flex-start; }
  .hp-tbl td.hp-grip:empty { display: none; }
  .hp-tbl .hp-grip > span[aria-hidden] { display: none; }
}

/* ==================================================================================================== Our Agents (admin) */
.ad-navbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 999px; background: var(--ad-y); color: var(--ad-g2); font-size: .72rem; font-weight: 700; line-height: 1; }
.ad-navbadge[hidden] { display: none; }
.btn.xs { min-height: 30px; padding: 4px 10px; font-size: .78rem; gap: 5px; }
.btn.xs svg { width: 14px; height: 14px; }
.oa-code { display: inline-block; padding: 2px 9px; border-radius: 8px; background: var(--ad-gsoft); color: var(--ad-g2); font: 600 .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }
:root[data-theme='dark'] .oa-code { color: #b8f0cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .oa-code { color: #b8f0cf; } }
.oa-agent { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oa-agent b { font-weight: 500; }
.oa-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.oa-eid { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.oa-form { display: grid; gap: 14px; }
.oa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; align-items: start; }
.oa-grid > .ad-ferr { grid-column: auto; margin-top: -6px; }
.oa-grid > .f, .oa-grid > .oa-ph, .oa-grid > .oa-pw { min-width: 0; }
.oa-ph .f { margin: 0; }
.oa-same { margin: 6px 0 0; font-size: .88rem; font-weight: 500; }
.oa-same input { accent-color: var(--ad-g); width: 16px; height: 16px; }
.oa-pw { display: grid; gap: 6px; }
.oa-lbl { font-weight: 600; font-size: .9rem; }
.oa-pw-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.oa-rules, .ag-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.oa-rules li, .ag-rules li { display: inline-flex; align-items: center; gap: 5px; }
.oa-rules li svg, .ag-rules li svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--sunk); color: transparent; }
.oa-rules li.ok, .ag-rules li.ok { color: var(--ad-g); font-weight: 600; }
.oa-rules li.ok svg, .ag-rules li.ok svg { background: var(--ad-g); color: #fff; }
.oa-avail { display: block; font-weight: 600; font-size: .82rem; min-height: 1.2em; }
.oa-avail.ok { color: var(--ad-g); }
.oa-avail.bad { color: var(--lose); }
.oa-codein { text-transform: uppercase; letter-spacing: .05em; }
.oa-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.oa-modal { width: min(760px, 100%) !important; }
.oa-done { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 720px; margin: 0 auto; }
.oa-done h1 { margin: 0; color: var(--ad-g2); font-size: 1.6rem; }
.oa-done-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--ad-g); color: #fff; box-shadow: 0 0 0 10px var(--ad-gsoft); }
.oa-done-ico svg { width: 30px; height: 30px; }
.oa-done-dl { width: 100%; text-align: start; }
.oa-linkbox { display: block; max-width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--sunk); border: 1px dashed var(--line); font: 500 .86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }
.oa-linkrow dd, .oa-pwrow dd { display: grid; gap: 8px; justify-items: start; }
.oa-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oa-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ad-ysoft); border: 1px solid var(--ad-y); color: var(--ad-yink); font-size: .88rem; text-align: start; }
.oa-note svg { flex: 0 0 auto; margin-top: 2px; }
.oa-small { font-size: .8rem; margin: 8px 0 0; }
.oa-sums .ad-sum small { display: block; }
.oa-sum { border-color: var(--ad-y) !important; }
.oa-settings { max-width: 560px; }
.oa-rate { display: flex; align-items: center; gap: 8px; }
.oa-rate .in { max-width: 160px; }
.oa-pt-individual { background: #e2f5e8; color: #157a3c; } .oa-pt-dealer { background: var(--ad-gsoft); color: var(--ad-g2); } .oa-pt-showroom { background: var(--ad-ysoft); color: var(--ad-yink); } .oa-pt-none { background: var(--sunk); color: var(--muted); }
.ad-st.st-pending_approval { background: var(--ad-ysoft); color: var(--ad-yink); }
.ad-st.st-rejected, .ad-st.st-refunded { background: var(--lose-soft); color: var(--lose); }
.oa-by { background: var(--ad-ysoft) !important; color: var(--ad-yink) !important; }
.oa-agentcard p { margin: 6px 0 0; }
.oa-stat { grid-column: 1 / -1; }
.oa-h3 { font-size: .9rem; margin: 12px 0 6px; }
.oa-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; }
.oa-hist li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }
.oa-hist time { color: var(--muted); font-size: .76rem; }
/* Agent chats */
.oa-chats { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; height: calc(100dvh - 210px); min-height: 480px; }
.oa-chatlist { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 14px; min-height: 0; }
.oa-chatlist ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; }
.oa-ci { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.oa-ci:hover { background: var(--ad-gsoft); }
.oa-ci.on { background: var(--ad-gsoft); box-shadow: inset 3px 0 0 var(--ad-g); }
html[dir='rtl'] .oa-ci.on { box-shadow: inset -3px 0 0 var(--ad-g); }
.oa-ci-t { display: grid; min-width: 0; }
.oa-ci-t b { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.oa-ci-t small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-ci-m { display: grid; justify-items: end; gap: 4px; font-size: .72rem; color: var(--muted); }
.oa-ci-none { padding: 20px 10px; text-align: center; }
.oa-thread { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; min-height: 0; }
.oa-thread > .ad-empty { align-self: center; }
.oa-th-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.oa-th-h > div { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.oa-th-back { display: none; }
.oa-th-body { min-height: 0; }
@media (max-width: 860px) {
  .oa-grid { grid-template-columns: minmax(0, 1fr); }
  .oa-chats { grid-template-columns: minmax(0, 1fr); height: auto; }
  .oa-chats.open .oa-chatlist { display: none; }
  .oa-chats:not(.open) .oa-thread { display: none; }
  .oa-chats.open .oa-thread { position: fixed; inset: 0; z-index: 60; border-radius: 0; height: 100dvh; }
  .oa-th-back { display: inline-flex; }
}

/* ==================================================================================================== Chat (agents and admins) */
.cht { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; }
.cht-list { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, rgba(13, 107, 58, .03), transparent); overscroll-behavior: contain; }
.cht-empty { margin: auto; color: var(--muted); text-align: center; padding: 30px 10px; }
.cht-day { align-self: center; margin: 10px 0 4px; }
.cht-day span { padding: 3px 12px; border-radius: 999px; background: rgba(13, 107, 58, .08); color: var(--muted); font-size: .74rem; font-weight: 600; }
.cht-msg { display: grid; max-width: min(78%, 520px); }
.cht-msg.me { align-self: flex-end; justify-items: end; }
.cht-msg.them { align-self: flex-start; justify-items: start; }
.cht-who { font-size: .72rem; color: var(--muted); margin: 0 6px 2px; }
.cht-b { position: relative; padding: 9px 12px 6px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 6px -4px rgba(0, 0, 0, .2); }
.cht-msg.me .cht-b { background: #0d6b3a; border-color: #0d6b3a; color: #fff; border-end-end-radius: 6px; }
.cht-msg.them .cht-b { border-end-start-radius: 6px; }
.cht-b p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.cht-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: .68rem; opacity: .8; }
.cht-tick { display: inline-flex; color: rgba(255, 255, 255, .75); }
.cht-tick.read { color: #f3d21c; }
.cht-img { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.cht-img img { display: block; max-width: 240px; max-height: 240px; min-width: 120px; min-height: 80px; object-fit: cover; background: rgba(0, 0, 0, .08); }
.cht-pdf { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 4px; border-radius: 12px; border: 1px solid currentColor; background: rgba(255, 255, 255, .12); color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.cht-form { border-top: 1px solid var(--line); padding: 10px; background: var(--paper); }
.cht-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; background: var(--sunk); font-size: .84rem; }
.cht-file span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cht-file b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cht-file button { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cht-row { display: flex; align-items: flex-end; gap: 8px; }
.cht-clip { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #0d6b3a; cursor: pointer; flex: 0 0 auto; }
.cht-clip:hover, .cht-clip:focus-within { background: rgba(13, 107, 58, .08); }
.cht-in { flex: 1 1 auto; min-height: 42px; max-height: 140px; resize: none; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink); font: inherit; line-height: 1.4; }
.cht-in:focus { outline: 2px solid #0d6b3a; outline-offset: 0; background: var(--paper); }
.cht-send { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #0d6b3a; color: #fff; cursor: pointer; flex: 0 0 auto; }
.cht-send:hover { background: #0a5530; }
.cht-send[disabled] { opacity: .5; }
html[dir='rtl'] .cht-send svg { transform: scaleX(-1); }

/* ==================================================================================================== Agent code (sellers) */
.sd-agentcode { margin: 4px 0 14px; }
.sd-agent-f .f { margin: 0; }
.sd-agent-row, .ac-agent-row { display: flex; gap: 8px; }
.sd-agent-row .in, .ac-agent-row .in { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.sd-agent-ok, .ac-agent-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--win-soft); color: var(--win); font-weight: 600; font-size: .92rem; }
.sd-agent-ok svg, .ac-agent-ok svg { flex: 0 0 auto; }
.sd-agent-ok b, .ac-agent-ok b { letter-spacing: .04em; }
.sd-agent-ok .sd-link, .ac-agent-ok .ac-link { margin-inline-start: auto; }
.sd-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ac-agent { display: grid; gap: 8px; }
.ac-agent .f { margin: 0; }

/* ==================================================================================================== Agent dashboard (glass, green / yellow / white) */
:root { --ag-g: #0d6b3a; --ag-g2: #0a5530; --ag-g3: #e6f2ea; --ag-y: #f3d21c; --ag-y2: #ffe45c; --ag-ysoft: #fff8d1; --ag-bg: #eef3ef; --ag-card: rgba(255, 255, 255, .62); --ag-card2: rgba(255, 255, 255, .45); --ag-edge: rgba(255, 255, 255, .9); --ag-ink: #10261a; --ag-muted: #6c7d72; --ag-faint: rgba(13, 107, 58, .1); --ag-r: 28px; --ag-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(10, 50, 25, .04), 0 18px 40px -24px rgba(10, 50, 25, .28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --ag-bg: #0a1510; --ag-card: rgba(22, 44, 32, .66); --ag-card2: rgba(22, 44, 32, .45); --ag-edge: rgba(255, 255, 255, .08); --ag-ink: #eaf4ee; --ag-muted: #9fb4a7; --ag-faint: rgba(160, 230, 190, .12); --ag-g3: #14301f; --ag-ysoft: #3a330c; --ag-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6); } }
:root[data-theme='dark'] { --ag-bg: #0a1510; --ag-card: rgba(22, 44, 32, .66); --ag-card2: rgba(22, 44, 32, .45); --ag-edge: rgba(255, 255, 255, .08); --ag-ink: #eaf4ee; --ag-muted: #9fb4a7; --ag-faint: rgba(160, 230, 190, .12); --ag-g3: #14301f; --ag-ysoft: #3a330c; --ag-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6); }
body.agent-mode #top, body.agent-mode #foot, body.agent-mode #drawer { display: none; }
html:has(body.agent-mode), body.agent-mode { overflow-x: clip; }
body.agent-mode { background: var(--ag-bg); }
body.agent-mode #main { padding: 0; }
.ag, .ag-auth { --f-ag: 'Outfit', 'Noto Kufi Arabic', system-ui, sans-serif; font-family: var(--f-ag); color: var(--ag-ink); }
html[lang='ar'] .ag, html[lang='ar'] .ag-auth { --f-ag: 'Noto Kufi Arabic', 'Outfit', system-ui, sans-serif; }
.ag { min-height: 100vh; min-height: 100dvh; padding: 14px 18px 24px; background: radial-gradient(1200px 520px at 85% -10%, rgba(243, 210, 28, .14), transparent 60%), radial-gradient(900px 600px at -10% 20%, rgba(13, 107, 58, .08), transparent 60%), var(--ag-bg); }
.ag button, .ag input, .ag select, .ag textarea { font-family: inherit; }
.ag-card { background: var(--ag-card); border: 1px solid var(--ag-edge); border-radius: var(--ag-r); box-shadow: var(--ag-shadow); padding: 20px; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); min-width: 0; }
.ag-lbl { display: block; font-size: .92rem; font-weight: 500; color: var(--ag-ink); }
.ag-card small { color: var(--ag-muted); font-size: .8rem; }
.ag-big { display: block; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: 4px 0 2px; color: var(--ag-ink); }
/* top bar */
.ag-top { display: grid; grid-template-columns: 250px auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; }
.ag-logo { display: flex; align-items: center; gap: 10px; color: var(--ag-g2); text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; padding: 6px 10px; border-radius: 18px; background: var(--ag-card2); border: 1px solid var(--ag-edge); box-shadow: var(--ag-shadow); }
.ag-logo img { width: 36px; height: 36px; border-radius: 10px; }
.ag-logo b { color: var(--ag-g); font-weight: 700; }
:root[data-theme='dark'] .ag-logo { color: #fff; }
.ag-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ag-edge); background: var(--ag-card); box-shadow: var(--ag-shadow); color: var(--ag-ink); cursor: pointer; position: relative; }
.ag-ic:hover { background: #fff; }
:root[data-theme='dark'] .ag-ic:hover { background: var(--ag-g3); }
.ag-collapse { width: 38px; height: 38px; border-radius: 12px; }
html[dir='rtl'] .ag-collapse svg { transform: scaleX(-1); }
.ag-burger, .ag-side-top { display: none; }
.ag-search { justify-self: center; width: min(420px, 100%); display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--ag-card); border: 1px solid var(--ag-edge); box-shadow: var(--ag-shadow); color: var(--ag-muted); }
.ag-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; color: var(--ag-ink); font-size: .95rem; outline: none; }
.ag-search:focus-within { border-color: var(--ag-g); box-shadow: 0 0 0 3px rgba(13, 107, 58, .15); }
.ag-kbd { white-space: nowrap; direction: ltr; flex: 0 0 auto; padding: 3px 9px; border-radius: 10px; background: var(--ag-faint); color: var(--ag-muted); font: 500 .76rem/1.4 var(--f-ag); }
.ag-top-r { display: flex; align-items: center; gap: 10px; }
.ag-langbtn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; border-radius: 999px; font-weight: 600; }
.ag-dot { position: absolute; top: 8px; inset-inline-end: 10px; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #fff; }
.ag-dot[hidden] { display: none; }
.ag-prof { display: flex; align-items: center; gap: 10px; height: 46px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--ag-edge); background: var(--ag-card); box-shadow: var(--ag-shadow); color: var(--ag-ink); cursor: pointer; }
html[dir='rtl'] .ag-prof { padding: 4px 4px 4px 14px; }
.ag-prof-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ag-g); color: #fff; }
.ag-prof-t { display: grid; text-align: start; line-height: 1.15; }
.ag-prof-t b { font-weight: 600; font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-prof-t small { color: var(--ag-muted); font-size: .74rem; letter-spacing: .05em; }
.ag-bellwrap, .ag-profwrap, .ag-range { position: relative; }
.ag-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 240px; padding: 8px; display: none; border-radius: 20px; background: var(--paper); border: 1px solid var(--ag-edge); box-shadow: 0 24px 50px -20px rgba(10, 50, 25, .35); }
.ag-pop.open { display: block; }
.ag-profpop a, .ag-profpop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--ag-ink); text-decoration: none; font: inherit; cursor: pointer; text-align: start; }
.ag-profpop a:hover, .ag-profpop button:hover { background: var(--ag-g3); }
.ag-notifs { width: min(360px, calc(100vw - 32px)); max-height: 420px; overflow: auto; }
.ag-notifs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ag-notifs a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; color: var(--ag-ink); text-decoration: none; font-size: .88rem; }
.ag-notifs a:hover { background: var(--ag-g3); }
.ag-notifs li.new a { background: var(--ag-ysoft); }
.ag-notifs time { color: var(--ag-muted); font-size: .74rem; }
.ag-pop-empty { padding: 16px; margin: 0; text-align: center; }
/* sidebar */
.ag-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.ag-side { position: sticky; top: 14px; }
.ag-nav { display: grid; gap: 18px; }
.ag-solo { padding: 6px; border-radius: var(--ag-r); background: var(--ag-card2); border: 1px solid var(--ag-edge); box-shadow: var(--ag-shadow); }
.ag-grp { position: relative; display: grid; gap: 6px; padding: 18px 8px 8px; border-radius: var(--ag-r); background: var(--ag-card2); border: 1px solid var(--ag-edge); box-shadow: var(--ag-shadow); }
.ag-grp-l { position: absolute; top: -10px; inset-inline-start: 22px; padding: 1px 10px; border-radius: 999px; background: var(--ag-bg); border: 1px solid var(--ag-edge); color: var(--ag-muted); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.ag-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ag-ink); text-decoration: none; font: 400 1rem/1 var(--f-ag); cursor: pointer; }
.ag-item:hover { background: rgba(255, 255, 255, .55); }
:root[data-theme='dark'] .ag-item:hover { background: var(--ag-g3); }
.ag-item.on { background: #fff; border-color: var(--ag-edge); box-shadow: 0 10px 24px -14px rgba(10, 50, 25, .35), inset 0 0 0 1px rgba(13, 107, 58, .06); font-weight: 500; color: var(--ag-g2); }
:root[data-theme='dark'] .ag-item.on { background: var(--ag-g3); color: #fff; }
.ag-item svg { flex: 0 0 auto; color: var(--ag-g); }
.ag-item span:not(.ag-new) { flex: 1 1 auto; text-align: start; }
.ag-new { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: var(--ag-y); color: var(--ag-g2); font-size: .7rem; font-weight: 700; }
.ag-new[hidden] { display: none; }
.ag-out { color: var(--ag-muted); }
.ag-out svg { color: var(--ag-muted); }
html[dir='rtl'] .ag-out svg { transform: scaleX(-1); }
.ag-scrim { display: none; }
/* collapsed sidebar */
.ag.mini .ag-top { grid-template-columns: 74px auto minmax(0, 1fr) auto; }
.ag.mini .ag-logo span { display: none; }
.ag.mini .ag-body { grid-template-columns: 74px minmax(0, 1fr); }
.ag.mini .ag-item { justify-content: center; padding: 0; }
.ag.mini .ag-item span, .ag.mini .ag-grp-l { display: none; }
.ag.mini .ag-grp { padding-top: 8px; }
/* page */
.ag-main { min-width: 0; outline: none; }
.ag-page { display: grid; gap: 18px; padding: 22px; border-radius: 34px; background: var(--ag-card2); border: 1px solid var(--ag-edge); box-shadow: var(--ag-shadow); }
.ag-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ag-head h1 { margin: 0; font: 500 1.35rem/1.3 var(--f-ag); color: var(--ag-ink); }
.ag-head p { margin: 4px 0 0; color: var(--ag-muted); font-size: .95rem; }
.ag-demo { margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--ag-ysoft); border: 1px solid var(--ag-y); font-size: .88rem; display: flex; gap: 8px; align-items: center; }
.ag-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ag-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ag-edge); background: var(--ag-card); box-shadow: var(--ag-shadow); color: var(--ag-ink); font: 500 .86rem/1 var(--f-ag); cursor: pointer; white-space: nowrap; }
.ag-pill.static { cursor: default; color: var(--ag-muted); }
.ag-range-pop { width: 260px; display: none; padding: 10px; }
.ag-range-pop.open { display: grid; gap: 2px; }
.ag-preset { padding: 9px 12px; border: 0; border-radius: 12px; background: none; color: var(--ag-ink); text-align: start; font: inherit; cursor: pointer; }
.ag-preset:hover, .ag-preset.on { background: var(--ag-g3); }
.ag-preset.on { color: var(--ag-g2); font-weight: 600; }
.ag-rcustom { display: grid; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .85rem; }
.ag-rcustom label { display: grid; gap: 3px; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ag-g); background: var(--ag-g); color: #fff; font: 500 .92rem/1 var(--f-ag); text-decoration: none; cursor: pointer; }
.ag-btn:hover { background: var(--ag-g2); }
.ag-btn.ghost { background: var(--ag-card); color: var(--ag-g2); border-color: var(--ag-edge); box-shadow: var(--ag-shadow); }
.ag-btn.ghost:hover { background: #fff; }
.ag-btn.sm { min-height: 38px; padding: 0 14px; }
.ag-btn.xs { min-height: 32px; padding: 0 12px; font-size: .8rem; }
.ag-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ag-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
/* agent code box */
.ag-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(120deg, rgba(243, 210, 28, .22), rgba(255, 255, 255, .6) 55%); }
.ag-code-v { display: block; font: 600 1.7rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ag-g2); }
:root[data-theme='dark'] .ag-code-v { color: var(--ag-y); }
.ag-code p { margin: 2px 0 0; color: var(--ag-muted); font-size: .86rem; max-width: 520px; }
.ag-code-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* KPIs */
.ag-kpis { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 14px; }
.ag-total { background: linear-gradient(145deg, var(--ag-g), var(--ag-g2)); border-color: transparent; color: #fff; }
.ag-total .ag-lbl, .ag-total .ag-big { color: #fff; }
.ag-total small { color: rgba(255, 255, 255, .78) !important; display: block; }
.ag-total .ag-nopkg { margin-top: 8px; display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff !important; }
.ag-kpi b { display: block; font-size: 1.9rem; font-weight: 500; margin: 6px 0 0; }
.ag-kpi.y { background: linear-gradient(145deg, var(--ag-y), var(--ag-y2)); border-color: transparent; }
.ag-kpi.y, .ag-kpi.y .ag-lbl, .ag-kpi.y small { color: var(--ag-g2) !important; }
/* bars */
.ag-chart .ag-bars { padding: 16px 14px 10px; border-radius: 22px; background: var(--ag-card2); border: 1px solid var(--ag-edge); }
.ag-bars { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ag-bars-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.ag-bar { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; min-width: 0; }
.ag-bar-v { font-size: .86rem; font-weight: 500; color: var(--ag-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-bar-track { position: relative; height: clamp(180px, 26vw, 290px); border-radius: 4px; background: repeating-linear-gradient(90deg, var(--ag-faint) 0 1px, transparent 1px 5px); overflow: hidden; }
.ag-bar-track i { position: absolute; inset-inline: 0; bottom: 0; background: var(--ag-g); border-radius: 3px 3px 0 0; transition: height .5s ease; }
.ag-bar.hl .ag-bar-track i { background: var(--ag-y); box-shadow: 0 0 40px 10px rgba(243, 210, 28, .25); }
.ag-bar.hl .ag-bar-v { color: var(--ag-g2); font-weight: 700; }
.ag-bar-x { font-size: .82rem; color: var(--ag-muted); }
.ag-bars-y { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 0 26px; font-size: .78rem; color: var(--ag-muted); text-align: end; }
.ag-earn-line { margin: 14px 2px 0; padding: 12px 14px; border-radius: 16px; background: var(--ag-g3); color: var(--ag-ink); font-size: .95rem; }
.ag-earn-line b { color: var(--ag-g2); }
:root[data-theme='dark'] .ag-earn-line b { color: var(--ag-y); }
.ag-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
/* dot matrix */
.ag-dots { display: grid; gap: 10px; padding-top: 70px; overflow-x: auto; }
.ag-dots-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(14px, 1fr)); gap: 4px; align-items: end; }
.ag-dcol { position: relative; display: grid; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; justify-items: center; }
.ag-dcol i { display: block; width: 100%; max-width: 13px; aspect-ratio: 1; border-radius: 3px; background: var(--ag-faint); }
.ag-dcol i.f { background: var(--ag-g); }
.ag-dcol.on i.f { background: var(--ag-y); }
.ag-dcol:focus-visible { outline: 2px solid var(--ag-g); outline-offset: 2px; border-radius: 4px; }
.ag-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: none; z-index: 2; min-width: 92px; padding: 8px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--ag-edge); box-shadow: 0 12px 28px -14px rgba(10, 50, 25, .4); text-align: center; white-space: nowrap; pointer-events: none; }
.ag-tip b { display: block; font-weight: 600; color: var(--ag-ink); }
.ag-tip small { color: var(--ag-muted); font-size: .74rem; }
.ag-tip::after { content: ''; position: absolute; top: 100%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--paper); border-right: 1px solid var(--ag-edge); border-bottom: 1px solid var(--ag-edge); transform: rotate(45deg); }
.ag-dcol.on .ag-tip { display: block; }
.ag-dots-x { display: grid; grid-template-columns: repeat(var(--n), minmax(14px, 1fr)); gap: 4px; font-size: .72rem; color: var(--ag-muted); white-space: nowrap; }
.ag-dots-x span { overflow: visible; }
/* slider */
.ag-slider { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 6px; padding-top: 72px; }
.ag-sl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); padding: 0 40%; outline: none; }
.ag-sl-track::-webkit-scrollbar { display: none; }
.ag-sl-item { position: relative; flex: 0 0 120px; display: grid; justify-items: center; gap: 2px; padding: 10px 0 6px; scroll-snap-align: center; cursor: pointer; color: var(--ag-muted); opacity: calc(1 - var(--d, 2) * .22); transition: opacity .2s; }
.ag-sl-item > b { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 300; line-height: 1.1; color: var(--ag-muted); }
.ag-sl-item > small { font-size: .78rem; }
.ag-sl-d { margin-top: 10px; font-size: .78rem; }
.ag-sl-item.on { opacity: 1; color: var(--ag-ink); }
.ag-sl-item.on > b { color: var(--ag-g2); font-weight: 500; }
:root[data-theme='dark'] .ag-sl-item.on > b { color: #fff; }
.ag-sl-item.on .ag-tip { display: block; }
.ag-sl-item.on::before { content: ''; position: absolute; top: -10px; left: 50%; width: 1px; height: 10px; background: var(--ag-g); }
.ag-sl-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ag-edge); background: var(--ag-card); color: var(--ag-ink); display: grid; place-items: center; cursor: pointer; margin-bottom: 40px; }
html[dir='rtl'] .ag-sl-nav svg { transform: scaleX(-1); }
/* tables */
.ag-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px; }
.ag-search-in { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; max-width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ag-muted); }
.ag-search-in input { flex: 1 1 auto; width: 0; padding: 0; height: auto; border: 0; background: none; outline: none; color: var(--ag-ink); font: inherit; min-width: 0; }
.ag-filter { display: grid; gap: 4px; font-size: .78rem; color: var(--ag-muted); }
.ag-filter .in { min-height: 42px; border-radius: 14px; }
.ag-count { margin: 0 0 10px; color: var(--ag-muted); font-size: .85rem; }
.ag-tablewrap { overflow-x: auto; }
.ag-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ag-tbl th { text-align: start; font-weight: 500; font-size: .78rem; color: var(--ag-muted); padding: 10px; border-bottom: 1px solid var(--ag-faint); white-space: nowrap; }
.ag-tbl td { padding: 12px 10px; border-bottom: 1px solid var(--ag-faint); vertical-align: middle; }
.ag-tbl tr:last-child td { border-bottom: 0; }
.ag-tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ag-tp, .ag-st { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.ag-tp.t-individual { background: var(--ag-g3); color: var(--ag-g2); } .ag-tp.t-dealer { background: var(--ag-g); color: #fff; } .ag-tp.t-showroom { background: var(--ag-y); color: var(--ag-g2); } .ag-tp.t-none { background: var(--ag-faint); color: var(--ag-muted); }
.ag-st.s-paid, .ag-st.s-active, .ag-st.s-approved { background: var(--ag-g3); color: var(--ag-g2); }
.ag-st.s-pending, .ag-st.s-draft { background: var(--ag-ysoft); color: #6b5800; }
.ag-st.s-cancelled, .ag-st.s-refunded, .ag-st.s-rejected, .ag-st.s-blocked { background: var(--ag-faint); color: var(--ag-muted); text-decoration: none; }
.ag-st.s-refunded, .ag-st.s-rejected { box-shadow: inset 0 0 0 1px currentColor; }
:root[data-theme='dark'] .ag-st.s-pending, :root[data-theme='dark'] .ag-st.s-draft { color: var(--ag-y); }
.ag-reason { display: block; margin-top: 4px; color: var(--ag-muted); font-size: .78rem; }
.ag-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-empty { display: grid; justify-items: center; gap: 10px; padding: 34px 16px; text-align: center; color: var(--ag-muted); }
.ag-empty > svg { width: 38px; height: 38px; color: var(--ag-g); opacity: .75; }
.ag-empty b { color: var(--ag-ink); font-weight: 500; }
/* profile */
.ag-dl { display: grid; gap: 0; margin: 0; }
.ag-dl-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--ag-faint); }
.ag-dl-row:last-child { border-bottom: 0; }
.ag-dl-row dt { color: var(--ag-muted); }
.ag-dl-row dd { margin: 0; text-align: end; font-weight: 500; }
.ag-pwcard { max-width: 640px; }
.ag-pwcard h2 { margin: 0 0 12px; font: 500 1.1rem var(--f-ag); }
.ag-pwcard form { display: grid; gap: 10px; }
.ag-pwcard .ac-ferr, .ag-form .ac-ferr, .ag-auth .ac-ferr { margin: -4px 0 0; color: var(--lose); font-size: .82rem; font-weight: 500; }
.ag-pwcard .ac-ferr:empty, .ag-form .ac-ferr:empty, .ag-auth .ac-ferr:empty { display: none; }
.ag .in { border-radius: 14px; }
/* custom packages form */
.ag-form { display: grid; gap: 16px; }
.ag-step { display: grid; gap: 12px; margin: 0; }
.ag-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 4px; font-weight: 500; font-size: 1.02rem; }
.ag-step legend + * { clear: both; }
.ag-stepn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ag-g); color: #fff; font-size: .85rem; }
.ag-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ag-faint); justify-self: start; }
.ag-seg label { position: relative; }
.ag-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ag-seg span { display: block; padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ag-g2); }
.ag-seg input:checked + span { background: var(--ag-g); color: #fff; box-shadow: 0 6px 14px -8px rgba(13, 107, 58, .7); }
.ag-seg input:focus-visible + span { outline: 2px solid var(--ag-y); outline-offset: 1px; }
.ag-seg input:disabled + span { opacity: .45; }
.ag-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; align-items: start; }
.ag-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 4px 14px; }
.ag-flags { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-check { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--ag-card); border: 1px solid var(--ag-edge); cursor: pointer; }
.ag-check input { accent-color: var(--ag-g); width: 17px; height: 17px; }
/* floating chat */
.ag-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--ag-g); color: #fff; font: 500 .95rem var(--f-ag); box-shadow: 0 18px 36px -14px rgba(13, 107, 58, .7); cursor: pointer; }
html[dir='rtl'] .ag-fab { padding: 0 16px 0 20px; }
.ag-fab:hover { background: var(--ag-g2); }
.ag-fab-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--ag-y); color: var(--ag-g2); font-size: .78rem; box-shadow: 0 0 0 3px var(--ag-bg); }
.ag-fab-n[hidden] { display: none; }
.ag.chat-open .ag-fab { display: none; }
.ag-chat { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 80; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 120px)); display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--paper); border: 1px solid var(--ag-edge); box-shadow: 0 30px 70px -24px rgba(10, 50, 25, .5); }
.ag-chat[hidden] { display: none; }
.ag-chat header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, var(--ag-g), var(--ag-g2)); color: #fff; }
.ag-chat header h2 { margin: 0; font: 500 1.05rem var(--f-ag); }
.ag-chat header small { color: rgba(255, 255, 255, .8); font-size: .78rem; }
.ag-chat header .ag-ic { width: 38px; height: 38px; background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; box-shadow: none; }
.ag-chat-body { min-height: 0; }
.ag-fullchat { padding: 0; overflow: hidden; height: calc(100dvh - 250px); min-height: 440px; }
/* sign-in page */
.ag-auth { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px 16px; background: radial-gradient(900px 500px at 80% 0%, rgba(243, 210, 28, .18), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(13, 107, 58, .12), transparent 60%), var(--ag-bg); }
.ag-auth-card { width: min(420px, calc(100vw - 32px)); padding: 28px; border-radius: 28px; background: var(--ag-card); border: 1px solid var(--ag-edge); box-shadow: var(--ag-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 12px; }
.ag-auth-card h1 { margin: 0; font: 600 1.5rem/1.2 var(--f-ag); color: var(--ag-ink); }
.ag-auth-card form { display: grid; gap: 12px; margin-top: 8px; }
.ag-auth-card .muted { margin: 0; }
.ag-auth-msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ag-g3); }
.ag-auth-msg.bad { background: var(--lose-soft); color: var(--lose); }
.ag-auth-home { color: var(--ag-muted); font-size: .88rem; }
.ag-auth .err { color: var(--lose); font-weight: 500; }
.ag-auth .err:empty { display: none; }
.ag-auth .btn.primary { --b: var(--ag-g); --bd: var(--ag-g); border-radius: 999px; min-height: 48px; }
.ag-modal h2 { margin: 0 0 8px; }
.ag-modal .ag-btns { margin-top: 16px; }
/* phones and tablets */
@media (max-width: 1180px) {
  .ag-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-total { grid-column: 1 / -1; }
}
@keyframes ag-side-in { from { transform: translateX(-105%); } }
@keyframes ag-side-in-rtl { from { transform: translateX(105%); } }
@media (max-width: 980px) {
  .ag { padding: 10px 12px 96px; }
  .ag-top, .ag.mini .ag-top { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; }
  .ag-burger { display: inline-grid; }
  .ag-collapse { display: none; }
  .ag-logo { background: none; border: 0; box-shadow: none; padding: 0; font-size: 1.05rem; }
  .ag-logo img { width: 32px; height: 32px; }
  .ag-logo span, .ag.mini .ag-logo span { display: none; }
  .ag-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .ag-kbd { display: none; }
  .ag-prof-t, .ag-langbtn span { display: none; }
  .ag-prof { padding: 3px; }
  .ag-body, .ag.mini .ag-body { grid-template-columns: minmax(0, 1fr); }
  .ag-side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 90; width: min(300px, 86vw); padding: 14px; overflow-y: auto; background: var(--ag-bg); box-shadow: 0 0 40px rgba(0, 0, 0, .2); display: none; }
  .ag.side-open .ag-side { display: block; animation: ag-side-in .22s ease; }
  html[dir='rtl'] .ag.side-open .ag-side { animation-name: ag-side-in-rtl; }
  .ag-side-top { display: flex; justify-content: flex-end; margin-bottom: 10px; }
  .ag.mini .ag-item { justify-content: flex-start; padding: 0 16px; }
  .ag.mini .ag-item span, .ag.mini .ag-grp-l { display: block; }
  .ag.side-open .ag-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(5, 20, 12, .4); }
  .ag-page { padding: 14px; border-radius: 24px; }
  .ag-two, .ag-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ag-fab span { display: none; }
  .ag-fab { padding: 0; width: 58px; justify-content: center; }
  .ag-chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
}
@media (max-width: 640px) {
  .ag-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ag-kpi:last-child { grid-column: 1 / -1; }
  .ag-bars-cols { gap: 3px; }
  .ag-bar-v { font-size: .7rem; }
  .ag-bar-x { font-size: .7rem; }
  .ag-bars-y { display: none; }
  .ag-bars { grid-template-columns: minmax(0, 1fr); }
  .ag-tbl thead { display: none; }
  .ag-tbl, .ag-tbl tbody { display: block; }
  .ag-tbl tr { display: grid; gap: 8px; padding: 14px 4px; border-bottom: 1px solid var(--ag-faint); }
  .ag-tbl tr:last-child { border-bottom: 0; }
  .ag-tbl td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0; border: 0; text-align: end; }
  .ag-tbl td::before { content: attr(data-label); color: var(--ag-muted); font-size: .76rem; text-align: start; flex: 0 0 auto; }
  .ag-dl-row { flex-direction: column; gap: 2px; }
  .ag-dl-row dd { text-align: start; }
  .ag-head h1 { font-size: 1.2rem; }
  .ag-sl-item { flex-basis: 96px; }
}

.oa-ibs { display: inline-flex; gap: 4px; white-space: nowrap; }
.oa-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ad-g2); cursor: pointer; text-decoration: none; }
.oa-ib:hover { background: var(--ad-gsoft); border-color: var(--ad-g); }
.oa-ib.bad { color: var(--lose); }
.oa-ib.bad:hover { background: var(--lose-soft); border-color: var(--lose); }
.ag [hidden], .ag-auth [hidden], .auth-modal .ac-agent [hidden], .sd-agentcode [hidden] { display: none !important; }

/* ---- Marketplace admin → Edit current packages */
.ep .ad-pk-price { text-align: end; }
.ep .ad-pk-price s { display: block; font-size: .8em; font-weight: 500; }
.ep-pk .ad-two { justify-content: flex-start; }
.ep-pk .ad-pk-facts b.ltr { white-space: nowrap; }
.ep-h { margin: 6px 0 -4px; }
.ep-rules { border-inline-start: 4px solid var(--ad-y); }
.ep-rules h2 { display: flex; align-items: center; gap: 8px; }
.ep-rules ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: .92rem; }
.ep-pk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ep-used { font-size: .82rem; }
.ep-draft { background: var(--ad-ysoft); color: var(--ad-yink); }
:root[data-theme='dark'] .ep-draft { color: #f7e25a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ep-draft { color: #f7e25a; } }
.ad-st.st-ep-active { background: #e2f5e8; color: #157a3c; } .ad-st.st-ep-scheduled { background: #fdf0d8; color: #9a5b00; } .ad-st.st-ep-ended { background: var(--sunk); color: var(--muted); }
:root[data-theme='dark'] .ad-st.st-ep-active { background: #12371f; color: #5fd68f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ad-st.st-ep-active { background: #12371f; color: #5fd68f; } }
.ep-sw { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border: 0; background: none; color: var(--ink); font: 600 .86rem var(--f-body); cursor: pointer; border-radius: 999px; }
.ep-sw i { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .15s; flex: 0 0 auto; }
.ep-sw i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
.ep-sw[aria-checked='true'] i { background: var(--ad-g); }
.ep-sw[aria-checked='true'] i::after { inset-inline-start: 21px; }
.ep-sw:focus-visible { outline: 2px solid var(--ad-g); outline-offset: 2px; }
.ep-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 18px; align-items: start; }
.ep-form { display: grid; gap: 16px; min-width: 0; }
.ep-g3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ep-full { grid-column: 1 / -1; margin-bottom: 8px; }
.ep-lists { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 6px 18px; }
.ep-lf { display: grid; gap: 2px; align-content: start; font-size: .92rem; }
.ep-lf > span { font-weight: 600; }
.ep-prev { position: sticky; top: 84px; display: grid; gap: 10px; min-width: 0; }
.ep-prev .ad-note { margin: -6px 0 4px; }
.ep-prev-card .sd-pk-grid.n1, .ep-prev-modal .sd-pk-grid.n1 { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
.ep-prev-modal { margin-top: 10px; }
.ep-thanks { padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-m); font-size: .9rem; }
.ep-thanks p { margin: 4px 0 0; }
.ep-lines ol { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.ep-lines li { display: flex; gap: 6px; align-items: center; }
.ep-lines li .in { flex: 1 1 auto; min-width: 0; }
.ep-line-btns { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.ep-ib { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; }
.ep-ib:hover { background: var(--ad-gsoft); border-color: var(--ad-g); }
.ep-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 12px 0; background: var(--ad-bg); border-top: 1px solid var(--line); z-index: 2; }
.ep-btn-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ep-nums { margin: -6px 0 0; }
.ep-draft-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--ad-ysoft); border: 1px solid var(--ad-y); font-size: .9rem; }
.ep-changes { margin: 10px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.ep-changes.sm { margin-top: 6px; font-size: .84rem; gap: 2px; max-height: none; }
.ep-mbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ep-hist { max-height: 60vh; overflow: auto; margin-top: 10px; }
.ep-lines[dir='rtl'] .ep-line-btns { direction: ltr; }
@media (max-width: 980px) {
  .ep-edit { grid-template-columns: minmax(0, 1fr); }
  .ep-prev { position: static; }
}

/* ---- Footer: CONNECT WITH US · GET THE APP · PAYMENT METHODS (edited in Marketplace admin → Footer) */
.foot-secs { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 26px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-secs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-secs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot-sec { display: grid; gap: 14px; justify-items: center; align-content: start; text-align: center; padding: 4px 20px; min-width: 0; }
.foot-sec + .foot-sec { border-inline-start: 1px solid var(--line); }
.foot-h { margin: 0; font: 800 .86rem/1.3 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: #3b4741; }
html[dir='rtl'] .foot-h { letter-spacing: 0; font-size: .95rem; }
.foot-small { margin: 0; font-size: .82rem; color: var(--muted); max-width: 34ch; }
.foot-icons, .foot-badges, .foot-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.foot-icons { gap: 16px; }
.foot .foot-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #f5c518; color: #0b5a3b; transition: background .15s, transform .15s, box-shadow .15s; }
.foot .foot-ico:hover { background: #ddb000; color: #0b5a3b; transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(11, 90, 59, .45); }
.foot-ico:focus-visible, .foot-badge:focus-visible { outline: 3px solid #0f6a47; outline-offset: 3px; }
.foot-badges { gap: 12px; }
.foot-badge { display: inline-flex; border-radius: 9px; transition: transform .15s; }
.foot-badge:hover { transform: translateY(-2px); }
.foot-badge img { display: block; height: 44px; width: auto; }
.foot-logos { gap: 8px; }
.foot-tile { display: grid; place-items: center; height: 46px; min-width: 60px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #e3e8e5; box-shadow: 0 1px 2px rgba(10, 40, 20, .06); box-sizing: border-box; }
.foot-tile img { display: block; height: 26px; width: auto; max-width: 100px; object-fit: contain; }
.foot-copy { margin-top: 24px; text-align: center; font-size: .82rem; }
:root[data-theme='dark'] .foot-h { color: #e6ece9; }
:root[data-theme='dark'] .foot-ico:focus-visible, :root[data-theme='dark'] .foot-badge:focus-visible { outline-color: #3cc48a; }
:root[data-theme='dark'] .foot-tile { border-color: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .foot-h { color: #e6ece9; }
  :root:not([data-theme='light']) .foot-ico:focus-visible, :root:not([data-theme='light']) .foot-badge:focus-visible { outline-color: #3cc48a; }
  :root:not([data-theme='light']) .foot-tile { border-color: transparent; }
}
@media (max-width: 980px) {
  .foot-secs.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-secs.n3 .foot-sec:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
}
@media (max-width: 640px) {
  .foot-secs.n2, .foot-secs.n3 { grid-template-columns: minmax(0, 1fr); }
  .foot-sec { padding: 0; }
  .foot-sec + .foot-sec, .foot-secs.n3 .foot-sec:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
  .foot .foot-ico { width: 44px; height: 44px; }
  .foot-badge img { height: 40px; }
  .foot-badges .foot-badge { min-height: 44px; align-items: center; }
}

/* ---- Marketplace admin → Footer */
.ft-rows { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 10px; }
.ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ft-row.drag { opacity: .5; }
.ft-row.over { border-color: var(--ad-g); box-shadow: 0 0 0 2px var(--ad-gsoft); }
.ft-row > .ad-ferr { flex: 1 1 100%; margin: 0; }
.ft-row > .ad-ferr:empty { display: none; }
.ft-grow { flex: 1 1 240px; min-width: 0; }
.ft-move { display: inline-flex; align-items: center; gap: 2px; }
.ft-grip { cursor: grab; color: var(--muted); padding: 0 4px; letter-spacing: -2px; user-select: none; }
.ft-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f5c518; color: #0b5a3b; flex: 0 0 auto; }
.ft-badge img { display: block; height: 36px; width: auto; }
.ft-tile { height: 44px; }
.ft-tgl { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .88rem; min-height: 44px; }
.ft-tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ft-tgl i { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .15s; }
.ft-tgl i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
.ft-tgl input:checked + i { background: var(--ad-g); }
.ft-tgl input:checked + i::after { inset-inline-start: 21px; }
.ft-tgl input:focus-visible + i { outline: 2px solid var(--ad-g); outline-offset: 2px; }
.ft-official { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--ad-ysoft); font-size: .88rem; font-weight: 600; }
.ft-linkrow > .f { flex: 1 1 180px; min-width: 0; }
.ft-texts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ft-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft-prev.foot { border-top: 0; margin: 0; padding: 0 0 8px; }
.ft-prev .foot-secs { margin-top: 0; border-top: 0; padding-top: 6px; }

/* ---- Sell your car: one-page listing form */
.lf-mode { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lf-mode button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .92rem var(--f-body); cursor: pointer; }
.lf-mode button[aria-checked='true'] { background: var(--petrol); color: var(--petrol-ink); }
.lf-mode button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lf-progress { position: sticky; top: 64px; z-index: 30; display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-l); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); }
.lf-prog-n { white-space: nowrap; font-size: .9rem; }
.lf-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; flex: 1; }
.lf-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.lf-chip-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); font-size: .78rem; }
.lf-chip.done .lf-chip-i { background: var(--win); color: #fff; }
.lf-chip.need { border-color: var(--amber); }
.lf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.lf-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lf-benefits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-l); background: var(--amber-soft); border: 1px solid var(--amber); border-inline-start-width: 6px; }
.lf-benefits a { margin-inline-start: auto; font-weight: 700; }
.lf-fix { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-l); background: var(--lose-soft); border: 1px solid var(--lose); color: var(--ink); }
.lf-fix ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.lf-fix a { color: var(--lose); font-weight: 600; }
.lf-sec { display: grid; gap: 14px; scroll-margin-top: 140px; }
.lf-sec:focus { outline: none; }
.lf-sec-h { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 1.3rem; }
.lf-sec-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--petrol); color: var(--petrol-ink); font: 700 1rem 'Barlow Condensed', sans-serif; }
.lf-sec-b { display: grid; gap: 14px; }
.lf-panel h3 { margin: 0; font-size: 1.05rem; }
.lf-opt { font-weight: 500; color: var(--muted); }
.lf-bad { border-radius: var(--r-m); box-shadow: 0 0 0 2px var(--lose-soft); }
.lf-unit { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--paper); }
.lf-unit .in { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.lf-unit b { display: grid; place-items: center; padding: 0 12px; background: var(--sunk); color: var(--muted); font-size: .88rem; }
.lf-one { padding-bottom: 110px; }
.lf-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, calc((100vw - var(--maxw)) / 2 + var(--gutter))) calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.lf-bar-st { font-size: .86rem; }
.lf-bar-btns { display: flex; gap: 8px; margin-inline-start: auto; }
.lf-bar .btn { min-height: 48px; }
.lf-sub-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.lf-fee { margin: 0; }
@media (max-width: 640px) {
  .lf-progress { top: 56px; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
  .lf-bar-st { display: none; }
  .lf-bar-btns { width: 100%; }
  .lf-bar-btns .btn { flex: 1; padding-inline: 8px; }
}
/* searchable dropdown */
.cb { position: relative; display: grid; gap: 6px; }
.cb > label.f { margin: 0; }
.cb-box { position: relative; }
.cb-in { width: 100%; padding-inline-end: 34px; }
.cb-caret { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cb-box.off .cb-in { background: var(--sunk); }
.cb-list { position: absolute; z-index: 50; inset-inline: 0; top: calc(100% + 4px); max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .3); }
.cb-list li[role='option'] { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.cb-list li[role='option']:hover, .cb-list li.act { background: var(--petrol-soft); }
.cb-list li.sel { font-weight: 700; }
.cb-grp { padding: 8px 12px 4px; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cb-other { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; color: var(--petrol); }
.cb-empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }
.cb-typed { display: flex; gap: 8px; align-items: center; }
.cb-typed .in { flex: 1; }
.cb-back { border: 0; background: none; color: var(--petrol); font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 44px; }
.cb-note, .cb-hint { color: var(--muted); font-size: .82rem; }
/* features */
.lf-feat-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lf-feat-search .in { width: 100%; }
.lf-fgroup { display: grid; gap: 8px; }
.lf-fg-acts { display: flex; gap: 14px; margin-top: -4px; }
.lf-link { border: 0; background: none; padding: 0; color: var(--petrol); font: 600 .86rem var(--f-body); cursor: pointer; text-decoration: underline; min-height: 32px; }
.lf-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* photos */
.lf-ph-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lf-count { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.lf-count.low { background: var(--amber-soft); color: var(--amber-ink); }
.lf-count.ok { background: var(--win-soft); color: var(--win); }
:root[data-theme='dark'] .lf-count.low { color: var(--amber); }
.lf-drop { display: grid; justify-items: center; gap: 10px; padding: 34px 16px; border: 2px dashed var(--petrol); border-radius: var(--r-l); background: var(--petrol-soft); text-align: center; cursor: pointer; color: var(--ink); }
.lf-drop.over, .lf-photos.over { outline: 3px solid var(--amber); outline-offset: 2px; }
.lf-drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.lf-addmore { justify-self: start; gap: 8px; min-height: 46px; }
.lf-addmore:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.lf-addmore svg { width: 20px; height: 20px; }
.lf-ph-rule { margin: 0; font-size: .9rem; }
.lf-ph-msg:empty { display: none; }
.lf-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.lf-ph { display: grid; gap: 6px; align-content: start; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.lf-ph.drag { opacity: .45; }
.lf-ph.warn { border-color: var(--amber); }
.lf-ph-img { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--sunk); }
.lf-ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-ph-n { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: rgba(10, 20, 15, .78); color: #fff; font-weight: 700; font-size: .82rem; }
.lf-ph-cover { position: absolute; bottom: 6px; inset-inline-start: 6px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .76rem; }
.lf-ph-del { position: absolute; top: 6px; inset-inline-end: 6px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--lose); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.lf-ph-del svg { width: 20px; height: 20px; }
.lf-ph-del:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lf-ph .mx-warn { top: 50px; }
.lf-ph-acts { display: flex; align-items: center; gap: 4px; }
.lf-ib { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.lf-ib:disabled { opacity: .4; cursor: default; }
.lf-ib:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lf-pos { flex: 1; min-width: 0; }
.lf-pos .in, .lf-ptype .in { width: 100%; min-height: 40px; padding-block: 6px; font-size: .88rem; }
.lf-setcover, .lf-replace { justify-self: start; font-size: .84rem; }
.lf-replace { position: relative; display: inline-flex; align-items: center; }
.lf-ph.up .lf-ph-img { display: grid; place-items: end stretch; }
.lf-ph.up .lf-ph-img img { position: absolute; inset: 0; opacity: .55; }
.lf-ph-bar { position: absolute; inset-inline: 8px; bottom: 30px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.lf-ph-bar i { display: block; height: 100%; background: var(--petrol); transition: width .2s; }
.lf-ph-st { position: absolute; inset-inline: 8px; bottom: 8px; font-size: .78rem; font-weight: 700; }
@media (max-width: 640px) { .lf-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 420px) and (max-width: 640px) { .lf-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lf-ph-acts .lf-pos { display: none; } }
.lf-undo { display: flex; align-items: center; gap: 10px; }
.lf-undo .btn { min-height: 36px; }
/* preview overlay */
.lf-prev-ov { position: fixed; inset: 0; z-index: 90; background: rgba(5, 15, 10, .55); overflow: auto; padding: 24px 12px; }
.lf-prev-in { max-width: 1100px; margin: 0 auto; background: var(--chalk, var(--paper)); border-radius: var(--r-l); padding: 18px; }
.lf-prev-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.lf-prev-top h2 { margin: 0; }
body.lf-noscroll { overflow: hidden; }

/* ---- Checkout: Pay now / Pay by instalment (seller/checkout.js) ---- */
.pay-box { display: grid; gap: 12px; }
.pay-opts { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.pay-opts legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.pay-opt { border: 2px solid var(--line); border-radius: var(--r-l); background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
.pay-opt.on { border-color: var(--sd-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-gold) 22%, transparent); }
.pay-opt.off { opacity: .72; background: var(--sunk); }
.pay-opt-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; min-height: 64px; }
.pay-opt.off .pay-opt-h { cursor: not-allowed; }
.pay-opt-h input { width: 20px; height: 20px; flex: none; accent-color: var(--sd-green); margin: 0; }
.pay-opt-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pay-opt-t b { font-size: 1rem; }
.pay-opt-t small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.pay-panel { padding: 0 16px 16px; display: grid; gap: 10px; }
.pay-panel p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.pay-panel .btn { min-height: 50px; font-size: 1.02rem; gap: 8px; }
.pay-tabby-logo { width: auto; height: 30px; flex: none; border-radius: 5px; border: 1px solid var(--line); background: #fff; direction: ltr; transform: none !important; }
.pay-cardlogos { display: inline-flex; gap: 6px; flex: none; }
.pay-cardlogos img { width: 42px; height: auto; border-radius: 5px; border: 1px solid var(--line); background: #fff; }
.pay-cardlogos img.pay-cl-tabby { width: 65px; object-fit: contain; transform: none !important; }
.pay-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--sd-green); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-weight: 700; }
:root[data-theme='dark'] .pay-link { color: #3cc48a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .pay-link { color: #3cc48a; } }
.pay-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; }
.pay-attempt { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: var(--r-m); background: var(--lose-soft); color: var(--lose); font-weight: 600; font-size: .9rem; }
.pay-summary h3 { margin: 0 0 8px; }
.pay-pop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.pay-pop-scrim { position: absolute; inset: 0; background: rgba(8, 14, 20, .55); }
.pay-pop-box { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.pay-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-pop-h h2 { margin: 0; font-size: 1.2rem; }
.pay-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pay-how li { display: flex; gap: 12px; align-items: flex-start; }
.pay-how-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-gold); color: var(--sd-gold-ink); font-weight: 800; }
.pay-how p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.pay-result { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 32px 22px; max-width: 640px; margin: 0 auto; }
.pay-result.pay-checkout { justify-items: stretch; text-align: start; }
.pay-result h1 { margin: 0; font-size: 1.5rem; }
.pay-result > p { margin: 0; }
.pay-result-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); }
.pay-result.ok .pay-result-ico { background: var(--win-soft); color: var(--win); }
.pay-result.bad .pay-result-ico { background: var(--lose-soft); color: var(--lose); }
.pay-result.warn .pay-result-ico { background: var(--sd-gold-soft); color: #7a5a00; }
.pay-result .sd-buy-dl, .pay-result .pay-summary, .pay-result .pay-again { width: 100%; text-align: start; }
.pay-result-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.pay-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--sd-gold); animation: pay-spin .9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spin { animation-duration: 3s; } }
.sd-pk-ost.st-failed { background: var(--lose-soft); color: var(--lose); }
.sd-pk-ost.st-refunded { background: var(--sunk); color: var(--muted); }

/* ---- Paid add-ons: Featured, Premium, Deal of the week (seller/addons.js) ---- */
.ao { display: grid; gap: 14px; }
.ao > h2 { margin: 0; }
.ao-sub { margin: -6px 0 0; }
.ao-benefits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--r-l); background: var(--sd-gold-soft); border: 1px solid var(--sd-gold); border-inline-start-width: 6px; }
.ao-benefits > div { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.ao-benefits-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #7a5a00; }
:root[data-theme='dark'] .ao-benefits-h { color: var(--sd-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ao-benefits-h { color: var(--sd-gold); } }
.ao-benefits-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-gold); color: var(--sd-gold-ink); flex: none; }
.ao-benefits a { font-weight: 700; }
.ao-choose { max-width: 460px; }
.ao-grid { display: grid; gap: 14px; grid-template-columns: 1.3fr 1fr 1fr; align-items: stretch; }
.ao-grid.n2 { grid-template-columns: 1.3fr 1fr; }
.ao-grid.n1 { grid-template-columns: minmax(0, 520px); }
.ao-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); min-width: 0; }
.ao-card h3 { margin: 0; font-size: 1.05rem; }
.ao-line { margin: 0; font-size: .92rem; line-height: 1.4; }
.ao-note { margin: 0; font-size: .82rem; }
.ao-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sunk); color: var(--sd-green); }
.ao-price { margin-top: auto; font-size: 1.35rem; font-weight: 800; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ao-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.ao-btn { min-height: 46px; }
.ao-open { text-align: center; }
.ao-deal { border: 3px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(135deg, #f5c518, #f2a516 45%, #ffe27a 75%, #e0a800) border-box; padding: 24px 20px 20px; box-shadow: 0 14px 34px -18px rgba(224, 168, 0, .7); }
.ao-deal h3 { font-size: 1.22rem; }
.ao-deal .ao-ico { background: var(--sd-gold); color: var(--sd-gold-ink); width: 46px; height: 46px; }
.ao-deal .ao-line { font-weight: 600; }
.ao-ribbon { position: absolute; top: -13px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--sd-gold); color: var(--sd-gold-ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.ao-ribbon svg { width: 14px; height: 14px; }
.ao-states { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ao-st { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; border-radius: var(--r-m); background: var(--sunk); font-weight: 600; font-size: .9rem; }
.ao-st.st-active { background: var(--win-soft); color: var(--win); }
.ao-st.st-requested, .ao-st.st-scheduled, .ao-st.st-waiting_live { background: var(--sd-gold-soft); color: #7a5a00; }
:root[data-theme='dark'] .ao-st.st-requested, :root[data-theme='dark'] .ao-st.st-scheduled, :root[data-theme='dark'] .ao-st.st-waiting_live { color: var(--sd-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ao-st.st-requested, :root:not([data-theme='light']) .ao-st.st-scheduled, :root:not([data-theme='light']) .ao-st.st-waiting_live { color: var(--sd-gold); } }
.ao-st .pay-link { padding: 0; font-size: .88rem; }
.ao-buy h2 { margin: 0 0 4px; }
.ao-buy #aoPay { margin-top: 14px; }
.mx-promote.bare { display: grid; gap: 10px; }
.sl-addons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sl-veh .ao-states { margin-top: 10px; }
#aoTop:not(:empty) { margin-bottom: 18px; }
@media (max-width: 860px) {
  .ao-grid, .ao-grid.n2 { grid-template-columns: 1fr; }
  .ao-deal { order: -1; }
}
@media (max-width: 560px) {
  .pay-opt-h { flex-wrap: wrap; }
  .pay-opt-h .pay-opt-t { flex: 1 1 170px; }
  .pay-opt-h .pay-tabby-logo, .pay-opt-h .pay-cardlogos { margin-inline-start: 32px; }
  .pay-result-btns .btn { flex: 1 1 100%; }
}
.dr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.dr-bar .hp-slots { margin: 0; }
.hp-overdue { color: var(--lose); font-weight: 700; font-size: .78rem; }

/* ---- Admin: Payment options, Add-on prices ---- */
.po-card { display: grid; gap: 12px; }
.po-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.po-h h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.po-h p { margin: 0; }
.po-tabby { border-radius: 6px; }
.po-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.po-pill { font-weight: 700; }
.po-note, .po-warn { margin: 0; font-size: .9rem; }
.po-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-m); background: var(--sd-gold-soft); }
.po-items { border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 14px; display: grid; gap: 8px; margin: 0; }
.po-items legend { font-weight: 700; padding: 0 6px; }
.po-hook { display: grid; gap: 4px; }
.po-hook code { padding: 6px 10px; border-radius: var(--r-s); background: var(--sunk); overflow-wrap: anywhere; }
.po-save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-box { display: grid; gap: 10px; margin-top: 18px; }
.ap-box > p { margin: 0; }
.ap-form { display: grid; gap: 14px; }
.ap-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-row { border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 14px; display: grid; gap: 8px; margin: 0; min-width: 0; }
.ap-row.deal { border-color: var(--sd-gold); background: var(--sd-gold-soft); }
.ap-row legend { font-weight: 700; padding: 0 6px; }
.ap-agent { display: flex; gap: 10px; align-items: flex-start; }
.ap-agent span { display: grid; gap: 2px; }
@media (max-width: 760px) { .ap-rows { grid-template-columns: 1fr; } .po-h { flex-direction: column; } }

/* ---- Admin: Listing form options ---- */
.fo-counts { margin: 4px 0 0; font-size: .86rem; }
.fo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.fo-col { display: grid; gap: 16px; min-width: 0; }
.fo-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 14px; margin-bottom: 12px; }
.fo-tools .f { min-width: 180px; }
.fo-tools .ad-h2 { margin: 0; }
.fo-scroll { max-height: 560px; overflow: auto; }
.fo-tbl tr.off td { opacity: .62; }
.fo-tbl tr.sel td { background: var(--sd-gold-soft); }
.fo-tbl tr.dragging { opacity: .5; }
.fo-tbl .in { min-height: 36px; padding: 4px 8px; }
.fo-list td { vertical-align: middle; }
.fo-move { display: inline-flex; align-items: center; gap: 2px; }
.fo-grip { display: inline-grid; place-items: center; width: 22px; color: var(--muted); cursor: grab; }
.fo-used { font-weight: 700; }
.fo-sub { margin-top: 16px; }
.fo-pv { position: sticky; top: 84px; display: grid; gap: 6px; }
.fo-pv-list { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-m); max-height: 420px; overflow: auto; background: var(--paper); }
.fo-pv-list li { padding: 6px 10px; border-radius: var(--r-s); font-size: .9rem; }
.fo-pv-list li.g { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 10px; }
.fo-pv-list li.other { color: var(--sd-green); font-weight: 700; border-top: 1px solid var(--line); margin-top: 4px; }
.fo-pv-list li.more { color: var(--muted); }
.fo-pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fo-pv-chips .chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; background: var(--paper); }
.fo-years { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fo-years .f { width: 140px; }
.fo-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.fo-dirty { color: #7a5a00; font-weight: 700; font-size: .88rem; }
:root[data-theme='dark'] .fo-dirty { color: var(--sd-gold); }
@media (max-width: 980px) { .fo-grid { grid-template-columns: 1fr; } .fo-pv { position: static; } }
.pay-panel[hidden] { display: none; }

/* ---- Agent: Withdraw ---- */
.ag-wd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-wd-kpis .ag-kpi b { font-size: 1.5rem; overflow-wrap: anywhere; }
.ag-wd-hold, .ag-wd-ok, .ag-wd-note { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: .92rem; }
.ag-wd-hold { background: var(--ag-ysoft); color: #6b5800; }
:root[data-theme='dark'] .ag-wd-hold { color: var(--ag-y); }
.ag-wd-ok { background: var(--ag-g3); color: var(--ag-g2); font-weight: 600; }
.ag-wd-note { background: var(--ag-faint); color: var(--ag-muted); margin: 10px 0; }
.ag-wd-dl { display: grid; gap: 10px; margin: 0 0 8px; }
.ag-wd-dl div { display: grid; gap: 2px; }
.ag-wd-dl dt { font-size: .8rem; color: var(--ag-muted); }
.ag-wd-dl dd { margin: 0; font-weight: 600; }
.ag-wd-amt { display: flex; gap: 8px; align-items: center; }
.ag-wd-amt .in { flex: 1; min-width: 0; }
.ag-wd .ag-form { margin-top: 12px; }
.ag-wd .ag-two { align-items: start; }
@media (max-width: 900px) { .ag-wd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ag-wd-amt { flex-direction: column; align-items: stretch; } }
.wd-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--sunk); }
.wd-st.s-pending { background: var(--sd-gold-soft); color: #7a5a00; }
.wd-st.s-approved { background: var(--petrol-soft, var(--sunk)); color: var(--petrol, var(--ink)); }
.wd-st.s-paid { background: var(--win-soft); color: var(--win); }
.wd-st.s-rejected { background: var(--lose-soft); color: var(--lose); }
.wd-st.s-cancelled { color: var(--muted); }
:root[data-theme='dark'] .wd-st.s-pending { color: var(--sd-gold); }
.wd-chips { margin: 0 0 12px; }
.wd-transfer { padding: 12px 14px; border-radius: var(--r-m); background: var(--sunk); display: grid; gap: 6px; }
.ag-wd-kpis > * { grid-column: auto !important; grid-row: auto !important; }
@media (max-width: 520px) { .ag-wd-kpis .ag-kpi b { font-size: 1.15rem; } .ag-wd-kpis .ag-kpi { padding: 14px; } }
.lf-pos .in { padding-inline: 6px 22px; text-align: center; background-position: right 4px center; }
html[dir='rtl'] .lf-pos .in { background-position: left 4px center; }
@media (max-width: 419px) { .lf-ph-acts .lf-ib { width: 34px; min-width: 34px; } }
/* Pay by Tabby while Tabby is being set up (switched on, not connected yet) */
.pay-setup { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--sd-gold-soft); color: var(--ink) !important; font-weight: 600; }
.pay-setup svg { flex: none; margin-top: 2px; }
.pay-panel .btn.pay-soon, .pay-panel .btn.pay-soon:hover { background: var(--sunk); color: var(--muted); border-color: var(--line); cursor: not-allowed; filter: none; }
.pay-soon-l { text-align: center; font-size: .82rem; }
.po-sw-l { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; flex: none; cursor: pointer; }
.po-notice { margin: 0; padding: 10px 14px; border-radius: var(--r-m); font-weight: 600; font-size: .92rem; }
.po-notice.warn { background: var(--sd-gold-soft); border: 1px solid var(--sd-gold); color: var(--ink); }
.po-notice.ok { background: var(--win-soft); border: 1px solid var(--win); color: var(--win); }
.po-interest { margin: 0; font-size: .9rem; }
@media (max-width: 760px) { .po-sw-l { justify-content: space-between; width: 100%; } }

/* ===================================================================== Home page (redesign) and shared header style
   Inter in English (Arabic keeps the site's Arabic font), the brand green #087f55 / deep green #075c43 and yellow #ffd92f. */
:root { --hm-g: #087f55; --hm-gd: #075c43; --hm-y: #ffd92f; --hm-y3: #e8c21e; --hm-ink: #14251d; --hm-mut: #66736c; --hm-line: #e7eee9; --hm-pale: #f4f8f5; --hm-card: #fff; --hm-soft: #e9f6ef; --hm-deal: #f6f9f7; --hm-bg: #fff; --hm-chip: #f3f7f4; }
:root[data-theme='dark'] { --hm-g: #3cc48a; --hm-gd: #2fa877; --hm-ink: #e6edf2; --hm-mut: #9aaba2; --hm-line: #26362e; --hm-pale: #13211a; --hm-card: #15231c; --hm-soft: #143226; --hm-deal: #13211a; --hm-bg: #0f1a15; --hm-chip: #1a2a22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --hm-g: #3cc48a; --hm-gd: #2fa877; --hm-ink: #e6edf2; --hm-mut: #9aaba2; --hm-line: #26362e; --hm-pale: #13211a; --hm-card: #15231c; --hm-soft: #143226; --hm-deal: #13211a; --hm-bg: #0f1a15; --hm-chip: #1a2a22; } }

/* Header (every public page): white with a soft blur, a thin line, the raised yellow "Sell your car" button */
.top { font-family: 'Inter', var(--f-body); background: color-mix(in srgb, var(--paper) 91%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--hm-line); }
.top .brand { font-family: 'Inter', var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.04em; color: var(--hm-gd); }
:root[data-theme='dark'] .top .brand { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .top .brand { color: var(--ink); } }
.top .brand b { color: var(--hm-g); font-weight: 800; }
.top .nav a { font-size: .86rem; font-weight: 600; color: #53645a; }
:root[data-theme='dark'] .top .nav a { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .top .nav a { color: var(--muted); } }
.top .nav a:hover { color: var(--hm-g); background: none; }
.top .nav a.on { color: var(--hm-g); box-shadow: inset 0 -2px 0 var(--hm-g); }
.top .loc-chip { border: 0; background: var(--hm-chip); border-radius: 22px; padding: 9px 13px; color: var(--ink); font-size: .86rem; }
.top .loc-chip svg { color: var(--hm-g); }
.top .loc-chip:hover { background: var(--hm-soft); }
.top .search input { border-radius: 22px; background: var(--hm-chip); }
.top .iconbtn { border-color: var(--hm-line); }
.top .sell-cta { --b: var(--hm-y); --c: #1c2a20; --bd: var(--hm-y); background: var(--hm-y); color: #1c2a20; border: 0; border-radius: 12px; font-weight: 750; box-shadow: 0 4px 0 var(--hm-y3); transition: transform .2s, box-shadow .2s; margin-bottom: 4px; margin-inline-start: 6px; }
.top .sell-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--hm-y3); }
.top .sell-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--hm-y3); }

.hm2 { background: var(--hm-bg); color: var(--hm-ink); font-family: 'Inter', var(--f-body); }
.hm2 h1, .hm2 h2, .hm2 h3 { font-family: 'Inter', var(--f-display); }
html[lang='ar'] .hm2, html[lang='ar'] .hm2 h1, html[lang='ar'] .hm2 h2, html[lang='ar'] .hm2 h3, html[lang='ar'] .top { font-family: var(--f-body); letter-spacing: 0; }
.hm-wrap { padding-top: 20px; padding-bottom: 56px; }
.hm-arr { flex: none; }
:root[dir='rtl'] .hm-arr { transform: scaleX(-1); }

/* Sub navigation */
.hm-subnav { border-bottom: 1px solid var(--hm-line); background: var(--hm-bg); }
.hm-subnav .wrap { height: 52px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 64px); }
.hm-subnav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--hm-ink); font-size: .9rem; font-weight: 650; white-space: nowrap; padding: 8px 0; }
.hm-subnav a:first-child, .hm-subnav a:hover { color: var(--hm-g); }
.hm-subnav a svg { width: 14px; height: 14px; }

/* Hero */
.hm-hero-sk { height: 350px; border-radius: 24px; }
.hm-hero { position: relative; min-height: 350px; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate; box-shadow: 0 16px 44px rgba(5, 91, 62, .14);
  background: radial-gradient(circle at 18% 15%, rgba(255, 217, 47, .18), transparent 32%), linear-gradient(105deg, #034531 0%, #056645 52%, #0a8a5c 100%); }
.hm-hero.has-img { background: radial-gradient(circle at 18% 15%, rgba(255, 217, 47, .18), transparent 30%), linear-gradient(105deg, rgba(3, 69, 49, .95) 0%, rgba(5, 102, 69, .87) 43%, rgba(7, 92, 67, .05) 100%), var(--hero) center 48% / cover no-repeat, #056645; }
:root[dir='rtl'] .hm-hero { background: radial-gradient(circle at 82% 15%, rgba(255, 217, 47, .18), transparent 32%), linear-gradient(255deg, #034531 0%, #056645 52%, #0a8a5c 100%); }
:root[dir='rtl'] .hm-hero.has-img { background: radial-gradient(circle at 82% 15%, rgba(255, 217, 47, .18), transparent 30%), linear-gradient(255deg, rgba(3, 69, 49, .95) 0%, rgba(5, 102, 69, .87) 43%, rgba(7, 92, 67, .05) 100%), var(--hero) center 48% / cover no-repeat, #056645; }
.hm-shape { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.hm-shape.a { width: 420px; height: 420px; inset-inline-end: -90px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 68%); }
.hm-shape.b { width: 300px; height: 300px; inset-inline-end: 18%; bottom: -170px; background: radial-gradient(circle, rgba(255, 217, 47, .2), rgba(255, 217, 47, 0) 70%); }
.hm-hero.has-img .hm-shape { display: none; }
.hm-hero-in { position: relative; z-index: 1; padding: 39px 45px; max-width: 720px; }
.hm-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--hm-y); color: #1c2a20; border-radius: 30px; padding: 7px 13px; font-size: .7rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.hm-tag svg { width: 14px; height: 14px; }
.hm-hero h1 { font-size: clamp(30px, 3.1vw, 45px); line-height: 1.06; letter-spacing: -.04em; margin: 20px 0 12px; max-width: 600px; color: #fff; font-weight: 800; }
html[lang='ar'] .hm-hero h1 { line-height: 1.35; letter-spacing: 0; }
.hm-hero h1 .hi { color: var(--hm-y); }
.hm-hero p { color: #e0eee6; font-size: 15px; margin: 0 0 24px; }
.hm-search { background: #fff; padding: 8px; border-radius: 15px; display: flex; gap: 8px; max-width: 630px; box-shadow: 0 12px 36px rgba(0, 47, 35, .27); position: relative; }
.hm-search-f { flex: 1; min-width: 0; position: relative; }
.hm-search input { width: 100%; border: 0; outline: 0; padding: 12px 13px; color: #26382e; background: transparent; font: inherit; font-size: 15px; min-height: 46px; }
.hm-search input::-webkit-search-cancel-button { cursor: pointer; }
.hm-search button { display: inline-flex; align-items: center; gap: 10px; background: var(--hm-y); border: 0; border-radius: 10px; padding: 0 20px; font: inherit; font-weight: 800; color: #18271e; cursor: pointer; min-height: 46px; transition: background .2s; }
.hm-search button:hover { background: #ffe25c; }
.hm-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 217, 47, .55), 0 12px 36px rgba(0, 47, 35, .27); }
.hm-sugg { position: absolute; top: calc(100% + 14px); inset-inline: -8px; z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; color: #1c2a20; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 47, 35, .25); max-height: 320px; overflow: auto; }
.hm-sugg li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.hm-sugg li svg { width: 16px; height: 16px; color: #66736c; flex: none; }
.hm-sugg li.on, .hm-sugg li:hover { background: #edf7f1; color: var(--hm-gd); }
.hm-quick { display: flex; gap: 9px; margin-top: 15px; flex-wrap: wrap; align-items: center; }
.hm-quick-l { font-size: 12px; color: #d7eee1; font-weight: 600; }
.hm-quick a { font-size: 12px; color: #f2faf4; text-decoration: none; border: 1px solid rgba(255, 255, 255, .27); background: rgba(255, 255, 255, .08); border-radius: 20px; padding: 7px 12px; backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.hm-quick a:hover { background: rgba(255, 217, 47, .22); border-color: var(--hm-y); }
.hm-float { position: absolute; inset-inline-end: 30px; bottom: 24px; z-index: 2; border: 1px solid rgba(255, 255, 255, .33); background: rgba(255, 255, 255, .87); color: #075c43; border-radius: 18px; padding: 15px 18px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: hm-float 5s ease-in-out infinite; box-shadow: 0 12px 35px rgba(0, 61, 38, .19); max-width: 280px; }
.hm-float strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hm-float small { color: #64766a; font-size: 12px; }
.hm-dot { display: inline-block; width: 8px; height: 8px; background: #087f55; border-radius: 50%; box-shadow: 0 0 0 5px rgba(8, 127, 85, .1); flex: none; }
@keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .hm-float { animation: none; } }

/* Info boxes */
.hm-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 17px 0 6px; }
.hm-trust.n2 { grid-template-columns: repeat(2, 1fr); }
.hm-trust.n1 { grid-template-columns: 1fr; }
.hm-box { display: flex; align-items: center; gap: 12px; border: 1px solid var(--hm-line); border-radius: 15px; padding: 15px 17px; background: var(--hm-card); }
.hm-box-i { height: 38px; width: 38px; flex: none; display: grid; place-items: center; background: var(--hm-soft); border-radius: 12px; color: var(--hm-g); }
.hm-box b { font-size: 13.5px; display: block; }
.hm-box small { color: var(--hm-mut); font-size: 12px; }

/* Section heads */
.hm-sec { margin-top: 32px; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.03em; margin: 0; font-weight: 800; }
html[lang='ar'] .hm-head h2 { letter-spacing: 0; }
.hm-mark { width: 9px; height: 26px; background: var(--hm-y); border-radius: 5px; flex: none; }
.hm-head p { margin: 4px 0 0; padding-inline-start: 19px; color: var(--hm-mut); font-size: 13px; }
.hm-all { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-card); padding: 10px 13px; font-size: 12.5px; font-weight: 700; color: var(--hm-gd); text-decoration: none; white-space: nowrap; transition: background .2s; }
:root[data-theme='dark'] .hm-all { color: var(--hm-g); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hm-all { color: var(--hm-g); } }
.hm-all:hover { background: var(--hm-soft); }
.hm-all svg { width: 15px; height: 15px; }

/* Deal of the Week */
.hm-deal { min-height: 300px; display: grid; grid-template-columns: 1.02fr .98fr; border: 1px solid var(--hm-line); border-radius: 22px; overflow: hidden; background: var(--hm-deal); transition: opacity .22s, transform .22s; }
.hm-deal.enter { opacity: .45; transform: translateY(4px); transition: none; }
.hm-deal-side { padding: 26px 26px 23px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hm-deal-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--hm-y); color: #1c2a20; border-radius: 30px; padding: 7px 11px; font-size: 10.5px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.hm-deal-tag svg { width: 13px; height: 13px; }
.hm-deal h3 { font-size: 29px; letter-spacing: -.04em; margin: 18px 0 4px; font-weight: 800; }
html[lang='ar'] .hm-deal h3 { letter-spacing: 0; }
.hm-deal h3 a { color: inherit; text-decoration: none; }
.hm-deal h3 a:hover { color: var(--hm-g); }
.hm-trim { margin: 0 0 10px; color: var(--hm-mut); font-size: 14px; }
.hm-facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hm-facts li { font-size: 11.5px; border: 1px solid var(--hm-line); background: var(--hm-card); padding: 6px 8px; border-radius: 7px; color: var(--hm-mut); font-weight: 600; }
.hm-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 13px; color: var(--hm-mut); margin-top: 18px; }
.hm-price strong { font-size: 30px; color: var(--hm-g); letter-spacing: -.03em; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.hm-desc { font-size: 13px; line-height: 1.6; color: var(--hm-mut); margin: 8px 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-deal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; width: 100%; padding-top: 6px; }
.hm-ends { font-size: 12.5px; color: var(--hm-mut); font-weight: 600; }
.hm-arrows { display: flex; gap: 7px; margin-inline-start: auto; }
.hm-round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hm-line); background: var(--hm-card); color: var(--hm-gd); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
:root[data-theme='dark'] .hm-round { color: var(--hm-g); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hm-round { color: var(--hm-g); } }
.hm-round:hover { background: var(--hm-y); border-color: var(--hm-y); color: #1c2a20; }
.hm-round[data-step='-1'] .hm-arr { transform: scaleX(-1); }
:root[dir='rtl'] .hm-round[data-step='-1'] .hm-arr { transform: none; }
.hm-deal-media { position: relative; overflow: hidden; background: #e4ece6; display: block; min-height: 300px; }
.hm-deal-media img, .hm-deal-media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.hm-deal:hover .hm-deal-media img { transform: scale(1.055); }
.hm-count { position: absolute; top: 15px; inset-inline-end: 15px; background: rgba(255, 255, 255, .88); border-radius: 9px; padding: 8px 10px; color: #087f55; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(8px); }

/* Buttons */
.hm-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; border: 1px solid var(--hm-line); border-radius: 11px; background: var(--hm-card); color: var(--hm-gd); padding: 0 17px; font-weight: 750; text-decoration: none; transition: background .2s, transform .2s; }
.hm-btn:hover { background: var(--hm-soft); transform: translateY(-2px); }
.hm-btn.green { background: #087f55; border-color: #087f55; color: #fff; }
.hm-btn.green:hover { background: #075c43; }
:root[data-theme='dark'] .hm-btn:not(.green) { color: var(--hm-g); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hm-btn:not(.green) { color: var(--hm-g); } }
.hm-3d { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; background: var(--hm-y); color: #1c2a20; border-radius: 12px; padding: 0 18px; font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 var(--hm-y3); transition: transform .2s, box-shadow .2s; margin-bottom: 5px; }
.hm-3d:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--hm-y3); }
.hm-3d.is-locked { opacity: .78; }
.hm-3d svg { width: 15px; height: 15px; }

/* Stats chips */
.hm-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hm-stats span { display: inline-flex; align-items: baseline; gap: 7px; border: 1px solid var(--hm-line); background: var(--hm-pale); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--hm-mut); font-weight: 600; }
.hm-stats b { color: var(--hm-g); font-size: 16px; font-weight: 800; }

/* "Sell your car" banner */
.hm-promo { margin-top: 30px; background: linear-gradient(105deg, #eaf6ed, #fff 58%, #fff7ce); border: 1px solid #e4efe6; border-radius: 20px; padding: 24px 27px; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; overflow: hidden; position: relative; isolation: isolate; color: #14251d; }
:root[dir='rtl'] .hm-promo { background: linear-gradient(255deg, #eaf6ed, #fff 58%, #fff7ce); }
.hm-promo::after { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; inset-inline-end: 25%; top: -120px; background: #d7f0df; z-index: -1; }
.hm-promo h2 { font-size: 21px; margin: 0 0 7px; letter-spacing: -.02em; font-weight: 800; }
.hm-promo p { margin: 0; color: #66736c; font-size: 13.5px; max-width: 640px; }
.hm-promo-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: none; }
.hm-promo .hm-btn { background: #fff; border-color: #dbe7df; color: #075c43; }
:root[data-theme='dark'] .hm-promo { background: linear-gradient(105deg, #12301f, #15231c 58%, #2e2a10); border-color: var(--hm-line); color: var(--hm-ink); }
:root[data-theme='dark'][dir='rtl'] .hm-promo { background: linear-gradient(255deg, #12301f, #15231c 58%, #2e2a10); }
:root[data-theme='dark'] .hm-promo::after { background: #1b3a2a; }
:root[data-theme='dark'] .hm-promo p { color: var(--hm-mut); }
:root[data-theme='dark'] .hm-promo .hm-btn { background: var(--hm-card); border-color: var(--hm-line); color: var(--hm-g); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hm-promo { background: linear-gradient(105deg, #12301f, #15231c 58%, #2e2a10); border-color: var(--hm-line); color: var(--hm-ink); }
  :root:not([data-theme='light'])[dir='rtl'] .hm-promo { background: linear-gradient(255deg, #12301f, #15231c 58%, #2e2a10); }
  :root:not([data-theme='light']) .hm-promo::after { background: #1b3a2a; }
  :root:not([data-theme='light']) .hm-promo p { color: var(--hm-mut); }
  :root:not([data-theme='light']) .hm-promo .hm-btn { background: var(--hm-card); border-color: var(--hm-line); color: var(--hm-g); }
}

/* Listing grids (the shared listing card, in the home page style) */
.hm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.hm2 .mx-card { border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-card); transition: transform .25s, box-shadow .25s, border-color .25s; animation: hm-rise .6s both; }
.hm2 .mx-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(10, 92, 60, .09); border-color: #c4e2cf; }
:root[data-theme='dark'] .hm2 .mx-card:hover { border-color: #2f5a44; box-shadow: 0 15px 35px rgba(0, 0, 0, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hm2 .mx-card:hover { border-color: #2f5a44; box-shadow: 0 15px 35px rgba(0, 0, 0, .35); } }
.hm2 .mx-card:nth-child(2) { animation-delay: .07s; } .hm2 .mx-card:nth-child(3) { animation-delay: .14s; } .hm2 .mx-card:nth-child(4) { animation-delay: .21s; } .hm2 .mx-card:nth-child(5) { animation-delay: .28s; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hm2 .mx-card { animation: none; } }
.hm2 .mx-media { overflow: hidden; aspect-ratio: 4 / 3; }
.hm2 .mx-media img { transition: transform .6s; }
.hm2 .mx-card:hover .mx-media img { transform: scale(1.07); }
.hm2 .mx-badge { border-radius: 7px; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; }
.hm2 .mx-badge.prem, .hm2 .mx-badge.feat, .hm2 .mx-badge.deal { background: var(--hm-y); color: #253126; }
.hm2 .mx-heart { width: 34px; height: 34px; background: rgba(255, 255, 255, .92); transition: transform .2s, background .2s; }
.hm2 .mx-heart.on { background: var(--hm-y); color: #0c6a49; transform: scale(1.06); }
.hm2 .mx-body { padding: 12px; gap: 5px; }
.hm2 .mx-body h3 { font-size: 14px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm2 .mx-variant { font-size: 12px; margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm2 .mx-price { font-family: 'Inter', var(--f-body); font-size: 15px; font-weight: 800; color: var(--hm-ink); margin-top: 4px; }
.hm2 .mx-price small { font-size: 10.5px; }
.hm2 .mx-facts { font-size: 11.5px; gap: 2px 10px; color: var(--hm-mut); }
.hm2 .mx-view { justify-self: stretch; text-align: center; justify-content: center; border-radius: 10px; background: var(--hm-soft); border-color: transparent; color: var(--hm-gd); font-weight: 700; min-height: 38px; margin-top: 6px; }
.hm2 .mx-view:hover { background: var(--hm-y); color: #1c2a20; }
:root[data-theme='dark'] .hm2 .mx-view { color: var(--hm-g); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hm2 .mx-view { color: var(--hm-g); } }

/* Tablet: 3 columns, the Deal of the Week card stacks */
@media (max-width: 1100px) {
  .hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-float { display: none; }
  .hm-deal { grid-template-columns: 1fr; }
  .hm-deal-media { grid-row: 1; height: 300px; }
}
/* Phone: the sub navigation scrolls sideways, the hero heading shrinks, the search stacks, 2 columns */
@media (max-width: 700px) {
  .hm-subnav .wrap { justify-content: flex-start; overflow-x: auto; gap: 22px; height: 48px; scrollbar-width: none; }
  .hm-subnav .wrap::-webkit-scrollbar { display: none; }
  .hm-subnav a { font-size: .82rem; padding: 12px 0; }
  .hm-wrap { padding-top: 14px; padding-bottom: 40px; }
  .hm-hero { min-height: 360px; border-radius: 20px; }
  .hm-hero-in { padding: 27px 20px 25px; }
  .hm-hero h1 { font-size: 32px; }
  .hm-search { flex-wrap: wrap; }
  .hm-search-f { flex-basis: 100%; }
  .hm-search button { width: 100%; justify-content: center; min-height: 48px; }
  .hm-sugg { top: calc(100% + 6px); }
  .hm-trust, .hm-trust.n2 { grid-template-columns: 1fr; gap: 8px; }
  .hm-box { padding: 11px 13px; }
  .hm-deal-media { height: 220px; min-height: 220px; }
  .hm-deal-side { padding: 20px; }
  .hm-deal h3 { font-size: 25px; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hm2 .mx-body { padding: 10px; }
  .hm2 .mx-body h3 { font-size: 13px; }
  .hm2 .mx-view { min-height: 44px; }
  .hm-promo { flex-direction: column; align-items: flex-start; padding: 20px; }
  .hm-promo-btns > * { flex: 1 1 auto; justify-content: center; }
  .hm-head { align-items: center; }
  .hm-head h2 { font-size: 19px; }
  .hm-head p { font-size: 12px; }
  .hm-stats span { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) { .hm-hero h1 { font-size: 28px; } .hm-all { padding: 9px 10px; } }
.top .brand .ar { display: none; }
@media (min-width: 1341px) { .top .search { min-width: 170px; } }
.hm-deal h3 { line-height: 1.12; margin-top: 16px; }
.hm-trim { line-height: 1.4; }
.hm-price { margin-top: 16px; }
.hm2 .mx-body { display: flex; flex-direction: column; }
.hm2 .mx-view { margin-top: auto; }
.hm2 .mx-price + .mx-facts, .hm2 .mx-facts { margin-bottom: 8px; }
.hm-deal-side { gap: 0; border: 0; }
.hm-deal-media { display: block; }
@media (max-width: 1100px) { .hm-deal { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .top .brand span.word { display: none; } }
.hm2 .hm-deal-media { aspect-ratio: auto; }
.hm2 .mx-price { white-space: nowrap; }
@media (max-width: 700px) { .hm2 .mx-price small { display: block; margin: 3px 0 0; } }
@media (max-width: 980px) { .top .search { display: none; } .top .search-mini { display: inline-grid; margin-inline-start: auto; } }
.hm-hero { overflow: visible; z-index: 3; }
.hm-hero-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.hm-hero-bg .hm-shape { z-index: auto; }

/* Admin → Settings → Home page: the form on the left, a live preview on the right */
.hp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 18px; align-items: start; }
.hp-form { display: grid; gap: 16px; min-width: 0; }
.hp-img { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.hp-img-box { width: 240px; max-width: 100%; aspect-ratio: 18 / 7; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(105deg, #034531, #056645 52%, #0a8a5c); display: grid; place-items: center; flex: none; }
.hp-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-img-box.none span { color: #e0eee6; font-size: .8rem; padding: 10px; text-align: center; }
.hp-img-side { flex: 1 1 240px; min-width: 0; }
.hp-img-side .ad-two { justify-content: flex-start; }
.hp-rowhead { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; flex-wrap: wrap; }
.hp-rowhead .ft-tgl { margin-inline-start: auto; }
.hp-boxrow .ad-fgrid, .hp-secgrid { flex: 1 1 100%; }
.hp-secrow { cursor: grab; }
.hp-secrow:active { cursor: grabbing; }
.hp-secname { font-size: 1rem; }
.hp-count input { max-width: 120px; }
.hp-count small { display: block; margin-top: 4px; }
.hp-dealnote { font-size: .85rem; margin: 22px 0 0; }
.hp-save { align-items: center; justify-content: flex-start; }
.hp-pv { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.hp-pv-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hp-pv-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.hp-pv-lang button { border: 0; background: none; border-radius: 999px; padding: 4px 11px; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--muted); min-height: 30px; }
.hp-pv-lang button[aria-pressed='true'] { background: var(--ad-g); color: #fff; }
.hp-pv-page { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--hm-bg); color: var(--hm-ink); font-family: 'Inter', var(--f-body); display: grid; gap: 10px; }
.hp-pv-page[lang='ar'] { font-family: var(--f-body); }
.hp-pv-hero { border-radius: 12px; padding: 14px; color: #fff; background: linear-gradient(105deg, #034531, #056645 52%, #0a8a5c); }
.hp-pv-page[dir='rtl'] .hp-pv-hero { background: linear-gradient(255deg, #034531, #056645 52%, #0a8a5c); }
.hp-pv-hero.img { background: linear-gradient(105deg, rgba(3, 69, 49, .95), rgba(5, 102, 69, .87) 43%, rgba(7, 92, 67, .05)), var(--hero) center / cover no-repeat; }
.hp-pv-page[dir='rtl'] .hp-pv-hero.img { background: linear-gradient(255deg, rgba(3, 69, 49, .95), rgba(5, 102, 69, .87) 43%, rgba(7, 92, 67, .05)), var(--hero) center / cover no-repeat; }
.hp-pv-tag { display: block; width: 74px; height: 10px; border-radius: 9px; background: #ffd92f; }
.hp-pv-h1 { font-weight: 800; font-size: 1.05rem; line-height: 1.2; margin: 8px 0 4px; max-width: 85%; }
.hp-pv-h1 span { color: #ffd92f; }
.hp-pv-hero p { margin: 0 0 8px; font-size: .7rem; color: #e0eee6; }
.hp-pv-search { display: flex; gap: 4px; background: #fff; border-radius: 7px; padding: 3px; max-width: 80%; }
.hp-pv-search i { flex: 1; } .hp-pv-search span { width: 40px; height: 14px; border-radius: 4px; background: #ffd92f; }
.hp-pv-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.hp-pv-boxes.n2 { grid-template-columns: 1fr 1fr; } .hp-pv-boxes.n1 { grid-template-columns: 1fr; }
.hp-pv-boxes div { border: 1px solid var(--hm-line); border-radius: 7px; padding: 5px 6px; min-width: 0; }
.hp-pv-boxes b { display: block; font-size: .6rem; line-height: 1.25; }
.hp-pv-boxes small { display: block; font-size: .55rem; color: var(--hm-mut); line-height: 1.25; }
.hp-pv-sec { display: grid; gap: 5px; }
.hp-pv-sh { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: .74rem; }
.hp-pv-sh span { width: 4px; height: 12px; border-radius: 3px; background: #ffd92f; }
.hp-pv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.hp-pv-grid i { aspect-ratio: 4 / 5; border-radius: 5px; background: linear-gradient(180deg, var(--hm-soft) 55%, var(--hm-pale) 55%); border: 1px solid var(--hm-line); }
.hp-pv-more { font-size: .65rem; color: var(--hm-mut); }
.hp-pv-deal { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hm-line); border-radius: 8px; overflow: hidden; background: var(--hm-deal); min-height: 62px; }
.hp-pv-deal > div:first-child { padding: 6px; display: grid; gap: 4px; align-content: start; }
.hp-pv-deal em { width: 44px; height: 7px; border-radius: 5px; background: #ffd92f; } .hp-pv-deal b { width: 70%; height: 8px; border-radius: 3px; background: var(--hm-ink); opacity: .7; } .hp-pv-deal i { width: 50%; height: 9px; border-radius: 3px; background: #087f55; }
.hp-pv-ph { background: linear-gradient(135deg, #c9d6ce, #e8efea); }
.hp-pv-stats { display: flex; gap: 4px; } .hp-pv-stats i { width: 46px; height: 10px; border-radius: 9px; background: var(--hm-pale); border: 1px solid var(--hm-line); }
.hp-pv-sell { position: relative; border-radius: 8px; padding: 7px 50px 7px 8px; font-size: .62rem; font-weight: 800; background: linear-gradient(105deg, #eaf6ed, #fff 58%, #fff7ce); color: #14251d; border: 1px solid #e4efe6; }
.hp-pv-page[dir='rtl'] .hp-pv-sell { padding: 7px 8px 7px 50px; }
.hp-pv-sell span { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 12px; border-radius: 4px; background: #ffd92f; box-shadow: 0 2px 0 #e8c21e; }
@media (max-width: 1180px) { .hp-layout { grid-template-columns: minmax(0, 1fr); } .hp-pv { position: static; max-height: none; } }
.hp-texts, .hp-boxrow .ad-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .hp-texts, .hp-boxrow .ad-fgrid { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================================== Agent code discount */
.ag-row dd, .ag-total dd { direction: ltr; unicode-bidi: isolate; }
.ag-cut dt, .ag-cut dd { color: var(--win); font-weight: 700; }
.ag-total dd { display: inline-flex; align-items: baseline; gap: 8px; justify-content: flex-end; }
.ag-was { font: 500 .9rem var(--f-body); color: var(--muted); }
.ag-line { display: block; margin-top: 6px; }
.ag-ok { margin-top: 4px; }
.ag-small { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.ag-small s { opacity: .8; }
.ag-g, .ad-disc { color: var(--win); font-weight: 700; }
.ad-disc-note { display: block; font-size: .78rem; }
.sd-agentcode:empty { display: none; }
/* the field "Agent code discount" (packages and custom packages) */
.adc-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.adc-field legend { padding: 0; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.adc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adc-row select { flex: 1 1 200px; min-width: 0; }
.adc-pct { display: inline-flex; align-items: center; gap: 6px; }
.adc-pct[hidden] { display: none; }
.adc-pct input { width: 96px; }
/* the card on Edit current packages */
.adk-grid { margin-top: 12px; }
.adk-in { display: flex; align-items: center; gap: 8px; }
.adk-in input { max-width: 140px; }
.adk-in span { color: var(--muted); font-weight: 600; }
.adk-tblw { margin-top: 6px; max-width: 520px; }
.adk-tbl caption { text-align: start; font-weight: 700; padding: 0 0 8px; }
.adk-tbl td { vertical-align: middle; }
.adk-sw { display: grid; gap: 2px; margin-top: 8px; }
.adk-btns { margin-top: 12px; }
.adk-eh { font-size: 1rem; margin: 18px 0 8px; }
.adk-effect { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adk-effect li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.adk-effect li > span:last-child { margin-inline-start: auto; }
.adk-g { color: var(--win); }
.adk-cardline { margin: 8px 0 0; font-size: .86rem; color: var(--win); font-weight: 600; }
.adk-prev { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--win-soft); color: var(--win); font-weight: 600; }
.adk-prev .muted { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .adk-effect li > span:last-child { margin-inline-start: 0; flex-basis: 100%; } .ag-small { white-space: normal; } }
.ag-total .ag-was { color: inherit; opacity: .7; }
/* Agent dashboard: the discount line under the share button */
.ag-share-line { flex-basis: 100%; color: var(--ag-muted); font-size: .8rem; }
.ag-share-line[hidden] { display: none; }
/* Agent code discount card: quick buttons 10% / 20% / 30% / Custom and the share message preview */
.adk-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.adk-pick legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
.adk-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.adk-q { min-height: 40px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.adk-q:hover { border-color: var(--ad-g); }
.adk-q[aria-pressed='true'] { background: var(--ad-g); border-color: var(--ad-g); color: #fff; }
.adk-cust[hidden] { display: none; }
.adk-msgbox { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--ad-gsoft, #e7f5ec); display: grid; gap: 6px; }
:root[data-theme='dark'] .adk-msgbox { background: var(--sunk); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .adk-msgbox { background: var(--sunk); } }
.adk-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
