/* ── קהילת הספקים — shared styles (tokens per DESIGN.md) ─────────────── */
@font-face {
  font-family: 'Fb Einstein';
  src: url('https://framerusercontent.com/assets/u2WbgwEDEFwX2TDctJdlrWk.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fb Einstein';
  src: url('https://framerusercontent.com/assets/g0Zk0omowvPwux40nf404nvj8.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fb Einstein';
  src: url('https://framerusercontent.com/assets/l0xw27dZtCJNxRqQWeheaD2fM0.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg:         #0A0A0A;
  --bg-card:    #111111;
  --bg-card2:   #141414;
  --border:     rgba(255,255,255,0.08);
  --text:       #FFFFFF;
  --text-muted: rgba(255,255,255,0.55);
  --accent:       #3B82F6;
  --accent-hover: #2563EB;
  --accent-soft:  rgba(59,130,246,0.12);
  --success: #10B981;
  --error:   #EF4444;
  --font: 'Fb Einstein', 'IBM Plex Sans Hebrew', sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
::selection { background: var(--accent-soft); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* ── Topbar ── */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.topbar-in {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px;
}
.topbar-logo { flex-shrink: 0; }
.topbar-logo img { height: 22px; width: auto; }
.topbar-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  padding-inline-start: 16px; border-inline-start: 1px solid var(--border);
}
.topbar-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.topbar-nav a, .topbar-nav button {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 12px; font-size: 14px;
  color: var(--text-muted); background: none; border: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.topbar-nav a:hover, .topbar-nav button:hover { color: var(--text); background: var(--bg-card2); }
.topbar-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.auth-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 4px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 13.5px;
}
.auth-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; padding-block: 8px; }
  .topbar-title { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: none; color: var(--text);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  font-size: 15px; font-weight: 500;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: var(--bg-card2); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 13.5px; }

/* ── Cards / sections ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.section-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }

/* ── Category chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; min-height: 30px;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--accent-soft); color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.25);
}
.chip-muted { background: var(--bg-card2); color: var(--text-muted); border-color: var(--border); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 12px; font-size: 14.5px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  transition: all .2s var(--ease);
}
.cat-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.cat-tab.active { background: var(--accent-soft); color: #93c5fd; border-color: rgba(59,130,246,0.4); font-weight: 700; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.input, textarea.input, select.input {
  width: 100%; min-height: 44px;
  background: var(--bg-card2); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 15px; font-family: inherit;
  transition: border-color .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 88px; line-height: 1.6; }

/* ── Avatars ── */
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: #93c5fd;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 96px; height: 96px; font-size: 34px; }

/* ── Feed post ── */
.post-card { padding: 20px 22px; margin-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-author { font-weight: 700; font-size: 15px; }
.post-author:hover { color: #93c5fd; }
.post-meta { color: var(--text-muted); font-size: 12.5px; }
.post-content { white-space: pre-wrap; word-break: break-word; font-size: 15.5px; margin-bottom: 12px; }
.post-media { border-radius: 12px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); }
.post-media img, .post-media video { width: 100%; max-height: 480px; object-fit: contain; background: #000; }
.post-actions { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 12px; border-radius: 10px;
  background: none; border: none; color: var(--text-muted); font-size: 13.5px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.action-btn:hover { color: var(--text); background: var(--bg-card2); }
.action-btn.liked { color: #f87171; }
.action-btn.danger:hover { color: var(--error); }
.comments-box { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; display: grid; gap: 12px; }
.comment-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-bubble { background: var(--bg-card2); border-radius: 12px; padding: 8px 14px; flex: 1; min-width: 0; }
.comment-bubble .who { font-size: 13px; font-weight: 700; }
.comment-bubble .txt { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.comment-bubble .t { font-size: 11.5px; color: var(--text-muted); }

/* ── Composer ── */
.composer { padding: 18px 20px; margin-bottom: 26px; display: flex; gap: 14px; align-items: flex-start; }
.composer .grow { flex: 1; }
.composer-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ── Empty state ── */
.empty {
  text-align: center; padding: 56px 24px; color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.14); border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 10px; }
.empty h3 { color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ── Dialog ── */
dialog.sheet {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; width: min(480px, calc(100vw - 32px));
  margin: auto;
}
dialog.sheet::backdrop { background: rgba(0,0,0,0.65); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head h3 { font-size: 18px; font-weight: 900; }
.sheet-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; line-height: 1; min-width: 44px; min-height: 44px; border-radius: 10px;
}
.sheet-close:hover { color: var(--text); background: var(--bg-card2); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--bg-card2); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 20px; font-size: 14.5px; z-index: 90;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0; translate: 0 8px; transition: opacity .25s var(--ease), translate .25s var(--ease);
  pointer-events: none; max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; translate: 0 0; }
.toast.err { border-color: rgba(239,68,68,0.5); }

/* ── Unread badge (topbar "הודעות" + chat inbox rows) ── */
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Rank badge (search top-3) ── */
.rank-badge {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  background: var(--accent); color: #fff;
}
.rank-2 { background: rgba(255,255,255,0.16); }
.rank-3 { background: rgba(255,255,255,0.09); color: var(--text-muted); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 80px;
  padding: 32px 0 44px; color: var(--text-muted); font-size: 13.5px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer a:hover { color: var(--text); }

/* ── Skeleton ── */
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: skel 1.4s infinite; }
@keyframes skel { to { background-position: -200% 0; } }

.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ── Quote-requests inbox (supplier's own profile) ────────────────────────────────────────
   Added 2026-07-26 with the inbox itself — quote_requests had been write-only, so nothing had
   ever rendered a row. Contact details are forced LTR: phone numbers and emails inside an RTL
   paragraph otherwise reorder into something that cannot be read or dialled. */
.quote-row { padding: 12px 0; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.quote-row:first-of-type { border-top: 0; }
.quote-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quote-contact { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.quote-contact a { direction: ltr; unicode-bidi: isolate; }
.quote-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
