/* =====================================================================
   Breedo Market — components
   surfaces · chips · cards · filters · modals · toasts · forms · feed
   ===================================================================== */

/* ------------------------------- Surfaces ------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t), background var(--t);
}
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-xs);
}
.panel-flat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 30px); }
.glass-panel {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.ink-panel {
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .ink-panel { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.ink-panel h3, .ink-panel h4 { color: inherit; }
.ink-panel p { color: inherit; opacity: .72; }

/* -------------------------------- Chips --------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all var(--t-fast);
}
.chip:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
.chip.active { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: var(--shadow-brand); }
.chip svg { width: 15px; height: 15px; }
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chip-row > * { flex: 0 0 auto; }
.chip-row::-webkit-scrollbar { display: none; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--glass); color: var(--muted);
}
.tag-featured { background: rgba(41, 121, 255, .12); color: #1565C0; }
.tag-urgent { background: rgba(233, 30, 140, .12); color: #880E4F; }
.tag-new { background: rgba(255, 107, 53, .18); color: #BF360C; }
.tag-negotiable { background: rgba(255, 152, 0, .18); color: #E65100; }
.tag-mine { background: var(--brand); color: var(--brand-ink); }
[data-theme="dark"] .tag-featured { background: rgba(100, 181, 246, .16); color: #90CAF9; }
[data-theme="dark"] .tag-urgent { background: rgba(233, 30, 140, .18); color: #F48FB1; }
[data-theme="dark"] .tag-new { background: rgba(255, 107, 53, .18); color: #FF8C5A; }
[data-theme="dark"] .tag-negotiable { background: rgba(255, 152, 0, .16); color: #FFB74D; }

/* tags on top of a photo — glass so they read on any image */
.lcard-tags .tag, .post-media .tag {
  background: rgba(14, 13, 11, .52); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lcard-tags .tag-featured { color: #B7F0DC; }
.lcard-tags .tag-urgent { color: #FFB3AD; }
.lcard-tags .tag-new { color: var(--lime); }
.lcard-tags .tag-negotiable { color: #FFD79A; }
.lcard-tags .tag-mine { background: var(--lime); color: var(--lime-ink); border-color: transparent; }

.pill-stat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.pill-stat svg { width: 14px; height: 14px; opacity: .75; }

.verified {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff; flex-shrink: 0;
}
[data-theme="dark"] .verified { color: var(--lime-ink); }
.verified svg { width: 10px; height: 10px; }

/* ---------------------------- Listing cards ----------------------------- */
.listings-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.listings-grid.list-view { grid-template-columns: 1fr; gap: 16px; }

.lcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; isolation: isolate; box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color var(--t);
}
.lcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

.lcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--img-bg); margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 10px); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e-out); }
.lcard:hover .lcard-media img { transform: scale(1.07); }
.lcard-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14, 13, 11, .62), rgba(14, 13, 11, .05) 46%);
}
.lcard-tags { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; max-width: 76%; }

/* price as a glass caption chip (WebNewBiz-style overlay) */
.lcard-price-float {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
}
.lcard-price-float small { font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: line-through; }

.save-btn {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.save-btn:hover { transform: scale(1.1); background: #fff; color: var(--accent); }
.save-btn svg { width: 18px; height: 18px; transition: transform .35s var(--e-spring); }
.save-btn.saved { background: var(--accent); color: #fff; border-color: transparent; }
.save-btn.saved svg { fill: currentColor; transform: scale(1.06); }
.save-btn.burst::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--accent); animation: burst .6s var(--e-out) forwards;
}

.lcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lcard-title {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.04rem; line-height: 1.25; letter-spacing: -.025em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--t-fast);
}
.lcard:hover .lcard-title { color: var(--accent); }
.lcard-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted-2); flex-wrap: wrap; margin-top: auto; }
.lcard-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.lcard-seller { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.lcard-seller img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lcard-seller span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.lcard-cond { margin-left: auto; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* list view */
.list-view .lcard { flex-direction: row; align-items: stretch; }
.list-view .lcard-media { width: 272px; flex-shrink: 0; aspect-ratio: auto; margin: 8px 0 8px 8px; }
.list-view .lcard-body { padding: 20px 24px; }
.list-view .lcard-title { font-size: 1.22rem; -webkit-line-clamp: 1; }
.list-view .lcard-desc { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) {
  .list-view .lcard { flex-direction: column; }
  .list-view .lcard-media { width: auto; aspect-ratio: 4/3; margin: 8px 8px 0; }
}

/* skeleton */
.skel-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 8px 8px 16px; }
.skel { position: relative; overflow: hidden; background: var(--glass-2); }
.skel::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shimmer 1.4s infinite;
}
[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); }
.skel-media { aspect-ratio: 4/3; border-radius: calc(var(--r-lg) - 10px); }
.skel-line { height: 12px; border-radius: 6px; margin: 14px 12px 0; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; }

/* --------------------------- Category tiles ----------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 1 / 1.08; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; border: 1px solid var(--line); isolation: isolate; box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--e-out); }
.cat-tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(9, 14, 11, .88) 6%, rgba(9, 14, 11, .28) 52%, rgba(9, 14, 11, .06));
}
.cat-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.cat-tile:hover img { transform: scale(1.1); }
.cat-tile .c-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); color: #fff; margin-bottom: 12px;
  transition: transform .5s var(--e-spring), background .4s, color .4s;
}
.cat-tile:hover .c-icon { transform: translateY(-3px) rotate(-8deg); background: var(--lime); color: var(--lime-ink); }
.cat-tile h4 { color: #fff; font-size: 1rem; }
.cat-tile p { color: rgba(255, 255, 255, .7); font-size: .78rem; margin-top: 3px; }

/* ------------------------------- Filters -------------------------------- */
.filters {
  position: sticky; top: calc(var(--header-h) + 8px);
  align-self: start; width: 288px; flex-shrink: 0;
  max-height: calc(100vh - var(--header-h) - 30px); overflow-y: auto;
  padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.filter-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-block:first-of-type { padding-top: 0; }
.filter-block h5 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 700; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.filter-list button:hover { background: var(--glass); color: var(--ink); transform: translateX(3px); }
.filter-list button.active { background: var(--glass-2); color: var(--ink); }
.filter-list button.active .fl-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(15, 138, 104, .16); }
.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; transition: all var(--t); }
.filter-list .count { margin-left: auto; font-size: .76rem; color: var(--muted-2); font-weight: 700; }

.range-wrap { padding: 4px 2px 0; }
.range-values { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 700; margin-bottom: 12px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 4px;
  background: var(--glass-2); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--surface); cursor: grab;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s var(--e-spring);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(41, 121, 255, .18); }
input[type="range"]::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); cursor: grab; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 0; }
.switch input { display: none; }
.switch .track { width: 44px; height: 25px; border-radius: 99px; background: var(--line-2); position: relative; transition: background var(--t); flex-shrink: 0; }
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-xs); transition: transform .3s var(--e-spring);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch span.lbl { font-size: .89rem; font-weight: 600; color: var(--muted); }

/* --------------------------------- Tabs --------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); position: relative; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; padding: 15px 18px; font-size: .95rem; font-weight: 700; color: var(--muted);
  white-space: nowrap; transition: color var(--t-fast); font-family: 'Outfit', sans-serif; letter-spacing: -.02em;
}
.tabs button:hover, .tabs button.active { color: var(--ink); }
.tab-ink { position: absolute; bottom: -1px; height: 3px; border-radius: 3px; background: var(--accent); transition: transform .45s var(--e-out), width .45s var(--e-out); }

/* -------------------------------- Modals -------------------------------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-back { position: absolute; inset: 0; background: rgba(14, 13, 11, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--e-out); }
.modal.open .modal-back { opacity: 1; }
.modal-box {
  position: relative; width: min(780px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(28px) scale(.95);
  transition: opacity .3s var(--e-out), transform .5s var(--e-spring);
}
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-box.narrow { width: min(470px, 100%); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: var(--surface); z-index: 4; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-head h3 { font-size: 1.1rem; }
.modal-body { padding: 26px; }
.modal-foot { padding: 20px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: all var(--t-fast); }
.modal-close:hover { background: var(--glass-2); color: var(--ink); transform: rotate(90deg); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 76%; padding: 12px 16px; border-radius: 20px; font-size: .92rem; line-height: 1.5; animation: bubbleIn .45s var(--e-spring) both; }
.bubble.them { background: var(--glass-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; background: var(--glass-2); border-radius: 20px; width: fit-content; align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

/* -------------------------------- Toasts -------------------------------- */
.toasts { position: fixed; bottom: 26px; right: 26px; z-index: 900; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; min-width: 270px; max-width: 380px;
  padding: 15px 20px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: .9rem; font-weight: 700; pointer-events: auto;
  animation: toastIn .5s var(--e-spring) both;
}
.toast.out { animation: toastOut .35s var(--e-in-out) forwards; }
.toast .t-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast.ok .t-ic { background: var(--lime); color: var(--lime-ink); }
.toast.info .t-ic { background: rgba(15, 138, 104, .14); color: var(--accent); }
.toast.warn .t-ic { background: rgba(232, 163, 61, .18); color: #96650F; }
.toast .t-ic svg { width: 16px; height: 16px; }
.toast small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .toasts { left: 16px; right: 16px; bottom: 16px; } .toast { min-width: 0; max-width: none; border-radius: var(--r-lg); } }

/* -------------------------------- Forms --------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; padding: 14px 18px; background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236E6B62' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239DA49D' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(196, 68, 60, .16); }
.err-msg { font-size: .8rem; color: var(--danger); font-weight: 600; display: none; }
.field.invalid .err-msg { display: block; animation: shakeX .4s; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 38px 20px; text-align: center;
  transition: all var(--t); cursor: pointer; background: var(--surface-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(41, 121, 255, .05); }
.dropzone .dz-ic {
  width: 58px; height: 58px; border-radius: 18px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-brand);
  animation: floaty 4s ease-in-out infinite;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin-top: 16px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); animation: pop .4s var(--e-spring); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(14, 13, 11, .7); color: #fff; display: grid; place-items: center; }
.thumb.cover::after { content: 'Cover'; position: absolute; left: 6px; bottom: 6px; font-size: .62rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); }

/* ------------------------------ Group cards ----------------------------- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.gcard {
  overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; box-shadow: var(--shadow-xs);
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out), border-color var(--t);
}
.gcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.gcard-cover { position: relative; height: 150px; overflow: hidden; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 10px); display: block; }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out); }
.gcard:hover .gcard-cover img { transform: scale(1.08); }
.gcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 13, 11, .5), transparent 60%); }
.gcard-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcard-title { display: flex; align-items: center; gap: 7px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -.03em; }
.gcard p { font-size: .89rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted-2); font-weight: 600; flex-wrap: wrap; }
.gcard-meta svg { width: 13px; height: 13px; }
.facepile { display: flex; }
.facepile img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -10px; transition: transform var(--t); }
.facepile img:first-child { margin-left: 0; }
.gcard:hover .facepile img { transform: translateY(-3px); }
.gcard-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }

/* -------------------------------- Feed ---------------------------------- */
.post { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs); transition: border-color var(--t), box-shadow var(--t); }
.post:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.post-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; }
.post-head img.pa { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.post-head .ph-name { font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: 6px; }
.post-head .ph-sub { font-size: .77rem; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.post-text { padding: 0 22px 14px; font-size: .98rem; line-height: 1.62; color: var(--ink-2); }
.post-media { position: relative; background: var(--img-bg); cursor: zoom-in; overflow: hidden; margin: 0 8px; border-radius: var(--r-md); }
.post-media img { width: 100%; max-height: 470px; object-fit: cover; transition: transform .8s var(--e-out); }
.post-media:hover img { transform: scale(1.03); }
.post-price {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .5);
}
.post-stats { display: flex; align-items: center; gap: 14px; padding: 14px 22px; font-size: .82rem; color: var(--muted-2); }
.react-pill { display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); }
.react-pill i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-size: .62rem; font-style: normal; }
.post-actions { display: flex; border-top: 1px solid var(--line); }
.post-actions button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; font-size: .89rem; font-weight: 700; color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.post-actions button:hover { background: var(--glass); color: var(--ink); }
.post-actions button.liked { color: var(--accent); }
.post-actions button.liked svg { fill: currentColor; animation: likePop .45s var(--e-spring); }
.post-actions svg { width: 18px; height: 18px; }
.comments { padding: 16px 22px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); }
.comment { display: flex; gap: 10px; animation: fadeUp .4s var(--e-out) both; }
.comment img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment .c-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 15px; font-size: .89rem; }
.comment .c-bubble b { display: block; font-size: .82rem; margin-bottom: 1px; }
.comment .c-meta { font-size: .73rem; color: var(--muted-2); margin: 5px 0 0 15px; display: flex; gap: 14px; }
.comment .c-meta button { font-weight: 700; color: var(--muted-2); }
.comment .c-meta button:hover { color: var(--accent); }
.comment-form { display: flex; gap: 10px; align-items: center; }
.comment-form img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.comment-form input { flex: 1; height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.comment-form input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* composer */
.composer { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.composer-top { display: flex; gap: 12px; align-items: center; }
.composer-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.composer-top button {
  flex: 1; text-align: left; height: 50px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted-2); font-size: .95rem;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.composer-top button:hover { background: var(--glass); border-color: var(--line-2); }
.composer-actions { display: flex; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.composer-actions button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: var(--r-pill); font-size: .87rem; font-weight: 700; color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.composer-actions button:hover { background: var(--glass); color: var(--ink); }
.composer-actions svg { width: 18px; height: 18px; }

/* ------------------------------ Empty state ----------------------------- */
.empty { text-align: center; padding: 76px 20px; }
.empty .e-ic {
  width: 92px; height: 92px; border-radius: 30px; margin: 0 auto 22px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted-2); box-shadow: var(--shadow-xs);
  animation: floaty 5s ease-in-out infinite;
}
.empty h3 { margin-bottom: 10px; }
.empty p { max-width: 400px; margin: 0 auto 24px; }

/* ------------------------------ Rating stars ---------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.stars .off { opacity: .22; }

/* --------------------- Signature blocks from research ------------------- */
/* stat row with hairline dividers (OneSol) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat-row > div { padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row > div:last-child { border-right: 0; }
.stat-row .s-big { font-family: 'Outfit', sans-serif; font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.stat-row h4 { margin: 14px 0 6px; }
.stat-row p { font-size: .92rem; }
.stat-row .s-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); margin-bottom: 18px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr; } .stat-row > div { border-right: 0; } }

/* numbered dark card (Zenvic) */
.num-card {
  position: relative; background: var(--brand); color: var(--brand-ink);
  border-radius: var(--r-lg); padding: 34px 30px; overflow: hidden;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}
[data-theme="dark"] .num-card { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.num-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.num-card .n-index { position: absolute; top: 26px; right: 28px; font-size: .82rem; font-weight: 700; opacity: .55; }
.num-card h3 { color: inherit; margin-bottom: 12px; }
.num-card p { color: inherit; opacity: .72; font-size: .95rem; }
.num-card .n-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(198, 242, 77, .18); color: var(--lime); margin-bottom: 20px; }
.num-card::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 200px; height: 200px;
  border-radius: 50%; background: var(--lime); opacity: .12; transition: transform .6s var(--e-out);
}
.num-card:hover::after { transform: scale(1.35); }

/* media card with glass caption (WebNewBiz) */
.media-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-xs); isolation: isolate;
  transition: transform .5s var(--e-out), box-shadow .5s var(--e-out);
}
.media-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.media-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1s var(--e-out); }
.media-card:hover > img { transform: scale(1.06); }
.media-card .float-pill {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .8rem; font-weight: 700; box-shadow: var(--shadow-xs);
}
.media-card .float-pill svg { width: 14px; height: 14px; color: var(--star); fill: var(--star); }
.glass-caption {
  background: rgba(14, 13, 11, .55); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-md); padding: 18px 20px; color: #fff;
}
.glass-caption h4 { color: #fff; font-size: 1.12rem; line-height: 1.25; }
.glass-caption .gc-chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.glass-caption .gc-chips span {
  padding: 5px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700;
  background: rgba(255, 255, 255, .16); color: #fff;
}

/* logo / trust strip with a left label (Zenvic) */
.logo-strip { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.logo-strip .ls-label { font-size: .88rem; font-weight: 700; line-height: 1.3; max-width: 130px; color: var(--muted); }
.logo-strip .ls-items { display: flex; align-items: center; gap: 30px; flex: 1; flex-wrap: wrap; justify-content: space-between; }
.logo-strip .ls-items span {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .95rem;
  color: var(--muted-2); transition: color var(--t-fast);
}
.logo-strip .ls-items span:hover { color: var(--ink); }
.logo-strip .ls-items svg { width: 18px; height: 18px; }

/* scroll cue pill (Zenvic) */
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  font-size: .84rem; font-weight: 700; color: var(--muted);
}
.scroll-cue i { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; animation: nudgeDown 1.8s ease-in-out infinite; }
.scroll-cue svg { width: 13px; height: 13px; }

/* -------------------------- Scroll progress bar ------------------------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 350; background: var(--grad-lime); width: 0%; }

/* ------------------------------ Back to top ----------------------------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 320;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); border: 0;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(.85);
  transition: opacity var(--t), transform .45s var(--e-spring), background var(--t-fast);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--lime); color: var(--lime-ink); }
@media (max-width: 560px) { .to-top { right: 16px; bottom: 84px; } }
