/* askJBoss 2.97 — Marketplace, Find friends, Messages, shared polish. Uses the brand variables, so dark mode follows. */

/* ===== Marketplace ===== */
.mk-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.mk-trust b { color: var(--x-gold, #f4b942); font-size: 15px; }
.mk-filters { margin: 0 0 16px; }
.mk-ftoggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--body); cursor: pointer; position: relative; }
.mk-ftoggle:hover { border-color: var(--x-ink, var(--green)); }
.mk-fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--x-gold, #f4b942); }
.mk-fset { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.mk-fgroup { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mk-flabel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.mk-fgroup label { cursor: pointer; }
.mk-fgroup label input { position: absolute; opacity: 0; pointer-events: none; }
.mk-fgroup label span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--soft-2); }
.mk-fgroup label input:checked + span { background: var(--x-ink, var(--green)); border-color: var(--x-ink, var(--green)); color: #fff; }
.mk-fgroup label input:focus-visible + span { outline: 2px solid var(--x-gold, #f4b942); outline-offset: 2px; }
.mk-fprice { width: 110px; height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft-2); color: var(--ink); font: 500 14px var(--body); }
.mk-fbtns { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.mgrid-full { grid-column: 1 / -1; }
.mcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.mcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(15, 31, 28, .45); border-color: transparent; }
.mcard.is-top { border-color: #f2c14e; box-shadow: 0 0 0 2px rgba(242,193,78,.35); }
.mcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mcard:hover .mcard-img img { transform: scale(1.04); }
.mcard.is-sold .mcard-img img { filter: grayscale(.85); opacity: .7; }
.mcard-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; opacity: .45; }
.mcard-flags { position: absolute; left: 10px; top: 10px; right: 48px; display: flex; flex-wrap: wrap; gap: 6px; }
.mf { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: rgba(255,255,255,.94); color: #12403c; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.mf-top { background: #f4b942; color: #3b2a00; }
.mf-urgent { background: #b4361f; color: #fff; }
.mf-sold { background: #0f1f1c; color: #fff; }
.mcard-count { position: absolute; right: 10px; bottom: 10px; height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(15,31,28,.62); backdrop-filter: blur(4px); }
.mcard-save { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #12403c; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 2; }
.mcard-save:hover { transform: scale(1.06); }
.mcard-save.on { background: #f4b942; color: #3b2a00; }
.mcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; color: var(--ink); text-decoration: none; flex: 1; }
.mcard-body:hover { color: var(--ink); }
.mcard-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 800 18px/1.2 var(--display); color: var(--x-ink, var(--green)); letter-spacing: -.01em; }
.mcard-price em { font: 700 11px var(--body); font-style: normal; padding: 3px 7px; border-radius: 999px; background: var(--hub-gold-soft, #fbe7b5); color: var(--hub-gold-text, #8f5f06); letter-spacing: 0; }
.mcard-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mcard-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.mcard-meta span { display: inline-flex; align-items: center; gap: 3px; }
.mcard-seller { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mcard-seller .is-shop { color: var(--hub-gold-text, #8f5f06); }
.mcard-tick { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #1d9bf0; color: #fff; font-size: 9px; font-weight: 900; vertical-align: 1px; }
.mcard-del { flex: none; font-size: 11.5px; color: var(--green-text, #12403c); background: var(--green-soft); padding: 2px 7px; border-radius: 999px; }
@media (max-width: 640px) {
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mcard { border-radius: 14px; }
  .mcard-body { padding: 10px 10px 12px; }
  .mcard-price { font-size: 16px; }
  .mcard-title { font-size: 13.5px; }
  .mcard-seller { font-size: 11.5px; }
  .mcard-del { display: none; }
  .mk-trust { gap: 6px 12px; font-size: 12.5px; }
  .mk-trust li:nth-child(4) { display: none; }
  .mk-fset { gap: 12px; }
  .mk-fbtns { margin-left: 0; width: 100%; }
  .mk-fbtns .btn { flex: 1; }
  .mk-fprice { width: 96px; }
}

/* ===== Live chat (2.97) ===== */
.lhub { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.lhub-rooms { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.lhub-rooms-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, var(--x-ink, #12403c), #0a2522); color: #fff; }
.lhub-rooms-head h1 { margin: 0; font: 800 22px var(--display); color: #fff; }
.lhub-rooms-head p { margin: 4px 0 12px; font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.45; }
.lhub-find { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.lhub-find input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 500 14px var(--body); outline: none; }
.lhub-find input::placeholder { color: rgba(255,255,255,.6); }
.lhub-list { overflow-y: auto; padding: 6px; }
.lhub-room { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.lhub-room:hover { background: var(--soft-2); color: var(--ink); }
.lhub-room.on { background: var(--green-soft); }
.lhub-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); font: 800 12px var(--body); color: var(--x-ink, var(--green)); }
.lhub-room.on .lhub-ic { background: var(--x-ink, var(--green)); color: #fff; }
.lhub-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; display: flex; flex-direction: column; }
.lhub-name small { font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhub-live { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #fff; background: #e0362c; padding: 2px 6px; border-radius: 999px; }
.lhub-switch { display: none; }
.lhub-rules { font-size: 12.5px; color: var(--muted); margin: 10px 4px 0; }

.lv { padding: 0; overflow: hidden; border-radius: 22px; }
.lv-head { padding: 14px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.lv-head h3 { font: 800 17px var(--display); }
.live-dot.off { background: #9aa5a0; animation: none; }
.lv-online { font-size: 12.5px; color: var(--muted); background: var(--soft-2); padding: 4px 10px; border-radius: 999px; }
.lv-wrap { position: relative; }
.live-feed.lv-feed { height: 420px; padding: 10px 12px 14px; background: var(--soft-2); border: 0; border-radius: 0; scroll-behavior: auto; }
.lv--big .live-feed.lv-feed { height: min(62vh, 620px); }
.live--compact .live-feed.lv-feed { height: 300px; }
.lv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 200px; color: var(--muted); text-align: center; }
.lv-empty span { font-size: 34px; }
.lv-empty p { margin: 0; font-size: 13.5px; }
.lv-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--x-ink, var(--green)); animation: lvspin .8s linear infinite; font-size: 0 !important; }
@keyframes lvspin { to { transform: rotate(360deg); } }
.lv-day { display: flex; justify-content: center; margin: 12px 0 6px; }
.lv-day span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.lv-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 86%; }
.lv-msg.cont { margin-top: 3px; }
.lv-msg.mine { margin-left: auto; flex-direction: row-reverse; }
.lv-av { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font: 800 12px var(--body); text-decoration: none; }
.lv-av img { width: 100%; height: 100%; object-fit: cover; }
.lv-av.ghost { visibility: hidden; height: 0; }
.lv-bub { position: relative; min-width: 0; background: var(--card); border: 1px solid var(--line); padding: 7px 12px 6px; border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lv-msg.cont .lv-bub { border-radius: 18px 18px 18px 6px; }
.lv-msg.mine .lv-bub { background: var(--x-ink, var(--green)); border-color: transparent; color: #fff; border-radius: 18px 18px 6px 18px; }
.lv-msg.at-me .lv-bub { box-shadow: 0 0 0 2px var(--x-gold, #f4b942); }
.lv-meta { font-size: 12px; font-weight: 700; margin-bottom: 1px; display: flex; gap: 4px; align-items: center; }
.lv-meta a { color: var(--x-ink, var(--green)); text-decoration: none; }
.lv-text { font-size: 15px; line-height: 1.42; overflow-wrap: anywhere; white-space: pre-wrap; }
.lv-at { color: #b06a00; font-weight: 700; }
.lv-msg.mine .lv-at { color: var(--x-gold, #f4b942); }
.lv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.lv-time { font-size: 10.5px; color: var(--muted); margin-right: 2px; }
.lv-msg.mine .lv-time { color: rgba(255,255,255,.7); }
.lv-rx { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft-2); font-size: 12px; cursor: default; color: var(--ink); }
.lv-rx.can { cursor: pointer; }
.lv-rx b { font-size: 11px; }
.lv-acts { position: absolute; top: -16px; right: 8px; display: none; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); z-index: 2; }
.lv-msg.mine .lv-acts { right: auto; left: 8px; }
.lv-msg:hover .lv-acts, .lv-msg:focus-within .lv-acts { display: flex; }
.lv-pick { display: flex; }
.lv-acts button { border: 0; background: none; cursor: pointer; font-size: 15px; width: 26px; height: 26px; border-radius: 50%; color: var(--ink); }
.lv-acts button:hover { background: var(--soft); transform: scale(1.12); }
.lv-jump { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); border: 0; cursor: pointer; background: var(--x-ink, var(--green)); color: #fff; font: 700 13px var(--body); padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.lv-form { margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); position: relative; }
.lv-input { display: flex; align-items: center; gap: 6px; background: var(--soft-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lv-input:focus-within { border-color: var(--x-ink, var(--green)); }
.lv-input input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 4px; font: 500 15px var(--body); color: var(--ink); outline: none; }
.lv-emo { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 19px; cursor: pointer; }
.lv-emo:hover { background: var(--soft); }
.lv-count { font-size: 12px; color: var(--muted); }
.lv-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--x-ink, var(--green)); color: #fff; cursor: pointer; }
.lv-send:disabled { opacity: .45; cursor: default; }
.lv-emojis { position: absolute; left: 12px; bottom: 62px; display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); z-index: 3; }
.lv-emojis button { border: 0; background: none; font-size: 22px; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; }
.lv-emojis button:hover { background: var(--soft); }
.lv .live-login { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.lv .live-err { padding: 0 8px; }
@media (max-width: 900px) {
  .lhub { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 12px 100px; }
  .lhub-rooms { position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); max-height: none; border-radius: 0 22px 22px 0; z-index: 90; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .lhub-rooms.open { transform: none; }
  .lhub-switch { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; margin-bottom: 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 14px var(--body); cursor: pointer; }
  .lv--big .live-feed.lv-feed { height: calc(100vh - 330px); min-height: 320px; }
  .lv-msg { max-width: 92%; }
  .lv-acts { top: auto; bottom: -14px; }
}
@media (hover: none) { .lv-msg:hover .lv-acts { display: none; } .lv-msg.show-acts .lv-acts { display: flex; } }
/* full-screen chat pages: floating buttons would cover the Send button */
body:has(.lhub) .ask-fab, body:has(.lhub) .lchat, body:has(.lhub) .earn-pop,
body:has(.msx) .ask-fab, body:has(.msx) .lchat, body:has(.msx) .earn-pop { display: none !important; }
@media (max-width: 900px) { .lhub-main { padding: 0 2px; } .lhub-switch { margin-left: 2px; } }

/* ===== Follow button (2.97) ===== */
.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--x-ink, var(--green)); background: var(--x-ink, var(--green)); color: #fff; font: 700 14px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.fbtn:hover { background: var(--x-ink-2, #1b4c47); color: #fff; }
.fbtn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.fbtn--block { width: 100%; }
.fbtn span { display: inline-flex; align-items: center; gap: 5px; }
.fbtn.on { background: transparent; color: var(--x-ink, var(--green)); border-color: var(--line); }
.fbtn.on .fbtn-no { display: none; }
.fbtn.on:hover { border-color: #b4361f; color: #b4361f; background: var(--red-soft, #fcedea); }
.fbtn.on:hover .fbtn-yes { display: none; }
.fbtn.on:hover .fbtn-no { display: inline; }
.fbtn:disabled { opacity: .7; }
@media (hover: none) { .fbtn.on:hover { border-color: var(--line); color: var(--x-ink, var(--green)); background: transparent; } .fbtn.on:hover .fbtn-yes { display: inline; } .fbtn.on:hover .fbtn-no { display: none; } }
html[data-theme="dark"] .fbtn { background: #f4b942; border-color: #f4b942; color: #12403c; }
html[data-theme="dark"] .fbtn.on { background: transparent; color: #f3efe6; border-color: var(--line); }

/* ===== Find friends (2.97) ===== */
.ffx { max-width: 1240px; margin: 0 auto; padding: 24px 20px 100px; display: flex; flex-direction: column; gap: 18px; }
.ffx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 26px 28px; border-radius: 26px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1f5a52 0%, var(--x-ink, #12403c) 45%, #0a2522 100%); }
.ffx-hero h1 { margin: 0; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--display); color: #fff; }
.ffx-hero p { margin: 8px 0 14px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.5; }
.ffx-counts { display: flex; gap: 10px; flex-wrap: wrap; }
.ffx-counts a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.ffx-counts b { color: var(--x-gold, #f4b942); }
.ffx-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 18px; padding: 6px 6px 6px 16px; color: #5b6d69; box-shadow: 0 16px 40px -20px rgba(0,0,0,.6); }
.ffx-search input { flex: 1; min-width: 0; border: 0; outline: none; height: 42px; font: 500 15px var(--body); color: #0f1f1c; background: none; }
.ffx-search button { height: 42px; padding: 0 18px; border: 0; border-radius: 13px; background: #f4b942; color: #12403c; font: 800 14px var(--body); cursor: pointer; }
.ffx-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ffx-tabs a { flex: none; height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.ffx-tabs a.on { background: var(--x-ink, var(--green)); border-color: var(--x-ink, var(--green)); color: #fff; }
.ffx-bar { display: flex; align-items: baseline; gap: 12px; }
.ffx-bar h2 { margin: 0; font: 800 20px var(--display); }
.ffx-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 22px; background: var(--card); color: var(--muted); }
.ffx-empty span { font-size: 38px; display: block; }
.ffx-empty b { display: block; color: var(--ink); font-size: 17px; margin-top: 6px; }
.ffx-empty p { margin: 4px 0 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 14px 14px; text-align: center; transition: box-shadow .18s, transform .18s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(15,31,28,.5); }
.pcard-link { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); text-decoration: none; flex: 1; }
.pcard-link:hover { color: var(--ink); }
.pcard-av { position: relative; margin-bottom: 8px; }
.pcard-av .avatar.lg { width: 76px; height: 76px; font-size: 24px; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--green-soft); }
.pcard-fy { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 800; background: #f4b942; color: #3b2a00; padding: 2px 7px; border-radius: 999px; }
.pcard-name { font-size: 15px; display: inline-flex; align-items: center; gap: 3px; justify-content: center; max-width: 100%; }
.pcard-user { color: var(--muted); font-size: 12.5px; }
.pcard-why { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--hub-gold-text, #8f5f06); min-height: 1.3em; }
.pcard-stats { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pcard-acts { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.pcard-acts form { margin: 0; }
.pcard-msg { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.pcard-msg:hover { border-color: var(--x-ink, var(--green)); }
.ffx-invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 22px; background: var(--hub-gold-soft, #fbe7b5); color: #3b2a00; }
.ffx-invite b { font-size: 17px; }
.ffx-invite p { margin: 2px 0 0; font-size: 14px; }
.ffx-invite-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .ffx { padding: 12px 12px 110px; gap: 14px; }
  .ffx-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; border-radius: 22px; }
  .ffx-search button { padding: 0 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 14px 10px 12px; border-radius: 18px; }
  .pcard-av .avatar.lg { width: 62px; height: 62px; }
  .pcard-stats { display: none; }
}

/* "People you may know" sidebar box */
.pymk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pymk-head h3 { margin: 0; }
.pymk-head a { font-size: 13px; font-weight: 700; }
.pymk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pymk-row:last-of-type { border-bottom: 0; }
.pymk-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.pymk-who .avatar { width: 40px; height: 40px; flex: none; }
.pymk-who > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.pymk-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pymk-who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pymk .fbtn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.pymk-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; height: 38px; border-radius: 12px; background: var(--soft-2); font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: none; }

/* ===== Messages (2.97) ===== */
.msx { max-width: 1240px; margin: 20px auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 140px); min-height: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.msx-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.msx-list-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.msx-title { display: flex; align-items: center; justify-content: space-between; }
.msx-title h1 { margin: 0; font: 800 24px var(--display); }
.msx-new { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--x-ink, var(--green)); }
.msx-search { margin-top: 12px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--soft-2); border: 1px solid var(--line); color: var(--muted); }
.msx-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 14px var(--body); color: var(--ink); }
.msx-tabs { display: flex; gap: 6px; margin-top: 10px; }
.msx-tabs button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 700 13px var(--body); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.msx-tabs button.on { background: var(--x-ink, var(--green)); border-color: var(--x-ink, var(--green)); color: #fff; }
.msx-tabs button span { background: #e0362c; color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; line-height: 17px; }
.msx-rows { flex: 1; overflow-y: auto; padding: 6px; }
.msx-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.msx-row:hover { background: var(--soft-2); color: var(--ink); }
.msx-row.on { background: var(--green-soft); }
.msx-row .avatar { width: 50px; height: 50px; flex: none; }
.msx-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msx-row-top, .msx-row-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msx-row-top b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 3px; }
.msx-row-top time { flex: none; font-size: 12px; color: var(--muted); }
.msx-prev { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msx-row.unread .msx-prev { color: var(--ink); font-weight: 700; }
.msx-row.unread .msx-row-top time { color: #0a7c58; font-weight: 700; }
.msx-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #0a7c58; color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.msx-tick { font-style: normal; font-size: 12px; margin-right: 4px; color: var(--muted); letter-spacing: -2px; }
.msx-tick.seen { color: #1d9bf0; }
.msx-none { text-align: center; padding: 40px 16px; color: var(--muted); }
.msx-none span { font-size: 36px; display: block; }
.msx-none b { display: block; color: var(--ink); margin: 6px 0 4px; }
.msx-none p { font-size: 13.5px; margin: 0 0 12px; }
.msx-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--soft-2); }
.msx-pane--empty { align-items: center; justify-content: center; }
.msx-hello { text-align: center; max-width: 360px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.msx-hello-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; background: var(--card); border: 1px solid var(--line); }
.msx-hello h2 { margin: 6px 0 0; font: 800 24px var(--display); }
.msx-hello p { margin: 0 0 8px; color: var(--muted); }
.msx-hello small { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.msx-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.msx-back { display: none; width: 38px; height: 38px; border-radius: 50%; place-items: center; color: var(--ink); }
.msx-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; }
.msx-who .avatar { width: 42px; height: 42px; flex: none; }
.msx-who > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.msx-who b { font-size: 16px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msx-who small { font-size: 12px; color: var(--muted); }
.msx-menu { position: relative; }
.msx-dots { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--ink); }
.msx-dots:hover { background: var(--soft); }
.msx-pop { position: absolute; right: 0; top: 44px; min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 16px 36px -16px rgba(0,0,0,.4); z-index: 5; }
.msx-pop a, .msx-pop button { display: flex; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: 600 14px var(--body); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.msx-pop a:hover, .msx-pop button:hover { background: var(--soft-2); }
.msx-pop form { margin: 0; }
.msx-pop button { color: #b4361f; }
.msx-product { margin: 10px 14px 0; }
.msx-body { flex: 1; overflow-y: auto; padding: 12px 16px 16px; }
.msx-safety { margin: 4px auto 10px; max-width: 420px; text-align: center; font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.msx-day { display: flex; justify-content: center; margin: 14px 0 6px; }
.msx-day span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.msx-msg { display: flex; margin-top: 8px; }
.msx-msg.cont { margin-top: 2px; }
.msx-msg.mine { justify-content: flex-end; }
.msx-bub { max-width: min(72%, 520px); background: var(--card); border: 1px solid var(--line); padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.msx-msg.mine .msx-bub { background: var(--x-ink, var(--green)); border-color: transparent; color: #fff; border-radius: 18px 18px 6px 18px; }
.msx-msg.cont:not(.mine) .msx-bub { border-top-left-radius: 8px; }
.msx-msg.cont.mine .msx-bub { border-top-right-radius: 8px; }
.msx-text { display: block; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msx-time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.msx-msg.mine .msx-time { color: rgba(255,255,255,.72); }
.msx-msg.mine .msx-tick { color: rgba(255,255,255,.72); margin: 0; }
.msx-msg.mine .msx-tick.seen { color: #8fd3ff; }
.msx-bub .bubble-product { margin-bottom: 6px; }
.msx-first { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 40px; color: var(--muted); }
.msx-first .avatar.lg { width: 72px; height: 72px; }
.msx-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); }
.msx-form textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; min-height: 44px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--soft-2); font: 500 15px/1.4 var(--body); color: var(--ink); outline: none; }
.msx-form textarea:focus { border-color: var(--x-ink, var(--green)); }
.msx-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--x-ink, var(--green)); color: #fff; cursor: pointer; }
.msx-send:disabled { opacity: .45; cursor: default; }
.msx-cant { margin: 0; padding: 14px; text-align: center; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .msx { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 140px); border-radius: 0; border-left: 0; border-right: 0; margin: 0; }
  .msx--chat .msx-list { display: none; }
  .msx--inbox .msx-pane { display: none; }
  .msx-list { border-right: 0; }
  .msx-back { display: grid; }
  .msx-bub { max-width: 84%; }
}

/* ===== Floating buttons on phones (2.97): smaller, and out of the way while reading ===== */
@media (max-width: 999px) {
  .lchat-fab { width: 50px; height: 50px; }
  .ask-fab { width: 44px !important; height: 44px !important; }
  body:has(.lchat) .ask-fab { bottom: calc(146px + env(safe-area-inset-bottom)) !important; }
  .ask-fab, .lchat:not(.is-open) { transition: transform .28s ease, opacity .28s ease; }
  body.fab-away .ask-fab, body.fab-away .lchat:not(.is-open) { transform: translateX(90px) !important; opacity: 0; pointer-events: none; }
}

/* page titles that were plain text */
.feed-title.page-h { display: block; font: 800 clamp(24px, 3vw, 32px)/1.15 var(--display); color: var(--ink); margin: 4px 0 14px; }

/* Bento home: Marketplace tile (2.97) */
.bx-market .bx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.bx-market .bx-head a { font-weight: 700; font-size: 13.5px; }
.bx-market .bx-mk a { color: var(--ink); text-decoration: none; }
.bx-mk-price { font: 800 15px var(--display); color: var(--x-ink, #12403c); margin-top: 6px; }
.bx-mk-none { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.bx-mk-sell { display: flex; justify-content: center; margin-top: 14px; }
.top-links .tl-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0362c; margin-right: 6px; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(224,54,44,.18); }
/* top menu "More ▾" (2.97) */
.tl-more { position: relative; display: inline-flex; }
.tl-more > button { border: 0; background: none; font: inherit; color: inherit; font-weight: inherit; cursor: pointer; padding: inherit; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; height: 100%; }
.top-links .tl-more > button { padding: 7px 13px; }
.tl-more > button.on, .tl-more > button.on:hover { background: #12403c; color: #fdfcfa; }
.tl-more > button:not(.on):hover { background: var(--soft); }
.tl-more-pop { position: fixed; min-width: 200px; display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); z-index: 80; }
.tl-more-pop a { padding: 10px 12px !important; border-radius: 10px !important; white-space: nowrap; }
.tl-more-pop a:hover { background: var(--soft); }


/* Post pop-up (2.97): choosing a file made the browser scroll the pop-up FRAME (header slid away, blank space
   below, sideways scrollbar). "clip" stops the frame from ever scrolling; long file names now wrap. */
.pm-panel { overflow: clip; }
.pm-body { overflow-x: hidden; }
.pm-form, .pm-form .field, .form .field { min-width: 0; }
.form .field .small[x-text], .pm-form .field .small[x-text], .form .upload .hint { overflow-wrap: anywhere; word-break: break-word; }
.form .field video { max-width: 100%; }

/* ===== 2.97.5: pop-up notice after login, logout, saving, posting … ===== */
.flash-toast { position: fixed; z-index: 120; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 18px; background: #10201A; color: #fff; box-shadow: 0 18px 44px -14px rgba(0,0,0,.55);
  font: 600 15px/1.4 var(--body); animation: flashIn .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -18px); } to { opacity: 1; transform: translate(-50%, 0); } }
.flash-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #F2B52B; color: #10201A; font-weight: 900; }
.flash-tx { flex: 1; min-width: 0; }
.flash-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }

/* ===== 2.97.5: "done" page (post / account deleted) ===== */
.done-wrap { min-height: 62vh; display: grid; place-items: center; padding: 30px 16px 110px; }
.done-card { width: min(520px, 100%); text-align: center; background: var(--card); border-radius: 26px; padding: 34px 26px; box-shadow: 0 24px 50px -32px rgba(16,32,26,.5); }
.done-ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; background: var(--green-soft); }
.done-card h1 { margin: 0 0 8px; font: 800 clamp(24px, 3vw, 30px)/1.15 var(--display); letter-spacing: -.02em; }
.done-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.done-mail { font-size: 13.5px !important; background: var(--soft-2); border-radius: 12px; padding: 8px 12px; display: inline-block; }
.done-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.done-acts .btn { min-width: 150px; }
.lo-del { color: #b4361f !important; }

/* ===== 2.97.6: /premium — all paid features ===== */
.prx { max-width: 1200px; margin: 0 auto; padding: 14px 20px 100px; display: flex; flex-direction: column; gap: 14px; }
.prx-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: center; padding: 26px 26px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1f5a52 0%, #10201A 55%); }
.prx-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F2B52B; }
.prx-hero h1 { margin: 6px 0 8px; font: 800 clamp(26px, 3vw, 36px)/1.08 var(--display); letter-spacing: -.02em; color: #fff; }
.prx-hero p { margin: 0; color: #cfe0da; font-size: 15px; line-height: 1.5; max-width: 560px; }
.prx-wallet { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.08); }
.prx-wallet small { color: #A9BDB3; font-weight: 700; }
.prx-wallet b { font: 800 28px var(--display); color: #fff; }
.prx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prx-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: var(--card); }
.prx-card h2 { margin: 2px 0 0; font: 800 19px var(--display); letter-spacing: -.01em; }
.prx-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.prx-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--soft-2); }
.prx-pro { background: #FFE9A8; } .prx-pro .prx-ic { background: rgba(255,255,255,.6); } .prx-pro p { color: #5c4a10; }
.prx-business .prx-ic { background: #DDEFE6; } .prx-sms .prx-ic { background: #E8E0F7; } .prx-boost .prx-ic { background: #FCE8E4; }
.prx-price { font: 800 16px var(--display); color: var(--green); }
.prx-pro .prx-price { color: #6B4A00; }
.prx-status { font-size: 13px; font-weight: 700; color: #0a7c58; }
.prx-cta { margin-top: 4px; }
.prx-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prx-how div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); font-size: 14px; }
.prx-how b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #10201A; color: #F2B52B; font-weight: 900; }
html[data-theme="dark"] .prx-pro { background: #3A3015; } html[data-theme="dark"] .prx-pro p, html[data-theme="dark"] .prx-pro .prx-price { color: #F6D77A; }
@media (max-width: 760px) {
  .prx { padding: 12px 12px 110px; }
  .prx-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .prx-how { grid-template-columns: minmax(0, 1fr); }
}
