/* ── Force light mode always ── */
:root { color-scheme: light; }

/* ── Remove blue tap highlight and focus outlines ── */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

/* ── Tokens ── */
:root {
  --ink:        #0C1510;
  --ink2:       #253B2C;
  --muted:      #5E7566;
  --forest:     #0A3D22;
  --mid:        #145C35;
  --leaf:       #1A7A42;
  --leaf-lt:    #D6F0E0;
  --ochre:      #C8820A;
  --ochre-lt:   #FDF3DC;
  --ochre-brt:  #E09A12;
  --red:        #C0392B;
  --hdr:        #071A0F;
  --topbar:     #040F08;
  --surf:       #FFFFFF;
  --surf2:      #F4F4F4;
  --surf3:      #EBEBEB;
  --white:      #FFFFFF;
  --border:     #CDD8D0;
  --border-lt:  #E2EAE4;
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.09);
  --shadow-md:  0 6px 20px rgba(0,0,0,.12);
  --r:          4px;
  --r-lg:       8px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: -apple-system, 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--surf);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Topbar ── */
.topbar { background: var(--topbar); border-bottom: 1px solid rgba(255,255,255,.04); }
.tb { display: flex; align-items: center; justify-content: space-between; height: 28px; font-size: 11px; }
.tb-l { color: rgba(255,255,255,.35); display: flex; gap: 18px; align-items: center; }
.tb-l a { color: rgba(255,255,255,.32); transition: color .12s; }
.tb-l a:hover { color: rgba(255,255,255,.65); }
.tb-r { display: flex; }
.tb-r a {
  color: rgba(255,255,255,.45); padding: 0 11px; line-height: 28px;
  border-left: 1px solid rgba(255,255,255,.06); font-size: 11px; transition: .12s;
}
.tb-r a:hover { color: #fff; background: rgba(255,255,255,.04); }
.tb-post { background: var(--ochre) !important; color: #fff !important; font-weight: 700; letter-spacing: .01em; }
.tb-post:hover { background: #A46A08 !important; }

/* ── Header ── */
.hdr {
  background: var(--hdr); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 2px 16px rgba(0,0,0,.5);
}
.hdr-in { display: flex; align-items: center; gap: 14px; height: 54px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-name { line-height: 1.2; }
.logo-name strong { font-size: 1.55rem; font-weight: 900; color: #fff; letter-spacing: -.05em; display: block; }
.logo-name strong span { color: var(--ochre-brt); }
.logo-name small { font-size: 8.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

.srch-wrap { flex: 1; max-width: 580px; position: relative; }
.srch { display: flex; height: 38px; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.25); width: 100%; }
.srch input { flex: 1; border: none; outline: none; padding: 0 13px; font-size: 13px; color: #111; background: #fff; }
.srch input::placeholder { color: #9CAFA2; }
.srch-loc { border: none; border-left: 1px solid #DDE6DF; padding: 0 10px; font-size: 12px; color: #3D5040; background: #F2F5F2; cursor: pointer; min-width: 128px; outline: none; }
.srch-btn { background: var(--ochre); border: none; padding: 0 18px; color: #fff; font-size: 13px; font-weight: 700; transition: .13s; }
.srch-btn:hover { background: #A46A08; }

.hdr-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.btn-signin { color: rgba(255,255,255,.78); font-size: 12.5px; font-weight: 600; padding: 6px 4px; transition: .13s; white-space: nowrap; border-bottom: 1.5px solid transparent; }
.btn-signin:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.btn-register { border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--r); color: rgba(255,255,255,.85); padding: 6px 13px; font-size: 12.5px; font-weight: 600; transition: .13s; white-space: nowrap; }
.btn-register:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-post { background: var(--ochre); border: none; border-radius: var(--r); color: #fff; padding: 7px 15px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; transition: .13s; white-space: nowrap; }
.btn-post:hover { background: #A46A08; box-shadow: 0 3px 12px rgba(200,130,10,.35); }
.btn-mob-auth { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; flex-shrink: 0; }
.btn-mob-auth svg { width: 18px; height: 18px; }
.btn-mob-search { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; flex-shrink: 0; }
.btn-mob-search svg { width: 18px; height: 18px; }
.srch-mob { display: none; position: absolute; left: 0; right: 0; top: 0; height: 50px; background: var(--hdr); padding: 0 12px; align-items: center; gap: 8px; z-index: 10; }
.srch-mob.open { display: flex; }
.srch-mob input { flex: 1; border: none; border-radius: 6px; padding: 8px 12px; font-size: 14px; outline: none; background: rgba(255,255,255,.12); color: #fff; }
.srch-mob input::placeholder { color: rgba(255,255,255,.4); }
.srch-mob-btn { color: rgba(255,255,255,.6); font-size: 16px; background: none; border: none; padding: 4px 6px; }

/* ── Sponsored Strip ── */
.sponsored-strip { background: var(--white); border-bottom: 1.5px solid var(--border-lt); padding: 18px 0 20px; }
.spons-label { font-size: 10px; font-weight: 700; color: #333; background: #FFD700; border-radius: 3px; padding: 1px 6px; letter-spacing: .04em; margin-left: 6px; }
.spons-scroll-wrap { overflow: hidden; margin-top: 12px; cursor: grab; user-select: none; }
.spons-scroll-wrap.dragging { cursor: grabbing; }
.spons-grid { display: flex; gap: 14px; width: max-content; will-change: transform; }
.spons-card { flex: 0 0 220px; border: 1.5px solid var(--border-lt); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-xs); transition: box-shadow .13s, transform .13s; cursor: pointer; }
.spons-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.spons-img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--surf2); }
.spons-body { padding: 10px 12px 12px; }
.spons-tag { font-size: 10px; font-weight: 700; color: var(--ochre); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.spons-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spons-price { font-size: 14px; font-weight: 800; color: var(--forest); margin-bottom: 4px; }
.spons-loc { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.spons-ad-badge { position: absolute; top: 8px; left: 8px; background: #FFD700; color: #333; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 3px; letter-spacing: .04em; }
@media (max-width: 600px) { .spons-card { flex: 0 0 170px; } .spons-img { height: 105px; } }

/* ── Shop by Category ── */
.shopcat { background: var(--white); border-bottom: 1.5px solid var(--border-lt); }
.shopcat-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; background: none; border: none; cursor: pointer; color: var(--ink); }
.shopcat-toggle-left { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.shopcat-toggle-left svg { color: var(--ink); flex-shrink: 0; }
.shopcat-arrow { transition: transform .28s cubic-bezier(.22,1,.36,1); flex-shrink: 0; color: var(--muted); }
.shopcat-arrow.open { transform: rotate(180deg); }
.shopcat-panel { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.22,1,.36,1); }
.shopcat-panel.open { max-height: 1400px; }
.shopcat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 4px 0 20px; }
@media (max-width: 600px) { .shopcat-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; } }
.scat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; background: none; border: none; box-shadow: none; cursor: pointer; text-decoration: none; min-width: 0; }
.scat-card:hover .scat-img-wrap { box-shadow: 0 4px 16px rgba(0,0,0,.18); transform: translateY(-3px); }
.scat-img-wrap { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: #f0f0f0; transition: transform .18s, box-shadow .18s; box-shadow: 0 3px 10px rgba(0,0,0,.13); flex-shrink: 0; }
@media (min-width: 601px) { .scat-img-wrap { width: 90px; height: 90px; } }
.scat-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scat-name { font-size: 10px; font-weight: 700; color: var(--ink); line-height: 1.3; text-align: center; word-break: break-word; }
@media (min-width: 601px) { .scat-name { font-size: 12px; } }

/* ── Autocomplete ── */
.ac-drop, .mob-ac-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border-lt);
  border-radius: var(--r-lg); box-shadow: 0 8px 28px rgba(0,0,0,.14);
  z-index: 300; overflow: hidden; display: none;
}
.ac-drop.open, .mob-ac-drop.open { display: block; }
.mob-ac-drop { top: calc(100% + 2px); left: 0; right: 0; position: absolute; }
.ac-section-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 10px 14px 4px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 13px; color: var(--ink); transition: background .1s; min-width: 0; }
.ac-item:hover, .ac-item.focused { background: var(--surf2); }
.ac-item-ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.ac-item-ico--recent { color: var(--ochre); }
.ac-item-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--border-lt); }
.ac-item-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ac-item-text strong { font-weight: 700; color: var(--forest); }
.ac-item-cat { font-size: 10.5px; color: var(--muted); background: var(--surf2); border-radius: 4px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.ac-item-recent-tag { font-size: 10px; color: var(--ochre); font-weight: 700; margin-left: auto; white-space: nowrap; }
.ac-see-all { padding: 10px 14px; font-size: 12.5px; color: var(--leaf); font-weight: 600; cursor: pointer; border-top: 1px solid var(--border-lt); transition: background .1s; }
.ac-see-all:hover { background: var(--surf2); }
.ac-see-all strong { color: var(--ink); }

/* ── Layout ── */
.main { padding: 20px 0 56px; }
.main-grid { display: grid; grid-template-columns: 1fr 255px; gap: 20px; align-items: start; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); gap: 8px; }
.sec-head h2 { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; min-width: 0; flex: 1; }
.sec-head a { font-size: 11.5px; color: var(--leaf); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }
.sec-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--ochre); color: #fff; padding: 2px 7px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }

/* ── BB grid ── */
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.bb-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .18s, transform .18s; cursor: pointer; }
.bb-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bb-img { aspect-ratio: 4/3; overflow: hidden; background: #0A140C; position: relative; flex-shrink: 0; }
.bb-img canvas { width: 100%; height: 100%; display: block; }
.bb-ribbon { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 8.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.r-feat { background: rgba(200,130,10,0.72); }
.r-hot  { background: rgba(192,57,43,0.72); }
.r-new  { background: rgba(26,92,200,0.72); }
.bb-save { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .13s; }
.bb-save:hover, .bb-save.on { background: #FEF0EE; }
.bb-save svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 1.5; transition: .13s; }
.bb-save.on svg { stroke: var(--red); fill: var(--red); }
.bb-body { padding: 11px 11px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bb-eyebrow { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bb-price-tag { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 5px 8px; background: var(--ochre-lt); border-left: 3px solid var(--ochre); border-radius: 0 var(--r) var(--r) 0; margin: 1px 0 2px; }
.bb-price-val { font-size: 16px; font-weight: 900; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.bb-price-free { font-size: 12px; font-weight: 700; color: var(--leaf); }
.bb-neg { font-size: 9px; font-weight: 700; color: var(--muted); background: var(--surf2); padding: 1px 5px; border-radius: 3px; }
.bb-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-seller-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.bb-seller-name { font-size: 10px; color: var(--muted); font-weight: 500; }
.bb-delivery { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; color: var(--leaf); margin-top: 2px; }
.bb-delivery-dot { width: 5px; height: 5px; background: var(--leaf); border-radius: 50%; flex-shrink: 0; }
.bb-cond { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 2px; background: var(--leaf-lt); color: var(--mid); }
.bb-meta { display: flex; gap: 10px; font-size: 9.5px; color: var(--muted); align-items: center; flex-wrap: wrap; margin-top: 4px; font-weight: 400; }
.bb-meta span { display: flex; align-items: center; gap: 3px; }
.bb-meta svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.bb-actions { display: flex; gap: 5px; margin-top: auto; padding-top: 9px; flex-wrap: wrap; }
.btn-view { flex: 1; background: var(--forest); color: #fff; border-radius: var(--r); padding: 6.5px 8px; font-size: 11px; font-weight: 700; transition: .13s; text-align: center; white-space: nowrap; }
.btn-view:hover { background: var(--mid); }
.btn-offer { flex: 1; background: var(--white); color: var(--forest); border: 1.5px solid var(--forest); border-radius: var(--r); padding: 6px 8px; font-size: 11px; font-weight: 700; transition: .13s; text-align: center; white-space: nowrap; cursor: pointer; }
.btn-offer:hover { background: var(--leaf-lt); }
.btn-wa { background: #25D366; color: #fff; border-radius: var(--r); padding: 6.5px 9px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; transition: .13s; white-space: nowrap; }
.btn-wa:hover { background: #1BB256; }
.btn-wa svg { width: 12px; height: 12px; fill: #fff; flex-shrink: 0; }

/* Seller type + verified badges */
.stype-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; border-radius: 3px; }
.stype-private { background: var(--leaf-lt); color: var(--mid); }
.stype-dealer  { background: var(--ochre-lt); color: #7A4E00; }
.vfy-badge { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.vfy-yes { background: #E3F0FF; color: #1565C0; }
.vfy-no  { background: #F5F5F5; color: #999; }

/* ── GT list ── */
.gt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.gt-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .17s; cursor: pointer; position: relative; }
.gt-card:hover { box-shadow: var(--shadow-sm); }
.gt-card:hover .gt-title { color: var(--leaf); }
.gt-img { width: 100%; height: 160px; flex-shrink: 0; background: var(--surf2); position: relative; overflow: hidden; }
.gt-img canvas { width: 100%; height: 100%; display: block; }
.gt-bdgs { position: absolute; top: 7px; left: 7px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.gt-bdg { font-size: 8.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; display: inline-block; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gb-feat { background: rgba(200,130,10,0.72); }
.gb-hot  { background: rgba(192,57,43,0.72); }
.gb-veri { background: var(--mid); }
.gt-body { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gt-price-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gt-price-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px; border-left: 3px solid var(--ochre); background: var(--ochre-lt); border-radius: 0 var(--r) var(--r) 0; }
.gt-price-val { font-size: 15px; font-weight: 900; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.gt-price-free { font-size: 12.5px; font-weight: 700; color: var(--leaf); }
.gt-neg { font-size: 9px; font-weight: 600; color: var(--muted); background: var(--surf2); padding: 1px 5px; border-radius: 3px; }
.gt-save-btn { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .13s; background: none; color: var(--muted); }
.gt-save-btn:hover, .gt-save-btn.on { border-color: var(--red); color: var(--red); background: #FEF0EE; }
.gt-save-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.gt-save-btn.on svg { fill: var(--red); }
.gt-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; transition: color .13s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gt-meta { display: flex; align-items: center; gap: 12px; font-size: 9.5px; color: var(--muted); flex-wrap: wrap; font-weight: 400; margin-top: 4px; }
.gt-meta span { display: flex; align-items: center; gap: 3px; }
.gt-meta svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.gt-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.gt-chip { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 2px; border: 1px solid var(--border); color: var(--ink2); background: var(--surf2); letter-spacing: .01em; }
.gt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 5px; }
.gt-seller { font-size: 10.5px; color: var(--muted); }
.gt-seller strong { color: var(--ink2); font-weight: 600; }
.gt-wa-sm { background: #25D366; color: #fff; border-radius: var(--r); padding: 4px 9px; font-size: 10.5px; font-weight: 700; border: none; display: flex; align-items: center; gap: 3px; transition: .12s; }
.gt-wa-sm:hover { background: #1BB256; }
.gt-wa-sm svg { width: 11px; height: 11px; fill: #fff; flex-shrink: 0; }

/* ── Load more ── */
.load-more { padding: 12px 0; }
.btn-lm { width: 100%; border: 1.5px solid var(--border); background: var(--white); color: var(--ink2); border-radius: var(--r); padding: 9px 24px; font-size: 12.5px; font-weight: 600; transition: .14s; }
.btn-lm:hover { border-color: var(--forest); color: var(--forest); background: var(--leaf-lt); }

/* ── Province browse ── */
.prov-sec { margin-top: 26px; }
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prov-btn { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: var(--ink2); transition: .13s; cursor: pointer; }
.prov-btn:hover { border-color: var(--leaf); color: var(--forest); background: var(--leaf-lt); }
.prov-arr { font-size: 11px; color: var(--muted); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.sb-sec { border-bottom: 1px solid var(--border); }
.sb-sec:last-child { border-bottom: none; }
.sb-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 9px; border-bottom: 1px solid var(--border-lt); background: var(--surf2); }
.sb-hd span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink2); }
.sb-hd button { font-size: 10px; color: var(--muted); cursor: pointer; }
.sb-hd button:hover { color: var(--leaf); }
.sb-body { padding: 13px 14px; }
.fg { margin-bottom: 13px; }
.fg:last-child { margin-bottom: 0; }
.fl { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin-bottom: 7px; }
.fo { display: flex; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 12px; color: var(--muted); cursor: pointer; transition: color .12s; }
.fo:hover { color: var(--forest); }
.fo input { accent-color: var(--forest); cursor: pointer; }
.pi { display: flex; gap: 6px; }
.pi input { flex: 1; width: 0; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 12px; background: var(--surf2); color: var(--ink); outline: none; }
.pi input:focus { border-color: var(--leaf); }
.btn-fltr { width: 100%; background: var(--forest); color: #fff; border: none; border-radius: var(--r); padding: 7.5px; font-size: 12px; font-weight: 700; margin-top: 7px; transition: .13s; }
.btn-fltr:hover { background: var(--mid); }
.sb-province-sel { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 12px; color: var(--ink); background: var(--white); font-family: inherit; cursor: pointer; }
.sb-province-sel:focus { border-color: var(--leaf); outline: none; }
.safety-list { display: flex; flex-direction: column; gap: 7px; }
.si { display: flex; gap: 7px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.si-dot { color: var(--ochre); font-weight: 900; flex-shrink: 0; font-size: 14px; line-height: 1.2; }
.sb-auth { padding: 14px; background: var(--surf2); border-bottom: 1px solid var(--border); }
.sb-auth p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-bottom: 11px; }
.sb-auth-btns { display: flex; gap: 7px; }
.btn-sb-signin { flex: 1; background: var(--forest); color: #fff; border: none; border-radius: var(--r); padding: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .13s; text-align: center; }
.btn-sb-signin:hover { background: var(--mid); }
.btn-sb-register { flex: 1; background: none; color: var(--forest); border: 1.5px solid var(--forest); border-radius: var(--r); padding: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .13s; text-align: center; }
.btn-sb-register:hover { background: var(--leaf-lt); }
.sb-cta { padding: 16px 14px; background: var(--forest); text-align: center; }
.sb-cta h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 5px; letter-spacing: -.01em; }
.sb-cta p { color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.55; margin-bottom: 12px; }
.btn-cta-sb { width: 100%; background: var(--ochre); color: #fff; border: none; border-radius: var(--r); padding: 9px; font-size: 12.5px; font-weight: 800; transition: .13s; }
.btn-cta-sb:hover { background: #A46A08; }

/* ── CTA band ── */
.cta-band { background: var(--forest); padding: 42px 0; text-align: center; margin-top: 32px; }
.cta-band h2 { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.68); font-size: 13.5px; margin-bottom: 22px; }
.btn-cta-main { background: var(--ochre); color: #fff; border: none; border-radius: var(--r); padding: 13px 36px; font-size: 14px; font-weight: 800; letter-spacing: .01em; cursor: pointer; transition: .14s; }
.btn-cta-main:hover { background: #A46A08; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* ── Footer ── */
.ftr { background: var(--topbar); color: rgba(255,255,255,.45); }
.ftr-top { padding: 48px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.ftr-brand-name { font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.ftr-brand-name span { color: var(--ochre-brt); }
.ftr-brand p { font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,.38); max-width: 210px; margin-bottom: 4px; }
.ftr-social { display: flex; gap: 8px; margin-top: 16px; }
.fsb { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); transition: .13s; }
.fsb svg { width: 16px; height: 16px; }
.fsb:hover { background: var(--leaf); color: #fff; }
.ftr-col h5 { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.ftr-col a { display: block; font-size: 12px; color: rgba(255,255,255,.38); padding: 3px 0; transition: .12s; }
.ftr-col a:hover { color: var(--ochre-brt); }
.ftr-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 24px; }
.ftr-payments { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.ftr-pay-label { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.ftr-pay-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.ftr-pay-badge { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 3px 8px; letter-spacing: .02em; }
.ftr-bottom { background: rgba(0,0,0,.3); padding: 14px 0; }
.ftr-bottom-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10.5px; color: rgba(255,255,255,.22); }
.ftr-bottom-links { display: flex; flex-wrap: wrap; gap: 4px; }
.ftr-bottom-links a { color: rgba(255,255,255,.22); padding: 0 8px; border-left: 1px solid rgba(255,255,255,.1); transition: .12s; }
.ftr-bottom-links a:first-child { border-left: none; }
.ftr-bottom-links a:hover { color: var(--ochre-brt); }

/* ── Modal ── */
.em-modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.52); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.em-modal-backdrop.open { opacity: 1; pointer-events: all; }
.em-modal-backdrop.open .em-modal-box { transform: translateY(0); }
.em-modal-box { background: var(--white); border-radius: 16px 16px 0 0; width: 100%; max-width: 540px; padding: 0 0 32px; transform: translateY(40px); transition: transform .24s cubic-bezier(.22,1,.36,1); max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
.em-modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 10px auto 0; flex-shrink: 0; }
.em-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--border-lt); }
.em-modal-bar h3 { font-size: 15px; font-weight: 800; color: var(--ink); }
.em-modal-close { width: 28px; height: 28px; border-radius: 50%; background: var(--surf); border: none; cursor: pointer; font-size: 16px; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: .13s; }
.em-modal-close:hover { background: var(--surf2); color: var(--ink); }
.em-modal-listing { display: flex; gap: 12px; padding: 16px 20px; background: var(--surf); margin: 16px 20px; border-radius: 10px; align-items: center; }
.em-modal-listing-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.em-modal-listing-img canvas { width: 64px !important; height: 64px !important; }
.em-modal-listing-info { flex: 1; min-width: 0; }
.em-modal-listing-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-modal-listing-price { font-size: 15px; font-weight: 900; color: var(--forest); margin-top: 2px; }
.em-modal-listing-cond { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* Ad detail full view */
.em-ad-photo { width: 100%; height: 220px; background: var(--surf2); overflow: hidden; border-radius: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.em-ad-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo gallery slider */
.em-gallery { position: relative; width: 100%; height: 240px; overflow: hidden; background: #111; flex-shrink: 0; }
.em-gallery-track { display: flex; height: 100%; transition: transform .3s ease; will-change: transform; }
.em-gallery-slide { flex: 0 0 100%; height: 100%; }
.em-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 26px; line-height: 1; padding: 6px 12px; cursor: pointer; z-index: 2; border-radius: 6px; }
.em-gallery-prev { left: 8px; }
.em-gallery-next { right: 8px; }
.em-gallery-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.em-gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.em-gallery-dot.active { background: #fff; }

/* ── Photo lightbox ── */
#em-lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.93); align-items: center; justify-content: center; cursor: zoom-out; }
#em-lightbox.open { display: flex; }
#em-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; pointer-events: none; }
#em-lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 22px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; }
#em-lightbox-prev, #em-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 36px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; z-index: 1; display: flex; align-items: center; justify-content: center; }
#em-lightbox-prev { left: 12px; }
#em-lightbox-next { right: 12px; }
#em-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.em-gallery-slide img { cursor: zoom-in; }
.em-ad-photo img { cursor: zoom-in; }
.em-ad-detail-body { padding: 16px 20px 12px; }
.em-ad-detail-price { font-size: 22px; font-weight: 900; color: var(--forest); letter-spacing: -.02em; margin-bottom: 4px; }
.em-ad-detail-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.em-ad-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.em-ad-detail-desc { font-size: 13px; color: var(--ink2); line-height: 1.6; margin-bottom: 16px; }
.em-modal-seller { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; }
.em-modal-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.em-modal-seller-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.em-modal-seller-meta { font-size: 11px; color: var(--muted); }
.em-modal-verified { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; background: #E3F0FF; color: #1565C0; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; }
.em-modal-unverified { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; background: #F5F5F5; color: #888; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; }
.em-modal-divider { height: 1px; background: var(--border-lt); margin: 0 20px 16px; }
.em-modal-section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 0 20px; margin-bottom: 10px; }
.em-contact-btns { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.em-contact-btn { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white); transition: .13s; text-align: left; width: 100%; }
.em-contact-btn:hover { border-color: var(--forest); background: var(--surf); }
.em-contact-btn.wa { border-color: #25D366; color: #fff; background: #25D366; }
.em-contact-btn.wa:hover { background: #1BB256; }
.em-contact-btn.call { border-color: #1565C0; color: #1565C0; }
.em-contact-btn.call:hover { background: #E3F0FF; }
.em-contact-btn-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.em-contact-btn.wa .em-contact-btn-icon { background: rgba(255,255,255,.2); }
.em-contact-btn-sub { font-size: 11px; font-weight: 400; opacity: .7; display: block; margin-top: 1px; }
.em-offer-body { padding: 0 20px; }
.em-offer-ref { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.em-offer-ref strong { color: var(--forest); font-size: 14px; }
.em-offer-label { font-size: 11.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; display: block; }
.em-offer-input { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--white); outline: none; margin-bottom: 14px; font-family: inherit; }
.em-offer-input:focus { border-color: var(--forest); }
.em-offer-textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink); background: var(--white); outline: none; resize: none; height: 80px; font-family: inherit; margin-bottom: 16px; }
.em-offer-textarea:focus { border-color: var(--forest); }
.em-offer-submit { width: 100%; padding: 13px; background: var(--forest); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; transition: .13s; }
.em-offer-submit:hover { background: var(--mid); }
.em-confirm { text-align: center; padding: 32px 20px 8px; }
.em-confirm-icon { margin-bottom: 12px; display: flex; justify-content: center; }
.em-confirm-title { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.em-confirm-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.em-confirm-close { margin-top: 20px; width: 100%; padding: 12px; background: var(--surf); border: none; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }

/* Toast notification */
#em-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(120px); background: #c62828; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 700; max-width: 90vw; text-align: center; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: transform .3s ease, opacity .3s ease; opacity: 0; pointer-events: none; }
#em-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }

/* OTP code input */
.em-otp-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-weight: 800 !important; }

/* Loading state */
.em-loading-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; color: var(--muted); font-size: 13px; }
.em-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--leaf); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Related ads in modal */
.em-related { padding: 20px 20px 12px; border-top: 1px solid var(--border-lt); margin-top: 8px; }
.em-related-hdr { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
.em-related-list { display: flex; flex-direction: column; gap: 10px; }
.em-related-card { display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 10px; background: var(--surf2); border-radius: 10px; transition: background .13s; -webkit-tap-highlight-color: transparent; }
.em-related-card:active { background: var(--border-lt); }
.em-related-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surf3); }
.em-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-related-body { flex: 1; min-width: 0; }
.em-related-title { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.em-related-price { font-size: 13.5px; font-weight: 900; color: var(--forest); margin-bottom: 2px; }
.em-related-loc { font-size: 11px; color: var(--muted); }

/* Toast + theme toggle */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-md); z-index: 999; transform: translateY(60px); opacity: 0; transition: .24s ease; pointer-events: none; border-left: 3px solid var(--ochre); }
.toast.show { transform: translateY(0); opacity: 1; }
.tt { position: fixed; top: 66px; right: 12px; z-index: 200; background: var(--white); border: 1.5px solid var(--border); border-radius: 20px; padding: 4px 11px; font-size: 11px; color: var(--muted); cursor: pointer; box-shadow: var(--shadow-xs); transition: .13s; }
.tt:hover { border-color: var(--leaf); color: var(--forest); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr !important; width: 100%; }
  .sidebar { display: none !important; }
  .bb-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr 1fr; }
  .topbar { display: none; }
}
@media (max-width: 700px) { .bb-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .gt-img { height: 120px; }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-bottom-in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .srch-loc { display: none; }
  .btn-signin { display: none; }
  .btn-register { display: none; }
  .hdr-in { gap: 6px; padding: 0 10px; height: 50px; position: relative; }
  .wrap { padding: 0 10px; }
  .btn-mob-auth { display: flex; }
  .btn-mob-search { display: flex; }
  .srch-desktop { display: none; }
  .btn-post { padding: 6px 10px; font-size: 11px; white-space: nowrap; }
  .logo-name strong { font-size: 1.25rem; }
  .logo-name small { display: none; }
  .bb-grid { grid-template-columns: 1fr 1fr !important; }
  .gt-card { overflow: hidden; }
}

/* ── Post Ad form ── */
.em-post-form { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.em-post-field { display: flex; flex-direction: column; gap: 5px; }
.em-post-label { font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.em-post-label span { font-weight: 400; color: var(--muted); }
.em-post-row { display: flex; gap: 10px; }
.em-post-row > * { flex: 1; min-width: 0; }
.em-post-input { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: 13px; color: var(--ink); background: var(--white); outline: none; font-family: inherit; width: 100%; transition: border-color .13s; }
.em-post-input:focus { border-color: var(--forest); }
.em-post-select { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: 13px; color: var(--ink); background: var(--white); outline: none; font-family: inherit; width: 100%; cursor: pointer; appearance: auto; }
.em-post-select:focus { border-color: var(--forest); }
.em-post-toggle { display: flex; gap: 6px; }
.em-post-toggle-btn { flex: 1; padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .13s; font-family: inherit; }
.em-post-toggle-btn.active { border-color: var(--forest); background: var(--leaf-lt); color: var(--forest); }
.em-post-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); cursor: pointer; user-select: none; }
.em-post-check input { accent-color: var(--forest); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.em-photo-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 22px 16px; text-align: center; cursor: pointer; transition: .13s; background: var(--surf); position: relative; overflow: hidden; }
.em-photo-zone:hover, .em-photo-zone.drag { border-color: var(--leaf); background: var(--leaf-lt); }
.em-photo-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.em-photo-zone-txt { pointer-events: none; }
.em-photo-zone-txt strong { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 2px; }
.em-photo-zone-txt { font-size: 12px; color: var(--muted); }
.em-photo-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.em-photo-thumb-wrap { position: relative; display: inline-flex; }
.em-photo-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--border); display: block; }
.em-photo-rm { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; border: none; cursor: pointer; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; font-family: inherit; }
.em-photo-main-lbl { position: absolute; bottom: 3px; left: 3px; font-size: 9px; font-weight: 800; background: var(--forest); color: #fff; border-radius: 3px; padding: 1px 4px; pointer-events: none; }
.em-add-more-photos-btn { width: 100%; margin-top: 8px; padding: 10px; border: 1.5px dashed var(--leaf); border-radius: 8px; background: var(--leaf-lt); color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: .13s; }
.em-add-more-photos-btn:hover { background: var(--surf2); }
.em-post-error { font-size: 12px; color: var(--red); background: #FEF0EE; border: 1px solid #FBBBB3; border-radius: 6px; padding: 9px 12px; }
.em-post-submit { width: 100%; padding: 14px; background: var(--forest); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; transition: .13s; font-family: inherit; margin-top: 2px; }
.em-post-submit:hover { background: var(--mid); }
.em-post-cancel-btn { width: 100%; padding: 12px; background: none; color: var(--muted); border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 4px; text-decoration: underline; }
.em-post-cancel-btn:hover { color: #c62828; }
.pa-draft-banner { background: #FFF8E1; border: 1px solid #FFE082; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #5D4037; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pa-draft-banner button { background: none; border: none; color: var(--forest); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; }

/* ── Empty state ── */
.em-empty-state { grid-column: 1/-1; text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }

/* ── Auth switch link ── */
.em-auth-switch { text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.em-auth-switch button { background: none; border: none; color: var(--forest); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.em-auth-switch button:hover { color: var(--mid); }
.em-signin-hint { font-size: 13px; color: var(--forest); background: var(--leaf-lt); border-radius: 8px; padding: 10px 14px; margin-bottom: 4px; font-weight: 600; }

/* ── Header user menu ── */
.hdr-user { position: relative; display: flex; align-items: center; }
.hdr-user-btn {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px;
  border-radius: 20px; border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #fff; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: .13s; font-family: inherit;
}
.hdr-user-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.hdr-user-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ochre);
  color: #fff; font-size: 9px; font-weight: 900; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; line-height: 1;
}
.hdr-user-drop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); z-index: 300; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .15s;
}
.hdr-user-drop.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.hdr-user-drop button {
  display: block; width: 100%; text-align: left; padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: none;
  border: none; cursor: pointer; transition: .1s; border-bottom: 1px solid var(--border-lt);
  font-family: inherit;
}
.hdr-user-drop button:last-child { border-bottom: none; }
.hdr-user-drop button:hover { background: var(--surf); }
.hdr-user-drop button.sign-out { color: var(--red); }
@media (max-width: 700px) { #hdr-user-name { display: none; } .hdr-user-btn { padding: 4px; border-radius: 50%; border: none; background: none; } }

/* ── Topbar user link ── */
.tb-user-link { color: var(--ochre-brt) !important; font-weight: 700 !important; }

/* ── Info modals (footer links) ── */
.info-modal-body { padding: 4px 20px 24px; }
.info-section { padding: 14px 0; border-bottom: 1px solid var(--border-lt); }
.info-section:last-child { border-bottom: none; padding-bottom: 4px; }
.info-section h4 { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.info-section p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.info-list { padding-left: 18px; margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 2; }
.info-step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 11px; font-weight: 800; margin-bottom: 6px; }

/* Info pricing table */
.info-price-table { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.info-price-row { display: flex; align-items: center; justify-content: space-between; }
.info-cond-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.info-price-pct { font-size: 13px; font-weight: 700; color: var(--ink); }

/* Info stats */
.info-stats { display: flex; gap: 0; border: 1px solid var(--border-lt); border-radius: 10px; overflow: hidden; }
.info-stat { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid var(--border-lt); }
.info-stat:last-child { border-right: none; }
.info-stat strong { display: block; font-size: 18px; font-weight: 900; color: var(--forest); }
.info-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Advertise options */
.info-adv-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.info-adv-card { background: var(--surf); border-radius: 10px; padding: 14px; }
.info-adv-icon { font-size: 20px; margin-bottom: 6px; }
.info-adv-card strong { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.info-adv-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Careers */
.info-job-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.info-job-card { border: 1.5px solid var(--border-lt); border-radius: 10px; padding: 14px; }
.info-job-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.info-job-meta { font-size: 11px; color: var(--forest); font-weight: 600; margin-bottom: 8px; }
.info-job-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.info-job-apply { background: var(--forest); color: #fff; border: none; border-radius: 7px; padding: 8px 16px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; }
.info-job-apply:hover { background: var(--leaf); }

/* Blog */
.info-blog-post { padding: 16px 0; border-bottom: 1px solid var(--border-lt); }
.info-blog-post:last-of-type { border-bottom: none; }
.info-blog-tag { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--forest); background: #E8F5E9; padding: 2px 7px; border-radius: 4px; margin-bottom: 6px; }
.info-blog-post h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.info-blog-post p { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0; }

/* ── My Ads modal ── */
.em-myads-body { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.em-myads-empty { text-align: center; padding: 36px 0 8px; color: var(--muted); font-size: 13px; }
.em-myad-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-lt);
}
.em-myad-row:last-child { border-bottom: none; }
.em-myad-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surf2); }
.em-myad-img canvas { width: 56px !important; height: 56px !important; }
.em-myad-img img { width: 56px; height: 56px; object-fit: cover; display: block; }
.em-myad-info { flex: 1; min-width: 0; }
.em-myad-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-myad-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.em-myad-del {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border);
  background: none; color: var(--muted); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .13s;
}
.em-myad-del:hover { border-color: var(--red); color: var(--red); background: #FEF0EE; }

/* ── Boost button in My Ads ── */
.em-boost-btn {
  margin-top: 4px; padding: 3px 10px; font-size: 11px; font-weight: 700;
  color: #F59E0B; background: #FFFBEB; border: 1.5px solid #FCD34D;
  border-radius: 20px; cursor: pointer; font-family: inherit; transition: .13s;
}
.em-boost-btn:hover { background: #FEF3C7; }

/* ── Sponsor plans ── */
.em-sponsor-plans { display: flex; gap: 10px; margin-top: 4px; }
.em-sponsor-plan {
  flex: 1; border: 2px solid var(--border); border-radius: 12px;
  padding: 14px 10px; text-align: center; position: relative;
}
.em-sponsor-plan-pop { border-color: var(--forest); background: #F0FFF4; }
.em-sponsor-popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--forest); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.em-sponsor-plan-dur { font-size: 13px; font-weight: 700; color: var(--ink); }
.em-sponsor-plan-price { font-size: 22px; font-weight: 900; color: var(--forest); margin: 4px 0; }
.em-sponsor-plan-note { font-size: 10px; color: var(--muted); }

/* ── Ad view count chip ── */
.em-view-count:empty { display: none; }
.em-view-count { color: var(--muted); }

/* ── Seller profile button (inside ad detail) ── */
.em-seller-profile-btn {
  width: 100%; margin: 8px 0 0; padding: 10px 0;
  background: var(--surf2); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--forest); cursor: pointer; font-family: inherit;
  transition: background .13s; -webkit-tap-highlight-color: transparent;
}
.em-seller-profile-btn:active { background: var(--border-lt); }

/* ── Seller profile modal ── */
.em-seller-profile-hdr {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0 16px; border-bottom: 1px solid var(--border-lt); margin-bottom: 14px;
}
.em-seller-profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; flex-shrink: 0;
}
.em-seller-profile-name { font-size: 18px; font-weight: 900; color: var(--ink); }
.em-seller-verify-box {
  background: #E8F5E9; border: 1.5px solid #A5D6A7;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.em-seller-verify-warn { background: #FFF8E1; border-color: #F9A825; }
.em-seller-verify-title { font-weight: 800; font-size: 13px; color: var(--forest); margin-bottom: 4px; }
.em-seller-verify-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.em-seller-stats-row {
  display: flex; gap: 0; margin-bottom: 4px;
  border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
}
.em-seller-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px; gap: 2px; border-right: 1.5px solid var(--border);
}
.em-seller-stat:last-child { border-right: none; }
.em-seller-stat strong { font-size: 16px; font-weight: 900; color: var(--ink); }
.em-seller-stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ── Mobile user menu items ── */
.em-menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 0; background: none; border: none;
  border-bottom: 1px solid var(--border-lt);
  font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: left; font-family: inherit;
  transition: color .15s; -webkit-tap-highlight-color: transparent;
}
.em-menu-item:last-child { border-bottom: none; }
.em-menu-item:active { opacity: .7; }
.em-menu-item svg { flex-shrink: 0; opacity: .7; }

/* ── Category Page ── */
#cat-page {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 50;
  background: var(--surf);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.cat-page-hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--hdr);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 12px 0;
}
.cat-page-hdr-in {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .13s;
  flex-shrink: 0;
  font-family: inherit;
}
.cat-back-btn svg { width: 14px; height: 14px; }
.cat-back-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
#cat-page-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.cat-page-body {
  padding: 8px 0 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .cat-page-body { grid-template-columns: 1fr; }
}

.cat-filters {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 62px;
  z-index: 2;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
}
/* Filter toggle button — only shown on mobile */
.cat-filter-toggle-btn { display: none; }
@media (max-width: 900px) {
  .cat-page-hdr-in { justify-content: space-between; }
  .cat-filter-toggle-btn {
    display: flex; align-items: center; gap: 5px; margin-left: auto;
    color: rgba(255,255,255,.85); background: rgba(255,255,255,.12);
    border: none; border-radius: 6px; padding: 6px 11px;
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: .13s;
  }
  .cat-filter-toggle-btn.active { background: var(--leaf); color: #fff; }
  .cat-filters { display: none; }
  .cat-filters.mob-open { display: block; position: static; max-height: none; overflow: visible; border-radius: 12px; margin-bottom: 12px; }
}

.cf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 12px;
  background: var(--surf2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
}
.cf-clear-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--leaf);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
  font-family: inherit;
}
.cf-clear-link:hover { color: var(--forest); text-decoration: underline; }

.cf-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cf-section-last { border-bottom: none; }
.cf-section-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 9px;
}

.cat-price-row { display: flex; align-items: center; gap: 6px; }
.cf-dash { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.cat-filter-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surf);
  outline: none;
  font-family: inherit;
  width: 100%;
  transition: border-color .13s;
}
.cat-filter-input:focus { border-color: var(--leaf); background: var(--white); }
.cat-filter-input::placeholder { color: #aab5ae; }

.cat-check-row { display: flex; flex-direction: column; gap: 2px; }
.cat-check-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background .12s;
}
.cat-check-row label:hover { background: var(--surf2); }
.cat-check-row input[type=checkbox] {
  accent-color: var(--forest);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.cat-filter-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surf);
  outline: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  appearance: auto;
  transition: border-color .13s;
}
.cat-filter-select:focus { border-color: var(--leaf); }

.cat-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .cat-results { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
