:root{
  /* v2.0 "Organic Minimalism" brand: green is the core accent (buttons, active states, links); lime is the "pop" accent used only on the dark hero panel. */
  --brand:#178A4B; --brand-dark:#0F6B3A; --brand-light:#EEF8F1; --brand-softer:#F7FAF8;
  --pop:#B8E84E; --pop-ink:#0B4D2C;
  --accent:#2E5F44; --accent-dark:#1E4530;
  --bg:#F7FAF8; --card:#fff;
  --text:#1B1F23; --muted:#6B7280; --muted-2:#9aa39c; --meta:#4a534d; --border:#E9EEF1; --border-soft:#eef1ec;
  --orange:#e07a2b; --blue:#2b6ae0; --danger:#d64545; --warning:#b8860b;
  --dark-panel:#0B4D2C; --dark-panel-2:#14643D;
  --shadow-xs:0 1px 2px rgba(20,30,20,.05);
  --shadow-sm:0 2px 8px rgba(20,30,20,.06);
  --shadow-md:0 8px 24px rgba(20,30,20,.10);
  --shadow-lg:0 16px 48px rgba(20,30,20,.16);
  --glow-pop:0 4px 18px rgba(184,232,78,.35);
  --glow-brand:0 4px 18px rgba(23,138,75,.25);
  --radius-sm:8px; --radius-md:12px; --radius-lg:18px; --radius-full:999px;
  --ease:cubic-bezier(.2,.7,.3,1);
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --font-display:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  font-size:15px;
  line-height:1.5;
  -webkit-tap-highlight-color:transparent;
  /* Sticky-footer shell: header/main/footer are flex children in document order, main grows to
     fill any leftover viewport height so the footer never floats mid-page on short content (e.g.
     an empty My Posts state). Fixed/overlay elements (bottom nav, modals, sheets) are unaffected
     since they're already position:fixed and out of normal flow. */
  display:flex;flex-direction:column;min-height:100vh;
}
a{color:inherit;text-decoration:none}
::selection{background:var(--brand-light);color:var(--brand-dark)}
h1,h2,h3{letter-spacing:-.015em;font-family:var(--font-display)}
[data-lucide]{width:1em;height:1em}

/* ---------- header: flat frosted bar, logo mark + text-link nav + post/bell/avatar ---------- */
header{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
  box-shadow:0 4px 20px rgba(0,0,0,.02);
  padding:0 36px;
  transition:box-shadow .2s var(--ease), background .2s var(--ease), padding .18s var(--ease);
}
header.scrolled{background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(0,0,0,.07)}
.nav-capsule{
  max-width:1800px;margin:0 auto;min-height:84px;
  display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;
  background:none;backdrop-filter:none;border:none;box-shadow:none;padding:14px 0;border-radius:0;
  transition:min-height .18s var(--ease);
}
header.scrolled .nav-capsule{min-height:72px}
@media (max-width:760px){
  .nav-capsule{flex-direction:column;align-items:flex-start;gap:10px;padding:12px 0}
  .nav-capsule .section-tabs{width:100%;gap:18px;overflow-x:auto}
  .capsule-actions{width:100%;flex-wrap:wrap}
  header nav{width:100%}
}
header .logo{
  font-family:var(--font-display);font-size:26px;font-weight:800;color:var(--text);
  display:flex;align-items:center;gap:11px;letter-spacing:-.015em;
}
.logo-mark{
  width:48px;height:48px;border-radius:14px;background:#fff;color:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  box-shadow:0 2px 8px rgba(23,138,75,.15);border:1px solid var(--border-soft);
}
.logo-mark svg,.logo-mark [data-lucide]{width:24px;height:24px}
/* The Zineedo mark is a full-color SVG (green arrows + leaf), not a plain icon needing a colored
   backdrop like the old Lucide leaf did -- a green box behind it fights its own green arrows for
   contrast. A white box with a hairline border keeps the mark legible on the light header/footer
   and gives it a defined edge instead of floating directly on the page background. */
.logo-mark img{width:34px;height:34px;object-fit:contain}
.logo-accent{color:var(--brand)}
.nav-capsule .section-tabs{background:none;border-radius:0;padding:0;display:flex;gap:24px;margin:0}
.nav-capsule .section-tab{
  padding:0 0 3px;background:none;border:none;box-shadow:none;border-radius:0;
  color:var(--muted);font-size:14px;font-weight:600;border-bottom:2px solid transparent;
  outline:none;
}
.nav-capsule .section-tab:hover{color:var(--text);background:none}
.nav-capsule .section-tab.active{color:var(--brand);background:none;border-bottom-color:var(--brand)}
/* The "black rectangle around Requests" was the browser's default :focus ring on a clicked
   <button> — .section-tab never had its own focus style so it fell back to that. Replace with a
   deliberate, accessible focus-visible ring (keyboard nav only, never on mouse click). */
.nav-capsule .section-tab:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
.new-badge{
  display:inline-block;background:#f2994a;color:#fff;font-size:9px;font-weight:800;
  letter-spacing:.03em;padding:2px 6px;border-radius:99px;vertical-align:middle;margin-left:2px;
}
.more-menu-dropdown .new-badge{margin-left:auto}

/* ---- Quick-browse category icon row (visual pass) ---- */
/* ---- Quick category navigation rail (premium redesign) ----
   One unified, quiet visual treatment — no colorful circle-per-category, no giant icons, no
   boxed-off "More" control. Every item (including More) shares identical icon/label/spacing so
   the row reads as one navigation component, not a stack of independent cards. Hides scrollbar
   on overflow (mobile) while staying horizontally scrollable. */
.quick-categories-row{
  display:flex;align-items:flex-start;gap:14px;overflow-x:auto;padding:2px 2px 4px;margin:20px 0 24px;
  scrollbar-width:none;
}
.quick-categories-row::-webkit-scrollbar{display:none}
.quick-cat-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;
  background:transparent;border:1px solid transparent;border-radius:12px;
  cursor:pointer;flex-shrink:0;width:76px;padding:8px 4px 10px;
  transition:background .16s ease, border-color .16s ease, transform .16s ease;
}
.quick-cat-btn:hover{background:#EFF8F2;border-color:#DCEBE2;transform:translateY(-1px)}
.quick-cat-btn.active{background:var(--brand-light);border-color:#DCEBE2}
.quick-cat-icon{
  width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#F0F8F3;border:1px solid #DCEBE2;color:#16834A;flex-shrink:0;
}
.quick-cat-icon [data-lucide]{width:21px;height:21px}
.quick-cat-btn.active .quick-cat-icon{background:#fff;border-color:var(--brand)}
.quick-cat-label{
  font-size:12.5px;font-weight:500;color:#344054;text-align:center;line-height:1.25;
  max-width:72px;overflow-wrap:break-word;
}
.quick-cat-btn.active .quick-cat-label{font-weight:600;color:#087443}
@media (max-width:600px){
  .quick-categories-row{gap:10px;margin:14px 0 18px}
  .quick-cat-btn{width:64px;padding:6px 2px 8px}
  .quick-cat-icon{width:36px;height:36px}
  .quick-cat-icon [data-lucide]{width:16px;height:16px}
  .quick-cat-label{font-size:11px;max-width:62px}
}
.capsule-actions{display:flex;align-items:center;gap:16px}
.capsule-actions .primary-btn{
  margin-top:0;height:46px;padding:0 24px;border-radius:12px;
  background:var(--brand);color:#fff;box-shadow:0 4px 14px rgba(23,138,75,.3);
  display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:800;letter-spacing:-.005em;
}
.capsule-actions .primary-btn{transition:transform .15s var(--ease), box-shadow .15s var(--ease), background .15s}
.capsule-actions .primary-btn:hover{transform:translateY(-1px) scale(1.03);background:#2CA56A;box-shadow:0 10px 26px rgba(23,138,75,.4);filter:none}
.capsule-actions .primary-btn [data-lucide]{width:17px;height:17px}
header nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
header nav button, header nav a.btn{
  height:42px;padding:0 16px;background:#fff;color:var(--text);border:1px solid var(--border);
  border-radius:14px;font-weight:700;font-size:13px;cursor:pointer;
  transition:transform .12s var(--ease), box-shadow .12s var(--ease), background .12s;
}
header nav button:hover, header nav a.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm);background:var(--brand-softer)}
header nav button:active{transform:translateY(0)}
header nav .ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}
header nav .ghost:hover{background:var(--brand-softer);color:var(--brand-dark)}
header nav span{color:var(--text);font-weight:600}
#postBtn.primary-btn{margin-top:0}

/* ---- Desktop More/Community menu (nav redesign Stage 4) ----
   IMPORTANT: .more-menu-wrap sits in .capsule-actions as a SIBLING of <nav id="nav">, not inside
   it — so it never inherited the "header nav button{}" premium treatment (height/padding/border/
   radius/shadow/hover) that the other header controls get. That's why this button was rendering
   close to a bare unstyled button instead of a real pill control. Given its own complete styling
   here so it doesn't depend on being inside <nav>. */
.more-menu-wrap{position:relative}
.more-menu-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:41px;min-width:106px;padding:0 18px;
  background:#fff;color:var(--text);border:1px solid var(--border);border-radius:11px;
  font-weight:700;font-size:13.5px;font-family:var(--font-body);cursor:pointer;
  box-shadow:var(--shadow-xs);
  transition:transform .12s var(--ease), box-shadow .12s var(--ease), background .12s, border-color .12s;
}
.more-menu-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.08);background:var(--brand-softer);border-color:var(--border)}
.more-menu-btn:active{transform:translateY(0)}
.more-menu-btn[aria-expanded="true"]{background:var(--brand-light);border-color:var(--brand);color:var(--brand-dark)}
.more-menu-btn [data-lucide]{width:16px;height:16px;flex-shrink:0;transition:transform .15s var(--ease)}
.more-menu-btn[aria-expanded="true"] [data-lucide]{transform:rotate(180deg)}
.more-menu-dropdown{
  display:none;position:absolute;top:calc(100% + 10px);right:0;width:580px;max-width:calc(100vw - 48px);z-index:40;
  background:#fff;border:1px solid var(--border-soft);border-radius:16px;box-shadow:var(--shadow-lg);
  padding:18px;flex-direction:column;gap:14px;max-height:80vh;overflow-y:auto;
}
.more-menu-dropdown.open{display:flex}
/* Two-column grouped layout (Discover/Community left+right on row 1, Business/About left+right
   on row 2), matching the header design reference. Shared markup (moreMenuItemsHtml() in app.js)
   between this desktop dropdown and the mobile bottom-sheet #mobileMoreList — the mobile sheet
   overrides back to a single column (see the mobile media query). */
.more-menu-groups{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}
.more-menu-group{display:flex;flex-direction:column;gap:2px}
.more-menu-group-label{
  font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-2);
  padding:2px 8px 6px;
}
.more-menu-dropdown button, .more-menu-list button{
  display:flex;align-items:center;gap:10px;text-align:left;background:none;border:none;
  padding:9px 8px;border-radius:10px;font-size:13.5px;font-weight:600;color:var(--text);cursor:pointer;
  height:auto;width:100%;
}
.more-menu-dropdown button:hover, .more-menu-list button:hover{background:var(--brand-softer);color:var(--brand-dark);transform:none;box-shadow:none}
.more-menu-dropdown button [data-lucide], .more-menu-list button [data-lucide]{width:16px;height:16px;color:var(--muted);flex-shrink:0}
.more-menu-dropdown .new-badge, .more-menu-list .new-badge{margin-left:auto}
/* Highlighted "Our Impact" footer CTA — same destination as the Impact Tracker item above, given
   its own visual weight since Impact is one of Zineedo's differentiators from a plain listings marketplace. */
.more-menu-impact-cta{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;cursor:pointer;
  background:var(--brand-softer);border:1px solid var(--border-soft);border-radius:14px;
  padding:12px 14px;transition:background .15s, border-color .15s;
}
.more-menu-impact-cta:hover{background:var(--brand-light);border-color:var(--brand)}
.more-menu-impact-icon{
  width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid var(--border-soft);
  color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.more-menu-impact-icon [data-lucide]{width:18px;height:18px}
.more-menu-impact-text{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.more-menu-impact-text strong{font-size:13.5px;color:var(--text)}
.more-menu-impact-text small{font-size:11.5px;color:var(--muted)}
.more-menu-impact-cta > [data-lucide]:last-child{width:16px;height:16px;color:var(--muted);flex-shrink:0}

/* ---- Post action sheet — universal (was mobile-only; the header "+ Post" CTA now opens this on
   desktop too, so it needs to work at every viewport). Bottom sheet on mobile (unchanged), a
   centered compact dialog on desktop. ---- */
.action-sheet-overlay{
  position:fixed;inset:0;background:rgba(15,20,17,.55);z-index:70;
  display:flex;align-items:flex-end;justify-content:center;
  animation:fadeIn .15s var(--ease);
}
.action-sheet{
  background:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;
  padding:10px 18px calc(18px + env(safe-area-inset-bottom));
  animation:slideUp .18s var(--ease);
}
.action-sheet-handle{width:36px;height:4px;border-radius:99px;background:var(--border);margin:4px auto 12px}
.action-sheet h3{margin:0 0 12px;font-size:15px;font-weight:800}
.action-sheet-option{
  width:100%;display:flex;align-items:center;gap:12px;text-align:left;
  background:#fbfcfa;border:1px solid var(--border-soft);border-radius:14px;
  padding:12px 14px;margin-bottom:8px;cursor:pointer;
}
.action-sheet-option.primary{border-color:var(--brand);background:var(--brand-softer)}
.action-sheet-option.secondary{opacity:.85}
.action-sheet-icon{font-size:20px;flex-shrink:0}
.action-sheet-text{display:flex;flex-direction:column;gap:1px}
.action-sheet-text strong{font-size:13.5px;color:var(--text)}
.action-sheet-text small{font-size:11.5px;color:var(--muted)}
.action-sheet-cancel{
  width:100%;background:none;border:none;color:var(--muted);font-weight:700;font-size:13.5px;
  padding:10px;cursor:pointer;
}
@media (min-width:601px){
  .action-sheet-overlay{align-items:center}
  .action-sheet{width:420px;border-radius:20px;padding:20px 22px;animation:none;box-shadow:var(--shadow-lg)}
  .action-sheet-handle{display:none}
}

.logo-wrap{display:flex;flex-direction:column;line-height:1.25}

.diff-strip{
  background:var(--brand-softer);border-bottom:1px solid var(--border-soft);
  padding:9px 28px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-size:12.5px;color:var(--brand-dark);
}
.diff-strip > span:first-child{font-weight:700;color:var(--text)}
.diff-chip{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-full);
  padding:4px 11px;font-weight:600;box-shadow:var(--shadow-xs);
  transition:transform .12s var(--ease), box-shadow .12s var(--ease);
}
.diff-chip:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.diff-impact-link{
  margin-left:auto;background:var(--dark-panel);color:var(--pop);border:none;border-radius:var(--radius-full);
  padding:5px 14px;font-weight:700;font-size:12px;cursor:pointer;
  transition:background .15s, color .15s;
}
.diff-impact-link:hover{background:var(--brand-dark);color:#fff}

/* ---------- layout ---------- */
main{max-width:1800px;width:calc(100vw - 64px);margin:0 auto;padding:14px 12px 60px;flex:1 0 auto}

.banner{
  background:#fffaf0;border:1px solid #f3e2b8;color:#7a5c0e;
  padding:11px 16px;border-radius:var(--radius-md);font-size:13px;margin-bottom:18px;
}
.banner code{background:rgba(0,0,0,.06);padding:1px 5px;border-radius:4px}

.verify-banner{
  background:linear-gradient(135deg,#fff8e6,#fef3d6);border:1px solid #f2dfa0;color:#7a5c0e;
  padding:7px 16px;border-radius:var(--radius-md);font-size:12.5px;margin-bottom:10px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  box-shadow:var(--shadow-xs);
}
.verify-banner button{
  background:var(--text);color:#fff;border:none;padding:7px 16px;border-radius:var(--radius-full);
  font-weight:700;cursor:pointer;font-size:12.5px;transition:background .15s;
}
.verify-banner button:hover{background:var(--brand-dark)}

/* ---------- hero banner: dark green gradient, lime pop CTA ---------- */
.hero-banner{
  position:relative;overflow:hidden;border-radius:28px;
  background:linear-gradient(135deg,var(--dark-panel) 0%,var(--dark-panel-2) 100%);
  color:#fff;padding:30px 32px 23px;margin-bottom:20px;
  min-height:306px;display:flex;flex-direction:column;justify-content:space-between;
  box-shadow:0 25px 60px rgba(0,0,0,.12);
}
.hero-glow{position:absolute;right:-80px;bottom:-80px;width:340px;height:340px;background:rgba(255,255,255,.05);border-radius:50%;filter:blur(20px);pointer-events:none}
.hero-banner::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.045) 45%,transparent 60%);
  animation:heroSweep 9s ease-in-out infinite;
}
@keyframes heroSweep{0%,100%{transform:translateX(-25%)}50%{transform:translateX(25%)}}
.hero-particle{position:absolute;border-radius:50%;background:var(--pop);pointer-events:none;animation:heroParticle 7s ease-in-out infinite}
.hero-particle.p1{width:5px;height:5px;top:18%;left:38%;opacity:.55;animation-delay:0s}
.hero-particle.p2{width:3px;height:3px;top:60%;left:52%;opacity:.4;animation-delay:1.8s}
.hero-particle.p3{width:4px;height:4px;top:35%;left:64%;opacity:.5;animation-delay:3.4s}
.hero-particle.p4{width:3px;height:3px;top:75%;left:30%;opacity:.35;animation-delay:5s}
@keyframes heroParticle{0%,100%{transform:translateY(0);opacity:.3}50%{transform:translateY(-14px);opacity:.7}}
.hero-badge{
  display:inline-flex;align-items:center;gap:7px;padding:6px 14px;border-radius:999px;
  background:rgba(255,255,255,.1);color:var(--pop);font-size:11.5px;font-weight:700;
  text-transform:uppercase;letter-spacing:.05em;border:1px solid rgba(255,255,255,.1);
  margin-bottom:16px;width:fit-content;position:relative;z-index:1;
}
.hero-badge [data-lucide]{width:13px;height:13px}
.hero-flex{display:flex;align-items:center;gap:32px;position:relative;z-index:1}
.hero-left{flex:1;min-width:0}
.hero-title{font-size:34px;font-weight:800;line-height:1.15;letter-spacing:-.02em;margin:0 0 12px}
.hero-hint{color:rgba(255,255,255,.82) !important;max-width:52ch;margin:0 0 20px}

/* ---------- hero carousel: 4 slides, crossfade in place, fixed-height wrapper so the
   hero never changes size between slides (all slides absolutely stacked; only opacity
   toggles via .active) ---------- */
.hero-slides{position:relative;min-height:188px}
.hero-slide{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;
  opacity:0;visibility:hidden;transition:opacity .5s ease;
}
.hero-slide.active{opacity:1;visibility:visible}
.hero-quote{font-style:italic;color:rgba(255,255,255,.6);font-size:12.5px;margin:6px 0 0}
.hero-carousel-controls{display:flex;align-items:center;gap:10px;flex-shrink:0}
.hero-arrow{
  width:32px;height:32px;flex-shrink:0;border-radius:50%;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.4);color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  transition:background .15s, border-color .15s, transform .15s;
}
.hero-arrow:hover{background:rgba(255,255,255,.3);border-color:rgba(255,255,255,.6);transform:scale(1.08)}
.hero-arrow:active{transform:scale(.96)}
.hero-arrow svg, .hero-arrow [data-lucide]{width:16px;height:16px;stroke:#fff;flex-shrink:0}
.hero-dot{width:6px;height:6px;border-radius:99px;background:rgba(255,255,255,.35);border:none;padding:0;cursor:pointer;transition:width .25s,background .25s}
.hero-dot:hover{background:rgba(255,255,255,.6)}
.hero-dot.active{width:22px;background:var(--pop)}

/* floating icon-card visual, replaces the empty right-side space */
.hero-visual{
  position:relative;width:230px;height:210px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
}
.hero-visual-blob{
  position:absolute;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(184,232,78,.18),rgba(184,232,78,0) 70%);
  animation:heroBlobPulse 6s ease-in-out infinite;
}
@keyframes heroBlobPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.hero-visual-card{
  position:absolute;width:74px;height:74px;border-radius:20px;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);
  display:flex;align-items:center;justify-content:center;font-size:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);animation:heroFloat 4.5s ease-in-out infinite;
}
.hero-visual-card.c1{top:6px;left:18px;animation-delay:0s}
.hero-visual-card.c2{top:70px;right:0;animation-delay:1.1s;background:var(--pop);color:var(--pop-ink);border-color:transparent}
.hero-visual-card.c3{bottom:2px;left:44px;animation-delay:2.2s}
@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@media (max-width:820px){.hero-flex{flex-direction:column}.hero-visual{width:100%;height:130px}}

.hero-search-wrap{position:relative;z-index:1}
.hero-search-wrap .searchbar{
  background:rgba(255,255,255,.97);box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.hero-footer{display:flex;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid rgba(255,255,255,.12);position:relative;z-index:1;flex-wrap:wrap;gap:12px;margin-top:14px}
.hero-cta{
  height:46px;padding:0 22px;border-radius:14px;background:var(--pop);color:var(--pop-ink);
  border:none;font-weight:800;font-size:14px;display:inline-flex;align-items:center;gap:8px;
  box-shadow:0 8px 22px rgba(184,232,78,.35);cursor:pointer;transition:transform .12s var(--ease);
}
.hero-cta:hover{transform:translateY(-1px) scale(1.03);box-shadow:0 12px 28px rgba(184,232,78,.5)}
.hero-cta [data-lucide]{width:16px;height:16px}
.hero-dots{display:flex;gap:5px;align-items:center}

/* ---------- compact hero (homepage restructure v2: search+filters only, no marketing
   carousel/particles/visual blob) — keeps the same #heroSlides/#heroDots/#heroPostBtn ids so
   initHeroCarousel() in app.js still works unchanged, just renders far less chrome.
   Base rules below are the MOBILE-SAFE default (plain flow, flex row) — untouched by the
   targeted hero-height fix. The fix itself lives entirely inside the min-width:900px block
   further down, so nothing here changes below 900px. ---------- */
.hero-banner-compact{
  min-height:0;padding:32px 36px;border-radius:24px;margin-bottom:20px;
  display:flex;flex-direction:column;gap:16px;
}
.hero-compact-row{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;min-height:250px}
.hero-text-col{flex:1;min-width:0;max-width:54%;position:relative;z-index:2;padding-top:4px}
.hero-headline{margin:0 0 8px;font-size:30px;font-weight:800;line-height:1.2;letter-spacing:-.01em;color:#fff}
.hero-compact-title{font-size:14.5px;font-weight:500;line-height:1.4;color:rgba(255,255,255,.85);margin:0}
.hero-illustration{
  position:absolute;top:-16px;right:-20px;bottom:-32px;left:46%;z-index:1;
  pointer-events:none;
}
.hero-illustration img{width:100%;height:100%;object-fit:contain;object-position:right bottom;display:block}
.hero-footer-compact{padding-top:0;border-top:none;margin-top:0;justify-content:center}
@media (max-width:900px){.hero-illustration{display:none}.hero-text-col{max-width:100%}}

/* ---------- TARGETED HERO SIZE/COMPOSITION FIX (desktop only, >=900px) ----------
   Reference photo showed the hero too tall (~470px incl. search) with the artwork eating too
   much vertical space and the Post CTA sitting over the sofa. This block locks the hero to a
   fixed, compact height with the headline/search absolutely positioned in the left ~56% and
   the existing reuse-hero.png confined to the right ~38%, CTA pinned to the empty top-right
   corner above/beside the artwork (never over it). Same image asset, not regenerated. Nothing
   outside .hero-banner-compact and its children is touched, and everything below 900px keeps
   the original flex-flow layout from the block above. */
@media (min-width:900px){
  .hero-banner-compact{
    height:318px;min-height:318px;max-height:318px;
    padding:28px 36px 24px;border-radius:22px;
    display:block;gap:0;
  }
  .hero-compact-row{position:static;display:block;min-height:0}
  .hero-text-col{
    position:absolute;top:32px;left:36px;width:56%;max-width:600px;
    padding-top:0;
  }
  .hero-headline{font-size:32px;line-height:1.1;font-weight:700;margin:0 0 8px}
  .hero-compact-title{font-size:14px;line-height:1.5;margin:8px 0 0}
  .hero-illustration{
    top:auto;left:auto;right:0;bottom:0;width:38%;height:100%;
  }
  .hero-search-wrap{
    position:absolute;left:36px;bottom:24px;width:72%;max-width:980px;
  }
  .hero-search-wrap .searchbar{min-height:56px;padding:0 8px 0 22px}
}
@media (min-width:1200px){
  .hero-banner-compact{height:330px;min-height:330px;max-height:330px}
}
/* Explicit Search button + "Popular:" quick-category row under the hero search — the height
   increase above (290/300 -> 318/330) is a small, deliberate exception to accommodate them. */
.hero-search-btn{
  height:40px;padding:0 18px;border-radius:999px;background:var(--brand);color:#fff;
  border:none;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:6px;
  cursor:pointer;flex-shrink:0;transition:background .15s, transform .12s var(--ease);
}
.hero-search-btn:hover{background:#2CA56A;transform:translateY(-1px)}
.hero-search-btn [data-lucide]{width:14px;height:14px}
.hero-popular-row{
  display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap;
}
.hero-popular-label{font-size:12px;font-weight:600;color:rgba(255,255,255,.75)}
.hero-popular-link{
  background:none;border:none;padding:0;color:rgba(255,255,255,.92);font-size:12.5px;font-weight:600;
  cursor:pointer;text-decoration:none;transition:color .15s;
}
.hero-popular-link:hover{color:var(--pop);text-decoration:underline}

/* ---------- Business Surplus hero (dark-green B2B variant of the same .hero-banner-compact
   component) — every rule below is scoped under .hero-banner.hero-business (added/removed by
   applySectionUi() only while state.section === 'business_waste'), so the Give & Take hero is
   completely unaffected. Below 900px this falls back to the normal stacked flex layout; the
   category grid just wraps onto its own row instead of being absolutely positioned. ---------- */
.hero-banner.hero-business{
  /* Dot pattern removed per your latest instruction — Home hero doesn't have one, so Business
     Surplus now uses the same clean gradient-only treatment (dark-green background + photo, no
     decorative overlay layer). */
  background:linear-gradient(135deg,#0F3D2E 0%,#0A2E22 100%);
  background-blend-mode:normal;
}
.hero-banner:not(.hero-business) .hero-category-grid{display:none}
.hero-banner.hero-business .hero-illustration{display:none}
.hero-banner.hero-business .hero-compact-row{flex-wrap:wrap}
/* Business Surplus-only pill styling for the Popular row (Give & Take's own .hero-popular-link
   above is untouched — that homepage is frozen). Small dark-translucent-green pills instead of
   plain text links, per the latest spec; same underlying element/click handler either way. */
.hero-banner.hero-business .hero-popular-link{
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);
  padding:6px 13px;border-radius:999px;font-weight:600;
}
.hero-banner.hero-business .hero-popular-link:hover{
  background:rgba(255,255,255,.2);color:#fff;text-decoration:none;
}
/* Single collage hero photo — one real wide-panorama photo (from the reference image you supplied)
   that in a single frame already shows sofa, bike, office chair/desk, computers, industrial
   machinery, packaging/pallets, construction materials (bricks/blocks), metal pipes, scrap metal,
   and a forklift — the full Business Surplus range, not individual clickable tiles.
   Per your latest spec: no visible rectangular "image card" — the photo is full-bleed within the
   hero (clipped only by .hero-banner's own rounded corners, not a separate boxed inset) and its
   left edge is masked to transparent so the hero's own dark-green gradient/dot-pattern background
   shows through underneath, i.e. the photo fades INTO the background rather than sitting on top of
   it as a card. A secondary dark-green multiply wash sits on top of the photo (stronger on the
   left) so the transition reads as one continuous surface and the white headline/search stay
   legible over whatever part of the photo is behind them. object-position stays right-of-center
   (62%) so cover-cropping keeps the scrap-metal bin and forklift on the right in frame. */
.hero-business-photo{
  position:absolute;inset:0;z-index:0;pointer-events:none;
}
.hero-business-photo img{
  width:100%;height:100%;object-fit:cover;object-position:62% center;display:block;
}
/* Dark-green wash, strongest on the left (where the headline/search sit) fading to nearly clear on
   the right (where the photo should read at full strength) — this is what makes the photo feel
   blended into the green hero rather than a separate panel. */
.hero-business-photo::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,
    #0A2E22 0%, rgba(10,46,34,.94) 22%, rgba(10,46,34,.62) 40%,
    rgba(10,46,34,.18) 58%, rgba(10,46,34,.04) 74%, transparent 100%);
}
@media (min-width:900px){
  /* Height and search-bar sizing overrides removed per your latest instruction: Business Surplus
     now inherits the exact same .hero-banner-compact height (318px / 330px at >=1200px, set further
     up in this file) and the exact same .hero-search-wrap / .hero-search-wrap .searchbar rules
     (width:72%/max-width:980px, min-height:56px) that the Home hero uses — no business-specific
     override of either, so they're provably identical rather than independently tuned. Only
     .hero-text-col keeps a width override (still needed so the headline column doesn't run under
     the photo); that wasn't one of the three requested corrections. */
  .hero-banner.hero-business .hero-text-col{width:44%;max-width:500px;z-index:2}
  .hero-banner.hero-business .hero-business-photo{
    /* .hero-compact-row sits inside .hero-banner-compact's own 32px/36px padding, so inset:0 alone
       would leave a padding gap on every side instead of reaching the hero's true rounded edges
       (same reason .hero-illustration above uses negative offsets). Bleeds to the outer edge on
       top/right/bottom; left starts at 36% of the row so the photo occupies roughly the right
       two-thirds, matching the "photo across the right side/background" spec. */
    top:-30px;right:-34px;bottom:-30px;left:36%;
    /* fade-to-transparent mask on the left ~40% so the underlying hero gradient shows through and
       the photo has no hard left edge; fully opaque from ~48% onward. */
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.75) 34%, #000 48%);
    mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.75) 34%, #000 48%);
  }
}
/* Below 900px the photo falls into normal flow as its own full-width banner under the text/search
   (no left-fade mask here — at this width the photo isn't sharing horizontal space with the
   headline, so blending isn't needed; it just needs to read cleanly as a banner). */
@media (max-width:899px){
  .hero-business-photo{position:relative;inset:auto;min-height:220px;margin-top:16px;border-radius:16px;overflow:hidden}
  .hero-business-photo::after{background:linear-gradient(180deg, rgba(10,46,34,0) 55%, rgba(10,46,34,.35) 100%)}
}
@media (max-width:639px){
  .hero-business-photo{min-height:170px}
}
/* Browse view hides the hero row entirely and only keeps the search bar; without this, the
   fixed-height hero above would leave an empty box and the now-absolute search-wrap would
   collapse the container to 0 height (no in-flow children left to size it). Restores the
   pre-fix Browse behavior exactly. */
@media (min-width:900px){
  body.view-browse .hero-banner-compact{height:auto;min-height:0;max-height:none}
  body.view-browse .hero-search-wrap{position:static;width:auto;max-width:none;left:auto;bottom:auto}
}

/* ---------- statistics strip ---------- */
/* Deliberately quiet — a supporting fact strip, not another card competing with Hero/Trending/
   the product grid for visual weight. No border/shadow/fill, just numbers and thin dividers. */
.stats-strip{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0;
  background:transparent;border:none;border-radius:0;
  margin-bottom:20px;box-shadow:none;overflow:hidden;
}
.stats-strip .stat{
  padding:14px;text-align:center;border-right:1px solid var(--border-soft);
  display:flex;flex-direction:column;align-items:center;
}
.stats-strip .stat:last-child{border-right:none}
.stats-strip .stat .stat-icon{width:18px;height:18px;color:var(--brand);margin-bottom:6px}
.stats-strip .stat .num{
  font-family:var(--font-display);font-size:24px;font-weight:800;color:var(--brand-dark);letter-spacing:-.02em;display:block;
}
.stats-strip .stat .label{font-size:11.5px;color:var(--muted);margin-top:3px;font-weight:600}
@media (max-width:640px){.stats-strip .stat{border-bottom:1px solid var(--border-soft);border-right:none}}

/* ---------- section + filter tabs ---------- */
.section-tabs{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.section-tab{
  font-family:var(--font-display);
  padding:10px 20px;border:1px solid var(--border);background:#fff;border-radius:var(--radius-full);
  font-weight:700;font-size:13.5px;cursor:pointer;color:var(--muted);
  transition:all .15s var(--ease);
}
.section-tab:hover{border-color:var(--brand);color:var(--brand-dark);background:var(--brand-softer)}
.section-tab.active{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:var(--glow-brand)}
.section-hint{font-size:13.5px;color:var(--muted);margin:0 0 16px;max-width:70ch}

.req-type-tabs{display:flex;align-items:center;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.urgent-check{font-size:13px;color:var(--muted);margin-left:6px;display:flex;align-items:center;gap:5px;cursor:pointer;font-weight:500}
.urgent-check input{width:auto;accent-color:var(--danger)}

.chip{
  padding:7px 14px;border:1px solid var(--border);border-radius:var(--radius-full);background:#fff;
  cursor:pointer;font-size:13px;font-weight:600;color:var(--muted);
  transition:all .14s var(--ease);
}
.chip:hover{border-color:var(--brand);color:var(--brand-dark)}
.chip.active{background:var(--text);color:var(--pop);border-color:var(--text)}
.categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}

/* ---------- left sidebar (categories, with icons) ---------- */
.page-layout{display:flex;align-items:flex-start;gap:14px;margin-bottom:48px}
.sidebar{
  width:250px;flex-shrink:0;position:sticky;top:96px;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.05);
}
.sidebar-title{
  font-family:var(--font-display);margin:0 0 12px;font-size:12px;font-weight:800;
  color:#3d4a41;text-transform:uppercase;letter-spacing:.06em;
}
.sidebar .categories{display:flex;flex-direction:column;flex-wrap:nowrap;gap:5px;margin-bottom:0}
.sidebar .chip{
  display:flex;width:100%;text-align:left;align-items:center;gap:9px;justify-content:flex-start;
  border-radius:14px;border-color:transparent;background:transparent;padding:9px 10px;
  font-weight:500;color:var(--muted);
}
.sidebar .chip .cat-icon{display:inline-flex;color:var(--muted-2);flex-shrink:0}
.sidebar .chip .cat-icon [data-lucide]{width:15px;height:15px}
.sidebar .chip.active .cat-icon{color:var(--brand)}
.sidebar .chip{transition:background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease)}
.sidebar .chip:hover{background:var(--brand-softer);border-color:transparent;color:var(--text);transform:translateX(3px)}
.sidebar .chip.active{background:var(--brand-light);color:var(--brand-dark);border-color:transparent;font-weight:800;box-shadow:0 3px 10px rgba(23,138,75,.16)}
.sidebar .chip.active .cat-icon{filter:none}
/* Core Zineedo categories (Food Surplus, Construction Materials) get slightly stronger hierarchy
   than secondary categories — bolder label + a subtle brand-color accent bar — without changing
   size, color palette, icon style, or spacing. Not applied on top of .active (already the strongest state). */
.sidebar .chip.chip-priority:not(.active){font-weight:700;color:var(--text);box-shadow:inset 3px 0 0 var(--brand-light)}
.sidebar .chip.chip-priority:not(.active) .cat-icon{color:var(--brand)}
/* "More categories" expander (Business Surplus sidebar only) — same chip treatment as every other
   row so it doesn't stand out as a different control, just italicized/dimmer to read as "reveal more"
   rather than a selectable category. */
.sidebar .chip.chip-more{font-style:italic;color:var(--muted-2)}
.main-col{flex:1;min-width:0}

/* ---------- eco impact panel (right sidebar) ---------- */
.eco-panel{
  width:100%;flex-shrink:0;
  /* Slightly less saturated than the original bright-green gradient — same layout/content/width,
     just a touch more neutral-dark so it reads as a supporting sidebar, not the loudest thing
     on the page next to the (also-green) hero and Trending. */
  background:linear-gradient(180deg,#2B4E3D,#365E4A);border-radius:var(--radius-lg);
  padding:20px 16px;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.05);
}
/* ---- Marketplace layout: main browsing column (requests/services/champions/categories/grid).
   Used to be a two-column grid with a persistent 240px Impact Tracker + Business Surplus sidebar;
   the Impact Tracker is now a collapsed edge tab + slide-out overlay (see "impact panel" below),
   so this is a single column and the grid gets full width by default instead of always losing
   240px to a sidebar. ---- */
.marketplace-columns{display:grid;grid-template-columns:1fr;gap:24px;align-items:start;margin-bottom:8px}
.marketplace-main{min-width:0}
.requests-services-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
/* Generalized from a narrower rule that only covered .requests-services-grid — any homepage
   section that renders no content for the current state (e.g. #businessSurplusIntro outside the
   Business Surplus tab) collapses instead of leaving an empty 24px-margined gap in the page. */
.homepage-section:empty{display:none}
/* Grid items stretch to the row's height by default, but the colored panel div inside each
   (.highlight-wrap) only took its own content height — leaving the shorter panel's background
   visibly shorter than its sibling. Filling the stretched cell equalizes the two panels exactly. */
.requests-services-grid .homepage-section{height:100%}
.requests-services-grid .highlight-wrap{height:100%;display:flex;flex-direction:column}
.requests-services-grid .highlight-wrap .grid.hscroll{margin-top:auto}
/* Below ~1500px, a fixed-width categories sidebar (250px) PLUS a fixed-width Impact/Business
   aside (280px) squeezed either side of the grid at the same time was leaving the actual product
   grid only ~2 columns wide on common 1366/1440 laptop screens — the exact "cards too narrow,
   desktop underused" problem. Past this point the aside drops below the main column instead so
   the grid keeps full width to work with. */
@media (max-width:760px){
  .requests-services-grid{grid-template-columns:1fr}
}
.eco-head{display:flex;align-items:center;gap:8px;color:#fff;font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:16px}
.eco-head [data-lucide]{
  width:14px;height:14px;flex-shrink:0;padding:6px;box-sizing:content-box;
  background:rgba(255,255,255,.14);border-radius:50%;color:var(--pop);
}
.eco-panel-section h4 [data-lucide]{
  width:12px;height:12px;flex-shrink:0;padding:5px;box-sizing:content-box;
  background:rgba(255,255,255,.14);border-radius:50%;color:var(--pop);
}
.eco-stats{display:flex;flex-direction:column;gap:14px}
.eco-stat{padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.12)}
.eco-stat:last-child{border-bottom:none;padding-bottom:0}
.eco-stat .num{font-size:22px;font-weight:800;letter-spacing:-.01em;display:block;font-variant-numeric:tabular-nums}
.eco-stat .label{font-size:11px;font-weight:500;color:rgba(255,255,255,.8);margin-top:2px}
/* Purely decorative quote block — dropped from the desktop panel too now (not just mobile) to
   keep the Impact Tracker compact: headline + stats + estimated-impact numbers + CTA, no filler. */
.eco-earth{display:none}
.eco-earth-icon{width:52px;height:52px;margin:0 auto 10px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:24px}
.eco-earth p{font-size:11px;font-weight:500;color:rgba(255,255,255,.9);margin:0;line-height:1.5}
.eco-panel-section{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
.eco-panel-section h4{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--pop);margin:0 0 10px;display:flex;align-items:center;gap:6px}
.eco-mini-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 0;font-size:12px;border-bottom:1px solid rgba(255,255,255,.08);cursor:pointer}
.eco-mini-row:last-child{border-bottom:none}
.eco-mini-row .t{color:rgba(255,255,255,.9);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eco-mini-row .v{color:var(--pop);font-weight:700;font-size:11px;flex-shrink:0;white-space:nowrap}
.eco-mini-empty{font-size:11.5px;color:rgba(255,255,255,.6);padding:4px 0}

/* ---- Impact Tracker: collapsed edge tab + slide-out overlay panel ----
   Replaces the old permanent 240px sidebar column. #ecoPanel itself (dark green card, stats,
   estimated-impact rows, nearby requests) is completely unchanged — none of its own rules below
   this block were touched — it just now lives inside a slide-out drawer instead of a grid column. */
.impact-tab{
  position:fixed;top:50%;right:0;transform:translateY(-50%);
  width:46px;min-height:120px;padding:14px 0 12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(180deg,#2B4E3D,#365E4A);color:#fff;border:none;
  border-radius:14px 0 0 14px;box-shadow:-6px 6px 24px rgba(0,0,0,.14);
  cursor:pointer;z-index:45;transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.impact-tab:hover{background:linear-gradient(180deg,#335c48,#3f6d55)}
.impact-tab[aria-expanded="true"]{opacity:0;pointer-events:none;transform:translateY(-50%) translateX(10px)}
.impact-tab [data-lucide]{width:18px;height:18px;color:var(--pop)}
.impact-tab-label{
  writing-mode:vertical-rl;transform:rotate(180deg);
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
}

.impact-panel-overlay{
  display:none;position:fixed;inset:0;background:rgba(15,20,17,.4);z-index:54;
  opacity:0;transition:opacity .25s var(--ease);
}
.impact-panel-overlay.open{display:block;opacity:1}

.impact-panel{
  position:fixed;top:0;right:0;bottom:0;width:300px;max-width:calc(100vw - 24px);
  background:#fff;z-index:56;box-shadow:-16px 0 40px rgba(0,0,0,.18);
  padding:44px 16px 20px;overflow-y:auto;
  transform:translateX(100%);transition:transform .28s var(--ease);
}
.impact-panel.open{transform:translateX(0)}
.impact-panel .eco-panel{box-shadow:none}
.impact-panel-close{
  position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:50%;
  background:var(--brand-softer);border:none;color:var(--text);display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background .15s;
}
.impact-panel-close:hover{background:var(--brand-light)}
.impact-panel-close [data-lucide]{width:16px;height:16px}

@media (max-width:600px){
  .impact-tab{width:42px;min-height:104px;gap:8px}
  .impact-panel{width:88vw;max-width:340px}
}

@media (max-width:980px){
  .page-layout{flex-direction:column}
  .sidebar{width:100%;position:static;padding:12px 14px}
  .sidebar .categories{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:2px}
  .sidebar .chip{width:auto;white-space:nowrap;border-radius:var(--radius-full)}
  .eco-panel{width:100%;position:static}
}

/* ---------- search bar ---------- */
.searchbar{
  display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap;
  background:#fff;border:1px solid var(--border);border-radius:999px;padding:10px 10px 10px 26px;min-height:72px;
  box-shadow:0 8px 26px rgba(0,0,0,.04);
}
.searchbar-icon{color:var(--muted);flex-shrink:0}
.searchbar input, .searchbar select{
  padding:14px 6px;border:none;border-radius:var(--radius-sm);font-size:15px;
  background:transparent;color:var(--text);transition:border-color .15s, box-shadow .15s;font-family:inherit;
}
.searchbar input{flex:1;min-width:160px;outline:none}
.searchbar select{border:1px solid var(--border);border-radius:999px;padding:8px 12px;background:#fff}
.searchbar input:focus, .searchbar select:focus{outline:none}
.filters-btn{
  height:48px;padding:0 18px;border-radius:999px;background:var(--brand-light);color:var(--brand);
  border:none;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  transition:background .15s, color .15s;white-space:nowrap;
}
.filters-btn:hover{background:var(--brand);color:#fff}
.filters-btn [data-lucide]{width:14px;height:14px}
/* Search & Filters V1 — a small revealed row, not a filter drawer. Hidden by default (toggled
   from JS), sits directly under the search bar it belongs to. */
.filters-panel{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  padding:10px 16px;margin:-4px 0 14px;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius-md);box-shadow:0 4px 14px rgba(0,0,0,.04);
}
.filters-sort-label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:600}
.filters-sort-label select{
  padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;
  font-size:13px;font-family:inherit;color:var(--text);
}
.primary-btn{
  font-family:var(--font-display);
  background:var(--pop);color:var(--pop-ink);border:none;
  padding:11px 22px;border-radius:var(--radius-sm);font-weight:700;cursor:pointer;font-size:14px;
  margin-top:16px;transition:transform .12s var(--ease), box-shadow .12s var(--ease), filter .12s;
  box-shadow:var(--glow-pop);
}
.primary-btn:hover{transform:translateY(-1px) scale(1.03);box-shadow:0 10px 30px rgba(184,232,78,.55);filter:brightness(1.06)}
.primary-btn:active{transform:translateY(0) scale(1)}
.searchbar .primary-btn{white-space:nowrap}

/* ---------- grid / cards: v2.0 spec — price badge top-left, wishlist heart top-right ---------- */
.content-title{font-size:20px;font-weight:700;margin:0 0 14px;color:var(--text)}
/* auto-fill (not auto-fit): auto-fit stretches a lone card to fill the whole row when a filter
   narrows results down to just one or two items -- auto-fill leaves the leftover track space
   blank instead, so a single result stays a normal-sized card rather than a giant stretched one. */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.card{
  background:#fff;border:1px solid var(--border-soft);border-radius:22px;padding:17px;
  overflow:visible;cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
  display:flex;flex-direction:column;justify-content:space-between;
}
.card:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(0,0,0,.1)}

/* PHASE 7: "Load more" pagination control (Section 18) — explicit button, not infinite scroll.
   Reuses existing tokens (--brand, --border, --radius-sm) rather than introducing new ones. Full
   width + generous height below the 600px breakpoint so it's an easy touch target on mobile. */
.load-more-wrap{display:flex;justify-content:center;margin:24px 0 8px}
.secondary-btn{
  background:#fff;color:var(--brand-dark, var(--brand));border:1.5px solid var(--brand);
  padding:11px 28px;border-radius:var(--radius-sm);font-weight:700;cursor:pointer;font-size:14px;
  transition:background .12s var(--ease), transform .12s var(--ease);
}
.secondary-btn:hover{background:var(--brand-softer)}
.secondary-btn:active{transform:translateY(1px)}
.secondary-btn:disabled{opacity:.6;cursor:default}
@media (max-width:600px){
  .load-more-wrap{margin:18px 0 4px}
  .secondary-btn{width:100%;padding:13px 20px;font-size:15px}
}
.card .thumb{
  width:100%;aspect-ratio:4/3;height:auto;position:relative;border-radius:14px;overflow:hidden;margin-bottom:14px;
  background:linear-gradient(135deg,#eef6f0,#f4f8f5);
  display:flex;align-items:center;justify-content:center;
}
.card .thumb img, .card .thumb video{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.card:hover .thumb img{transform:scale(1.04)}
.card .thumb .thumb-emoji{font-size:64px;line-height:1;opacity:.9}
/* AUDIT FIX: distinct "image under review" state — same box/sizing as the existing no-photo
   placeholder above, just a different icon + short label so it can't be mistaken for a failed/
   missing upload. Reuses existing tokens only (--muted), no new colors introduced. */
.card .thumb .thumb-pending{display:flex;flex-direction:column;align-items:center;gap:4px}
.card .thumb .thumb-pending .thumb-emoji{font-size:34px}
.card .thumb .thumb-pending-label{font-size:11px;font-weight:700;color:var(--muted);text-align:center;padding:0 10px;line-height:1.3}
.card .price-badge{
  position:absolute;top:10px;left:10px;padding:4px 12px;
  background:var(--brand);color:#fff;font-size:12.5px;font-weight:700;
  border-radius:999px;box-shadow:0 2px 6px rgba(0,0,0,.12);white-space:nowrap;
}
.card .price-badge.urgent{background:var(--danger)}
.card .wishlist-btn{
  position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,.92);backdrop-filter:blur(4px);border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.15);
  transition:transform .15s var(--ease);
}
.card .wishlist-btn:hover{transform:scale(1.1)}
.card .wishlist-btn:active{transform:scale(.9)}
.card .wishlist-btn svg{width:17px;height:17px;stroke:#1B1F23;fill:none;transition:fill .15s, stroke .15s}
.card .wishlist-btn.active svg{fill:#f43f5e;stroke:#f43f5e}
.card h3{margin:0 0 4px;font-size:16px;font-weight:700;line-height:1.3;letter-spacing:-.005em;color:#111827;transition:color .15s}
.card:hover h3{color:var(--brand)}
.card .meta{margin:0 0 12px;font-size:12.5px;font-weight:500;color:var(--meta);display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.card .meta .owner-name{font-weight:500;color:var(--meta);display:inline-flex;align-items:center;gap:3px}
.card .meta .owner-check{color:var(--brand);display:inline-flex}
.card .meta .owner-check svg{width:13px;height:13px}
.card .badge-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.card .footer-bar{
  display:flex;align-items:center;justify-content:space-between;padding-top:8px;gap:10px;
  border-top:1px solid var(--border-soft);font-size:12.5px;font-weight:600;color:var(--meta);
}
.card .footer-bar .loc{display:inline-flex;align-items:center;gap:5px}
.card .footer-bar .loc svg{width:14px;height:14px;stroke:var(--brand);flex-shrink:0}
.card .pickup-flag{display:inline-flex;align-items:center;gap:5px}
.card .pickup-flag svg{width:14px;height:14px;stroke:var(--muted);flex-shrink:0}
.card .go-btn{
  margin-left:auto;background:none;border:none;padding:0;
  font-family:var(--font-body);font-size:13px;font-weight:700;color:var(--brand);
  display:inline-flex;align-items:center;gap:2px;
}
.card .go-btn:hover{text-decoration:underline}

/* ---------- Food Rescue V1 ---------- */
.card .urgent-food-badge{
  position:absolute;bottom:10px;left:10px;padding:4px 11px;
  background:var(--danger);color:#fff;font-size:11.5px;font-weight:700;
  border-radius:999px;box-shadow:0 3px 10px rgba(0,0,0,.18);white-space:nowrap;
}
.food-until-hint{font-size:12px;color:var(--muted);margin:-6px 0 10px;display:flex;align-items:center;gap:4px}
.food-safety-hint{
  background:var(--brand-softer);border:1px solid var(--border-soft);border-radius:var(--radius-sm);
  padding:9px 11px;margin-top:10px;line-height:1.5;
}
.badge.food-pref{background:var(--accent)}
.biz-urgent-heading{font-size:14px;font-weight:700;margin:4px 0 10px;color:var(--text)}

/* Tinted pastel pills instead of solid saturated fills — keeps each status meaningfully distinct
   without turning the card grid into confetti. Urgent stays a solid, loud red on purpose: it's
   the one status where "loud" is the correct signal. */
.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:var(--radius-full);font-size:11px;font-weight:700;letter-spacing:.01em}
.badge.free{background:var(--brand-light);color:var(--brand-dark)}
.badge.paid{background:#FBEDE0;color:#9C5A1D}
.badge.exchange{background:#E8EFFC;color:#1E4EA6}
.badge.rent{background:#E3F5F6;color:#0B6F79}
.badge.recurring{background:#F1EAFE;color:#6A3FD1}
.badge.claimed{background:#EEF0ED;color:#5B6560}
.badge.urgent{background:var(--danger);color:#fff}
.badge.thing{background:#E8EFFC;color:#1E4EA6}
.badge.service{background:#E3F5F6;color:#0B6F79}

.verified-badge{
  font-size:10.5px;background:var(--brand-light);color:var(--brand-dark);padding:2px 9px;
  border-radius:var(--radius-full);font-weight:700;display:inline-flex;align-items:center;gap:3px;
}
.pickup-badge{font-size:11px;background:#f0f2ef;color:var(--muted);padding:3px 10px;border-radius:var(--radius-full);font-weight:600}
.owner-badge{font-size:11px;background:#f0f2ef;padding:3px 10px;border-radius:var(--radius-full);color:var(--muted);font-weight:600}

.trending-wrap{margin-bottom:24px}
.homepage-section{margin-bottom:24px}

.community-story{background:linear-gradient(160deg,#fff,var(--brand-softer));border:1px solid var(--border-soft);border-radius:24px;padding:32px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.community-story .quote-icon{font-size:38px;flex-shrink:0}
.community-story .story-body{flex:1;min-width:220px}
.community-story blockquote{margin:0;font-size:18px;font-weight:600;color:var(--text);line-height:1.5;font-family:var(--font-display)}
.community-story .story-meta{margin-top:10px;font-size:13px;color:var(--muted)}
.community-story .story-link{color:var(--brand);font-weight:700;font-size:13px;white-space:nowrap;background:none;border:none;cursor:pointer}
.community-story .story-link:hover{text-decoration:underline}

.business-teaser{background:linear-gradient(135deg,var(--dark-panel),var(--dark-panel-2));border-radius:24px;padding:32px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.business-teaser-copy{flex:1;min-width:220px}
.business-teaser-art{width:120px;height:100px;flex-shrink:0}
.business-teaser-art svg{width:100%;height:100%;display:block}
@media (max-width:900px){.business-teaser-art{display:none}}
.business-teaser h2{margin:0 0 6px;font-size:20px;font-weight:700;display:flex;align-items:center;gap:8px}
.business-teaser h2 .section-icon{color:#fff}
.business-teaser p{margin:0;color:rgba(255,255,255,.8);font-size:13.5px;max-width:50ch}
.business-teaser .btn-light{background:var(--pop);color:var(--pop-ink);border:none;padding:12px 22px;border-radius:14px;font-weight:800;font-size:13.5px;cursor:pointer;white-space:nowrap;transition:transform .15s var(--ease)}
.business-teaser .btn-light:hover{transform:translateY(-1px) scale(1.03)}

.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-head h2{font-size:20px;margin:0;font-weight:700}
.collections-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.collection-card{background:#fff;border:1px solid var(--border-soft);border-radius:20px;padding:16px;box-shadow:none}
.collection-card .collection-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.collection-card h3{margin:0;font-size:15px;font-weight:600}
.collection-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.collection-mini-grid .mini-thumb{aspect-ratio:1;border-radius:12px;background:linear-gradient(135deg,#eef6f0,#f4f8f5);display:flex;align-items:center;justify-content:center;font-size:26px;overflow:hidden;cursor:pointer}
.collection-mini-grid .mini-thumb img{width:100%;height:100%;object-fit:cover}
/* Shared icon treatment for section headings (Trending/People/Services/Champions/Collections/
   Business Surplus) — one icon family (Lucide), one size, one stroke, one color, replacing the
   mix of emoji that previously gave each heading a different visual language. */
.section-icon{width:19px;height:19px;color:var(--brand);flex-shrink:0}
.trending-wrap h2{font-size:20px;margin:0 0 4px;display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text)}
.trending-wrap .highlight-sub{font-size:13px;margin:0 0 10px}
/* 6 solid cards, not 8 cramped ones — fixed 6-column grid at desktop widths so a full homepage
   preview (capped at 6 in app.js) always fills one row instead of wrapping a stray 6th/7th card
   to a second row; falls back to fewer columns as the viewport narrows. */
.trending-wrap .grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:stretch}
.trending-wrap .card{height:100%;padding:20px}
.trending-wrap .card .thumb{aspect-ratio:4/3;height:auto;margin-bottom:16px}
.trending-wrap .card h3{
  font-size:16px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
@media (max-width:1650px){.trending-wrap .grid{grid-template-columns:repeat(5,1fr)}}
@media (max-width:1400px){.trending-wrap .grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:1000px){.trending-wrap .grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px){.trending-wrap .grid{grid-template-columns:repeat(2,1fr);gap:10px}}

.trend-tabs{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.trend-tab{
  padding:8px 15px;border:1px solid var(--border);background:#fff;border-radius:var(--radius-full);
  cursor:pointer;font-weight:700;font-size:12.5px;color:var(--muted);transition:all .14s var(--ease);
}
.trend-tab:hover{border-color:var(--brand);color:var(--brand-dark)}
.trend-tab.active{background:var(--brand);color:#fff;border-color:var(--brand)}

.highlight-wrap{margin-bottom:16px;border-radius:var(--radius-lg);padding:12px 16px 16px;border:1px solid var(--border-soft)}
.highlight-wrap.hl-education{background:linear-gradient(160deg,#fff,var(--brand-softer))}
.highlight-wrap.hl-construction{background:linear-gradient(160deg,#fff,#fff6ec)}
.highlight-wrap.hl-urgent{background:linear-gradient(160deg,#fff,#fdeeee);border-color:#f6d3d3}
.highlight-wrap.hl-service{background:linear-gradient(160deg,#fff,#eef1fd);border-color:#dbe1f7}
.highlight-wrap h2{font-size:20px;margin:0 0 4px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:700;color:var(--text)}
.highlight-wrap .highlight-sub{font-size:12.5px;color:var(--meta);margin:0 0 12px}
.highlight-wrap .grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
/* These preview cards (Trending/Urgent/Food) are much shorter than the full marketplace grid's
   cards — auto-height section, no giant thumbnail eating vertical space just to show 1-3 items. */
.highlight-wrap .card .thumb{height:150px}
.view-all-link{font-size:12px;font-weight:700;color:var(--brand);background:none;border:none;cursor:pointer;white-space:nowrap}
.view-all-link:hover{text-decoration:underline}
.hscroll{display:flex;gap:14px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity}
.hscroll .card{min-width:230px;max-width:230px;flex:0 0 230px;scroll-snap-align:start}
/* Desktop: lay preview cards out as an actual (up to 3-column) grid instead of a left-aligned
   horizontal-scroll strip, so a section with only 1-2 items doesn't read as "mostly empty" —
   the card(s) fill their share of the row instead of floating in a wide blank background.
   Mobile keeps the .hscroll swipeable-carousel behavior defined above. */
@media (min-width:761px){
  .highlight-wrap .grid.hscroll{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible;
  }
  .highlight-wrap .grid.hscroll .card{min-width:0;max-width:none;flex:none}
}

/* ---------- trust strip footer ---------- */
.trust-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:32px}
.trust-card{background:transparent;border:none;border-radius:20px;padding:20px 4px;display:flex;gap:14px;align-items:flex-start;box-shadow:none}
.trust-icon{width:44px;height:44px;border-radius:14px;background:var(--brand-light);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.trust-icon [data-lucide]{width:20px;height:20px}
.trust-card h4{margin:0;font-size:15px;font-weight:800;color:var(--text)}
.trust-card p{margin:4px 0 0;font-size:12.5px;color:var(--muted);line-height:1.5}

/* ---------- modal ---------- */
.modal-overlay{
  position:fixed;inset:0;background:rgba(15,20,17,.55);backdrop-filter:blur(2px);
  display:flex;align-items:center;justify-content:center;z-index:50;padding:16px;
  animation:fadeIn .15s var(--ease);
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.modal{
  background:#fff;border-radius:var(--radius-lg);max-width:520px;width:100%;max-height:90vh;overflow:auto;
  padding:26px;position:relative;box-shadow:var(--shadow-lg);
  animation:slideUp .18s var(--ease);
}
.modal h2{margin-top:0;font-size:19px;font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
.modal .close{
  position:absolute;top:14px;right:16px;background:#f0f2ef;border:none;font-size:17px;cursor:pointer;
  color:var(--muted);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  transition:background .15s, color .15s;
}
.modal .close:hover{background:#e6e9e4;color:var(--text)}

/* ---------- forms ---------- */
form label{display:block;font-size:12.5px;font-weight:700;margin:14px 0 5px;color:var(--text)}
form input, form select, form textarea{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);
  font-size:14px;font-family:inherit;color:var(--text);background:#fcfdfc;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
form input:focus, form select:focus, form textarea:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light);background:#fff;
}
form input[type=checkbox]{width:auto}
form textarea{min-height:82px;resize:vertical}
.row2{display:flex;gap:10px}
.row2 > div{flex:1}
.error{color:var(--danger);font-size:12.5px;margin-top:8px;font-weight:600}
.hint{color:var(--muted);font-size:12px;margin-top:5px;line-height:1.5}
.privacy-note{
  background:var(--brand-softer);border:1px solid var(--border-soft);border-radius:var(--radius-md);
  padding:10px 12px;font-size:12.5px;color:var(--brand-dark);font-weight:600;line-height:1.5;margin:10px 0;
}
.emergency-note{
  background:#fff4e5;border:1px solid #f5c56a;border-radius:var(--radius-md);
  padding:10px 12px;font-size:12.5px;color:#8a5a00;font-weight:600;line-height:1.5;margin:10px 0;
}
.safety-note{
  background:#fdecec;border:1px solid #f3b8b8;border-radius:var(--radius-md);
  padding:10px 12px;font-size:12px;color:#a12626;font-weight:600;line-height:1.5;margin:10px 0;
}
.success-text{color:var(--brand-dark);font-size:12.5px;margin-top:8px;font-weight:600}

/* ---------- auth forms: password visibility, strength meter, checkbox row, loading state ---------- */
.pw-field{position:relative}
.pw-field input{padding-right:40px}
.pw-toggle{
  position:absolute;right:4px;top:50%;transform:translateY(-50%);background:none;border:none;
  color:var(--muted);cursor:pointer;padding:6px;border-radius:8px;display:flex;align-items:center;justify-content:center;
}
.pw-toggle:hover{background:var(--brand-softer);color:var(--text)}
.pw-toggle [data-lucide]{width:16px;height:16px}
.pw-toggle:focus-visible, form input:focus-visible, form button:focus-visible, .primary-btn:focus-visible, .ghost:focus-visible{
  outline:2px solid var(--brand);outline-offset:2px;
}
.strength-meter{display:flex;gap:4px;margin-top:8px}
.strength-bar{height:4px;flex:1;border-radius:99px;background:var(--border-soft);transition:background .15s}
.strength-bar.on-weak{background:var(--danger)}
.strength-bar.on-fair{background:#e8a53d}
.strength-bar.on-good{background:#8bc34a}
.strength-bar.on-strong{background:var(--brand)}
.strength-label{font-size:11.5px;font-weight:700;margin-top:5px}
.strength-label.weak{color:var(--danger)}
.strength-label.fair{color:#b8791f}
.strength-label.good{color:#5c8a2b}
.strength-label.strong{color:var(--brand-dark)}
.checkbox-row{display:flex;align-items:flex-start;gap:8px;margin:14px 0 5px}
.checkbox-row input{margin-top:3px}
.checkbox-row label{margin:0;font-size:12.5px;font-weight:500;color:var(--muted);line-height:1.5}
.auth-links{margin-top:14px;font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px}
.auth-links a{color:var(--brand);font-weight:600;cursor:pointer}
form button[disabled], .primary-btn[disabled]{opacity:.6;cursor:not-allowed;transform:none !important;box-shadow:none !important;filter:none !important}
.back-link{background:none;border:none;color:var(--muted);font-size:12.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:4px;margin-bottom:4px}
.back-link:hover{color:var(--text)}
@media (max-width:480px){
  .modal{padding:20px;border-radius:16px}
  .auth-links{flex-direction:column;align-items:flex-start}
}

/* ---------- post item modal (UX refinement — presentation only, no field/behavior changes) ---------- */
.modal.post-item-modal{max-width:680px}
.modal-subtitle{margin:-6px 0 4px;font-size:13px;color:var(--muted)}
.post-item-form{margin-top:2px}
.form-section{border:1px solid var(--border-soft);border-radius:14px;padding:14px 16px 2px;margin-top:14px;background:#fbfcfa}
.form-section-head{display:flex;align-items:center;gap:8px;font-weight:800;font-size:14px;color:var(--text)}
.form-section-num{width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.req{color:var(--danger)}
.hint-inline{font-weight:500;color:var(--muted);font-size:11.5px;margin-left:4px}

.photo-dropzone{border:2px dashed var(--border);border-radius:12px;padding:20px 14px;text-align:center;cursor:pointer;position:relative;transition:border-color .15s,background .15s;background:#fff}
.photo-dropzone:hover, .photo-dropzone.dragover{border-color:var(--brand);background:var(--brand-softer)}
.photo-dropzone-icon{font-size:20px;display:block;margin-bottom:4px}
.photo-dropzone-text{font-size:12.5px;color:var(--muted);line-height:1.5}
.photo-input-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}
.photo-thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:8px}
.photo-thumbs:empty{margin-top:0}
.photo-thumb{width:54px;height:54px;border-radius:10px;overflow:hidden;flex-shrink:0;background:#eef1ec;border:1px solid var(--border-soft);display:flex;align-items:center;justify-content:center}
.photo-thumb img{width:100%;height:100%;object-fit:cover}
.photo-thumb-file{font-size:18px}

.visually-hidden-select{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px}
.offer-type-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:6px}
.offer-type-card{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:10px 12px;border:1.5px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
.offer-type-card strong{font-size:12.5px;color:var(--text)}
.offer-type-card small{color:var(--muted);font-size:11px}
.offer-type-icon{font-size:16px}
.offer-type-card:hover{border-color:var(--brand)}
.offer-type-card.active{border-color:var(--brand);background:var(--brand-softer)}

.checkbox-row-inline{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;margin:14px 0 4px;cursor:pointer}
.checkbox-row-inline input{width:auto;margin:0}

.post-form-footer{position:sticky;bottom:-1px;background:#fff;padding-top:14px;margin-top:12px;border-top:1px solid var(--border-soft)}
.post-privacy-note{margin:0 0 10px;text-align:center}
.post-form-actions{display:flex;gap:10px;justify-content:flex-end}
.post-form-actions .ghost{background:#fff;border:1px solid var(--border);color:var(--muted);padding:11px 20px;border-radius:var(--radius-sm);font-weight:700;cursor:pointer;font-size:14px}
.post-form-actions .ghost:hover{border-color:var(--text);color:var(--text)}
.post-form-actions .primary-btn{flex:0 0 auto;padding:11px 26px}

@media (max-width:480px){
  .modal.post-item-modal{max-width:100%}
  .post-item-form .row2{flex-direction:column}
  .offer-type-cards{gap:6px}
  .offer-type-card{padding:9px 10px}
  .form-section{padding:12px 12px 2px}
  .post-form-footer{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}
  .post-form-actions{gap:8px}
  .post-form-actions .ghost, .post-form-actions .primary-btn{flex:1;text-align:center}
}

/* ---------- detail view ---------- */
.detail-media{width:100%;max-height:320px;object-fit:cover;border-radius:var(--radius-md);background:#eef1ec}
.detail-owner{
  background:var(--brand-softer);border:1px solid var(--border-soft);padding:12px 14px;
  border-radius:var(--radius-md);margin:16px 0;font-size:13px;line-height:1.6;
}
.gallery{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px;border-radius:var(--radius-md)}
.gallery img, .gallery video{height:150px;border-radius:var(--radius-sm);flex-shrink:0}
/* AUDIT FIX: item detail view for a listing whose only photo(s) are still pending moderation
   previously showed nothing at all here — identical to a listing that never had a photo. Reuses
   existing tokens (--brand-light background, --brand text, --radius-sm) to match the rest of the
   design system rather than introducing a new color. */
.gallery-pending{
  background:var(--brand-light);color:var(--brand);font-size:13px;font-weight:600;
  padding:12px 16px;border-radius:var(--radius-sm);margin-bottom:14px;
}

/* ---------- image lightbox: click a gallery photo -> full view + zoom + next/prev + thumbs.
   Always the real uploaded file at full resolution, never a generated replacement. ---------- */
.lightbox-overlay{
  position:fixed;inset:0;z-index:90;background:rgba(10,14,11,.92);
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;
  animation:fadeIn .15s var(--ease);
}
.lightbox-stage{flex:1;width:100%;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden}
.lightbox-img{
  max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;cursor:zoom-in;
  transition:transform .2s var(--ease);
}
.lightbox-img.zoomed{transform:scale(1.9);cursor:zoom-out}
.lightbox-close{
  position:absolute;top:20px;right:20px;width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.12);border:none;color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background .15s;
}
.lightbox-close:hover{background:rgba(255,255,255,.22)}
.lightbox-close [data-lucide]{width:20px;height:20px}
.lightbox-nav{
  position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.12);border:none;color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:background .15s;
}
.lightbox-nav:hover{background:rgba(255,255,255,.22)}
.lightbox-prev{left:16px}
.lightbox-next{right:16px}
.lightbox-nav [data-lucide]{width:22px;height:22px}
.lightbox-thumbs{display:flex;gap:8px;margin-top:16px;overflow-x:auto;max-width:100%;padding-bottom:4px}
.lightbox-thumb{
  flex-shrink:0;width:56px;height:56px;border-radius:8px;overflow:hidden;padding:0;
  border:2px solid transparent;opacity:.55;cursor:pointer;background:none;transition:opacity .15s, border-color .15s;
}
.lightbox-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lightbox-thumb:hover{opacity:.85}
.lightbox-thumb.active{opacity:1;border-color:var(--pop)}
@media (max-width:600px){
  .lightbox-overlay{padding:12px}
  .lightbox-nav{width:38px;height:38px}
  .lightbox-nav [data-lucide]{width:18px;height:18px}
  .lightbox-thumb{width:44px;height:44px}
}

/* ---------- tabs (dashboards) ---------- */
.tabs{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.tabs button{
  padding:8px 15px;border:1px solid var(--border);background:#fff;border-radius:var(--radius-full);
  cursor:pointer;font-weight:700;font-size:12.5px;color:var(--muted);transition:all .14s var(--ease);
}
.tabs button:hover{border-color:var(--brand);color:var(--brand-dark)}
.tabs button.active{background:var(--brand);color:#fff;border-color:var(--brand)}

.claim-row{
  border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:13px 15px;margin-bottom:10px;
  background:#fff;box-shadow:var(--shadow-xs);
}
.claim-row .actions{margin-top:10px;display:flex;gap:8px}
.claim-row button{padding:7px 14px;border-radius:var(--radius-full);border:none;cursor:pointer;font-size:12px;font-weight:700;transition:filter .15s}
.claim-row button:hover{filter:brightness(1.08)}
.accept{background:var(--brand);color:#fff}
.decline{background:var(--danger);color:#fff}

.empty{
  color:var(--muted);padding:48px 20px;text-align:center;font-size:14px;
  background:repeating-linear-gradient(135deg,#fafbfa,#fafbfa 10px,#f5f7f5 10px,#f5f7f5 20px);
  border-radius:var(--radius-md);border:1px dashed var(--border);
}
.empty::before{content:"🌱";display:block;font-size:26px;margin-bottom:10px;opacity:.6}

/* ---------- friendly empty state: used when a whole section (trending/marketplace/requests)
   has zero listings, instead of a lone tiny empty card floating in whitespace ---------- */
.empty-state{
  text-align:center;padding:52px 24px;
  background:linear-gradient(160deg,#fff,var(--brand-softer));
  border:1px dashed var(--border);border-radius:var(--radius-lg);
}
.empty-state-icon{font-size:34px;line-height:1;margin-bottom:12px;opacity:.85}
.empty-state h3{margin:0 0 6px;font-size:17px;font-weight:800;color:var(--text);font-family:var(--font-display)}
.empty-state p{margin:0 auto 18px;font-size:13.5px;color:var(--muted);max-width:40ch;line-height:1.5}
.empty-state .primary-btn{margin-top:0}
@media (max-width:600px){
  .empty-state{padding:36px 18px}
  .empty-state .primary-btn{width:100%}
  /* shrunk further for the compact-mobile-homepage empty states (Latest ReUse now sits much
     higher on the page, so its empty state shouldn't be the tallest thing on screen) */
  .empty-state.compact{padding:22px 16px}
  .empty-state.compact .empty-state-icon{font-size:24px;margin-bottom:6px}
  .empty-state.compact h3{font-size:14.5px}
  .empty-state.compact p{font-size:12.5px;margin-bottom:12px}
}

/* ---------- header right-side controls: My posts/Activity (lightweight), notification bell
   (compact circle, not a wide pill), account chip + dropdown, overflow shortcut ---------- */
header nav .nav-icon-link{
  background:none;border:none;color:var(--muted);font-weight:600;font-size:13.5px;
  display:inline-flex;align-items:center;gap:7px;height:auto;padding:8px 4px;box-shadow:none;
}
header nav .nav-icon-link:hover{background:none;color:var(--brand-dark);transform:none}
header nav .nav-icon-link.active{color:var(--brand);font-weight:800}
header nav .nav-icon-link [data-lucide]{width:18px;height:18px}
.notif-wrap{position:relative;display:inline-flex}
header nav .notif-btn{
  position:relative;width:42px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;background:#fff;border:1px solid var(--border);
}
.notif-btn [data-lucide]{width:20px;height:20px;color:var(--text)}
.notif-dot{
  position:absolute;top:-4px;right:-4px;background:var(--danger);color:#fff;border-radius:var(--radius-full);
  font-size:10px;font-weight:700;padding:1px 5px;line-height:1.3;box-shadow:0 0 0 2px #fff;
}
.user-menu-wrap{position:relative}
header nav .user-chip{
  display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 12px 0 6px;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-full);
}
.user-chip:hover{background:var(--brand-softer)}
.user-chip[aria-expanded="true"]{background:var(--brand-light);border-color:var(--brand)}
.user-avatar{
  width:33px;height:33px;border-radius:50%;background:var(--brand);color:#fff;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;
}
.user-chip-label{font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap}
.user-chip [data-lucide]{width:16px;height:16px;color:var(--muted);flex-shrink:0}
.user-menu-dropdown{
  display:none;position:absolute;top:calc(100% + 8px);right:0;min-width:220px;z-index:50;
  background:#fff;border:1px solid var(--border-soft);border-radius:14px;box-shadow:var(--shadow-lg);
  padding:6px;flex-direction:column;gap:2px;
}
.user-menu-header{display:flex;align-items:center;gap:10px;padding:8px 10px 10px}
.user-menu-header .user-avatar{width:36px;height:36px;font-size:15px;flex-shrink:0}
.user-menu-header-text{display:flex;flex-direction:column;min-width:0}
.user-menu-header-text strong{font-size:13.5px;font-weight:700;color:var(--text)}
.user-menu-header-text span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-menu-verified{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:var(--brand-dark);margin-top:2px}
.user-menu-verified svg{width:12px;height:12px;flex-shrink:0}
.user-menu-group{padding-top:4px;border-top:1px solid var(--border-soft)}
.user-menu-group-label{padding:6px 10px 2px;font-size:10px;font-weight:800;color:var(--muted-2);text-transform:uppercase;letter-spacing:.05em}
.user-menu-divider{border-top:1px solid var(--border-soft);margin:4px 0}
.user-menu-dropdown.open{display:flex}
.user-menu-dropdown button{
  display:flex;align-items:center;gap:9px;text-align:left;background:none;border:none;
  padding:9px 10px;border-radius:9px;font-size:13px;font-weight:600;color:var(--text);cursor:pointer;height:auto;width:100%;
}
.user-menu-dropdown button:hover{background:var(--brand-softer);color:var(--brand-dark);transform:none;box-shadow:none}
.user-menu-dropdown button.danger:hover{background:#fdecec;color:var(--danger)}
.user-menu-dropdown button [data-lucide]{width:15px;height:15px;color:var(--muted);flex-shrink:0}
/* Anchored dropdown, not a full modal-overlay — sits below the bell and dismisses on outside
   click/Escape (wired in app.js). Collapses toward the viewport edge on narrow screens below. */
.notif-panel{
  position:absolute;top:calc(100% + 10px);right:0;width:340px;max-width:calc(100vw - 24px);
  max-height:420px;overflow-y:auto;background:#fff;border:1px solid var(--border-soft);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:60;
  animation:slideUp .15s var(--ease);
}
.notif-panel-head{
  display:flex;align-items:center;justify-content:space-between;padding:13px 15px;
  border-bottom:1px solid var(--border-soft);font-size:14px;position:sticky;top:0;background:#fff;
}
.notif-markall{background:none;border:none;color:var(--brand-dark);font-size:12px;font-weight:700;cursor:pointer;padding:4px 6px}
.notif-markall:hover{text-decoration:underline}
.notif-list{padding:4px 8px}
.notif-row{
  display:flex;align-items:flex-start;gap:10px;padding:11px 8px;font-size:13.5px;cursor:pointer;
  border-radius:var(--radius-md);transition:background .12s;
}
.notif-row:hover{background:var(--border-soft)}
.notif-row.unread{background:var(--brand-softer)}
.notif-row.unread:hover{background:var(--brand-light)}
.notif-icon{font-size:16px;flex-shrink:0;line-height:1.4}
.notif-body{min-width:0;flex:1}
.notif-msg{color:var(--text);line-height:1.4;word-wrap:break-word}
.notif-row .hint{margin-top:2px}
@media (max-width:600px){
  /* Anchoring to the bell's right edge can push the panel off-screen on narrow headers, so below
     this width it becomes a fixed, centered sheet instead — same dismiss behavior, no overflow. */
  .notif-panel{
    position:fixed;top:64px;right:12px;left:12px;width:auto;max-width:none;max-height:70vh;
  }
}

/* ---------- impact ---------- */
.impact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-top:16px}
.impact-stat{
  background:linear-gradient(160deg,#fff,var(--brand-softer));border:1px solid var(--border-soft);
  border-radius:var(--radius-md);padding:16px;text-align:center;transition:transform .15s var(--ease);
}
.impact-stat:hover{transform:translateY(-2px)}
.impact-stat .num{font-family:var(--font-display);font-size:27px;font-weight:700;color:var(--brand-dark);letter-spacing:-.02em}
.impact-stat .label{font-size:11.5px;color:var(--muted);margin-top:5px;font-weight:600}

/* ---------- footer ---------- */
footer{color:var(--muted);font-size:13px;padding:0;border-top:1px solid var(--border-soft);margin-top:56px;flex-shrink:0}
.footer-grid{max-width:1800px;margin:0 auto;padding:40px 32px 24px;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
.footer-brand{display:flex;flex-direction:column;gap:10px}
.footer-brand .logo{font-family:var(--font-display);font-size:17px;font-weight:800;color:var(--text);display:flex;align-items:center;gap:8px}
.footer-brand p{margin:0;font-size:12.5px;line-height:1.6;color:var(--muted);max-width:32ch}
.footer-social{display:flex;gap:8px;margin-top:4px}
.footer-social a{width:32px;height:32px;border-radius:10px;background:var(--brand-softer);color:var(--brand-dark);display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.footer-social a:hover{background:var(--brand);color:#fff}
.footer-social [data-lucide]{width:15px;height:15px}
.footer-col h5{margin:0 0 12px;font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--text)}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.footer-col a{color:var(--muted);font-size:13px;transition:color .15s}
.footer-col a:hover{color:var(--brand-dark);text-decoration:underline}
.footer-bottom{border-top:1px solid var(--border-soft);padding:16px 20px;text-align:center;font-size:12px;color:var(--muted-2)}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr 1fr;gap:24px}}

/* ---------- scrollbar polish ---------- */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#d3d9d1;border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:#b9c1b5}

@media (max-width:640px){
  header{padding:0 16px}
  .diff-strip{padding:8px 16px}
  main{padding:18px 14px 50px}
  .hero-banner-compact{padding:12px 16px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
}

/* ---------- P0 mobile fixes: header, hero, search overflow (do not affect desktop) ---------- */
html,body{overflow-x:hidden;max-width:100%}
@media (max-width:640px){
  /* compact header */
  .nav-capsule{gap:8px}
  .capsule-actions{gap:8px}
  .capsule-actions .primary-btn{height:38px;padding:0 14px;font-size:13px;min-height:38px}
  header nav button, header nav a.btn{height:38px;padding:0 12px;font-size:12.5px}
  header .logo{font-size:18px}
  .logo-mark{width:34px;height:34px;border-radius:11px}
  .nav-capsule .section-tabs{gap:14px}
  .nav-capsule .section-tab{font-size:13px}
  /* shrink header further once scrolled (reuses existing header.scrolled class from app.js) */
  header.scrolled .nav-capsule{padding:8px 0}
  header.scrolled .section-tabs{max-height:0;opacity:0;overflow:hidden;margin:0;pointer-events:none}

  /* compact hero, no desktop redesign */
  .hero-banner-compact{padding:16px 18px;gap:8px}
  .hero-compact-row{flex-wrap:wrap}
  .hero-headline{font-size:20px;margin:0 0 4px}
  .hero-compact-title{font-size:13px}
  .hero-footer-compact{margin-top:0}
  .hero-dot{width:5px;height:5px}
  .hero-dot.active{width:16px}

  /* fix: hero search collapsing into a giant oval on mobile */
  .hero-search-wrap .searchbar,
  .searchbar{
    flex-direction:column;align-items:stretch;
    border-radius:var(--radius-lg);
    padding:12px;min-height:0;gap:8px;
  }
  .searchbar input, .searchbar select{
    width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md);
  }
  .searchbar #locationFilter{max-width:none !important}
  .filters-btn{width:100%;justify-content:center;height:44px}
  .hero-search-btn{width:100%;justify-content:center;height:44px;font-size:14px}
  .hero-popular-row{gap:8px 10px;margin-top:12px}
  .hero-popular-label{width:100%;margin-bottom:2px}
  .hero-popular-link{font-size:12px}
  .filters-panel{flex-direction:column;align-items:stretch;gap:10px;padding:12px}
  .filters-sort-label{justify-content:space-between}
  .filters-sort-label select{flex:1;max-width:60%}

  /* compact resource chips */
  .diff-strip{gap:6px;padding:10px 14px}
  .diff-chip{font-size:11.5px;padding:6px 10px}
  .diff-impact-link{font-size:11.5px;padding:6px 10px}

  /* touch targets */
  .primary-btn, .filters-btn, .hero-cta{min-height:44px}
}
@media (max-width:480px){
  .grid{grid-template-columns:1fr}
}

/* ---------- P1 mobile fixes: stats grid, impact tracker, categories, empty state ---------- */
@media (max-width:600px){
  /* 1. statistics: single column -> compact 2-column grid, 5th centered */
  .stats-strip{grid-template-columns:1fr 1fr}
  .stats-strip .stat{padding:12px 8px;border-right:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}
  .stats-strip .stat:nth-child(2n){border-right:none}
  .stats-strip .stat:nth-child(5){grid-column:1 / -1;border-bottom:none}
  .stats-strip .stat .num{font-size:19px}
  .stats-strip .stat .label{font-size:10.5px}

  /* 2. impact tracker: compact 2-column primary stats, tighter spacing, still a full-width card */
  .eco-panel{padding:16px 14px}
  .eco-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
  .eco-stat{padding-bottom:0;border-bottom:none}
  .eco-stat:nth-child(3){grid-column:1 / -1;text-align:center}
  .eco-stat .num{font-size:19px}
  .eco-earth{padding-top:12px;margin-top:12px}
  .eco-earth-icon{width:38px;height:38px;font-size:17px;margin-bottom:6px}
  .eco-panel-section{margin-top:12px;padding-top:12px}

  /* 3. categories: contained horizontal-scroll row, never clip text, never scroll the page */
  .categories{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:8px;padding-bottom:4px;margin-bottom:14px}
  .categories::-webkit-scrollbar{height:4px}
  .chip{white-space:nowrap;flex-shrink:0}

  /* 4. empty states: much shorter */
  .empty{padding:28px 16px}
  .empty::before{font-size:20px;margin-bottom:6px}
}

/* ---------- P2 mobile fix: move Log in / Sign up to top-right next to logo ---------- */
@media (max-width:640px){
  .nav-capsule{flex-direction:row;flex-wrap:wrap;align-items:center;row-gap:10px}
  .capsule-actions{display:contents}
  .logo-wrap{order:1;flex-shrink:0}
  #nav{order:2;margin-left:auto;width:auto;flex-shrink:0}
  .nav-capsule .section-tabs{order:3;flex-basis:100%;width:100%;flex-wrap:nowrap;overflow-x:auto}
  #postBtn{order:4}
}

/* ---------- Nearby strip (homepage restructure v2: single compact row, no map graphic) ---------- */
.nearby-strip{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  background:var(--card);border:1px solid var(--border-soft);border-radius:var(--radius-full);
  box-shadow:var(--shadow-sm);padding:9px 18px;margin-bottom:14px;
}
.nearby-strip-icon{
  width:26px;height:26px;border-radius:50%;background:var(--brand-softer);color:var(--brand);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.nearby-strip-icon [data-lucide]{width:14px;height:14px}
.nearby-counts{display:flex;gap:16px;flex-shrink:0}
.nearby-count{font-size:12.5px;color:var(--text)}
.nearby-count strong{color:var(--brand-dark);font-family:var(--font-display);font-size:14px;margin-right:3px}
.nearby-recent{display:flex;align-items:center;gap:12px;overflow-x:auto;flex:1;min-width:0;scrollbar-width:none}
.nearby-recent::-webkit-scrollbar{display:none}
.nearby-row{display:flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap;flex-shrink:0}
.nearby-row-icon{font-size:13px;flex-shrink:0}
.nearby-row-text{display:flex;align-items:center;gap:4px;min-width:0}
.nearby-row-title{font-size:12px;font-weight:600;color:var(--text);max-width:14ch;overflow:hidden;text-overflow:ellipsis}
.nearby-row-meta{font-size:11px;color:var(--muted-2)}
.nearby-empty{font-size:12px;color:var(--muted)}
.nearby-strip-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0}
.nearby-cta{
  height:30px;padding:0 14px;border-radius:var(--radius-full);background:var(--brand);color:#fff;
  border:none;font-weight:700;font-size:12px;cursor:pointer;transition:background .15s, transform .12s;
}
.nearby-cta:hover{background:var(--brand-dark);transform:translateY(-1px)}
.nearby-impact-link{
  background:none;border:none;color:var(--brand-dark);font-weight:700;font-size:12px;cursor:pointer;padding:0;white-space:nowrap;
}
.nearby-impact-link:hover{text-decoration:underline}

@media (max-width:760px){
  .nearby-strip{padding:8px 14px;gap:10px;border-radius:14px}
  .nearby-recent{display:none}
  .nearby-strip-actions{margin-left:0}
  .nearby-cta{height:32px}
}

/* ---------- Community Champions (monthly badges — real data only) ---------- */
.champions-section{
  background:transparent;border:none;border-radius:var(--radius-lg);
  padding:0;margin:0 0 16px;box-shadow:none;
}
.champions-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:8px;flex-wrap:wrap}
.champions-head{font-weight:700;font-size:20px;color:var(--text);display:flex;align-items:center;gap:8px}
.champions-sub{font-size:12px;color:var(--meta);margin-top:2px}
.champions-month{
  display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--muted);
  background:var(--brand-softer);border:1px solid var(--border-soft);border-radius:var(--radius-full);
  padding:5px 12px;white-space:nowrap;
}
.champions-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.champion-box{
  position:relative;background:var(--card);border:1px solid var(--border-soft);border-radius:var(--radius-md);
  padding:12px 10px 0;text-align:center;overflow:hidden;display:flex;flex-direction:column;align-items:center;
}
.champion-box.theme-gold{background:#FFF8E6;border-color:#F5E3AE}
.champion-box.theme-silver{background:#F0F4FA;border-color:#D8E1EE}
.champion-box.theme-bronze{background:var(--brand-light);border-color:var(--border-soft)}
.champion-rank{position:absolute;top:8px;left:10px;line-height:1}
.champion-rank-icon{width:14px;height:14px;color:var(--muted-2)}
.theme-gold .champion-rank-icon{color:#C89A2E}
.theme-silver .champion-rank-icon{color:#8FA0B3}
.theme-bronze .champion-rank-icon{color:var(--brand-dark)}
.champion-icon-wrap{
  width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.65);margin-bottom:6px;
}
.champion-icon{width:18px;height:18px}
.theme-gold .champion-icon{color:#C89A2E}
.theme-silver .champion-icon{color:#7C8CA0}
.theme-bronze .champion-icon{color:var(--brand-dark)}
.champion-title{font-weight:800;font-size:12px;color:var(--text)}
.champion-name{font-weight:700;font-size:12px;color:var(--text);margin-top:4px}
.champion-sub{font-size:11px;color:var(--meta);margin-top:2px;min-height:0}
.champion-footer{
  width:100%;margin-top:8px;padding:6px 0;font-size:11px;font-weight:700;color:var(--brand-dark);
  background:rgba(255,255,255,.55);border-top:1px solid rgba(0,0,0,.06);
}
.champions-view-all-wrap{display:flex;justify-content:center;margin-top:18px}
.champions-view-all{
  background:var(--brand-dark);color:#fff;border:none;border-radius:var(--radius-full);
  padding:11px 22px;font-size:13px;font-weight:700;cursor:pointer;transition:filter .15s;
}
.champions-view-all:hover{filter:brightness(1.1)}
.mini-badge{font-size:12px;margin-left:2px}

.contributors-list{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.contributor-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--border-soft)}
.contributor-rank{font-weight:800;color:var(--muted);width:28px}
.contributor-name{flex:1;font-weight:600;font-size:13.5px}
.contributor-count{font-size:12.5px;color:var(--muted)}

/* ---------- pickup location (privacy-safe: approximate shown publicly, exact only to owner/accepted receiver) ---------- */
.pickup-exact{
  background:var(--brand-light);border:1px solid var(--border-soft);border-radius:var(--radius-md);
  padding:12px 14px;margin-top:12px;
}
.pickup-exact-title{font-weight:700;font-size:13px;color:var(--pop-ink)}
.pickup-exact-address{font-size:13.5px;margin-top:4px}
.pickup-exact-instructions{font-size:12.5px;color:var(--muted);margin-top:4px}
.pickup-exact-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.maps-btn{
  display:inline-flex;align-items:center;gap:6px;background:var(--brand);color:#fff;
  padding:9px 14px;border-radius:var(--radius-full);font-size:12.5px;font-weight:700;
  text-decoration:none;min-height:38px;
}
.maps-btn:hover{background:var(--brand-dark)}
.copy-btn{
  background:#fff;border:1px solid var(--border);color:var(--text);padding:9px 14px;
  border-radius:var(--radius-full);font-size:12.5px;font-weight:700;cursor:pointer;min-height:38px;
}
.copy-btn:hover{background:var(--brand-softer)}

/* ---------- two-sided completion confirmation ---------- */
.confirm-block{margin-top:10px}
.confirm-block .actions{display:flex;gap:8px;margin-top:6px}
.confirm-reason{display:flex;gap:8px;margin-top:6px;align-items:center;flex-wrap:wrap}
.confirm-reason select{padding:6px 10px;border-radius:var(--radius-sm);border:1px solid var(--border);font-size:12.5px}
.confirm-done{color:var(--brand-dark);font-weight:700}

@media (max-width:600px){
  /* Champions: kept genuinely 3-across and compact rather than stacking, per feedback — this
     is a "people are contributing here" signal, not core marketplace content, so it shouldn't
     cost 150-250px of scroll. Card content/functionality is untouched, just much smaller. */
  .champions-grid{grid-template-columns:repeat(3,1fr);gap:6px}
  .champion-box:last-child{grid-column:auto}
  .champion-box{padding:10px 4px 0;border-radius:var(--radius-md)}
  .champion-rank{top:4px;left:4px;font-size:13px}
  .champion-icon-wrap{width:30px;height:30px;margin-bottom:5px}
  .champion-icon{font-size:14px}
  .champion-title{font-size:9.5px;line-height:1.2}
  .champion-name{font-size:10px;margin-top:5px;line-height:1.25;word-break:break-word}
  .champion-sub{font-size:8.5px;min-height:0;margin-top:2px;line-height:1.2}
  .champion-footer{font-size:9px;padding:5px 0;margin-top:8px}
  .champions-section{padding:16px}
  .champions-top{flex-direction:column;align-items:flex-start}
  .champions-head{font-size:16px}
  .champions-view-all{width:100%;min-height:44px}
  .pickup-exact-actions{flex-direction:column}
  .maps-btn,.copy-btn{width:100%;justify-content:center}
  .confirm-block .actions{flex-direction:column}
  .confirm-block button{min-height:44px}
}

/* ---------- public user profile (V1 trust system) ---------- */
.owner-name-link{
  background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;
  display:inline-flex;align-items:center;gap:3px;text-decoration:none;
}
.owner-name-link:hover{color:var(--brand-dark);text-decoration:underline}
.detail-owner .owner-name-link{font:inherit}

.my-profile-content{max-width:640px;background:var(--card);border:1px solid var(--border-soft);border-radius:var(--radius-lg);padding:22px 24px;box-shadow:var(--shadow-xs)}
.my-profile-edit-btn{
  display:inline-flex;align-items:center;gap:6px;margin-top:10px;background:none;
  border:1px solid var(--border);border-radius:var(--radius-full);padding:6px 14px;
  font-size:12.5px;font-weight:700;color:var(--brand-dark);cursor:pointer;
}
.my-profile-edit-btn:hover{background:var(--brand-softer)}
.my-profile-edit-btn svg{width:13px;height:13px}
.my-profile-edit-cancel{
  background:none;border:1px solid var(--border);border-radius:var(--radius-md);
  padding:10px 18px;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer;
}
.my-profile-edit-cancel:hover{background:var(--brand-softer)}

/* ---------- Phase 2: Location Picker (reuses existing tokens only — --brand, --border,
   --radius-*, --shadow-xs, .hint, .primary-btn — no new colors introduced) ---------- */
.location-field-display{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:11px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff;
}
.location-field-display span{font-size:14px;font-weight:600;color:var(--text)}
.location-field-display .ghost{
  background:none;border:1px solid var(--border);border-radius:var(--radius-full);
  padding:7px 14px;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer;white-space:nowrap;
}
.location-field-display .ghost:hover{background:var(--brand-softer);color:var(--brand-dark)}
.location-result-row{
  display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);padding:10px 13px;margin-bottom:6px;font-size:13.5px;cursor:pointer;
}
.location-result-row:hover{background:var(--brand-softer);border-color:var(--brand)}
.location-confirm-box{
  border:1px dashed var(--border);border-radius:var(--radius-md);padding:14px;background:var(--brand-softer);
}
.location-confirm-label{font-size:15px;font-weight:700;margin-top:4px}
.profile-header{margin-bottom:14px}
.profile-name{font-size:18px;font-weight:800;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.profile-rating{display:flex;align-items:center;gap:6px;margin:6px 0 12px;font-size:14px}
.stars-display{color:var(--orange);letter-spacing:1px;font-size:15px}
.profile-badges{margin-bottom:14px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mini-badge-lg{
  background:var(--brand-light);color:var(--brand-dark);font-size:12px;font-weight:700;
  padding:5px 12px;border-radius:var(--radius-full);display:inline-flex;align-items:center;gap:4px;
}
.profile-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  background:var(--card);border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:14px;
}
.profile-stat{text-align:center}
.profile-stat .num{font-size:20px;font-weight:800;color:var(--brand-dark)}
.profile-stat .label{font-size:11px;color:var(--muted);margin-top:3px;font-weight:600;line-height:1.3}
.review-row{border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:11px 13px;margin-bottom:8px}
.review-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.review-tags .badge{background:#f0f2ef;color:var(--muted);font-weight:600}
.review-comment{margin:8px 0 0;font-size:13px;color:var(--text);line-height:1.5;font-style:italic}

/* ---------- reporting (item/request/user/rating) ---------- */
.report-link{display:inline-block;margin-top:8px;font-size:12px;color:var(--muted);text-decoration:none}
.report-link:hover{color:#c0392b;text-decoration:underline}

/* ---------- admin dashboard (Trust & Safety V1) ---------- */
.admin-tabs{display:flex;gap:8px;margin:14px 0}
.admin-status-filter{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.admin-report-row{border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:12px 14px;margin-bottom:10px}
.admin-flagged-thumb{width:100%;max-width:220px;max-height:220px;object-fit:cover;border-radius:var(--radius-sm);margin-bottom:8px;display:block;background:#eef1ec}
.admin-report-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.admin-report-actions .ghost{font-size:12px;padding:6px 12px}
.admin-log{display:flex;flex-direction:column;gap:8px}
.admin-log-row{border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:10px 13px;font-size:13px}
@media (max-width:640px){
  .admin-tabs,.admin-status-filter{flex-wrap:wrap}
  .admin-report-actions{gap:6px}
  .admin-report-actions .ghost{flex:1 1 auto;text-align:center}
}

/* ---------- rating submission (Activity dashboard) ---------- */
.rating-prompt{
  margin-top:10px;padding:12px 13px;border:1px dashed var(--border);border-radius:var(--radius-md);
  background:var(--brand-softer);
}
.rating-done{color:var(--brand-dark);font-weight:700;margin-top:8px}
.star-picker{display:flex;gap:4px;margin:6px 0 8px}
.star-pick{
  background:none;border:none;font-size:22px;line-height:1;cursor:pointer;color:var(--orange);
  padding:2px;min-width:32px;min-height:32px;
}
.rating-tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.tag-check{display:flex;align-items:center;gap:5px;font-size:12.5px;font-weight:500;color:var(--muted);cursor:pointer}
.tag-check input{width:auto}
.rating-comment{width:100%;min-height:56px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;font-family:inherit;resize:vertical}
.rating-submit{margin-top:8px}
.rating-submit:disabled{opacity:.5;cursor:not-allowed}

@media (max-width:600px){
  .profile-stats{gap:8px;padding:12px}
  .profile-stat .num{font-size:17px}
  .profile-name{font-size:16px}
  .star-pick{min-width:30px;min-height:30px;font-size:20px}
  .rating-tags{gap:8px}
}

/* ==========================================================================================
   MOBILE HOMEPAGE REDESIGN — marketplace-first reorder (max-width:600px ONLY)
   Every rule below is scoped to this one breakpoint or explicitly desktop-neutral. Nothing here
   changes desktop layout, ordering, spacing or functionality — desktop CSS above this point is
   untouched. Reordering is done purely via flex `order` (display:contents on .page-layout lets
   its children — Categories/listings/Impact Tracker — interleave independently with the other
   top-level homepage sections instead of staying locked together as one row). Compaction reuses
   the exact same markup/classes already in place; no new visual language.
   ========================================================================================== */

/* Requests + Business Surplus preview strips: no equivalent exists on desktop today (both are
   only reachable via the top nav tabs there), so these stay hidden everywhere except the mobile
   block below — desktop is guaranteed unaffected regardless of when the JS populates them. */
.mobile-only-section{display:none}

/* Compact CTA box shared by the two teasers' empty states */
.mini-cta{
  background:var(--card);border:1px solid var(--border-soft);border-radius:var(--radius-lg);
  padding:16px;text-align:center;
}
.mini-cta p{margin:0 0 10px;font-size:13px;color:var(--muted)}

/* "View Full Impact" button for the compact mobile Impact Tracker card — hidden everywhere else
   (desktop keeps its existing full eco-panel contents, nothing removed, just not duplicated) */
.eco-view-full-btn{
  display:none;width:100%;margin-top:14px;background:rgba(255,255,255,.15);color:#fff;
  border:1px solid rgba(255,255,255,.3);border-radius:var(--radius-full);padding:10px;
  font-weight:700;font-size:13px;cursor:pointer;
}

@media (max-width:600px){
  main{display:flex;flex-direction:column;gap:16px}
  .page-layout{display:contents}
  /* Same "ignore the desktop grid, follow natural DOM order" pattern used by .page-layout above —
     the marketplace layout collapses to plain stacked sections on mobile, in the exact same source
     order. (Impact Tracker is no longer part of this grid at all — see .impact-panel below, which
     is fixed-position and unaffected by this.) */
  .marketplace-columns{display:contents}
  .marketplace-main{display:contents}
  .requests-services-grid{display:contents}

  /* Nav-redesign lock (both desktop and mobile now share ONE source-order hierarchy: header ->
     nearby -> search -> trending -> people-asking-for-help -> champions -> categories ->
     business/impact -> trust/footer — see index.html). No `order:` overrides needed any more;
     mobile just follows natural DOM order like desktop does. Only sizing/display tweaks remain. */
  .hero-banner{margin-bottom:0}
  .main-col{flex:none}
  .sidebar{margin-bottom:0}
  #businessTeaserPreviewSection{display:block}
  #reqTypeTabs{margin-bottom:0}
  #championsSection{margin:0}
  .trust-strip{margin-top:0;grid-template-columns:1fr 1fr;gap:10px}

  /* Nav redesign Stage 2: bottom nav + Post action sheet replace the old mobile Quick Actions
     row and the redundant header/hero post buttons and section-tab toggle (avoids competing
     navigation — the bottom nav's Home/Browse/Requests + Post action sheet now cover all of it).
     Desktop is completely unaffected: .section-tabs, #postBtn and #heroPostBtn all stay visible
     there, this rule only fires inside the mobile media query. */
  #quickActionsSection{display:none}
  .nav-capsule .section-tabs{display:none}
  #postBtn{display:none}
  #heroPostBtn{display:none}
  #moreMenuWrap{display:none}
  #bottomNav{display:flex}
  #mobileMoreBtn,#mobileSearchBtn{
    display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;order:1;
    background:#fff;border:1px solid var(--border);border-radius:12px;color:var(--text);cursor:pointer;box-shadow:var(--shadow-xs);
  }
  #mobileMoreBtn:active,#mobileSearchBtn:active{background:var(--brand-softer)}
  #mobileMoreBtn [data-lucide],#mobileSearchBtn [data-lucide]{width:18px;height:18px}
  /* Redundant text-button rail (My posts/Activity/Admin/Log out/"Hi, name") — Profile sheet
     (bottom nav) and the new mobile More menu already cover all of these, so on mobile only the
     notification bell stays visible next to the logo/tabs. Desktop #nav is untouched. */
  #myItemsBtn,#activityBtn,#adminBtn,#logoutBtn,#nav > span{display:none}
  body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}

  /* ---- Quick Actions row: icon + title + subtitle cards ---- */
  .quick-actions{gap:10px}
  .quick-action-card{
    flex:1;display:flex;align-items:center;gap:10px;text-align:left;min-width:0;
    background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius-lg);
    padding:12px;cursor:pointer;min-height:44px;
  }
  .quick-action-icon{
    width:36px;height:36px;border-radius:10px;background:var(--brand-light);color:var(--brand-dark);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
  }
  .quick-action-icon [data-lucide]{width:18px;height:18px}
  .quick-action-text{display:flex;flex-direction:column;gap:1px;min-width:0}
  .quick-action-text strong{font-size:12.5px;font-weight:700;color:var(--text)}
  .quick-action-text small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* ---- Impact Tracker: collapse to headline numbers + link to the existing full-impact modal ---- */
  #ecoExtra,#ecoNearby,.eco-earth{display:none}
  .eco-panel{padding:14px 16px}
  .eco-view-full-btn{display:block}

  /* ---- Trust cards: tighter now that they're 2-column ---- */
  .trust-card{padding:14px;gap:10px}
  .trust-card h4{font-size:13px}
  .trust-card p{font-size:11.5px}

  /* ---- Sustainability message + Business CTA: same content, less padding ---- */
  .community-story{padding:16px;gap:14px;border-radius:18px}
  .community-story blockquote{font-size:15px}
  .business-teaser{padding:18px;border-radius:18px}
  .business-teaser h2{font-size:16px}

  /* ---- OLX-style compact marketplace cards: genuine 2-column grid, image-first, dense.
     This overrides the older max-width:480px rule that was collapsing the grid to a single
     column (comes later in the file, wins the cascade tie at equal specificity) — the actual
     bug behind "too much scrolling, not enough listings per screen". Same .card markup/click
     handlers used by both item and request cards; only sizing changes. ---- */
  .grid{grid-template-columns:1fr 1fr;gap:10px}
  .card{padding:8px;border-radius:14px}
  .card .thumb{height:110px;border-radius:10px;margin-bottom:8px}
  .card .thumb .thumb-emoji{font-size:34px}
  .card .price-badge{padding:3px 8px;font-size:10.5px;top:6px;left:6px}
  .card .urgent-food-badge{padding:3px 8px;font-size:9px;bottom:6px;left:6px}
  .card .wishlist-btn{width:26px;height:26px;top:6px;right:6px}
  .card .wishlist-btn svg{width:13px;height:13px}
  .card h3{
    font-size:12.5px;margin:0 0 2px;
    display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
  }
  .card .meta{font-size:10px;margin:0 0 6px;gap:2px}
  .card .food-until-hint{font-size:9px;margin:-2px 0 4px}
  .card .footer-bar{padding-top:6px;font-size:9.5px;gap:4px}
  .card .footer-bar .loc svg{width:11px;height:11px}
  .card .go-btn{display:none}

  /* ---- Bottom navigation (nav redesign Stage 2) ---- */
  .bottom-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    display:none;align-items:center;justify-content:space-around;
    background:#fff;border-top:1px solid var(--border-soft);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow:0 -2px 10px rgba(0,0,0,.05);
  }
  .bottom-nav-item{
    background:none;border:none;display:flex;flex-direction:column;align-items:center;gap:2px;
    color:var(--muted);font-size:10px;font-weight:700;padding:4px 8px;cursor:pointer;position:relative;
    min-width:52px;
  }
  .bottom-nav-item [data-lucide]{width:20px;height:20px}
  .bottom-nav-item.active{color:var(--brand)}
  .bottom-nav-dot{position:absolute;top:2px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--danger)}
  .bottom-nav-post{
    width:48px;height:48px;border-radius:50%;background:var(--brand);color:#fff;border:none;
    display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
    box-shadow:0 3px 10px rgba(0,0,0,.18);margin-top:-18px;
  }
  .bottom-nav-post [data-lucide]{width:22px;height:22px}

  .mobile-more-sheet{max-height:78vh;overflow-y:auto}
  .more-menu-list{display:block;margin-bottom:8px}
  .more-menu-groups{grid-template-columns:1fr;gap:2px}
  .more-menu-group + .more-menu-group{margin-top:8px;padding-top:10px;border-top:1px solid var(--border-soft)}
  .more-menu-impact-cta{margin-top:4px}

  /* ---- Profile sheet (opened from the bottom-nav Profile tab) ---- */
  .profile-sheet-list{display:flex;flex-direction:column;gap:6px;margin-top:12px}
  .profile-sheet-item{
    width:100%;text-align:left;background:#fbfcfa;border:1px solid var(--border-soft);border-radius:12px;
    padding:12px 14px;font-size:13.5px;font-weight:700;color:var(--text);cursor:pointer;
  }
  .profile-sheet-item.danger{color:var(--danger)}

  /* ---- Home/Browse split (nav redesign Stage 3) ----
     Default (no body class) = Home view: full categories/grid stay hidden, only previews show.
     body.view-browse = Browse view: reveal the real categories + full grid (same #categories/
     #content elements the desktop always shows — nothing duplicated), hide the homepage-only
     preview/marketing/community sections so Browse is pure marketplace discovery. */
  .sidebar,.main-col{display:none}
  body.view-browse .sidebar,body.view-browse .main-col{display:block}
  body.view-browse #nearbySection,
  body.view-browse .hero-compact-row,
  body.view-browse #statsStrip,
  body.view-browse #trendingSection,
  body.view-browse #urgentSection,
  body.view-browse #serviceRequestsSection,
  body.view-browse #urgentFoodSection,
  body.view-browse #championsSection,
  body.view-browse #ecoPanel,
  body.view-browse #businessTeaserPreviewSection,
  body.view-browse #businessSurplusIntro,
  body.view-browse #communitySection,
  body.view-browse #businessTeaserSection,
  body.view-browse #collectionsSection,
  body.view-browse .trust-strip{display:none}
  body.view-browse .hero-banner-compact{padding:10px 14px;margin-bottom:0;gap:0}
}

/* ==========================================================================
   My Posts — full-page dashboard (additive only; nothing above this block
   was edited to build this feature). Reuses existing tokens (--brand,
   --radius-*, --shadow-*, .card, .badge, .primary-btn) rather than
   introducing a new visual system.
   ========================================================================== */
/* AUDIT FIX: min-height:60vh forced this whole page to be at least 60% of the viewport tall even
   when there are zero posts, so the empty state ended up floating in a mostly-blank page instead of
   a contained box. Populated My Posts (header + stats + a grid of cards) is always well past 60vh
   worth of content on its own, so dropping the floor only changes the empty case — which is exactly
   what should shrink. */
.my-posts-page{background:var(--brand-softer);padding:28px 24px 64px}
.my-posts-inner{max-width:1260px;margin:0 auto}

.my-posts-back{
  display:inline-flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;
  color:var(--meta);font-size:13px;font-weight:600;padding:0;margin-bottom:18px;
}
.my-posts-back:hover{color:var(--brand-dark)}
.my-posts-back [data-lucide]{width:15px;height:15px}

.my-posts-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.my-posts-head h1{margin:0 0 6px;font-size:26px;font-weight:800;color:var(--text);letter-spacing:-.01em}
.my-posts-subtitle{margin:0;font-size:14px;color:var(--muted);max-width:520px}
.my-posts-post-btn{margin-top:0;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.my-posts-post-btn [data-lucide]{width:16px;height:16px}

.my-posts-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}
.my-posts-stat{
  background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius-md);
  box-shadow:var(--shadow-xs);padding:14px 16px;text-align:center;
}
.my-posts-stat strong{display:block;font-size:22px;font-weight:800;color:var(--brand-dark);line-height:1.2}
.my-posts-stat span{font-size:12px;font-weight:600;color:var(--muted)}

.my-posts-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border-soft);margin-bottom:16px;overflow-x:auto}
.my-posts-tab{
  background:none;border:none;cursor:pointer;padding:10px 14px;font-size:13.5px;font-weight:600;
  color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px;
  transition:color .15s;
}
.my-posts-tab:hover{color:var(--brand-dark)}
.my-posts-tab.active{color:var(--brand);border-bottom-color:var(--brand);font-weight:700}

.my-posts-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.my-posts-search{
  flex:1;min-width:220px;display:flex;align-items:center;gap:8px;background:#fff;
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:0 12px;height:42px;
}
.my-posts-search [data-lucide]{width:16px;height:16px;color:var(--muted);flex-shrink:0}
.my-posts-search input{border:none;outline:none;font-size:13.5px;width:100%;height:100%;background:none;color:var(--text)}
.my-posts-toolbar select{
  height:42px;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff;
  padding:0 12px;font-size:13px;color:var(--meta);cursor:pointer;
}

.my-posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

.my-post-card{cursor:default}
.my-post-card:hover{transform:none}
.my-post-card .thumb{margin-bottom:12px}
.my-post-status-row{margin:2px 0 10px}
.badge.my-post-status.active{background:#EAF6EE;color:var(--brand-dark)}
.badge.my-post-status.claimed{background:#FFF3E0;color:#B45F06}
.badge.my-post-status.completed{background:#EEF1EC;color:var(--muted)}

.my-post-actions{display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid var(--border-soft)}
.my-post-action-btn{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:7px 14px;font-size:12.5px;font-weight:700;color:var(--meta);cursor:pointer;
}
.my-post-action-btn.primary{background:var(--brand-light);border-color:var(--brand-light);color:var(--brand-dark)}
.my-post-action-btn:hover{border-color:var(--brand);color:var(--brand-dark)}
.my-post-more-wrap{position:relative;margin-left:auto}
.my-post-more-btn{
  background:none;border:none;cursor:pointer;font-size:18px;line-height:1;color:var(--muted);
  padding:6px 8px;border-radius:var(--radius-sm);
}
.my-post-more-btn:hover{background:var(--border-soft)}
.my-post-more-menu{
  position:absolute;right:0;top:calc(100% + 4px);background:#fff;border:1px solid var(--border-soft);
  border-radius:var(--radius-sm);box-shadow:var(--shadow-md);min-width:160px;z-index:5;overflow:hidden;
}
.my-post-more-menu button{
  display:block;width:100%;text-align:left;background:none;border:none;cursor:pointer;
  padding:10px 14px;font-size:12.5px;font-weight:600;color:var(--text);
}
.my-post-more-menu button:hover{background:var(--brand-softer)}
.my-post-more-menu button.danger{color:var(--danger)}

.my-post-request-card .body{padding-top:2px}
.my-post-request-tag{
  display:inline-block;margin:14px 17px 0;padding:3px 10px;border-radius:var(--radius-full);
  background:var(--brand-light);color:var(--brand-dark);font-size:10.5px;font-weight:800;letter-spacing:.03em;
}
.my-post-request-card .body{padding:10px 0 0}

/* AUDIT FIX: matches the existing .empty component used by Activity/Notifications (same dashed
   border, striped background, radius, min-height) instead of bare padding floating on the page
   background — makes the empty state read as a defined, contained box rather than open whitespace. */
.my-posts-empty{
  padding:60px 20px;display:flex;align-items:center;justify-content:center;min-height:280px;
  background:repeating-linear-gradient(135deg,#fafbfa,#fafbfa 10px,#f5f7f5 10px,#f5f7f5 20px);
  border-radius:var(--radius-md);border:1px dashed var(--border);
}
.my-posts-empty-inner{max-width:340px;margin:0 auto;text-align:center}
.my-posts-empty-icon{
  width:52px;height:52px;border-radius:50%;background:var(--brand-light);color:var(--brand);
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px;
}
.my-posts-empty-icon [data-lucide]{width:24px;height:24px}
.my-posts-empty-inner h3{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--text)}
.my-posts-empty-inner p{margin:0 0 16px;font-size:13.5px;color:var(--muted)}
.my-posts-empty-inner .primary-btn{margin-top:0;display:inline-flex;align-items:center;gap:6px}

@media (max-width:1024px){
  .my-posts-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .my-posts-page{padding:18px 14px 48px}
  .my-profile-content{padding:16px 16px;max-width:100%}
  .my-posts-stats{grid-template-columns:repeat(2,1fr)}
  .my-posts-grid{grid-template-columns:1fr}
  .my-posts-tabs{gap:2px}
  .my-posts-head{flex-direction:column;align-items:stretch}
  .my-posts-post-btn{justify-content:center}
  .my-posts-toolbar select{flex:1;min-width:0}
}