/* PhoneX — "לוח יד שנייה" (24/09/2026). סקיצות שנבחרו: 1א טאב · 2א שורות · 3ב כפתורים בכרטיס-המוכר ·
   4א אשף שאלה-למסך · 5א כרטיס-למודעה · 6ב (ב-/admin). לב = אייקון SVG (יוסי: "לב נעים, לא אימוג׳י").
   עצמאי: עובד גם בעמוד-הבית (index.html) וגם בעמודי Astro — אותם צבעים של האתר, בלי תלות ב-global.css. */
.bd{--bd-bg:#f5efe6;--bd-sf:#fffcf8;--bd-sf2:#ede0d0;--bd-line:#e0c9b0;--bd-ink:#2c2c2c;--bd-mut:#6b5639;--bd-soft:#a8957a;
  --bd-br:#4a9ebb;--bd-brd:#3585a8;--bd-navy:#2c3e50;--bd-ok:#16a34a;--bd-okbg:#dcfce7;--bd-oktx:#166534;--bd-wa:#1fa855;
  --bd-heart:#e0445e;--bd-warn:#b45309;--bd-warnbg:#fdf1dc;--bd-bad:#b91c1c;--bd-badbg:#fde2e2;
  font-family:'Heebo',system-ui,sans-serif;color:var(--bd-ink);direction:rtl;text-align:right}
.bd *,.bd-sheet *{box-sizing:border-box}
.bd button{font-family:inherit}
.bd a{color:inherit;text-decoration:none}
.bd img{display:block;max-width:100%}
.bd-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ── כותרת הטאב ── */
.bd-hero{background:var(--bd-navy);color:#fff;border-radius:18px;padding:18px 18px 16px;margin:0 0 14px;display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.bd-hero h2,.bd-hero h1{margin:0;font-size:22px;font-weight:900;line-height:1.25}
.bd-hero p{margin:4px 0 0;font-size:14px;opacity:.8}
.bd-hero .bd-post{flex:0 0 auto}
@media(max-width:640px){.bd-hero .bd-post{display:none}}

/* ── סרגל חיפוש/סינון ── */
.bd-tools{display:grid;gap:9px;margin-bottom:10px}
.bd-search{position:relative}
.bd-search input{width:100%;height:46px;border:1px solid var(--bd-line);background:var(--bd-sf);border-radius:12px;padding:0 44px 0 14px;font:inherit;font-size:16px;color:var(--bd-ink)}
.bd-search input:focus{outline:none;border-color:var(--bd-br);box-shadow:0 0 0 4px rgba(74,158,187,.14)}
.bd-search svg{position:absolute;top:50%;right:14px;transform:translateY(-50%);width:19px;height:19px;stroke:var(--bd-soft)}
.bd-chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:1px 0 3px}
.bd-chips::-webkit-scrollbar{display:none}
.bd-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--bd-line);background:var(--bd-sf);color:var(--bd-ink);border-radius:99px;padding:7px 13px;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.bd-chip.on{background:var(--bd-navy);color:#fff;border-color:var(--bd-navy)}
.bd-chip .n{background:var(--bd-heart);color:#fff;border-radius:99px;font-size:11px;padding:0 6px;font-weight:800}
.bd-chip.on .n{background:#fff;color:var(--bd-navy)}
.bd-chip svg{width:15px;height:15px}
.bd-bar{display:flex;justify-content:space-between;align-items:center;color:var(--bd-mut);font-size:13px;gap:8px}
.bd-bar select{font:inherit;font-size:13px;border:1px solid var(--bd-line);background:var(--bd-sf);border-radius:8px;padding:5px 8px;color:var(--bd-ink)}

/* ── שורה ברשימה (2א) ── */
.bd-list{display:grid;gap:9px}
@media(min-width:900px){.bd-list{grid-template-columns:1fr 1fr}}
.bd-row{position:relative;background:var(--bd-sf);border:1px solid var(--bd-line);border-radius:14px;padding:9px;display:grid;grid-template-columns:84px 1fr 40px;gap:12px;align-items:center;transition:box-shadow .2s,border-color .2s}
.bd-row:hover{border-color:var(--bd-line2,#d8bfa3);box-shadow:0 4px 12px rgba(15,23,42,.07)}
.bd-row .ph{width:84px;height:84px;border-radius:10px;background:var(--bd-sf2);object-fit:cover}
.bd-row .t{font-weight:700;font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bd-row .t small{font-weight:500;color:var(--bd-mut);font-size:12.5px}
.bd-pr{font-weight:900;font-size:18px;color:var(--bd-navy);font-variant-numeric:tabular-nums;margin-top:2px}
.bd-m{color:var(--bd-mut);font-size:12.5px;line-height:1.5}
.bd-bat{display:inline-block;background:var(--bd-okbg);color:var(--bd-oktx);font-weight:700;border-radius:6px;padding:0 6px;font-size:12px}
.bd-bat.low{background:var(--bd-warnbg);color:var(--bd-warn)}
.bd-row .bd-heart{align-self:start}

/* ── הלב ── */
.bd-heart{all:unset;cursor:pointer;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.bd-heart:focus-visible{outline:2px solid var(--bd-br);outline-offset:2px}
.bd-heart svg{width:23px;height:23px;transition:transform .18s cubic-bezier(.3,1.6,.5,1)}
.bd-heart path{fill:none;stroke:#8a7a66;stroke-width:1.8;transition:fill .15s,stroke .15s}
.bd-heart.on path{fill:var(--bd-heart);stroke:var(--bd-heart)}
.bd-heart.pop svg{transform:scale(1.28)}
.bd-heart.float{position:absolute;top:10px;left:10px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(0,0,0,.18);z-index:2}
@media (prefers-reduced-motion:reduce){.bd-heart svg{transition:none}}

.bd-more{display:block;margin:14px auto 0;border:1px solid var(--bd-line);background:var(--bd-sf);border-radius:12px;padding:11px 22px;font-weight:700;cursor:pointer;color:var(--bd-navy)}
.bd-empty{background:var(--bd-sf);border:1px dashed var(--bd-line);border-radius:14px;padding:22px 16px;text-align:center;color:var(--bd-mut);font-size:15px;line-height:1.6}
.bd-empty b{display:block;color:var(--bd-ink);font-size:17px;margin-bottom:4px}
.bd-skel{height:104px;border-radius:14px;background:linear-gradient(90deg,var(--bd-sf2) 25%,var(--bd-sf) 50%,var(--bd-sf2) 75%);background-size:200% 100%;animation:bdSk 1.2s linear infinite}
@keyframes bdSk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.bd-skel{animation:none}}

/* ── כפתורים ── */
.bd-btn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;padding:12px 18px;font-weight:800;font-size:15px;background:var(--bd-brd);color:#fff;text-align:center;line-height:1.2}
.bd-btn:focus-visible{outline:2px solid var(--bd-navy);outline-offset:2px}
.bd-btn:disabled{opacity:.55;cursor:default}
.bd-btn.wa{background:var(--bd-wa)}
.bd-btn.gh{background:var(--bd-sf);color:var(--bd-navy);border:1px solid var(--bd-line)}
.bd-btn.full{display:flex;width:100%}
.bd-btn svg{width:18px;height:18px;flex:0 0 auto}
.bd-link{all:unset;cursor:pointer;color:var(--bd-brd);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.bd-fab{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:20;margin:14px auto 0;display:flex;width:min(100%,420px);box-shadow:0 8px 20px rgba(53,133,168,.35)}
@media(min-width:641px){.bd-fab{display:none}}

/* ── עמוד מודעה (3ב) ── */
.bd-item{max-width:760px;margin:0 auto}
.bd-gal{position:relative;border-radius:16px;overflow:hidden;background:var(--bd-sf2);margin-bottom:12px}
.bd-gal-s{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.bd-gal-s::-webkit-scrollbar{display:none}
.bd-gal-s img{flex:0 0 100%;width:100%;aspect-ratio:4/3;object-fit:contain;scroll-snap-align:center;background:#1b2430;cursor:zoom-in}
.bd-gal .cnt{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.55);color:#fff;border-radius:7px;padding:1px 8px;font-size:12.5px;font-variant-numeric:tabular-nums}
.bd-gal .dots{position:absolute;bottom:9px;inset-inline:0;display:flex;justify-content:center;gap:6px}
.bd-gal .dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.55)}
.bd-gal .dots i.on{background:#fff}
.bd-thumbs{display:flex;gap:6px;overflow-x:auto;margin:-4px 0 12px;scrollbar-width:none}
.bd-thumbs button{all:unset;cursor:pointer;flex:0 0 56px;height:56px;border-radius:8px;overflow:hidden;border:2px solid transparent}
.bd-thumbs button.on{border-color:var(--bd-br)}
.bd-thumbs img{width:100%;height:100%;object-fit:cover}
.bd-h1{font-size:22px;font-weight:900;margin:0;line-height:1.3;text-wrap:balance}
.bd-h1 small{display:block;font-size:14px;font-weight:500;color:var(--bd-mut);margin-top:2px}
.bd-bigpr{font-size:28px;font-weight:900;color:var(--bd-navy);margin:4px 0 12px;font-variant-numeric:tabular-nums}
.bd-kv{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}
@media(max-width:480px){.bd-kv{grid-template-columns:1fr 1fr}}
.bd-kv div{background:var(--bd-sf);border:1px solid var(--bd-line);border-radius:10px;padding:7px 10px}
.bd-kv span{display:block;font-size:12px;color:var(--bd-mut)}
.bd-kv b{font-size:15px}
.bd-seller{background:var(--bd-sf);border:1px solid var(--bd-line);border-radius:16px;padding:14px;display:grid;gap:12px;margin-bottom:12px}
.bd-seller .who{display:flex;gap:10px;align-items:center}
.bd-av{width:42px;height:42px;border-radius:50%;background:var(--bd-br);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px;flex:0 0 auto}
.bd-seller .who b{font-size:16px}
.bd-seller .acts{display:flex;gap:8px}
.bd-seller .acts .bd-btn{flex:1;padding:12px 8px}
.bd-seller .acts .bd-heart{flex:0 0 48px;height:48px;width:48px;border-radius:12px;border:1px solid var(--bd-line);background:var(--bd-sf)}
.bd-phone{background:#eef7ee;border-radius:10px;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.bd-phone b{font-size:18px;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.bd-desc{background:var(--bd-sf);border:1px solid var(--bd-line);border-radius:14px;padding:12px 14px;margin-bottom:12px;white-space:pre-line;line-height:1.65;font-size:15px;overflow-wrap:anywhere}
.bd-desc h2{font-size:15px;margin:0 0 4px;color:var(--bd-mut);font-weight:700}
.bd-ended{background:var(--bd-warnbg);color:#7a4a05;border-radius:12px;padding:12px 14px;margin-bottom:12px;font-weight:700;line-height:1.5}
.bd-ended.sold{background:#e9eef3;color:var(--bd-navy)}
.bd-safe{background:#f1f5f8;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.6;margin-bottom:12px}
.bd-safe b{display:block;margin-bottom:3px}
.bd-safe ul{margin:0;padding-inline-start:18px}
.bd-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--bd-mut);font-size:13px;margin:4px 0 18px}
.bd-sec{font-size:18px;font-weight:900;margin:18px 0 10px}

/* ── גיליון תחתון (סינון / כניסה / הודעה / דיווח) — יושב ב-body ── */
.bd-ov{position:fixed;inset:0;z-index:1000;background:rgba(20,28,38,.5);display:flex;align-items:flex-end;justify-content:center;animation:bdFade .15s}
@media(min-width:641px){.bd-ov{align-items:center}}
.bd-sheet{background:#fffcf8;width:min(100%,520px);max-height:92vh;overflow:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));direction:rtl;text-align:right;font-family:'Heebo',system-ui,sans-serif;color:#2c2c2c;animation:bdUp .2s cubic-bezier(.3,1,.4,1)}
@media(min-width:641px){.bd-sheet{border-radius:20px}}
@keyframes bdUp{from{transform:translateY(30px);opacity:.6}}
@keyframes bdFade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.bd-ov,.bd-sheet{animation:none}}
.bd-sheet .hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.bd-sheet .hd b{font-size:18px;font-weight:900;color:#2c3e50}
.bd-x{all:unset;cursor:pointer;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:20px;color:#6b5639}
.bd-x:focus-visible{outline:2px solid #4a9ebb}
.bd-f{display:grid;gap:5px;margin-bottom:13px}
.bd-f>label,.bd-f>.l{font-weight:700;font-size:14px}
.bd-f small{color:#6b5639;font-size:12.5px;line-height:1.5}
.bd-in{width:100%;font:inherit;font-size:16px;border:1px solid #e0c9b0;border-radius:10px;padding:11px 12px;background:#fff;color:#2c2c2c}
.bd-in:focus{outline:none;border-color:#4a9ebb;box-shadow:0 0 0 4px rgba(74,158,187,.14)}
textarea.bd-in{min-height:96px;resize:vertical;line-height:1.55}
.bd-2{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.bd-opts{display:flex;flex-wrap:wrap;gap:7px}
.bd-opt{all:unset;cursor:pointer;border:1.5px solid #e0c9b0;background:#fff;border-radius:10px;padding:8px 12px;font-weight:700;font-size:14px}
.bd-opt.on{border-color:#4a9ebb;background:#eaf5f9;color:#3585a8}
.bd-opt:focus-visible{outline:2px solid #4a9ebb}
.bd-err{color:#b91c1c;font-weight:700;font-size:14px;margin:6px 0}
.bd-okmsg{background:#dcfce7;color:#14532d;border-radius:10px;padding:10px 12px;font-weight:700;line-height:1.55}
.bd-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.55;cursor:pointer}
.bd-check input{width:20px;height:20px;margin-top:2px;flex:0 0 auto;accent-color:#3585a8}

/* ── אשף הפרסום (4א) ── */
.bd-post{max-width:560px;margin:0 auto}
.bd-steps{display:flex;gap:5px;margin:4px 0 16px}
.bd-steps i{flex:1;height:5px;border-radius:5px;background:var(--bd-line)}
.bd-steps i.on{background:var(--bd-br)}
.bd-q{font-size:21px;font-weight:900;color:var(--bd-navy);margin:0 0 4px;line-height:1.3}
.bd-qs{color:var(--bd-mut);margin:0 0 14px;font-size:14.5px;line-height:1.55}
.bd-pick{display:grid;gap:8px}
.bd-pick.g2{grid-template-columns:1fr 1fr}
.bd-pk{all:unset;box-sizing:border-box;cursor:pointer;background:var(--bd-sf);border:1.5px solid var(--bd-line);border-radius:12px;padding:12px 14px;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.bd-pk small{display:block;font-weight:500;color:var(--bd-mut);font-size:12.5px}
.bd-pk.on{border-color:var(--bd-br);background:#eaf5f9;color:var(--bd-brd)}
.bd-pk:focus-visible{outline:2px solid var(--bd-br)}
.bd-pk svg{width:26px;height:26px;stroke:currentColor;flex:0 0 auto}
.bd-pk.big{flex-direction:column;justify-content:center;padding:18px 10px;text-align:center}
.bd-nav{position:sticky;bottom:0;background:linear-gradient(transparent,var(--bd-bg) 30%);padding:18px 0 calc(10px + env(safe-area-inset-bottom,0px));display:flex;gap:9px;margin-top:10px}
.bd-nav .bd-btn{flex:1}
.bd-nav .bd-btn.gh{flex:0 0 auto}
.bd-models{max-height:52vh;overflow:auto;display:grid;gap:6px;padding:2px}
.bd-ups{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
@media(max-width:420px){.bd-ups{grid-template-columns:repeat(3,1fr)}}
.bd-up{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--bd-sf2)}
.bd-up img{width:100%;height:100%;object-fit:cover}
.bd-up .rm{all:unset;cursor:pointer;position:absolute;top:5px;left:5px;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;font-size:14px}
.bd-up .cv{position:absolute;bottom:0;inset-inline:0;background:rgba(44,62,80,.85);color:#fff;font-size:11px;font-weight:800;text-align:center;padding:2px}
.bd-up .ld{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.7);font-size:12px;font-weight:700;color:var(--bd-navy)}
.bd-add{all:unset;box-sizing:border-box;cursor:pointer;aspect-ratio:1;border-radius:12px;border:2px dashed var(--bd-line);display:grid;place-items:center;color:var(--bd-brd);font-weight:800;font-size:13px;text-align:center;background:var(--bd-sf)}
.bd-add svg{width:26px;height:26px;stroke:currentColor;display:block;margin:0 auto 3px}
.bd-prev{background:var(--bd-sf);border:1px solid var(--bd-line);border-radius:14px;padding:10px;margin-bottom:12px}

/* ── אזור אישי (5א) ── */
.bd-card{background:var(--bd-sf);border:1px solid var(--bd-line);border-radius:14px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:10px}
.bd-card .top{display:flex;gap:10px;align-items:center}
.bd-card .top img{width:56px;height:56px;border-radius:9px;object-fit:cover;flex:0 0 auto;background:var(--bd-sf2)}
.bd-card .top .i{flex:1;min-width:0}
.bd-card .top .i b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.35}
.bd-st{display:inline-block;font-size:12px;font-weight:800;border-radius:7px;padding:1px 8px;white-space:nowrap}
.bd-st.active{background:var(--bd-okbg);color:var(--bd-oktx)}.bd-st.pending{background:var(--bd-warnbg);color:var(--bd-warn)}
.bd-st.rejected{background:var(--bd-badbg);color:var(--bd-bad)}.bd-st.sold{background:#e9eef3;color:var(--bd-navy)}.bd-st.expired{background:#eee;color:#555}
.bd-acts{display:flex;gap:6px;flex-wrap:wrap}
.bd-acts button,.bd-acts a{all:unset;box-sizing:border-box;cursor:pointer;flex:1 1 auto;text-align:center;border:1px solid var(--bd-line);border-radius:9px;padding:8px 8px;font-weight:700;font-size:13px;color:var(--bd-navy);background:var(--bd-bg);min-width:70px}
.bd-acts .p{background:var(--bd-brd);color:#fff;border-color:var(--bd-brd)}
.bd-acts .d{color:var(--bd-bad)}
.bd-acts button:focus-visible,.bd-acts a:focus-visible{outline:2px solid var(--bd-br)}
.bd-rej{background:var(--bd-badbg);color:#7f1d1d;border-radius:9px;padding:8px 10px;font-size:13.5px;line-height:1.5}
.bd-thread{display:grid;gap:8px;margin-bottom:10px;max-height:58vh;overflow:auto;padding:4px}
.bd-msg{max-width:82%;padding:9px 12px;border-radius:14px;font-size:15px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.bd-msg.me{justify-self:start;background:#e3f0f6;border-bottom-right-radius:4px}
.bd-msg.them{justify-self:end;background:#fff;border:1px solid var(--bd-line);border-bottom-left-radius:4px}
.bd-msg small{display:block;font-size:11px;color:var(--bd-mut);margin-top:3px}
.bd-compose{display:flex;gap:8px;align-items:flex-end}
.bd-compose textarea{flex:1;min-height:48px}
.bd-dot{background:var(--bd-heart);color:#fff;border-radius:99px;font-size:11.5px;font-weight:800;padding:1px 7px}

/* בעמוד-הבית: אותם שוליים כמו שאר הטאבים */
#page-board{max-width:1100px;margin:0 auto;padding:16px 14px 34px}

/* ── טאב רביעי בעמוד-הבית: במובייל שמות קצרים (1א) ── */
.nav-tab .nt-s{display:none}
@media(max-width:600px){
  .nav-tabs .nav-tab .nt-l{display:none}
  .nav-tabs .nav-tab .nt-s{display:inline}
}
.bd-pick.g3{grid-template-columns:repeat(3,1fr)}
