/* ==========================================================================
   Jihazak design system v3 — the logo's colours, calm and clear
   Brand: deep blue #0a3fb0 → blue #0a7fe0 → turquoise #22dcc8 (from the logo).
   Clean cool-white surfaces, one gradient for primary actions, frosted-glass controls.
   Type scale: 13 / 15 / 16 body / 18 / 22 / 28 / 44+ display. Headings: Alexandria.
   ========================================================================== */
:root {
  --bg: #f5f8fc; --surface: #ffffff; --surface-2: #eef3fa; --surface-3: #e3ebf6;
  --ink: #0c1a2e; --ink-2: #33445c; --muted: #66768d; --line: #e1e8f2; --line-2: #cfd9e7;
  --brand: #0a5fd8; --brand-2: #0a3fb0; --brand-ink: #ffffff; --accent: #12b8a8;
  --brand-soft: color-mix(in srgb, var(--brand) 8%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --grad: linear-gradient(120deg, #0a3fb0 0%, #0a7fe0 55%, #22dcc8 100%);
  --grad-soft: linear-gradient(120deg, color-mix(in srgb, #0a7fe0 12%, transparent), color-mix(in srgb, #22dcc8 12%, transparent));
  --sand: #eaf2fd; --sand-2: #d6e5fa; --hero-bg: var(--sand);       /* kept names: soft brand tints */
  --gold: var(--accent);                                            /* highlights now use the logo's turquoise */
  --ok: #0c9468; --warn: #b4690e; --bad: #d1304a;
  --ok-soft: color-mix(in srgb, var(--ok) 12%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 13%, transparent);
  --bad-soft: color-mix(in srgb, var(--bad) 11%, transparent);
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(12, 26, 46, .05), 0 2px 8px rgba(12, 26, 46, .04);
  --sh-2: 0 10px 30px -10px rgba(10, 63, 176, .18);
  --sh-3: 0 26px 60px -18px rgba(10, 63, 176, .28);
  --glass: color-mix(in srgb, var(--bg) 80%, transparent);
  --glass-btn: rgba(255, 255, 255, .62); --glass-edge: rgba(255, 255, 255, .9); --glass-line: rgba(12, 26, 46, .08);
  --hdr-h: 68px; --tab-h: 66px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --pattern: none;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #08101e; --surface: #0f1a2d; --surface-2: #142138; --surface-3: #1b2a45;
  --ink: #ecf2fb; --ink-2: #c3cfe2; --muted: #8b9ab3; --line: #1f2d47; --line-2: #2a3b5a;
  --brand: #4d9bff; --brand-2: #7cb6ff; --brand-ink: #ffffff; --accent: #2fe0cc;
  --sand: #0e1b31; --sand-2: #17284a;
  --ok: #36d39a; --warn: #f5b84a; --bad: #ff6b81;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .45); --sh-2: 0 10px 30px rgba(0, 0, 0, .45); --sh-3: 0 26px 60px rgba(0, 0, 0, .6);
  --glass-btn: rgba(255, 255, 255, .07); --glass-edge: rgba(255, 255, 255, .14); --glass-line: rgba(255, 255, 255, .1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--surface-3); padding: 1px 7px; border-radius: 6px; font-size: 12px; word-break: break-word; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.view { padding-top: 28px; padding-bottom: 64px; min-height: 70vh; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; margin-top: 24px; }
.center-text { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; margin: 4px 0; }
.danger { color: var(--bad) !important; }
.warn { color: var(--warn); }
.ok-text { color: var(--ok); font-weight: 600; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ic-xl { width: 48px; height: 48px; color: var(--brand); }
.page-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.sec-title { font-size: clamp(19px, 2.2vw, 24px); margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-head a { font-weight: 600; font-size: 14px; }
section { margin-top: 44px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 4px; }
.narrow { max-width: 580px; padding: 28px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; line-height: 1.2; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover:not(:disabled) { background: var(--brand-2); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.is-on { color: var(--bad); border-color: var(--bad); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 6px 0; font-weight: 600; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none !important; transition: border-color .2s, transform .15s; }
.icon-btn:hover { border-color: var(--ink); }
.file-btn { cursor: pointer; }

/* ---------- Header ---------- */
.site-hdr { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.hdr { display: flex; align-items: center; gap: 18px; height: var(--hdr-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(10, 79, 196, .3)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.logo-text small { font-size: 11px; color: var(--muted); }
.hdr-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid transparent; border-radius: 999px; padding: 0 14px; height: 44px; transition: border-color .2s, background .2s; }
.hdr-search:focus-within { border-color: var(--brand); background: var(--surface); }
.hdr-search input { flex: 1; border: 0 !important; outline: 0 !important; background: transparent !important; padding: 0 !important; min-width: 0; height: 100%; box-shadow: none !important; }
.hdr-search .ic { color: var(--muted); }
.main-nav { display: flex; gap: 2px; }
.main-nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 14.5px; position: relative; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); }
.main-nav a.active { color: var(--ink); background: var(--surface-3); }
.hdr-actions { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }
.dot-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.site-ftr { border-top: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.ftr { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; align-items: center; padding: 26px 24px; color: var(--muted); font-size: 13px; }
.ftr-by { display: inline-flex; align-items: center; gap: 10px; }
.ftr-by svg { width: 40px; height: 27px; flex: none; }
.ftr-by-txt { display: inline-flex; flex-direction: column; line-height: 1.25; }
.ftr-by-txt small { font-size: 11px; color: var(--muted); }
.ftr-by-txt b { font-size: 13px; font-weight: 600; color: var(--ink); }
.tabbar { display: none; }

/* ---------- Home: hero (soft logo-colour light, frosted glass cards) ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); color: var(--ink);
  padding: clamp(32px, 6vw, 68px) clamp(22px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; isolation: isolate;
  border: 1px solid var(--line); box-shadow: var(--sh-1); }
/* Two soft light pools in the logo's blue and turquoise — colour without noise. */
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; inset-inline-end: -220px; top: -260px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, #0a7fe0 22%, transparent), transparent); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-start: -200px; bottom: -280px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, #22dcc8 20%, transparent), transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--glass-btn); border: 1px solid var(--glass-line); color: var(--ink-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.22; margin: 18px 0 14px; font-weight: 700; letter-spacing: 0; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; display: inline-block; padding: .06em .04em .2em; margin-bottom: -.2em; }
.hero .lead { font-size: clamp(15.5px, 1.5vw, 17.5px); line-height: 1.85; color: var(--ink-2); max-width: 540px; }
.search-big { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; padding-inline-start: 18px;
  max-width: 580px; margin: 26px 0 14px; color: var(--ink); box-shadow: var(--sh-2); }
.search-big:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--sh-2); }
.search-big input { flex: 1; border: 0 !important; outline: 0 !important; min-width: 0; padding: 10px 4px !important; background: transparent !important; color: var(--ink) !important; font-size: 16px; box-shadow: none !important; }
.search-big .ic { color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quick a { font-size: 13px; color: var(--ink-2); padding: 6px 13px; border-radius: 999px; background: var(--glass-btn); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; transition: border-color .2s, color .2s; }
.quick a:hover { border-color: var(--brand); color: var(--brand); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; list-style: none; padding: 0; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-trust .ic { width: 20px; height: 20px; color: var(--accent); }

.hero-visual { position: relative; height: 400px; }
.glass-card { position: absolute; background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--glass-edge); border-radius: 22px; padding: 18px; color: var(--ink);
  box-shadow: var(--sh-3), inset 0 1px 0 var(--glass-edge); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.gc-main { inset-inline-end: 6%; top: 2%; width: min(300px, 86%); }
.gc-main::before { content: ""; position: absolute; inset-inline: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.gc-price { inset-inline-start: 0; bottom: 28%; width: 230px; }
.gc-pay { inset-inline-end: 2%; bottom: 0; width: 230px; display: flex; gap: 12px; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .gc-main { animation: float 8s ease-in-out infinite; } .gc-price { animation: float 9s ease-in-out -3s infinite; } .gc-pay { animation: float 10s ease-in-out -5s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
.gc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gc-head b { font-family: var(--display); font-size: 17px; }
.gc-head small { display: block; color: var(--muted); font-size: 12px; }
.gc-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; }
.gc-list li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.gc-list li span:last-child { color: var(--ok); font-weight: 700; }
.gc-label { font-size: 12px; color: var(--muted); display: block; }
.gc-value { font-family: var(--display); font-size: 21px; font-weight: 700; }
.gc-bar { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 10px; position: relative; }
.gc-bar span { position: absolute; inset-inline: 25% 30%; top: 0; bottom: 0; background: var(--grad); border-radius: 3px; }
.gc-bar i { position: absolute; inset-inline-start: 42%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 0 4px var(--brand-soft), 0 2px 6px rgba(10, 63, 176, .3); }
.gc-pay .gc-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; flex: none; }
.gc-pay .ic { width: 22px; height: 22px; color: #fff; }

/* Numbers band under the hero */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.stats-band div { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.stats-band div + div { border-inline-start: 1px solid var(--line); }
.stats-band b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; padding-bottom: .12em; }
.stats-band span { font-size: 13px; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px 20px; counter-increment: st; }
.step::before { content: counter(st); position: absolute; inset-inline-end: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); }
.step .ic { width: 26px; height: 26px; color: var(--brand); }
.step h3 { font-size: 17px; margin: 14px 0 6px; }
.step p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }
.how { background: var(--grad-soft), var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }
.how .sec-head { margin-bottom: 20px; }
.how-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Section titles: short logo-gradient bar */
.sec-title { display: inline-flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: var(--grad); flex: none; }

/* ---------- Home: bento trust grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.bento-item.wide { grid-column: span 2; }
.bento-item h3 { font-size: 18px; margin: 14px 0 6px; }
.bento-item p { color: var(--muted); font-size: 14px; margin: 0; }
.bento-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.bento-ic .ic { width: 24px; height: 24px; }
.bento-item.feature { background: var(--grad); color: #fff; border: 0; }
.bento-item.feature p { color: rgba(255, 255, 255, .88); }
.bento-item.feature .bento-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.bento-steps { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.bento-steps span { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 600; text-align: center; cursor: pointer; text-decoration: none !important; font-size: 13.5px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat .ic { width: 28px; height: 28px; color: var(--brand); transition: transform .3s; }
.cat:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat:hover .ic { transform: scale(1.12); }
.cat.active { border: 2px solid var(--brand); background: var(--brand-soft); }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px 18px; }
.listing-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; background: transparent; border: 0; border-radius: var(--r); position: relative; }
.card.listing-card { background: transparent; border: 0; }
.listing-card .thumb { border-radius: var(--r); overflow: hidden; transition: box-shadow .3s; }
.listing-card .thumb img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.listing-card:hover .thumb { box-shadow: var(--sh-2); }
.listing-card:hover .thumb img { transform: scale(1.05); }
.thumb { aspect-ratio: 1; background: var(--surface-2); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--line-2); }
.thumb-ph .ic { width: 52px; height: 52px; }
.thumb-ph.big { aspect-ratio: 1; border-radius: var(--r-lg); }
.thumb-status { position: absolute; top: 12px; inset-inline-start: 12px; }
.thumb-score { position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px; padding-inline-end: 10px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 700; color: var(--ink); }
.fav-btn { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); cursor: pointer; transition: transform .2s, background .2s; z-index: 2; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn .ic { width: 18px; height: 18px; }
.fav-btn.on { color: #fff; background: var(--bad); }
.fav-btn.on .ic { fill: currentColor; }
.card-body { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.price { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-title { font-weight: 500; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; font-size: 14.5px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; padding-top: 2px; }
.card-foot .ic { width: 15px; height: 15px; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--bad); font-variant-numeric: tabular-nums; }
.countdown::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Chips, badges, rings ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.chip .ic { width: 13px; height: 13px; }
.chip-new { background: var(--ink); color: var(--bg); }
.chip-check { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 65%, var(--ink)); }
.chip-shop { background: var(--brand-soft); color: var(--brand); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-dark { background: rgba(8, 11, 20, .78); color: #fff; backdrop-filter: blur(6px); }
.chip-below { background: var(--ok-soft); color: var(--ok); }
.chip-within { background: var(--brand-soft); color: var(--brand); }
.chip-above { background: var(--warn-soft); color: var(--warn); }
.old-price { color: var(--muted); font-weight: 500; font-size: .72em; }
.sale-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--bad); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--bad) 60%, transparent); }
.sale-badge.inline { position: static; font-size: 13px; vertical-align: middle; box-shadow: none; }
.sale-ends { color: var(--bad); font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.badge { background: var(--brand); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; }
.tag { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; margin-inline-start: 4px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.st-awaiting_payment, .st-reserved { background: var(--warn-soft); color: var(--warn); }
.st-paid_held, .st-handed_over, .st-active { background: var(--brand-soft); color: var(--brand); }
.st-released, .st-sold { background: var(--ok-soft); color: var(--ok); }
.st-disputed, .st-refunded { background: var(--bad-soft); color: var(--bad); }
.ring { --size: 46px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; position: relative; flex: none; background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-family: var(--display); font-size: 15px; }
.ring-good { --rc: var(--ok); } .ring-mid { --rc: var(--gold); } .ring-low { --rc: var(--bad); }
.ring-sm { --size: 30px; } .ring-sm b { font-size: 11px; } .ring-sm::before { inset: 3px; }
.ring-lg { --size: 66px; } .ring-lg b { font-size: 21px; } .ring-lg::before { inset: 6px; }
.ring-xl { --size: 140px; } .ring-xl b { font-size: 42px; } .ring-xl::before { inset: 11px; }
.big-ring { display: flex; justify-content: center; margin: 18px 0; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars .muted { color: var(--line-2); }
.avatar { width: 50px; height: 50px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; flex: none; }
.avatar-lg { width: 84px; height: 84px; font-size: 34px; border-radius: 24px; }
.skeleton .thumb, .skeleton i { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
.skeleton i { display: block; height: 12px; border-radius: 6px; }
.skeleton i:nth-child(2) { width: 70%; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty .ic { width: 52px; height: 52px; color: var(--line-2); margin: 0 auto 12px; display: block; }
.loading { padding: 80px; text-align: center; color: var(--muted); }

/* ---------- Generic surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.note { background: var(--brand-soft); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; color: var(--ink-2); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.kv, .specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kv dt, .specs dt { color: var(--muted); }
.kv dd, .specs dd { margin: 0; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tile { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--surface-2); font-weight: 600; color: var(--ink-2); font-size: 13px; }
.row-off td { opacity: .5; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field > span { font-weight: 600; font-size: 14px; }
.field em { font-weight: 400; font-style: normal; color: var(--muted); font-size: 12px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.check { display: flex; gap: 10px; align-items: center; margin: 6px 0 12px; cursor: pointer; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg legend { grid-column: 1 / -1; }
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label > span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 10px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-weight: 600; height: 100%; transition: border-color .2s, background .2s; }
.seg label > span small { font-weight: 400; color: var(--muted); font-size: 12px; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.chip input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.phone-in { display: flex; direction: ltr; }
.phone-in span { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-inline-end: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); font-weight: 600; }
.phone-in input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.code-in { font-family: var(--display); font-size: 26px !important; letter-spacing: 12px; text-align: center; direction: ltr; }
.inline-form { display: flex; gap: 8px; margin: 12px 0; }
.inline-form input { flex: 1; }
.price-in { font-family: var(--display); font-size: 24px !important; font-weight: 700; }
#vhint.warn { color: var(--warn); font-weight: 600; }

/* ---------- Browse ---------- */
.browse { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { font-size: 18px; margin: 0; }
.results-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.results-head select { width: auto; margin-inline-start: auto; border-radius: 999px; padding: 9px 16px; }
.cats-strip, .pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.cats-strip::-webkit-scrollbar, .pills::-webkit-scrollbar, .shops-row::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.pill { white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none !important; transition: border-color .2s; }
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg-tabs { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 4px; margin-bottom: 12px; gap: 2px; }
.seg-tabs button { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.seg-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.only-mobile { display: none !important; }

/* ---------- Listing page ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.listing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { position: sticky; top: calc(var(--hdr-h) + 20px); }
.gallery-main { position: relative; background: var(--surface-2); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.tbtn { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; background: var(--surface-2); opacity: .7; transition: opacity .2s, border-color .2s; }
.tbtn.active, .tbtn:hover { border-color: var(--brand); opacity: 1; }
.tbtn img { width: 100%; height: 100%; object-fit: cover; }
.video-box { margin-top: 16px; }
.video-box video { border-radius: var(--r); width: 100%; background: #000; }
.l-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; font-weight: 700; }
.l-price { font-family: var(--display); font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); margin: 18px 0; }
.buy-box .actions { margin: 14px 0 0; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.trust-mini div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; color: var(--ink-2); padding: 10px 4px; border-radius: var(--r-sm); background: var(--surface-2); }
.trust-mini .ic { color: var(--brand); }
.buy-bar { display: none; }
.seller-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none !important; margin-bottom: 18px; transition: border-color .2s; }
.seller-card:hover { border-color: var(--brand); }
.specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.desc { margin-top: 18px; }
.desc p { white-space: pre-line; color: var(--ink-2); }
.fair { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--surface); margin-top: 12px; }
.fair-none { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.fair-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fair-range { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 4px 0 12px; }
.fair-bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); margin-bottom: 10px; }
.fair-bar .band { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: 4px; opacity: .6; }
.fair-bar .dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 1px 6px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }
[dir=rtl] .fair-bar .dot { transform: translate(50%, -50%); }

/* ---------- Check report ---------- */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; margin-top: 36px; }
.report-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.report-head h3 { margin: 0 0 6px; font-size: 20px; }
.report h4 { margin: 22px 0 10px; font-size: 15px; }
.tests { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.tests li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.tests .ti { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.tests .ts { margin-inline-start: auto; font-size: 12px; font-weight: 700; }
.test-pass .ti { background: var(--ok-soft); color: var(--ok); } .test-pass .ts { color: var(--ok); }
.test-fail .ti { background: var(--bad-soft); color: var(--bad); } .test-fail .ts { color: var(--bad); }
.test-skip .ti { background: var(--surface-3); color: var(--muted); } .test-skip .ts { color: var(--muted); }
.flags { list-style: none; padding: 0; margin: 0 0 8px; }
.flags li { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.device-info { margin-top: 18px; font-size: 14px; }
.device-info summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.device-info p { word-break: break-all; }
.report .note { margin-top: 18px; }

/* ---------- Self-check wizard ---------- */
.wizard { max-width: 660px; margin: 0 auto; padding: 32px; border-radius: var(--r-xl); }
.wiz-head { display: flex; gap: 16px; align-items: flex-start; }
.wiz-progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.wiz-progress span { display: block; height: 100%; background: var(--grad); transition: width .35s; }
.cat-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.q { font-weight: 600; margin-top: 16px; }
.yn { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.yn .btn { flex: 1; min-width: 140px; white-space: normal; text-align: center; }
.skip { display: block; margin: 14px auto 0; }
.cam { width: 100%; max-height: 380px; border-radius: var(--r); background: #000; object-fit: cover; }
.meter { height: 14px; background: var(--surface-3); border-radius: 7px; overflow: hidden; margin: 18px 0; }
.meter span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s; }
.touch-box { height: 220px; border: 2px dashed var(--brand); border-radius: var(--r); display: grid; place-items: center; font-family: var(--display); font-size: 52px; font-weight: 700; color: var(--brand); touch-action: none; user-select: none; }
.pulse { font-size: 64px; text-align: center; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.overlay { position: fixed; inset: 0; z-index: 100; touch-action: none; user-select: none; }
.touch-grid { display: grid; background: #fff; padding-top: 52px; }
.touch-grid i { border: 1px solid #d5ddea; display: block; }
.touch-grid i.on { background: #12c4b6; border-color: #12c4b6; }
.ov-bar { position: fixed; top: 8px; inset-inline: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.ov-bar > * { pointer-events: auto; }
.ov-bar span { background: rgba(11, 16, 32, .88); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.kbd { display: flex; flex-direction: column; gap: 4px; margin: 16px 0; font-size: 11px; overflow-x: auto; }
.kbd > div { display: flex; gap: 4px; }
.kbd kbd { flex: 1; min-width: 28px; padding: 9px 2px; text-align: center; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; background: var(--surface-2); font-family: inherit; }
.kbd kbd.space { flex: 5; }
.kbd kbd.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Sell / edit ---------- */
.sell { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sell-sec { padding: 24px; margin-top: 0; border-radius: var(--r-lg); }
.sell-sec h2 { font-size: 18px; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.check-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s; }
.check-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ph { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph .icon-btn { position: absolute; top: 5px; inset-inline-end: 5px; width: 28px; height: 28px; font-size: 12px; }
.ph-video { max-width: 240px; aspect-ratio: 16/9; margin-bottom: 10px; }
.video-sec { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.tools-row { margin-bottom: 16px; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; height: calc(100vh - var(--hdr-h) - 150px); min-height: 480px; }
.conv-list { border-inline-end: 1px solid var(--line); overflow-y: auto; }
.conv { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: background .15s; }
.conv:hover, .conv.active { background: var(--surface-2); }
.conv img, .conv-ph { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; color: var(--line-2); }
.conv-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-empty { margin: auto; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-head .btn { margin-inline-start: auto; }
.chat-safety { margin: 0; padding: 9px 18px; font-size: 12px; background: var(--accent-soft); color: var(--ink-2); }
.chat-safety .ic { width: 14px; height: 14px; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 75%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; border-end-start-radius: 6px; padding: 9px 14px; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 20px; border-end-end-radius: 6px; }
.msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg time { font-size: 11px; opacity: .65; }
.msg-sys { align-self: center; background: var(--brand-soft); color: var(--ink-2); font-size: 13px; padding: 7px 16px; border-radius: 999px; text-align: center; max-width: 90%; }
.composer { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.composer input { flex: 1; border-radius: 999px !important; }

/* ---------- Orders, account ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 11px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; transition: color .2s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--ink); }
.order-list, .my-list { display: flex; flex-direction: column; gap: 10px; }
.order-row, .my-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none !important; transition: border-color .2s; }
a.order-row:hover { border-color: var(--line-2); }
.order-row img, .my-row img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-inline-start: auto; }
.my-main { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; color: var(--ink); text-decoration: none !important; }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.order-detail > .card { padding: 24px; border-radius: var(--r-lg); }
.order-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.order-head img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; position: relative; }
.timeline li { counter-increment: s; font-size: 12px; text-align: center; color: var(--muted); padding-top: 38px; position: relative; }
.timeline li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); }
.timeline li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now::before { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.big-price { font-family: var(--display); font-size: 32px; font-weight: 700; margin: 10px 0 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.steps-mini { padding-inline-start: 20px; font-size: 14px; color: var(--ink-2); }
.review-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.star-pick { display: flex; gap: 4px; font-size: 32px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; }
.star-pick label { position: relative; cursor: pointer; color: var(--line-2); }
.star-pick:has(input[value="1"]:checked) label:nth-child(-n+1),
.star-pick:has(input[value="2"]:checked) label:nth-child(-n+2),
.star-pick:has(input[value="3"]:checked) label:nth-child(-n+3),
.star-pick:has(input[value="4"]:checked) label:nth-child(-n+4),
.star-pick:has(input[value="5"]:checked) label:nth-child(-n+5) { color: var(--gold); }
.auth { max-width: 450px; margin: 24px auto; padding: 36px 30px; text-align: center; border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.auth form { text-align: start; margin-top: 20px; }
.auth-logo svg { width: 68px; height: 68px; margin: 0 auto 14px; }
.shop-head { display: flex; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-xl); background: var(--surface); position: relative; overflow: hidden; }
.shop-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.shop-head h1 { font-size: 26px; }
.reviews { display: grid; gap: 10px; }
.review { padding: 16px; }
.admin-order { padding: 16px 18px; }

/* ---------- Featured shops ---------- */
.shops-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.shop-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.shop-card b { display: block; }

/* ---------- Offers & reports ---------- */
.coupons-table { margin-top: 18px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 18px; }
.tile-hero { background: var(--grad); color: #fff; border: 0; }
.tile-hero .muted { color: rgba(255, 255, 255, .82); }
.delta { font-size: 13px; font-weight: 700; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.tile-hero .delta { color: #fff; }
.rep-sec { padding: 20px 22px; margin-top: 0; border-radius: var(--r-lg); }
.rep-sec h2 { font-size: 17px; margin-bottom: 4px; }
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-box { position: relative; margin-top: 12px; }
.chart { display: block; overflow: visible; font-family: inherit; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .yl, .chart .xl { fill: var(--muted); font-size: 11px; }
.chart .bar path { fill: var(--brand); }
.chart .bar.on path { fill: var(--brand-2); }
.chart .bar.on .hit { fill: var(--brand-soft); }
.tip { position: absolute; top: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); border-radius: 12px; padding: 9px 12px; font-size: 13px; display: flex; flex-direction: column; pointer-events: none; min-width: 124px; }
.tip[hidden] { display: none; }
.tbl-toggle { margin-top: 12px; font-size: 14px; }
.tbl-toggle summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.hbars { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.hb-track { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.hb-bar { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.hb-val { font-weight: 600; white-space: nowrap; }
.low-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.low-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.low-list li a:first-child { flex: 1; min-width: 0; }

/* ---------- Modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 18, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-xl); padding: 30px 26px 26px; width: min(470px, 100%); max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--sh-3); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-wide { width: min(740px, 100%); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 14px; z-index: 300; transition: all .25s; box-shadow: var(--sh-3); max-width: calc(100% - 32px); font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-success { background: var(--ok); color: #fff; } .toast-error { background: var(--bad); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hdr-search { max-width: 280px; }
  .main-nav a { padding: 8px 9px; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .listing, .order-detail { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .main-nav { display: none; }
  .cat-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .view { padding-top: 16px; }
  section { margin-top: 32px; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: inline-flex !important; }
  .hdr { gap: 10px; }
  .hdr-search { display: none; }
  .hero { border-radius: var(--r-lg); padding: 30px 20px 26px; }
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 21px; }
  .search-big input { font-size: 15px; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .bento-item { padding: 16px; border-radius: var(--r); }
  .bento-item.wide { grid-column: 1 / -1; }
  .bento-item h3 { font-size: 15px; margin-top: 10px; }
  .bento-item p { font-size: 12.5px; }
  .bento-ic { width: 40px; height: 40px; border-radius: 12px; }
  .browse { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: static; }
  .filters.open { display: block; margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .price { font-size: 16px; }
  .card-title { font-size: 13.5px; }
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--hdr-h) - var(--tab-h) - 90px); border-radius: var(--r-lg); }
  .chat.has-active .conv-list { display: none; }
  .chat:not(.has-active) .thread { display: none; }
  .seg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard, .sell-sec { padding: 20px; }
  .tabbar { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 40; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a.active { color: var(--ink); font-weight: 700; }
  .tabbar a.active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .tabbar .dot-badge { position: absolute; top: 7px; inset-inline-end: calc(50% - 22px); }
  .tabbar .sell-fab { flex: none; width: 56px; height: 56px; margin: -20px 6px 0; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -6px rgba(10, 79, 196, .55); }
  .tabbar .sell-fab::before { display: none; }
  .tabbar .sell-fab .ic { width: 26px; height: 26px; }
  .toast { bottom: calc(var(--tab-h) + 18px); }
  .order-row .order-side { align-items: flex-start; }
  .my-row { flex-wrap: wrap; }
  .logo-text small { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .tile b { font-size: 20px; }
  .hbars li { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .report { padding: 20px; border-radius: var(--r-lg); }
  /* Product page: price + buy stay reachable at the bottom of the screen */
  .buy-bar { display: flex; position: fixed; inset-inline: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 35; align-items: center; gap: 12px; padding: 10px 16px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .buy-bar .bb-price { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; }
  .buy-bar .bb-price small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; color: var(--muted); }
  .buy-bar .btn { margin-inline-start: auto; }
  .has-buy-bar { padding-bottom: 80px; }
}
@media (max-width: 420px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat { padding: 12px 4px; font-size: 12px; border-radius: var(--r-sm); }
  .cat .ic { width: 24px; height: 24px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .cat-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-pick .cat { padding: 12px 4px; font-size: 12px; }
  .hdr { gap: 8px; }
  .hdr-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Growth: requests, leads, featured, follow ---------- */
.feat-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: linear-gradient(90deg, #f5b301, #ffcf4a); color: #3a2a00; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(245, 179, 1, .6); }
.chip-feat { background: color-mix(in srgb, var(--gold) 18%, transparent); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.cta-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cta { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cta:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand); }
.cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.cta b { font-family: var(--display); font-size: 18px; }
.cta > span:nth-child(2) span { color: var(--muted); font-size: 14px; }
.cta-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.cta-ic .ic { width: 26px; height: 26px; }
.cta-sell .cta-ic { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.req-hero { max-width: 780px; margin: 0 auto 8px; }
.req-row { border: 1px solid var(--line); border-radius: var(--r); }
.req-kind { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.req-sell { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.offer { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.offer.is-accepted { border: 2px solid var(--ok); }
.offer-shop { display: flex; gap: 10px; align-items: center; }
.offer-shop .avatar { width: 42px; height: 42px; font-size: 17px; border-radius: 13px; text-decoration: none; }
.offer-price { font-family: var(--display); font-size: 24px; font-weight: 700; }
.offer-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.offer-listing .listing-card .thumb { aspect-ratio: 16 / 10; }
.sell-sec.accepted { border: 2px solid var(--ok); }
.leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lead { padding: 18px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.lead h3 { font-size: 17px; margin: 8px 0 0; }
.lead-budget { font-size: 14px; }
.lead-budget b { font-family: var(--display); font-size: 18px; }
.lead-form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.shop-info { flex: 1; min-width: 0; }
.shop-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; margin-bottom: 12px; }
.shop-meta .ic { width: 16px; height: 16px; color: var(--brand); }
@media (max-width: 760px) {
  .cta-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cta { padding: 16px; gap: 12px; }
  .cta .btn { display: none; }
  .shop-head { flex-direction: column; align-items: flex-start; padding: 22px; }
}
.icon-btn.bell { position: relative; }
.icon-btn.bell .dot-badge { position: absolute; top: -4px; inset-inline-end: -4px; }

/* ---------- Shop storefront ---------- */
.store-cover { height: clamp(140px, 22vw, 240px); border-radius: var(--r-xl); overflow: hidden; background: var(--grad); position: relative; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-cover[data-empty]::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 20%, rgba(255, 255, 255, .25), transparent 60%); }
.store-head { display: flex; gap: 22px; align-items: flex-end; padding: 0 24px; margin-top: -48px; position: relative; flex-wrap: wrap; }
.store-logo { width: 112px; height: 112px; border-radius: 30px; background: var(--surface); border: 4px solid var(--bg); box-shadow: var(--sh-2); display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--brand); flex: none; }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-id { flex: 1; min-width: 240px; padding-top: 56px; }
.store-id h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.store-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.store-stats b { font-family: var(--display); color: var(--ink); }
.store-bio { color: var(--ink-2); max-width: 680px; margin-bottom: 8px; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.store-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 32px 0 12px; }
.store-bar .seg-tabs { margin: 0; }
.store-bar .seg-tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.store-bar .seg-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.store-bar .seg-tabs a span { font-size: 12px; color: var(--muted); margin-inline-start: 4px; }
.store-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; height: 44px; }
.store-search:focus-within { border-color: var(--brand); }
.store-search input { border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 100%; background: transparent !important; }
.store-search .ic { color: var(--muted); }
.store-bar select { width: auto; border-radius: 999px; padding: 10px 16px; }
.pill .muted { font-size: 12px; margin-inline-start: 2px; }
.shop-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.media-pick { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.media-pick .field-l { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.mp-logo { width: 96px; height: 96px; border-radius: 24px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; color: var(--muted); }
.mp-cover { height: 96px; border-radius: var(--r); background: var(--grad); overflow: hidden; margin-bottom: 8px; }
.mp-logo img, .mp-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Notifications ---------- */
.notif-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.notif-list { overflow: hidden; border-radius: var(--r-lg); }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: background .15s; position: relative; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--brand-soft); }
.notif.unread::before { content: ""; position: absolute; inset-inline-start: 6px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); transform: translateY(-50%); }
.notif-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand); flex: none; }
.notif-body { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.cat-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; margin-bottom: 12px; }
.cat-checks .check { margin: 4px 0; }
@media (max-width: 1000px) { .notif-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .store-head { padding: 0 8px; margin-top: -40px; gap: 12px; }
  .store-logo { width: 88px; height: 88px; font-size: 34px; border-radius: 24px; }
  .store-id { padding-top: 0; min-width: 100%; }
  .store-bar { margin-top: 24px; }
  .store-bar .seg-tabs { width: 100%; justify-content: space-between; }
  .store-bar .seg-tabs a { flex: 1; text-align: center; padding: 8px 6px; }
  .media-pick { grid-template-columns: minmax(0, 1fr); }
}

/* Back-office: two-step verification gate */
.narrow-card { max-width: 460px; margin: 32px auto; padding: 28px; text-align: start; }
.narrow-card > .ic { width: 40px; height: 40px; color: var(--brand); }
.secret-box { display: flex; align-items: center; gap: 10px; background: var(--bg-2, var(--brand-soft)); border-radius: var(--r-sm); padding: 12px 14px; margin: 8px 0 12px; flex-wrap: wrap; }
.secret-box code { font-size: 16px; letter-spacing: 1px; word-break: break-all; flex: 1; }
.note.ok { background: var(--ok-soft, var(--brand-soft)); color: var(--ok, var(--ink-2)); }
#code input[name=code] { font-size: 22px; letter-spacing: 6px; text-align: center; }

/* Back-office: operations room and order page */
.pill-bad, .chip-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.small.bad, p.bad { color: var(--bad); }
.queue-item { display: block; color: inherit; text-decoration: none; border-inline-start: 4px solid var(--brand); }
.queue-item.late { border-inline-start-color: var(--bad); }
.queue-item:hover { box-shadow: var(--shadow-2, 0 4px 18px rgba(0,0,0,.08)); }
.ops-timeline { list-style: none; margin: 8px 0 16px; padding: 0; border-inline-start: 2px solid var(--line, var(--surface-3)); }
.ops-timeline li { position: relative; padding: 6px 16px 10px; }
.ops-timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.ops-timeline li.internal::before { background: var(--warn); }
.ops-timeline li.internal { background: var(--warn-soft); border-radius: var(--r-sm); }
.ops-timeline p { margin: 4px 0 0; }
.bank-box pre { white-space: pre-wrap; font: inherit; font-weight: 700; background: var(--surface); padding: 10px 12px; border-radius: var(--r-sm); margin: 8px 0; }
details.events { margin-top: 16px; }
details.events summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.events ol { margin: 8px 0 0; padding-inline-start: 20px; font-size: 14px; }

/* Finance */
.form-card { padding: 20px; margin: 16px 0; max-width: 560px; }
.tile-bad b { color: var(--bad); }
.tile .small { display: block; margin-top: 2px; }

/* Trust and safety: evidence, dispute workspace, reports */
.ph { position: relative; }
.ph-tag { position: absolute; inset-inline-start: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
a.ph img, a.ph video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); display: block; }
.evidence { margin-top: 16px; }
.pre { white-space: pre-wrap; }
.resolve-box { padding: 16px; margin: 16px 0; border: 2px solid var(--brand); }
.resolve-box h3 { margin-top: 0; }
details.snapshot { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
details.snapshot summary { cursor: pointer; }
.staff-chat { display: grid; gap: 8px; max-height: 420px; overflow: auto; padding: 8px; background: var(--surface-2); border-radius: var(--r-sm); }
.sc-msg { padding: 8px 12px; border-radius: 12px; background: var(--surface); max-width: 85%; }
.sc-msg p { margin: 2px 0 0; white-space: pre-wrap; }
.sc-buyer { justify-self: start; }
.sc-seller { justify-self: end; background: var(--brand-soft); }
.sc-system { justify-self: center; background: transparent; font-size: 13px; color: var(--muted); text-align: center; }
.report-item .my-row { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.rp-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); flex: none; }

/* System */
.switch-list { display: grid; gap: 8px; margin-bottom: 16px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.switch-row.off { border-inline-start: 4px solid var(--bad); }

/* KPIs, CRM, legal, consent */
.kpi-tiles .tile { position: relative; }
.kpi-def { display: block; margin-top: 6px; line-height: 1.4; }
.delta { font-size: 12px; font-weight: 600; margin-inline-start: 6px; }
.delta.good { color: var(--ok); }
.delta.bad { color: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px; background: var(--surface-2); border-radius: var(--r-sm); }
.bar { flex: 1; min-width: 3px; height: var(--h); min-height: 2px; background: var(--brand); border-radius: 3px 3px 0 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.term-list { margin: 0; padding-inline-start: 22px; }
.term-list li { margin: 4px 0; }
.lead.late { border-inline-start: 4px solid var(--bad); }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.check-line input { margin-top: 3px; }
.legal { padding: 24px; max-width: 760px; margin: 0 auto; line-height: 1.8; }
.legal h2 { font-size: 18px; margin: 20px 0 6px; }
.consent-bar { position: fixed; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.18); border-radius: var(--r-md, 14px); padding: 12px 16px; font-size: 14px; }
@media (min-width: 900px) { .consent-bar { bottom: 20px; max-width: 720px; margin-inline: auto; } }

@media (max-width: 720px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band div:nth-child(3) { border-inline-start: 0; }
  .stats-band div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .step { padding: 18px; }
  .hero-trust { flex-direction: column; gap: 8px; }
}
@media (min-width: 721px) and (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .hdr-actions #lang { padding-inline: 10px; font-size: 12px; } .hdr-actions { gap: 4px; } }

/* ==========================================================================
   v3 identity layer: glass controls and one consistent type scale.
   Placed last so it sets the final look for buttons and text everywhere.
   ========================================================================== */
body { font-size: 16px; line-height: 1.75; }
h1, .page-title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; line-height: 1.3; }
h2, .sec-title { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; line-height: 1.35; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.small, small { font-size: 13.5px; }
.muted { color: var(--muted); }
p { max-width: 72ch; }
section { margin-top: 52px; }

/* Primary: the logo gradient under a glass sheen. */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.btn-primary { position: relative; background: var(--grad); color: #fff; border: 1px solid rgba(255, 255, 255, .28); overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 24px -10px rgba(10, 79, 196, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary::after { content: ""; position: absolute; inset: 0 0 50% 0; z-index: -1; background: linear-gradient(to bottom, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn-primary:hover:not(:disabled) { background: var(--grad); filter: brightness(1.06) saturate(1.05); box-shadow: 0 14px 30px -10px rgba(10, 79, 196, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
/* Secondary and icon buttons: frosted glass. */
.btn-ghost, .icon-btn { background: var(--glass-btn); color: var(--ink); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 8px -4px rgba(12, 26, 46, .12); }
.btn-ghost:hover, .icon-btn:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand); }
.btn-danger { background: linear-gradient(120deg, #c62f45, #e0566a); border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.fav-btn { background: var(--glass-btn); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-edge); }

/* Header: frosted bar, logo-gradient active nav. */
.site-hdr { background: color-mix(in srgb, var(--bg) 72%, transparent); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.hdr-search { background: var(--glass-btn); border: 1px solid var(--glass-line); }

/* Pills and tabs read as glass chips. */
.pill { background: var(--glass-btn); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill.active { background: var(--grad); color: #fff; border-color: transparent; }
.tab.active { color: var(--brand); border-color: var(--brand); }

/* Categories: clean tiles with the brand icon. */
.cat { border-radius: var(--r); }
.cat .ic { color: var(--brand); }
.cat:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--sh-2); }

/* Mobile tab bar: glass, gradient sell button. */
.tabbar { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }

/* v3: remaining components in the logo's colours */
.chip-new { background: var(--grad); color: #fff; }
.feat-badge { background: var(--glass-btn); color: var(--brand); border: 1px solid var(--glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 14px -6px rgba(10, 63, 176, .4); }
.fair-bar .dot { background: var(--brand); }
.msg.mine { background: var(--grad); border-color: transparent; }
.timeline li.now::before { background: var(--grad); }
.touch-grid i.on { background: var(--accent); border-color: var(--accent); }
.card { box-shadow: var(--sh-1); }
.note { border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent); }
.tile b { color: var(--ink); }
.table th { background: var(--surface-2); }
.modal { border: 1px solid var(--glass-edge); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 1px 0 var(--glass-edge); }
.sell-sec h2 { display: flex; align-items: center; gap: 10px; }
.sell-sec h2::before { content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: var(--grad); flex: none; }
.toast { background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.empty .ic { color: color-mix(in srgb, var(--brand) 35%, var(--line-2)); }

/* ---------- Jihazak Grade (AI inspection) ---------- */
.grade-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(10, 63, 176, .45); }
.grade-badge.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 12px; box-shadow: none; }
.grade-badge.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; }
.grade-badge.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 34px; }
.g-A { background: var(--grad); }
.g-B { background: linear-gradient(135deg, #0a5fd8, #5aa2ff); }
.g-C { background: linear-gradient(135deg, #b4690e, #e8a23a); }
.g-D { background: linear-gradient(135deg, #c62f45, #e8667a); }
.g-unclear { background: var(--muted); }
.grade-chip { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 15px; border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(0, 0, 0, .35); }
.chip-ai { background: var(--brand-soft); color: var(--brand); gap: 6px; }
.chip-ai .ic { width: 14px; height: 14px; }
.grade-report { padding: 22px; margin-top: 18px; }
.grade-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.grade-head h3 { margin: 2px 0 6px; font-size: 20px; }
.grade-report h4 { font-size: 15px; margin: 16px 0 8px; }
.defects { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.defects li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14.5px; }
.defects li.sev-major { background: var(--bad-soft); }
.defects li.sev-moderate { background: var(--warn-soft); }

.ai-hero { padding: clamp(22px, 4vw, 36px); background: var(--grad-soft), var(--surface); margin-bottom: 16px; }
.ai-hero .lead { max-width: 640px; }
.ai-device .cat-pick { margin: 14px 0 18px; }
.ai-progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-bottom: 18px; }
.ai-progress span { display: block; height: 100%; width: var(--p); background: var(--grad); border-radius: 4px; transition: width .3s; }
.ai-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.ai-step { padding: 16px; display: grid; gap: 12px; }
.ai-step.done { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ai-step-head { display: flex; gap: 12px; align-items: flex-start; }
.ai-step-head p { margin: 4px 0 0; }
.ai-num { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--brand); background: var(--brand-soft); }
.ai-step.done .ai-num { background: var(--grad); color: #fff; }
.ai-shot { display: flex; gap: 12px; align-items: center; }
.ai-shot img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ai-q { font-size: 13px; font-weight: 600; }
.ai-q.ok { color: var(--ok); } .ai-q.dark, .ai-q.blur { color: var(--warn); }
.ai-step .file-btn { justify-self: start; }
.ai-working { text-align: center; padding: 48px 20px; max-width: 520px; margin: 30px auto; }
.ai-scan { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 28px; display: grid; place-items: center; background: var(--grad); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(10, 79, 196, .6); }
.ai-scan .ic { width: 42px; height: 42px; }
.ai-scan::after { content: ""; position: absolute; inset-inline: 0; height: 30%; top: -30%; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .55), transparent); }
@media (prefers-reduced-motion: no-preference) { .ai-scan::after { animation: scan 1.6s ease-in-out infinite; } }
@keyframes scan { to { top: 100%; } }

/* ---------- Home: simplified (search tabs + budget browse) ---------- */
.search-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--glass-btn); border: 1px solid var(--glass-line); border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.search-tabs button { border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 7px 18px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.search-tabs button.active { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.budgets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.budget { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-size: 15px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.budget:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-2px); box-shadow: var(--sh-2); }
.budget b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 720px) { .budgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================================================================
   Browse page v2 — simplified & professional, with creative glass controls
   ====================================================================== */
.browse2 { max-width: 1240px; margin: 0 auto; }
body.no-scroll { overflow: hidden; }

/* Creative glass button: frosted pane, inner top highlight, soft depth, hover lift */
.btn-glass { position: relative; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--glass-btn); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -8px 20px -16px rgba(12,26,46,.4), 0 6px 18px -10px rgba(12,26,46,.22);
  transition: transform .18s, box-shadow .25s, border-color .25s, color .2s; }
.btn-glass::after { content: ""; position: absolute; inset: 1px 1px 55% 1px; border-radius: 999px 999px 40% 40% / 999px 999px 24px 24px; background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent); pointer-events: none; }
.btn-glass:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 45%, var(--glass-edge)); color: var(--brand); box-shadow: inset 0 1px 0 var(--glass-edge), 0 12px 26px -12px rgba(10,63,176,.4); }
.btn-glass:active { transform: translateY(0); }
.btn-glass .ic { width: 18px; height: 18px; }
.fbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* Sticky top toolbar */
.browse-bar { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 20; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--glass-line); border-radius: 999px;
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: var(--sh-1); }
.bar-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px; border-radius: 999px;
  background: var(--glass-btn); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-edge); }
.bar-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bar-search .ic { color: var(--muted); flex: none; }
.bar-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; height: 100%; }
.bar-clear { border: 0; background: var(--surface-3); color: var(--ink-2); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; flex: none; font-size: 12px; }
.bar-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.glass-select { position: relative; }
.glass-select::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 7px; height: 7px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.glass-select select { appearance: none; -webkit-appearance: none; height: 44px; border-radius: 999px; padding: 0 38px 0 18px; border: 1px solid var(--glass-line); background: var(--glass-btn); color: var(--ink); font-weight: 600; cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--glass-edge) !important; }
.glass-select select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) !important; }

/* Segmented glass control (type) */
.seg-glass { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 14px; border-radius: 999px;
  background: var(--glass-btn); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--glass-edge); }
.seg-glass button { border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: color .2s; }
.seg-glass button.active { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px -8px rgba(10,79,196,.6); }

/* Category pills as glass buttons */
.cats-strip button.pill { cursor: pointer; }

/* Applied filter chips */
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); color: var(--brand); transition: background .2s; }
.fchip span { opacity: .7; font-size: 12px; }
.fchip:hover { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.fchip.clear { background: transparent; border-color: var(--line-2); color: var(--muted); }
.results-meta { margin-bottom: 12px; }

/* Filter drawer */
.drawer-wrap { position: fixed; inset: 0; z-index: 120; }
.drawer-bg { position: absolute; inset: 0; background: rgba(12,26,46,.4); opacity: 0; transition: opacity .3s; }
.drawer-wrap.show .drawer-bg { opacity: 1; }
.drawer { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 92vw); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border-inline-start: 1px solid var(--glass-edge);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--sh-3);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.9,.3,1); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-wrap.show .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-body { padding: 20px 22px; overflow-y: auto; display: grid; gap: 14px; }
.drawer-checks { display: grid; gap: 10px; margin-top: 4px; }
.drawer-foot { display: flex; gap: 10px; align-items: center; margin-top: 6px; position: sticky; bottom: 0; background: linear-gradient(to top, var(--surface), transparent); padding-top: 10px; }
.drawer-foot .btn-block { flex: 1; }

@media (max-width: 720px) {
  .drawer { inset-inline: 0; inset-block: auto 0; top: auto; width: auto; max-height: 88vh; border-radius: var(--r-xl) var(--r-xl) 0 0; border: 1px solid var(--glass-edge); border-bottom: 0; transform: translateY(100%); }
  [dir="rtl"] .drawer { transform: translateY(100%); }
  .drawer-wrap.show .drawer { transform: none; }
  .browse-bar { top: calc(var(--hdr-h) + 4px); }
}

/* ---------- Glass category + budget tiles (match the glass buttons) ---------- */
.cat, .budget { position: relative; overflow: hidden; background: var(--glass-btn); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 18px -12px rgba(12, 26, 46, .22);
  transition: transform .2s, box-shadow .25s, border-color .25s, color .2s; }
.cat::after, .budget::after { content: ""; position: absolute; inset: 1px 1px 58% 1px; border-radius: inherit;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--glass-edge) 85%, transparent), transparent); pointer-events: none; }
.cat > *, .budget > * { position: relative; z-index: 1; }
.cat:hover, .budget:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--glass-edge));
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 14px 30px -14px rgba(10, 63, 176, .42); }
.cat.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
