/* Connect Sold Feed */
.csf-home, .csf-page { --csf-up: #047857; --csf-up-bg: #ECFDF5; --csf-down: #B42318; --csf-down-bg: #FEF3F2; --csf-navy: var(--bc-navy, #0E2033); --csf-blue: var(--bc-blue, #2563EB); --csf-line: var(--bc-line, #E4E8EE); --csf-muted: var(--bc-muted, #5B6776); --csf-ink: var(--bc-ink, #1B2430); }
.csf-home { padding: 56px 0 24px; }
.csf-home .bc-wrap { position: relative; }

[data-csf-feed] [hidden], .csf-home [hidden], .csf-gate [hidden] { display: none !important; }

/* Header */
.csf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.csf-head h2 { margin: 6px 0 4px; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.15; color: var(--csf-navy); letter-spacing: -.02em; }
.csf-sub { margin: 0; color: var(--csf-muted); font-size: .98rem; }
.csf-sub b { color: var(--csf-ink); }
.csf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--csf-blue); }
.csf-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.csf-eyebrow--hero { color: #9CC0FF; margin-bottom: 10px; }
.csf-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex: none; }
.csf-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #10B981; opacity: 0; animation: csf-ping 1.8s ease-out infinite; }
@keyframes csf-ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.csf-all { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 700; color: var(--csf-blue); text-decoration: none; font-size: .95rem; }
.csf-all svg, .csf-card--more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.csf-all:hover { text-decoration: underline; }

/* Pulse chips */
.csf-pulse { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.csf-pchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--csf-line); font-size: .84rem; color: var(--csf-muted); }
.csf-pchip b { color: var(--csf-navy); font-size: .95rem; }
.csf-pchip--new { background: var(--csf-up-bg); border-color: #A7F3D0; color: var(--csf-up); }
.csf-pchip--new b { color: var(--csf-up); }
.csf-pulse--hero { margin: 18px 0 0; }
.csf-pulse--hero .csf-pchip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.8); }
.csf-pulse--hero .csf-pchip b { color: #fff; }
.csf-pulse--hero .csf-pchip--new { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.45); }

/* Tabs */
.csf-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px 14px; -webkit-overflow-scrolling: touch; }
.csf-tabs::-webkit-scrollbar { display: none; }
.csf-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--csf-line); background: #fff; color: var(--csf-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.csf-tab:hover { border-color: var(--csf-blue); color: var(--csf-blue); }
.csf-tab.is-on { background: var(--csf-navy); border-color: var(--csf-navy); color: #fff; }
.csf-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.csf-tab--game { border-color: #BFD3FB; background: var(--bc-blue-soft, #EAF1FF); color: var(--csf-blue); }
.csf-tab--game.is-on { background: var(--csf-blue); border-color: var(--csf-blue); color: #fff; }

/* Row (homepage) */
.csf-rowwrap { position: relative; }
.csf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px; margin: 0 -2px; }
.csf-row::-webkit-scrollbar { display: none; }
.csf-row > * { scroll-snap-align: start; }
.csf-arrow { position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--csf-line); background: #fff; box-shadow: var(--bc-shadow); color: var(--csf-navy); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.csf-arrow--l { left: -18px; }
.csf-arrow--r { right: -18px; }
.csf-arrow:hover { color: var(--csf-blue); }

/* Card */
.csf-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--csf-line); border-radius: var(--bc-radius, 16px); overflow: hidden; text-decoration: none; color: var(--csf-ink); box-shadow: 0 1px 2px rgba(14,32,51,.05); transition: transform .18s, box-shadow .18s; min-width: 0; }
a.csf-card:hover { transform: translateY(-3px); box-shadow: var(--bc-shadow-lg, 0 20px 50px rgba(14,32,51,.14)); }
.csf-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #E9EEF5; overflow: hidden; }
.csf-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.csf-card:hover .csf-card__img img { transform: scale(1.04); }
.csf-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #16304A, #0E2033); }
.csf-card__ph svg { width: 44px; height: 44px; fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.6; }
.csf-chip { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(14,32,51,.82); color: #fff; font-size: .74rem; font-weight: 700; backdrop-filter: blur(4px); }
.csf-new { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 6px; background: #10B981; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.csf-badge { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.csf-badge--up { background: var(--csf-up-bg); color: var(--csf-up); }
.csf-badge--down { background: var(--csf-down-bg); color: var(--csf-down); }
.csf-badge--deal { background: var(--bc-blue-soft, #EAF1FF); color: var(--bc-blue-2, #1D4ED8); }
.csf-badge--fast { background: var(--csf-blue); color: #fff; }
.csf-badge--even { background: #fff; color: var(--csf-navy); }
.csf-badge--blur { background: #fff; color: var(--csf-up); filter: blur(3px); }
.csf-card__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.csf-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.csf-price { font-size: 1.28rem; font-weight: 800; color: var(--csf-navy); letter-spacing: -.01em; }
.csf-was { font-size: .82rem; color: var(--csf-muted); }
.csf-was s { text-decoration-thickness: 1px; }
.csf-gain { font-size: .82rem; color: var(--csf-muted); }
.csf-gain.is-up b { color: var(--csf-up); }
.csf-gain.is-down b { color: var(--csf-down); }
.csf-addr { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.csf-city { font-size: .84rem; color: var(--csf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csf-facts { display: flex; gap: 12px; margin-top: 6px; font-size: .84rem; color: var(--csf-ink); }
.csf-facts span { display: inline-flex; align-items: center; gap: 4px; }
.csf-facts svg { width: 16px; height: 16px; fill: none; stroke: var(--csf-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.csf-card--more { align-items: center; justify-content: center; gap: 10px; min-height: 260px; background: var(--bc-blue-soft, #EAF1FF); border-style: dashed; border-color: #BFD3FB; color: var(--csf-blue); font-weight: 700; text-align: center; padding: 20px; }
.csf-card--more span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; }

/* Skeleton + loading */
.csf-card--sk .csf-card__img, .csf-card--sk i { background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 50%, #EEF2F7 75%); background-size: 200% 100%; animation: csf-sh 1.2s linear infinite; }
.csf-card--sk i { display: block; height: 12px; border-radius: 6px; margin: 6px 0; }
.csf-card--sk i:nth-child(1) { width: 55%; height: 18px; }
.csf-card--sk i:nth-child(3) { width: 70%; }
@keyframes csf-sh { to { background-position: -200% 0; } }
.csf-loading { display: flex; gap: 6px; justify-content: center; padding: 40px 0; }
.csf-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--csf-blue, #2563EB); animation: csf-b 1s infinite ease-in-out; }
.csf-loading span:nth-child(2) { animation-delay: .15s; }
.csf-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes csf-b { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.csf-none { color: var(--csf-muted); padding: 24px 0; }

/* Locked teaser */
.csf-lockwrap { position: relative; }
.csf-row--locked, .csf-grid--locked { pointer-events: none; user-select: none; }
.csf-card--locked .csf-card__img img { filter: blur(6px) saturate(.9); transform: scale(1.08); }
.csf-blur { filter: blur(5px); }
.csf-lockic svg { width: 16px; height: 16px; fill: none; stroke: var(--csf-muted); stroke-width: 2; }
.csf-lockwrap .csf-row--locked { -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.35)); mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.35)); }
.csf-gate { text-align: center; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--csf-line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--bc-shadow-lg, 0 20px 50px rgba(14,32,51,.14)); }
.csf-lockwrap .csf-gate { position: relative; z-index: 4; margin: -150px auto 0; width: calc(100% - 24px); }
.csf-gate__ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bc-blue-soft, #EAF1FF); margin-bottom: 8px; }
.csf-gate__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--csf-blue); stroke-width: 2; }
.csf-gate h3 { margin: 4px 0 8px; font-size: 1.3rem; color: var(--csf-navy); }
.csf-gate p { margin: 0 0 16px; color: var(--csf-muted); }
.csf-gate__btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.csf-gate__ok { display: block; margin-top: 10px; color: var(--csf-up); }
.csf-link { background: none; border: 0; padding: 4px; font: inherit; font-weight: 600; color: var(--csf-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.csf-empty { grid-column: 1 / -1; text-align: center; padding: 28px 20px; border: 1px dashed #BFD3FB; border-radius: 16px; background: var(--bc-blue-soft, #EAF1FF); min-width: min(100%, 520px); }
.csf-empty h3 { margin: 6px 0; color: var(--csf-navy); }
.csf-empty p { color: var(--csf-muted); margin: 0 0 14px; }

/* Feed page */
.csf-hero h1 { max-width: 820px; }
.csf-feed-sec { padding-top: 32px; }
.csf-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; max-width: 760px; }
.csf-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--csf-muted); }
.csf-filters select { width: 100%; appearance: auto; font: inherit; font-size: .92rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--csf-ink); padding: 9px 10px; border: 1px solid var(--csf-line); border-radius: 10px; background: #fff; min-width: 0; }
.csf-note { margin: 0 0 14px; color: var(--csf-muted); font-size: .92rem; }
.csf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.csf-lockwrap--feed .csf-grid--locked { -webkit-mask-image: linear-gradient(180deg, #000 20%, rgba(0,0,0,.2)); mask-image: linear-gradient(180deg, #000 20%, rgba(0,0,0,.2)); }
.csf-lockwrap--feed .csf-grid--locked { max-height: 560px; overflow: hidden; }
.csf-lockwrap--feed .csf-gate { margin-top: -300px; }
.csf-morewrap { text-align: center; margin: 26px 0 8px; }
.csf-morebtn { min-width: 220px; }

/* Price challenge */
.csf-game { max-width: 920px; margin: 0 auto; }
.csf-game__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.csf-game__head h2 { margin: 6px 0 4px; color: var(--csf-navy); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.csf-game__head p { margin: 0; color: var(--csf-muted); }
.csf-game__stats { display: flex; gap: 8px; }
.csf-game__stats span { display: flex; flex-direction: column; align-items: center; min-width: 72px; padding: 8px 10px; border: 1px solid var(--csf-line); border-radius: 12px; background: #fff; font-size: .72rem; color: var(--csf-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.csf-game__stats b { font-size: 1.3rem; color: var(--csf-navy); letter-spacing: 0; }
.csf-game__dots { display: flex; gap: 6px; margin: 0 0 14px; }
.csf-game__dots i { flex: 1; height: 6px; border-radius: 3px; background: var(--csf-line); }
.csf-game__dots i.is-cur { background: var(--csf-blue); }
.csf-game__dots i.is-great { background: #10B981; }
.csf-game__dots i.is-ok { background: #60A5FA; }
.csf-game__dots i.is-off { background: #F87171; }
.csf-game__card { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--csf-line); border-radius: 20px; overflow: hidden; box-shadow: var(--bc-shadow); }
.csf-game__card .csf-card__img { aspect-ratio: auto; min-height: 340px; }
.csf-game__info { display: flex; flex-direction: column; gap: 4px; padding: 22px; }
.csf-game__info .csf-addr { font-size: 1.15rem; white-space: normal; }
.csf-game__list { margin: 12px 0 4px; color: var(--csf-muted); }
.csf-game__list b { color: var(--csf-navy); }
.csf-game__guess { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--bc-bg, #F6F7F9); }
.csf-game__guess label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--csf-muted); }
.csf-game__guess output { font-size: 1.9rem; font-weight: 800; color: var(--csf-blue); letter-spacing: -.02em; }
.csf-game__guess input[type=range] { width: 100%; accent-color: var(--csf-blue); height: 28px; }
.csf-game__scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--csf-muted); margin-top: -4px; }
.csf-game__go { margin-top: 8px; width: 100%; }
.csf-game__reveal { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 16px; border-radius: 14px; background: var(--csf-navy); color: rgba(255,255,255,.8); animation: csf-pop .35s ease-out; }
@keyframes csf-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.csf-game__msg { color: #fff; font-weight: 700; }
.csf-game__msg b { color: #6EE7B7; }
.csf-game__sold { font-size: 1.05rem; color: #fff; }
.csf-game__sold b { font-size: 1.7rem; letter-spacing: -.02em; }
.csf-game__line { font-size: .88rem; }
.csf-game__btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.csf-game__reveal .csf-link { color: #9CC0FF; }
.csf-game__done { text-align: center; background: #fff; border: 1px solid var(--csf-line); border-radius: 20px; padding: 28px 22px; box-shadow: var(--bc-shadow); }
.csf-game__done h3 { margin: 12px 0 6px; font-size: 1.5rem; color: var(--csf-navy); }
.csf-game__done p { color: var(--csf-muted); max-width: 520px; margin: 0 auto 16px; }
.csf-game__done .csf-game__btns { justify-content: center; }
.csf-game__ring { --p: 0; display: inline-grid; place-items: center; align-content: center; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--csf-blue) calc(var(--p) * 1%), var(--csf-line) 0); }
.csf-game__ring b { font-size: 2rem; color: var(--csf-navy); line-height: 1; }
.csf-game__ring small { color: var(--csf-muted); }
.csf-game__recap { list-style: none; margin: 22px 0 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.csf-game__recap a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--csf-line); text-decoration: none; color: var(--csf-ink); }
.csf-game__recap img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.csf-game__recap span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.csf-game__recap b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csf-game__recap small { color: var(--csf-muted); }
.csf-game__recap em { font-style: normal; font-weight: 800; color: var(--csf-up); }

/* Responsive */
@media (max-width: 1100px) { .csf-row { grid-auto-columns: minmax(250px, calc((100% - 32px) / 3)); } }
@media (max-width: 860px) {
	.csf-row { grid-auto-columns: 46%; }
	.csf-arrow { display: none; }
	.csf-game__card { grid-template-columns: 1fr; }
	.csf-game__card .csf-card__img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
	.csf-home { padding: 36px 0 12px; }
	.csf-head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.csf-row { grid-auto-columns: 80%; gap: 12px; }
	.csf-pulse { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	.csf-pulse::-webkit-scrollbar { display: none; }
	.csf-pchip { flex: none; }
	.csf-pulse--hero { flex-wrap: wrap; margin-right: 0; }
	.csf-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csf-lockwrap .csf-gate { margin-top: -110px; }
	.csf-lockwrap--feed .csf-grid--locked { max-height: 460px; }
	.csf-lockwrap--feed .csf-gate { margin-top: -220px; }
	.csf-grid { grid-template-columns: 1fr; gap: 14px; }
	.csf-game__head { flex-direction: column; align-items: flex-start; }
	.csf-game__stats { width: 100%; }
	.csf-game__stats span { flex: 1; min-width: 0; }
	.csf-game__info { padding: 16px; }
	.csf-gate { padding: 22px 18px; }
}
