/* ==========================================================
   BITZO — Social Feed (prefix: bf-)  on top of the detail-page components (bd-*)
   A discovery feed: product / service / offer / reward / post cards. Poppins only, solid colours, no gradients, no stories.
   ========================================================== */

.bf { --bf-product: #5B0C9A; --bf-product-soft: #F3EEFB; --bf-service: #3F6D50; --bf-service-soft: #E7F1EA; --bf-offer: #C2452A; --bf-offer-soft: #FBE9E2; --bf-reward: #8A6317; --bf-reward-soft: #FBF0DC; --bf-post: #5A5460; --bf-post-soft: #F1EDF3; }

.bf-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr) 320px; gap: 32px; padding: 14px 0 0; align-items: start; }
.bf-shell.no-right { grid-template-columns: 232px minmax(0, 1fr); }

/* ---------- Left navigation ---------- */
.bf-left { position: sticky; top: calc(var(--bd-sticky, 116px) + 16px); display: flex; flex-direction: column; gap: 22px; padding-top: 6px; max-height: calc(100vh - var(--bd-sticky, 116px) - 32px); overflow-y: auto; scrollbar-width: none; }
.bf-left::-webkit-scrollbar { display: none; }
.bf-nav { display: flex; flex-direction: column; gap: 2px; }
.bf-nav h5 { margin: 0 0 6px; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8B8390; }
.bf-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #4A4450; transition: background-color .15s ease, color .15s ease; }
.bf-nav a i { width: 18px; text-align: center; color: #8B8390; font-size: 14px; transition: color .15s ease; }
.bf-nav a:hover { background: #fff; color: var(--bd-primary); }
.bf-nav a:hover i { color: var(--bd-primary); }
.bf-nav a.on { background: var(--bd-primary-soft); color: var(--bd-primary); font-weight: 600; }
.bf-nav a.on i { color: var(--bd-primary); }

/* ---------- Heading, tabs, filters ---------- */
.bf-main { min-width: 0; }
.bf-title h1 { margin: 6px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.bf-title p { margin: 0; font-size: 14px; color: var(--bd-muted); line-height: 1.6; }
.bf-tabs { display: flex; gap: 6px; margin-top: 20px; border-bottom: 1px solid var(--bd-line); overflow-x: auto; scrollbar-width: none; }
.bf-tabs::-webkit-scrollbar { display: none; }
.bf-tabs a { flex: none; padding: 12px 16px; font-size: 14.5px; font-weight: 500; color: var(--bd-muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease; }
.bf-tabs a:hover { color: var(--bd-primary); }
.bf-tabs a.on { color: var(--bd-primary); border-bottom-color: var(--bd-primary); font-weight: 600; }
.bf-filters { display: flex; gap: 8px; padding: 16px 0 20px; overflow-x: auto; scrollbar-width: none; }
.bf-filters::-webkit-scrollbar { display: none; }
.bf-filters a { flex: none; padding: 8px 18px; border: 1px solid var(--bd-line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: #4A4450; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.bf-filters a:hover { border-color: #C9B5E0; color: var(--bd-primary); }
.bf-filters a.on { background: var(--bd-primary); border-color: var(--bd-primary); color: #fff; }

/* ---------- Cards ---------- */
.bf-list { display: flex; flex-direction: column; gap: 24px; }
.bf-card { position: relative; border: 1px solid var(--bd-line); border-radius: 22px; background: #fff; overflow: hidden; box-shadow: var(--bd-shadow); }
.bf-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 14px; }
.bf-head .bd-logo { width: 46px; height: 46px; border-radius: 14px; }
.bf-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bf-head .name { display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 600; line-height: 1.35; min-width: 0; }
.bf-head .name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-head .name:hover { color: var(--bd-primary); }
.bf-head .meta { font-size: 12px; color: var(--bd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--bf-post-soft); color: var(--bf-post); }
.bf-chip i { font-size: 10.5px; }
.bf-chip.product { background: var(--bf-product-soft); color: var(--bf-product); }
.bf-chip.service { background: var(--bf-service-soft); color: var(--bf-service); }
.bf-chip.offer { background: var(--bf-offer-soft); color: var(--bf-offer); }
.bf-chip.reward { background: var(--bf-reward-soft); color: var(--bf-reward); }
.bf-follow-form { margin: 0; flex: none; }
.bf-follow { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border: 1.5px solid #D9C6EE; border-radius: 999px; background: #fff; color: var(--bd-primary); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; white-space: nowrap; }
.bf-follow i { font-size: 10.5px; }
.bf-follow:hover { background: var(--bd-primary-soft); border-color: var(--bd-primary); }
.bf-follow.following { background: var(--bd-primary-soft); border-color: transparent; }
.bf-follow[disabled] { opacity: .6; cursor: wait; }

.bf-caption { margin: 0; padding: 0 20px 14px; font-size: 14.5px; line-height: 1.75; color: #35303A; overflow-wrap: anywhere; }

.bf-media { position: relative; display: block; background: #F7F4EE; }
.bf-hero { aspect-ratio: 4 / 3; overflow: hidden; }
.bf-hero.wide { aspect-ratio: 16 / 9; }
.bf-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bf-hero:hover img { transform: scale(1.025); }
.bf-hero .empty { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 52px; color: #C2BAC7; }
.bf-hero .bitzo-premium-badge { top: 14px; left: 14px; }
.bf-badge { position: absolute; left: 16px; bottom: 16px; padding: 9px 16px; border-radius: 12px; background: var(--bf-offer); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.1; box-shadow: 0 6px 16px rgba(194,69,42,.28); }
.bf-badge.gold { background: #fff; color: #7A5B1E; border: 1px solid #F0DEB9; font-size: 14px; box-shadow: 0 4px 14px rgba(28,22,32,.14); }
.bf-gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.bf-gallery .track::-webkit-scrollbar { display: none; }
.bf-gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; max-height: 620px; object-fit: cover; scroll-snap-align: start; display: block; }
.bf-gallery .count { position: absolute; top: 14px; right: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(28,22,32,.72); color: #fff; font-size: 12px; font-weight: 500; }

.bf-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 6px; }
.bf-body h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.bf-body h3 a:hover { color: var(--bd-primary); }
.bf-body .desc { margin: 0; font-size: 14px; line-height: 1.7; color: var(--bd-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-kicker { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bf-offer); }
.bf-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--bd-muted); }
.bf-facts .price { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--bd-ink); }
.bf-facts .pts-need { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--bf-reward); }
.bf-facts i { margin-right: 4px; }
.bf-facts .rate i { color: var(--bd-star); }
.bf-facts .rate small { color: var(--bd-muted); font-size: 12px; }
.bf-progress { padding: 12px 14px; border: 1px solid var(--bd-line); border-radius: 14px; background: #FBF9F6; font-size: 13px; color: #4A4450; display: flex; flex-direction: column; gap: 9px; }
.bf-progress.ready { border-color: #BFE3CD; background: var(--bd-ok-soft); color: var(--bd-ok); font-weight: 500; }
.bf-progress .track { display: block; height: 7px; border-radius: 99px; background: #EFEAF3; overflow: hidden; }
.bf-progress .track i { display: block; height: 100%; background: var(--bd-primary); border-radius: 99px; }
.bf-trend { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--bf-reward); }

.bf-attach { display: flex; align-items: center; gap: 14px; margin: 2px 20px 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--bd-line); border-radius: 16px; background: #FBF9F6; transition: border-color .15s ease, background-color .15s ease; }
.bf-attach:hover { border-color: #CDB8E4; background: #fff; }
.bf-attach .thumb { flex: none; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: #EFEAF3; display: flex; align-items: center; justify-content: center; color: #B5AEB9; font-size: 20px; }
.bf-attach .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-attach .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bf-attach small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bd-primary); }
.bf-attach strong { font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-attach .sub { font-size: 13px; color: var(--bd-muted); }
.bf-attach > i { color: #B5AEB9; font-size: 12px; }
.bf-strip { display: flex; align-items: center; gap: 12px; margin: 2px 20px 14px; padding: 12px 14px; border: 1px solid #F0DEB9; border-radius: 14px; background: var(--bf-reward-soft); font-size: 13px; color: #6A5220; }
.bf-strip .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--bitzo-gold, #B9852A); }
.bf-strip .t { flex: 1; min-width: 0; line-height: 1.5; }
.bf-card > .bd-pts { margin: 0 20px 8px; }

/* ---------- Actions ---------- */
.bf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; padding: 12px 14px 14px 20px; }
.bf-cta { margin-right: 6px; min-height: 40px; padding: 0 20px; font-size: 13.5px; }
.bf-open { margin-right: 6px; font-size: 13px; font-weight: 500; color: var(--bd-primary); }
.bf-open:hover { text-decoration: underline; }
.bf-react { display: flex; align-items: center; gap: 2px; }
.bf-acts-r { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.bf-inline { margin: 0; display: inline-flex; }
.bf-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #4A4450; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.bf-btn i { font-size: 16px; }
.bf-btn:hover { background: #F5F1EA; }
.bf-btn:focus-visible { outline: 2px solid var(--bd-primary); outline-offset: 1px; }
.bf-btn .n:empty { display: none; }
.bf-like.on { color: #D81B60; }
.bf-like.on i { color: #D81B60; }
.bf-dislike.on { color: var(--bd-primary); }
.bf-save.on { color: var(--bd-primary); }
.bf-btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Comments ---------- */
.bf-comments { border-top: 1px solid var(--bd-line); padding: 16px 20px 18px; background: #FDFCFA; }
.bf-comments[hidden] { display: none; }
.bf-clist { display: flex; flex-direction: column; gap: 14px; }
.bf-c { display: flex; gap: 10px; align-items: flex-start; }
.bf-c .av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bd-primary-soft); color: var(--bd-primary); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.bf-c .bub { min-width: 0; flex: 1; }
.bf-c .top { display: flex; align-items: baseline; gap: 8px; }
.bf-c .top strong { font-size: 13px; font-weight: 600; }
.bf-c .top time { font-size: 11.5px; color: var(--bd-muted); }
.bf-c p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: #35303A; overflow-wrap: anywhere; white-space: pre-wrap; }
.bf-c .reply-btn { margin-top: 3px; padding: 2px 0; border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--bd-muted); cursor: pointer; }
.bf-c .reply-btn:hover { color: var(--bd-primary); }
.bf-c .replies { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; padding-left: 4px; border-left: 2px solid var(--bd-line); }
.bf-c .replies .bf-c { padding-left: 10px; }
.bf-c .replies .av { width: 26px; height: 26px; font-size: 11px; }
.bf-cnone, .bf-cload { margin: 0; font-size: 13px; color: var(--bd-muted); }
.bf-cform { margin-top: 16px; }
.bf-cform .row { display: flex; gap: 8px; }
.bf-cform input[type=text] { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1.5px solid var(--bd-line); border-radius: 999px; background: #fff; font-size: 13.5px; }
.bf-cform input[type=text]:focus { outline: none; border-color: var(--bd-primary); box-shadow: 0 0 0 3px var(--bd-primary-soft); }
.bf-replying { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 6px 12px; border-radius: 10px; background: var(--bd-primary-soft); font-size: 12.5px; color: var(--bd-primary); }
.bf-replying[hidden] { display: none; }
.bf-replying button { border: 0; background: transparent; color: var(--bd-primary); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.bf-login-note { margin: 14px 0 0; font-size: 13px; color: var(--bd-muted); }
.bf-login-note a { color: var(--bd-primary); font-weight: 500; }

/* ---------- Empty, loading, end ---------- */
.bf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 24px; border: 1px dashed #D5CBE0; border-radius: 22px; background: #fff; }
.bf-empty .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--bd-primary-soft); color: var(--bd-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.bf-empty h3 { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.bf-empty p { margin: 0 0 8px; max-width: 420px; font-size: 14px; line-height: 1.7; color: var(--bd-muted); }
.bf-more { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 0 8px; }
.bf-more[hidden], .bf-end[hidden], .bf-skel[hidden] { display: none; }
.bf-skel { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.bf-skel i { display: block; height: 130px; border-radius: 18px; background: #EFEAF3; animation: bfPulse 1.2s ease-in-out infinite; }
.bf-skel i:nth-child(2) { animation-delay: .15s; height: 90px; }
.bf-skel i:nth-child(3) { animation-delay: .3s; height: 60px; }
@keyframes bfPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.bf-end { margin: 26px 0 8px; text-align: center; font-size: 13px; color: var(--bd-muted); }

/* ---------- Right: discovery modules ---------- */
aside.bf-right { position: sticky; top: calc(var(--bd-sticky, 116px) + 16px); display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - var(--bd-sticky, 116px) - 32px); overflow-y: auto; scrollbar-width: none; padding: 6px 2px 2px; }
aside.bf-right::-webkit-scrollbar { display: none; }
aside.bf-right { margin-left: 0; }
.bf-mod { padding: 18px; border: 1px solid var(--bd-line); border-radius: 20px; background: #fff; }
.bf-mod h4 { margin: 0 0 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; }
.bf-mod h4 a { font-size: 12px; font-weight: 500; color: var(--bd-primary); }
.bf-mod h4 a:hover { text-decoration: underline; }
.bf-brow { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.bf-brow + .bf-brow { border-top: 1px solid #F1ECE4; }
.bf-brow .bd-logo { width: 42px; height: 42px; border-radius: 12px; }
.bf-brow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bf-brow .tx strong { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; }
.bf-brow .tx strong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-brow .tx small { font-size: 12px; color: var(--bd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-brow .tx:hover strong { color: var(--bd-primary); }
.bf-trow { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.bf-trow + .bf-trow { border-top: 1px solid #F1ECE4; }
.bf-trow .th { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #F3EEFB; color: var(--bd-primary); display: inline-flex; align-items: center; justify-content: center; }
.bf-trow .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-trow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bf-trow .tx strong { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-trow .tx small { font-size: 12px; color: var(--bd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-trow:hover strong { color: var(--bd-primary); }
.bf-modlink { display: block; margin-top: 6px; padding-top: 10px; border-top: 1px solid #F1ECE4; font-size: 12.5px; font-weight: 500; color: var(--bd-primary); text-align: center; }
.bf-rw { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: #2E0A4F; color: #fff; }
.bf-rw strong { font-size: 14.5px; font-weight: 600; }
.bf-rw span { font-size: 12.5px; color: #E2D5F1; line-height: 1.5; }
.bf-rw .track { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.bf-rw .track i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.bf-rw .bd-btn { background: #fff; border-color: #fff; color: #2E0A4F; margin-top: 4px; }
.bf-rw .bd-btn:hover { background: #F3EEFB; color: #2E0A4F; }

/* ---------- Share menu + toast ---------- */
.bf-sharemenu { position: absolute; z-index: 11500; min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--bd-line); border-radius: 14px; box-shadow: 0 12px 30px rgba(28,22,32,.18); font-family: 'Poppins', sans-serif; }
.bf-sharemenu[hidden] { display: none; }
.bf-sharemenu a, .bf-sharemenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; color: #35303A; text-align: left; cursor: pointer; }
.bf-sharemenu a:hover, .bf-sharemenu button:hover { background: var(--bd-primary-soft); color: var(--bd-primary); }
.bf-sharemenu i { width: 16px; text-align: center; color: #8B8390; }
.bf-toast { position: fixed; left: 50%; bottom: 28px; z-index: 11600; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 11px 20px; border-radius: 999px; background: #221B2B; color: #fff; font-family: 'Poppins', sans-serif; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.bf-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.bf-shell, .bf-shell.no-right { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
	aside.bf-right { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding: 0; }
}
@media (max-width: 900px) {
	.bf-shell, .bf-shell.no-right { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bf-left { display: none; }
	.bf-title h1 { font-size: 22px; }
	.bf-card { border-radius: 18px; }
	.bf-head { padding: 14px 14px 12px; gap: 10px; }
	.bf-caption { padding: 0 14px 12px; font-size: 14px; }
	.bf-body { padding: 16px 14px 4px; }
	.bf-body h3 { font-size: 18px; }
	.bf-actions { padding: 10px 8px 12px 14px; }
	.bf-attach, .bf-strip { margin-left: 14px; margin-right: 14px; }
	.bf-card > .bd-pts { margin-left: 14px; margin-right: 14px; }
	.bf-comments { padding: 14px; }
}
@media (max-width: 560px) {
	.bf-chip { display: none; }
	.bf-btn .lbl { display: none; }
	.bf-cta { flex: 1 1 100%; justify-content: center; margin: 0 6px 4px 0; }
	.bf-react { flex: 0 0 auto; }
	.bf-acts-r { margin-left: auto; }
	.bf-gallery img { aspect-ratio: 1 / 1; }
	.bf-hero { aspect-ratio: 1 / 1; }
	.bf-hero.wide { aspect-ratio: 4 / 3; }
	aside.bf-right { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.bf-hero img, .bf-skel i { animation: none; transition: none; }
}

/* Banner ad inside the feed list */
.bf-list .bz-banner { margin: 0; }

/* customer profile photo on comments */
.bf-c .av { overflow: hidden; }
.bf-c .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
