/* AskjBoss — website styles (no build step needed) */
:root {
  --ink: #0F1A14; --ink-2: #26322C; --muted: #4A5650; --muted-2: #5A665F;
  --bg: #EEF1EC; --card: #FFFFFF; --line: #E1E5DF; --soft: #F1F3EF; --soft-2: #F4F5F1;
  --green: #0B6E4F; --green-dark: #08523B; --green-soft: #DFF0E8; --green-text: #0B5A40;
  --gold: #F2B84B; --red: #B4361F; --red-soft: #FCEDEA;
  --radius: 20px; --radius-sm: 12px;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
button { font: inherit; cursor: pointer; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 20px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; border-radius: 999px; background: var(--soft); padding: 0 16px; color: var(--muted); min-width: 0; }
.search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.icon-btn:hover { background: #E6EAE4; color: var(--ink); }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22312A; color: #fff; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #1A1206; }
.btn-gold:hover { background: #E9AA34; color: #1A1206; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500; border: 0; white-space: nowrap; }
.chip:hover { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chip.active { background: var(--ink); color: #fff; font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.tabs { display: inline-flex; gap: 4px; background: var(--card); border-radius: 999px; padding: 5px; flex-wrap: wrap; }

/* ---------- Layout ---------- */
.layout { max-width: 1360px; margin: 0 auto; padding: 22px 20px 90px; display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.layout.two { grid-template-columns: minmax(0, 1fr) 330px; }
.layout.narrow { grid-template-columns: minmax(0, 720px); justify-content: center; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; }
.card-title { font-family: var(--display); font-size: 19px; font-weight: 700; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title a { font-family: var(--body); font-size: 13px; font-weight: 600; }

/* left menu */
.profile-mini { display: flex; gap: 12px; align-items: center; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin-top: 14px; }
.stats3 div { background: var(--soft-2); border-radius: 12px; padding: 8px 4px; }
.stats3 b { display: block; font-family: var(--display); font-size: 18px; }
.stats3 span { font-size: 11px; color: var(--muted); }
.menu { padding: 8px; }
.menu a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
.menu a:hover { background: var(--soft-2); color: var(--ink); }
.menu a.active { background: var(--soft); color: var(--ink); font-weight: 700; }
.menu .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.menu .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green-text); }

/* avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #C9A27A; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.biz { border-radius: 14px; background: var(--ink); font-family: var(--display); }

/* ---------- Stories ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex-shrink: 0; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; }
.story:hover { color: var(--ink); }
.story-ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: var(--gold); }
.story-ring span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--green); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; }
.story-add .story-ring { background: transparent; border: 2px dashed #AEB8B1; padding: 0; display: grid; place-items: center; color: var(--muted); }
.story-name { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Composer ---------- */
.composer-row { display: flex; gap: 12px; align-items: center; }
.composer-input { flex: 1; height: 48px; border-radius: 999px; background: var(--soft); padding: 0 18px; display: flex; align-items: center; color: var(--muted); min-width: 0; }
.composer-input:hover { color: var(--ink); background: #E9ECE7; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quick a { height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.quick a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Post card ---------- */
.post { background: var(--card); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post-name { font-weight: 700; display: flex; align-items: center; gap: 5px; color: var(--ink); }
.post-name:hover { color: var(--ink); text-decoration: underline; }
.post-where { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.post-where a { color: var(--muted); }
.post-where a:hover { color: var(--ink); text-decoration: underline; }
.post-title { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.post-title:hover { color: var(--green-dark); }
.post-body { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; word-wrap: break-word; }
.featured-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #1A1206; background: var(--gold); padding: 4px 8px; border-radius: 6px; }

.tbadge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.t-news, .t-announcement, .t-general { background: #E6EAF0; color: #2C3A4F; }
.t-photo { background: #E4ECF6; color: #1F4E8C; }
.t-video { background: #F8E4DF; color: #9A2E18; }
.t-event { background: #EEE4F3; color: #5B2C75; }
.t-job, .t-opportunity { background: var(--green-soft); color: var(--green-text); }
.t-business, .t-service { background: #F6ECD8; color: #6E4700; }
.t-property { background: #E3EEEA; color: #2F5547; }
.t-lost_found, .t-community { background: #ECEFEA; color: #26322C; }
.t-traffic, .t-safety { background: #9A2E18; color: #fff; }

.media-grid { display: grid; gap: 4px; border-radius: 16px; overflow: hidden; }
.media-grid.n1 { grid-template-columns: 1fr; }
.media-grid.n2, .media-grid.n3, .media-grid.n4 { grid-template-columns: repeat(2, 1fr); }
.media-grid.n3 > :first-child { grid-row: span 2; }
.media-grid a { position: relative; display: block; background: var(--soft); min-height: 160px; }
.media-grid img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.media-grid.n1 img { max-height: 560px; }
.media-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 26, 20, .55); color: #fff; font-family: var(--display); font-size: 26px; font-weight: 800; }
.video { border-radius: 16px; overflow: hidden; background: #000; }
.video video { width: 100%; max-height: 560px; }

.highlight { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.highlight h3 { font-size: 22px; }
.highlight .sub { color: #C9D2CC; font-size: 14px; }
.highlight .money { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--gold); }

.post-stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 8px; }
.post-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid #ECEFEA; padding-top: 8px; }
.act { height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.act:hover { background: var(--soft-2); color: var(--ink); }
.act.on-like { background: var(--red-soft); color: var(--red); }
.act.on-save { background: var(--green-soft); color: var(--green-text); }

/* ---------- Sidebar ---------- */
.side-dark { background: var(--ink); color: #fff; }
.side-dark .card-title { color: #fff; }
.trend { display: flex; gap: 14px; padding-top: 12px; border-top: 1px solid #26352D; color: #fff; }
.trend:hover { color: #fff; }
.trend:hover .trend-title { text-decoration: underline; }
.trend-n { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--gold); width: 22px; flex-shrink: 0; }
.trend-tag { font-size: 12px; color: #A9B5AE; }
.trend-title { font-weight: 600; line-height: 1.35; }
.follow-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; color: var(--ink); }
.follow-row:hover { color: var(--ink); }
.city-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex-shrink: 0; }
.new-pill { font-size: 12px; font-weight: 700; color: var(--green-text); background: var(--green-soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.biz-row { display: flex; align-items: center; gap: 10px; }
.cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.cloud a { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.cloud a:hover { background: #E3E8E1; color: var(--ink); }
.footer-note { font-size: 12px; color: var(--muted); line-height: 1.6; padding: 0 6px; }

/* ---------- Place pages ---------- */
.hero { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.hero-cover { height: 180px; background: linear-gradient(135deg, #1E5B47, #0B6E4F 55%, #2F5547); position: relative; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { padding: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.hero h1 { font-size: 34px; font-weight: 800; }
.count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.count-grid a { background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; color: var(--ink); }
.count-grid a:hover { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.count-grid b { display: block; font-family: var(--display); font-size: 22px; }
.count-grid span { font-size: 12px; color: var(--muted); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.state-grid a { background: var(--card); border-radius: 16px; padding: 16px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.state-grid a:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--ink); }
.state-grid b { font-family: var(--display); font-size: 18px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; height: 48px; border-radius: 12px; border: 1px solid #CDD4CE; background: #fff; padding: 0 14px; font: inherit; color: var(--ink); }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.error { color: var(--red); font-size: 13px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-opt span { display: flex; flex-direction: column; gap: 8px; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.type-opt input:checked + span { border: 2px solid var(--ink); background: var(--soft-2); padding: 9px 11px; }
.type-opt input:focus-visible + span { outline: 2px solid var(--green); }
.type-opt i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.upload { border: 2px dashed #C3CBC4; border-radius: 16px; padding: 18px; text-align: center; background: var(--soft-2); display: block; cursor: pointer; }
.upload:hover { border-color: var(--green); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.notice { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.alert { border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.alert-ok { background: var(--green-soft); color: var(--green-text); }
.alert-err { background: var(--red-soft); color: var(--red); }
.auth-wrap { min-height: calc(100vh - 67px); display: grid; place-items: center; padding: 30px 16px 90px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }

/* comments */
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment-bubble { background: var(--soft-2); border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.45; flex: 1; min-width: 0; word-wrap: break-word; }
.comment-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* status badges on "My updates" */
.sbadge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.s-pending { background: #FFF3D6; color: #7A5200; }
.s-approved { background: var(--green-soft); color: var(--green-text); }
.s-rejected { background: var(--red-soft); color: var(--red); }
.s-hidden, .s-draft { background: var(--soft); color: var(--muted); }
.my-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #ECEFEA; }
.my-row:first-child { border-top: 0; }
.my-thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--soft); object-fit: cover; flex-shrink: 0; }

.empty { text-align: center; padding: 40px 20px; }
.empty h3 { font-size: 22px; margin-bottom: 6px; }
.load-more { align-self: center; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* toast + mobile nav */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bottom-nav { display: none; }
.user-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: 52px; background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 26, 20, .16); padding: 8px; min-width: 210px; z-index: 50; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink); background: none; border: 0; font-size: 15px; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--soft-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .layout > .left { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .layout, .layout.two { grid-template-columns: minmax(0, 1fr); padding: 12px 10px 100px; gap: 12px; }
  .layout > .right { display: none; }
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  .logo-text { display: none; }
  .hide-sm { display: none !important; }
  .post, .card { padding: 14px; border-radius: 18px; }
  .post-actions { grid-template-columns: repeat(4, 1fr); }
  .act span.lbl { display: none; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 28px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--line); z-index: 45; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted-2); }
  .bottom-nav a.active { color: var(--green); font-weight: 700; }
  .bottom-nav .plus { justify-self: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
}

/* icons in menus, tabs and buttons */
.menu .mi { width: 32px; height: 32px; border-radius: 10px; background: var(--soft-2); display: grid; place-items: center; flex-shrink: 0; }
.menu a.active .mi { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chip svg, .quick a svg { flex-shrink: 0; }
.quick a.has-icon::before, .quick a:has(svg)::before { display: none; }
.dropdown a svg, .dropdown button svg { margin-right: 10px; color: var(--muted); flex-shrink: 0; }

/* ---------- Logo & header links ---------- */
.logo { gap: 0; }
.logo-word img { height: 32px; width: auto; display: block; }
.logo-icon { display: none; width: 40px; height: 40px; border-radius: 50%; }
.top-links { display: flex; gap: 4px; }
.top-links a { padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.top-links a:hover, .top-links a.on { background: var(--soft); color: var(--ink); }
@media (max-width: 1100px) { .hide-md { display: none !important; } }
@media (max-width: 860px) {
  .logo-word { display: none; }
  .logo-icon { display: block; }
}

/* ---------- Hashtags ---------- */
.hashtag { color: var(--green); font-weight: 600; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); font-weight: 600; font-size: 14px; }
.tag-chip span { font-weight: 500; font-size: 12px; color: var(--muted); }
.tag-chip b { font-family: var(--display); color: var(--ink); }
.tag-chip:hover { background: #CDEADB; color: var(--green-dark); }
.tag-cloud.big .tag-chip { font-size: 15px; padding: 9px 14px; }
.chip.tagc { color: var(--green-text); font-weight: 600; }
.state-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

/* ---------- Place search & add-your-town ---------- */
.place-search { position: relative; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(15, 26, 20, .18); padding: 6px; z-index: 30; max-height: 360px; overflow: auto; }
.sr-row { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.sr-row:hover { background: var(--soft-2); color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--green); font-size: 14px; text-align: left; }
.linkish:hover { text-decoration: underline; }
.add-place { background: var(--soft-2); border-radius: 14px; padding: 14px; }

/* ---------- Businesses, products, booking ---------- */
.avatar.xl { width: 76px; height: 76px; font-size: 26px; border-radius: 20px; }
.premium-tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #1A1206; background: var(--gold); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.biz-list { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.biz-list:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--ink); }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 18px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.product-card { background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.product-card:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--ink); }
.product-img { position: relative; aspect-ratio: 1; background: var(--soft); display: block; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.sold-tag { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.product-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.price { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--green-text); }
.product-title { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery { border-radius: 16px; overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; max-height: 560px; object-fit: contain; }
.thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: none; flex-shrink: 0; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 64px; height: 64px; object-fit: cover; }
.service-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #ECEFEA; }
.service-row:first-child { border-top: 0; }
.service-opt { position: relative; }
.service-opt input { position: absolute; opacity: 0; inset: 0; }
.service-opt > span { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.service-opt input:checked + span { border: 2px solid var(--ink); background: var(--soft-2); padding: 11px 13px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; }
.slot span { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.slot input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot input:focus-visible + span, .service-opt input:focus-visible + span { outline: 2px solid var(--green); }
.date-box { width: 54px; flex-shrink: 0; text-align: center; background: #EEE4F3; color: #5B2C75; border-radius: 12px; padding: 6px 0; line-height: 1.1; }
.date-box span { display: block; font-size: 11px; font-weight: 700; }
.date-box b { font-family: var(--display); font-size: 20px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 6px 0; border-top: 1px solid #ECEFEA; }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.hours tr.today td { font-weight: 700; color: var(--green-text); }
.hours-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px; align-items: center; }
.count-dot { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row b { grid-column: 1 / -1; }
  .avatar.xl { width: 60px; height: 60px; }
}
.claim-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #FFF8E6; box-shadow: inset 0 0 0 1px #F2D48B; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan.best { box-shadow: inset 0 0 0 2px var(--gold); }
.plan-name { font-size: 15px; }
.plan-price { font-family: var(--display); font-size: 30px; font-weight: 800; }
.plan .btn { margin-top: 8px; }

/* =====================================================================
   v7 — calmer, modern look (overrides earlier rules)
   ===================================================================== */
:root { --bg: #F5F6F3; --line: #E7EAE5; --shadow: 0 1px 2px rgba(15, 26, 20, .05), 0 4px 16px rgba(15, 26, 20, .04); }
body { background: var(--bg); }
.card, .post, .hero { box-shadow: var(--shadow); }
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom-color: var(--line); }
.topbar-inner { max-width: 1180px; gap: 14px; }
.search { height: 42px; max-width: 460px; background: #F0F2EE; }
.top-actions .btn { height: 40px; }

/* Home layout: one calm feed + one quiet sidebar */
.home { max-width: 1080px; margin: 0 auto; padding: 28px 20px 100px; display: grid; grid-template-columns: minmax(0, 660px) 300px; gap: 48px; justify-content: center; align-items: start; }
.home-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.welcome { padding: 8px 0 6px; }
.welcome h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 560px; }
.welcome p { color: var(--muted); font-size: 17px; margin: 12px 0 18px; max-width: 520px; }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hello { display: flex; flex-direction: column; gap: 14px; }
.hello h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.hello p { margin: 4px 0 0; color: var(--muted); }
.composer-pill { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow); color: var(--muted); }
.composer-pill:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--green-soft), var(--shadow); }
.composer-pill > span:nth-child(2) { flex: 1; }
.composer-plus { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }

.stories-lite { gap: 16px; padding: 2px 0; background: none; box-shadow: none; }
.stories-lite .story-ring { width: 60px; height: 60px; }
.stories-lite .story { width: 66px; }

.feed-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.seg { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { padding: 12px 0; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.on { color: var(--ink); border-bottom-color: var(--ink); }
.filter { position: relative; flex-shrink: 0; }
.filter-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.filter-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-btn { font-weight: 600; font-size: 14px; padding: 12px 0; }

/* Post card — lighter */
.post { padding: 18px 20px; gap: 10px; border-radius: 18px; }
.post-head { gap: 11px; }
.post-head .avatar { width: 40px; height: 40px; font-size: 14px; }
.post-name { font-size: 15px; }
.post-where { font-size: 13px; gap: 5px; }
.post-tags { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.type-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: none !important; padding: 0; }
.type-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.type-dot.t-news, .type-dot.t-announcement, .type-dot.t-general { color: #2C3A4F; }
.type-dot.t-photo { color: #1F4E8C; } .type-dot.t-video { color: #B4361F; } .type-dot.t-event { color: #7A3E9D; }
.type-dot.t-job, .type-dot.t-opportunity { color: #0B6E4F; } .type-dot.t-business, .type-dot.t-service { color: #8A5A00; }
.type-dot.t-property { color: #2F5547; } .type-dot.t-traffic, .type-dot.t-safety { color: #B4361F; } .type-dot.t-lost_found, .type-dot.t-community { color: #4A5650; }
.mini-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.mini-tag.gold { background: #FFF1CF; color: #7A5200; }
.post-title { font-size: 19px; }
.post-body { font-size: 15.5px; color: #1E2A23; }
.media-grid, .video { border-radius: 14px; }
.highlight { border-radius: 14px; padding: 16px; }
.post-actions { display: flex; align-items: center; gap: 2px; border-top: 0; padding-top: 0; margin: 0 -8px -6px; }
.act { height: 38px; padding: 0 10px; border-radius: 999px; color: var(--muted-2); font-size: 13px; gap: 6px; }
.act:hover { background: var(--soft-2); color: var(--ink); }
.act.on-like { background: transparent; color: var(--red); }
.act.on-save { background: transparent; color: var(--green); }
.act-views { font-size: 12px; color: var(--muted-2); margin-left: auto; padding: 0 6px; }
.act-save { margin-left: 0; }

/* Sidebar — quiet, sticky */
.home-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 26px; }
.side-block h2, .side-head h2 { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 0; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.side-head a { font-size: 13px; font-weight: 600; }
.side-empty { font-size: 14px; color: var(--muted); margin: 0; }
.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-list a { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 8px 0; color: var(--ink); border-top: 1px solid var(--line); }
.trend-list li:first-child a { border-top: 0; }
.trend-list .n { grid-row: span 2; font-family: var(--display); font-weight: 800; color: var(--muted-2); }
.trend-list .t { font-weight: 700; color: var(--green-text); }
.trend-list .c { font-size: 12px; color: var(--muted); }
.trend-list a:hover .t { text-decoration: underline; }
.place-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink); }
.place-row:hover { color: var(--ink); }
.place-row:hover .place-name { text-decoration: underline; }
.place-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; font-weight: 800; font-family: var(--display); flex-shrink: 0; }
.place-name { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.place-name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.side-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.side-links a { color: var(--muted); }
.side-links a:hover { color: var(--ink); }
.side-foot { font-size: 12px; color: var(--muted-2); margin: -14px 0 0; }
.side-foot a { color: var(--muted-2); text-decoration: underline; }

@media (max-width: 980px) {
  .home { grid-template-columns: minmax(0, 660px); gap: 0; }
  .home-side { display: none; }
}
@media (max-width: 860px) {
  .home { padding: 16px 12px 100px; }
  .post { padding: 14px 14px; border-radius: 16px; }
  .welcome h1 { font-size: 30px; }
  .hello h1 { font-size: 23px; }
  .seg { gap: 18px; }
  .act-views { display: none; }
  .act-save { margin-left: auto; }
}
.install-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(520px, calc(100% - 24px)); background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(15, 26, 20, .2); padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; z-index: 55; }
.install-bar img { border-radius: 50%; flex-shrink: 0; }
.install-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.install-text b { color: var(--ink); font-size: 15px; }
@media (max-width: 860px) { .install-bar { bottom: 80px; } }

/* =====================================================================
   v9 — calm inner pages + smaller images
   ===================================================================== */
.layout, .layout.two { max-width: 1080px; grid-template-columns: minmax(0, 660px) 300px; gap: 48px; justify-content: center; padding-top: 28px; }
.layout.narrow { max-width: 720px; grid-template-columns: minmax(0, 680px); }
.layout > .right .card, .layout > aside .card { box-shadow: none; background: #fff; border: 1px solid var(--line); }
.layout .home-side { position: sticky; top: 86px; }

/* Page header (places, businesses) */
.page-head { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.page-cover { height: 120px; background: linear-gradient(120deg, #0F1A14 0%, #1E5B47 55%, #0B6E4F 100%); }
.page-cover img { width: 100%; height: 100%; object-fit: cover; }
.page-info { display: flex; align-items: flex-end; gap: 14px; padding: 0 20px 14px; margin-top: -34px; flex-wrap: wrap; }
.page-badge { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 28px; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(15, 26, 20, .12); }
.page-badge.sq { border-radius: 18px; background: var(--ink); }
.page-badge img { width: 100%; height: 100%; object-fit: cover; }
.page-text { flex: 1; min-width: 200px; padding-bottom: 2px; }
.page-text h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.page-meta { font-size: 14px; color: var(--muted); margin-top: 3px; }
.page-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: #C9D0CA; }
.page-actions { display: flex; gap: 8px; padding-bottom: 2px; }
.page-below { padding: 0 20px 16px; }
.page-tabs { padding: 0 20px; border-top: 1px solid var(--line); }
.page-tabs-plain { border-bottom: 1px solid var(--line); }

/* Simple intro headings for list pages */
.intro h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.intro p { color: var(--muted); margin: 6px 0 14px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar .input { flex: 2 1 220px; height: 44px; }
.filter-bar .select { flex: 1 1 140px; width: auto; height: 44px; }
.filter-bar .btn { height: 44px; }

/* Lists */
.list-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 4px 16px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.list-row:first-child { border-top: 0; }
a.list-row:hover .place-name { text-decoration: underline; }
.list-row > svg { color: var(--muted-2); transform: rotate(-90deg); flex-shrink: 0; }
.list-more { display: block; text-align: center; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.state-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.state-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 14px; color: var(--ink); box-shadow: var(--shadow); }
.state-list a:hover { box-shadow: 0 0 0 2px var(--green-soft), var(--shadow); color: var(--ink); }
.state-list a > svg { color: var(--muted-2); transform: rotate(-90deg); }
.plain-block { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.plain-block h2 { font-size: 17px; margin: 0 0 12px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-list a { padding: 7px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 14px; }
.pill-list a:hover { background: #E4E8E2; color: var(--ink); }
.small-pills a { font-size: 13px; padding: 5px 10px; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-list a { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.stat-list b { font-family: var(--display); font-size: 17px; color: var(--ink); margin-right: 2px; }
.feed-title { font-family: var(--display); font-weight: 700; font-size: 16px; padding: 10px 0; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-top h1 { font-size: 26px; font-weight: 800; }

/* Smaller, tidier images */
.media-grid { max-height: 380px; }
.media-grid a { min-height: 0; }
.media-grid.n1 img { width: 100%; height: auto; max-height: 380px; object-fit: cover; aspect-ratio: auto; }
.media-grid.n2 a, .media-grid.n3 a, .media-grid.n4 a { height: 188px; }
.media-grid.n3 > :first-child { height: 380px; }
.media-grid.n2 a { height: 260px; }
.media-grid.full { max-height: none; }
.media-grid.full img { max-height: 520px; object-fit: contain; background: var(--soft); }
.video video { max-height: 380px; }
.gallery img { max-height: 440px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.product-img { aspect-ratio: 4 / 3; }
.hero-cover { height: 130px; }
.previews { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

@media (max-width: 980px) {
  .layout, .layout.two { grid-template-columns: minmax(0, 660px); gap: 0; }
  .layout > aside, .layout .home-side { display: none; }
}
@media (max-width: 860px) {
  .layout, .layout.two, .layout.narrow { padding: 14px 10px 100px; }
  .page-cover { height: 96px; }
  .page-info { padding: 0 14px 12px; margin-top: -28px; }
  .page-badge { width: 60px; height: 60px; font-size: 22px; }
  .page-text h1 { font-size: 22px; }
  .page-below, .page-tabs { padding-left: 14px; padding-right: 14px; }
  .media-grid, .media-grid.n1 img { max-height: 300px; }
  .media-grid.n2 a, .media-grid.n2 a { height: 180px; }
  .media-grid.n3 a, .media-grid.n4 a { height: 140px; }
  .media-grid.n3 > :first-child { height: 284px; }
  .video video { max-height: 300px; }
  .gallery img { max-height: 320px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-list { grid-template-columns: 1fr 1fr; }
  .profile-top h1 { font-size: 21px; }
}

/* v10 — per-type post details */
.type-intro { margin: -4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-text); font-size: 14px; }
.type-fields { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; margin: 0; }
.type-fields legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.cal-chip { background: #fff; color: var(--ink); border-radius: 12px; width: 56px; text-align: center; padding: 6px 0; flex-shrink: 0; line-height: 1.1; }
.cal-chip span { display: block; font-size: 11px; font-weight: 700; color: #5B2C75; }
.cal-chip b { font-family: var(--display); font-size: 22px; }
.facts { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 14px; }
.facts-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.facts-actions .btn { height: 36px; font-size: 14px; }
.lf-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: 6px; }
.lf-lost { background: var(--red-soft); color: var(--red); }
.lf-found { background: var(--green-soft); color: var(--green-text); }
.alert-box { border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; border-left: 5px solid #E9A23B; background: #FFF6E5; }
.alert-box div { display: flex; flex-direction: column; }
.alert-box span { font-size: 12px; color: var(--muted); }
.alert-box b { font-size: 14px; }
.alert-box.lvl-emergency, .alert-box.lvl-severe { border-left-color: var(--red); background: var(--red-soft); }
.alert-box.lvl-advisory, .alert-box.lvl-light { border-left-color: #3D6B8F; background: #EAF1F8; }

/* v11 — wallet, tips, boosts */
.wallet-card { background: linear-gradient(135deg, #0F1A14, #1E5B47); color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.wallet-card .small { color: #B9DCCD; }
.wallet-balance { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.tip-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.tip-presets .chip { background: var(--soft); height: 34px; }
.tip-presets .chip.active { background: var(--ink); color: #fff; }
.tip-wrap { position: relative; }
.tip-pop { position: absolute; bottom: 44px; left: 0; width: 240px; background: #fff; border-radius: 16px; box-shadow: 0 14px 36px rgba(15, 26, 20, .2); padding: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.lbl-sm { font-size: 13px; }
.act-tips { font-size: 12px; font-weight: 700; color: #8A5A00; padding: 0 6px; }
.act-boost { color: #8A5A00; }
.post-flag { font-size: 12px; font-weight: 700; color: var(--muted); margin: -4px 0 -2px; }
.post-flag.gold { color: #8A5A00; }
.post.is-highlighted { box-shadow: 0 0 0 2px #F2B84B, var(--shadow); background: linear-gradient(#FFFDF6, #fff 120px); }
.boost-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.boost-total b { font-family: var(--display); font-size: 28px; }
@media (max-width: 860px) { .tip-pop { left: -60px; } }

/* v12 — chat, people */
.msg-btn { position: relative; }
.msg-dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.chat-row.unread .place-name { font-weight: 800; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); }
.chat-wrap { max-width: 720px; margin: 0 auto; height: calc(100vh - 67px); display: flex; flex-direction: column; background: #fff; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-head .icon-btn svg { transform: rotate(90deg); }
.chat-who { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 1; min-width: 0; }
.chat-product { display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--soft-2); border-bottom: 1px solid var(--line); color: var(--ink); }
.chat-product img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.chat-product span, .bubble-product span { display: flex; flex-direction: column; font-size: 14px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.chat-day { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: 78%; background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.bubble-row.mine .bubble { background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble small { align-self: flex-end; font-size: 11px; opacity: .65; }
.bubble-product { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: rgba(127, 127, 127, .12); color: inherit; }
.bubble-product img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { resize: none; height: 46px; padding-top: 12px; border-radius: 999px; }
.profile-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.profile-stats b { font-family: var(--display); }
a.post-name { color: var(--ink); }
@media (max-width: 860px) { .chat-wrap { height: calc(100vh - 61px - 68px); } }

/* v13 — reactions, polls, Q&A, jobs */
.react-wrap { position: relative; display: flex; align-items: center; }
.react-more { padding: 0 6px; font-size: 11px; }
.react-pop { position: absolute; bottom: 44px; left: 0; display: flex; gap: 2px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(15, 26, 20, .2); z-index: 20; }
.react-pop button { width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; font-size: 22px; transition: transform .12s; }
.react-pop button:hover, .react-pop button.on { transform: scale(1.25); background: var(--soft); }
.react-top { font-size: 13px; letter-spacing: -3px; margin-left: 2px; }
.poll { display: flex; flex-direction: column; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; text-align: left; color: var(--ink); }
.poll-opt:hover:not(:disabled) { border-color: var(--green); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--green-soft); transition: width .4s ease; z-index: 0; }
.poll-opt.mine .poll-bar { background: #BFE3D1; }
.poll-label, .poll-pct { position: relative; z-index: 1; }
.poll-opt.mine .poll-label::after { content: ' ✓'; color: var(--green-text); }
.q-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #EAF1F8; font-size: 14px; }
.comment.is-best .comment-bubble { box-shadow: inset 0 0 0 2px var(--green); background: #F2FAF6; }
.best-tag { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--green); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.comment-actions button { background: none; border: 0; padding: 2px 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.comment-actions button:hover { color: var(--ink); }
.comment-actions .rate { display: inline-flex; gap: 10px; }
.comment-actions button.on { color: var(--green-text); }
.comment-actions button.on-bad { color: var(--red); }
.comment-actions .tip-pop { bottom: 26px; }

/* v14 — announcement bar, ads, footer, reports, pages */
.announce { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 36px; font-size: 14px; font-weight: 600; overflow: hidden; }
.announce a, .announce span { color: inherit; white-space: nowrap; }
.announce button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; flex-shrink: 0; }
.announce-track { flex: 1; overflow: hidden; }
.announce-track.scroll > * { display: inline-block; padding-left: 100%; animation: ann-scroll 22s linear infinite; }
.announce:hover .announce-track.scroll > * { animation-play-state: paused; }
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .announce-track.scroll > * { animation: none; padding-left: 0; } }
.a-dark { background: var(--ink); color: #fff; }
.a-green { background: var(--green); color: #fff; }
.a-gold { background: var(--gold); color: #1A1206; }
.a-red { background: var(--red); color: #fff; }
.ad-slot { position: relative; text-align: center; overflow: hidden; border-radius: 14px; }
.ad-slot img { max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
.ad-header { max-width: 1080px; margin: 12px auto 0; padding: 0 20px; }
.ad-feed { background: #fff; padding: 10px; box-shadow: var(--shadow); }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.site-footer { max-width: 1080px; margin: 0 auto; padding: 24px 20px 110px; text-align: center; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.report-link { background: none; border: 0; color: var(--muted-2); font-size: 13px; padding: 0 4px; }
.post-tags .report-link { font-size: 18px; line-height: 1; padding: 0 2px 6px; }
.modal-back { position: fixed; inset: 0; background: rgba(15, 26, 20, .45); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { background: #fff; border-radius: 20px; padding: 20px; width: min(420px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.legal { font-size: 15.5px; line-height: 1.7; }
.legal h1 { font-size: 30px; margin-bottom: 12px; }
.legal h2 { font-size: 19px; margin: 22px 0 8px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }

/* v16 — widgets, weather, rates */
.side-block.weather-w { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #E8F3FB, #F3F8EE); color: var(--ink); }
.ww-icon { font-size: 34px; line-height: 1; }
.ww-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ww-main b { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.ww-main small, .ww-hl { font-size: 12px; color: var(--muted); }
.mini-post { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); }
.side-head + .mini-post { border-top: 0; }
.mini-post b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.mini-post .c, .ad-cta .c { font-size: 12px; color: var(--muted); }
.mini-post:hover b { text-decoration: underline; }
.rates-w { display: block; color: var(--ink); }
.rates-w table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rates-w th { text-align: right; font-weight: 600; color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.rates-w td { text-align: right; padding: 4px 0; border-top: 1px solid var(--line); }
.rates-w td:first-child, .rates-w th:first-child { text-align: left; font-weight: 700; }
.ad-cta { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px dashed #C3CBC4; border-radius: 16px; color: var(--ink); }
.convert-result { font-family: var(--display); font-size: 34px; font-weight: 800; margin: 6px 0; word-break: break-word; }
.weather-big { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 22px; background: linear-gradient(135deg, #DCEEFB, #EEF7E8); }
.wb-icon { font-size: 64px; }
.weather-big b { display: block; font-family: var(--display); font-size: 48px; line-height: 1; }
.stat-list-item { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.stat-list-item b { display: block; color: var(--ink); font-size: 16px; }

/* v18 — adverts */
.ad-slot a { display: block; }
.ad-slot picture, .ad-slot img { display: block; width: 100%; height: auto; border-radius: 14px; }
.ad-in_feed, .ad-post_bottom { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.ad-header-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.ad-header-wrap .ad-slot { margin-top: 12px; }
.ad-header img { max-height: 150px; object-fit: cover; }
.market-ad { grid-column: 1 / -1; }
.ad-placeholder { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px; border: 2px dashed #C3CBC4; border-radius: 16px; background: #FAFBF8; color: var(--ink); text-align: center; }
.ad-placeholder b { font-family: var(--display); font-size: 18px; }
.ad-placeholder span { font-size: 13px; color: var(--muted); max-width: 320px; }
.ad-placeholder:hover { border-color: var(--green); color: var(--ink); }
.ad-sidebar .ad-placeholder { min-height: 140px; }

/* v19 — music */
.track-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.track-row:first-child { border-top: 0; }
.track-row:hover .place-name { text-decoration: underline; }
.track-cover, .player-cover, .album-cover { display: grid; place-items: center; background: linear-gradient(135deg, #1E5B47, #0F1A14); color: #fff; overflow: hidden; flex-shrink: 0; }
.track-cover { width: 48px; height: 48px; border-radius: 10px; font-size: 20px; }
.track-cover img, .player-cover img, .album-cover img { width: 100%; height: 100%; object-fit: cover; }
.price-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FFF1CF; color: #7A5200; white-space: nowrap; }
.price-chip.free { background: var(--green-soft); color: var(--green-text); }
.player-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.player-cover { width: 160px; height: 160px; border-radius: 18px; font-size: 54px; }
.player-info { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.player-info h1 { font-size: 28px; }
.player-info p { margin: 0; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.album-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.album-cover { aspect-ratio: 1; border-radius: 16px; font-size: 40px; box-shadow: var(--shadow); }
.album-card small { color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .player-cover { width: 110px; height: 110px; } .player-info h1 { font-size: 22px; } }

/* v20 — movies */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.movie-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.movie-card small { color: var(--muted); font-size: 12px; }
.movie-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 40px; background: linear-gradient(160deg, #2A2F3A, #0F1A14); color: #fff; box-shadow: var(--shadow); }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-poster .price-chip { position: absolute; top: 8px; right: 8px; }
.movie-poster-sm { width: 120px; height: 180px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.progress { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transition: width .3s; }

/* v22 — manual payments */
.bank-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #FAFBF8; }
.bank-box .small, .bank-box span:not(.small) { grid-column: 1; }
.bank-box .bank-num { grid-column: 1; font-family: var(--display); font-size: 24px; letter-spacing: .04em; }
.bank-box button { grid-column: 2; grid-row: 1 / span 3; }

/* v23 — news & languages */
.read-source { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.read-source:hover { background: #E4E8E2; color: var(--ink); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.lang-switch select { height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 0 8px; font: inherit; font-size: 13px; }

/* v24 — self-serve ads */
.ad-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ad-price { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.my-ad { display: flex; gap: 14px; align-items: flex-start; }
.my-ad img { width: 140px; max-height: 110px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
@media (max-width: 600px) { .my-ad { flex-direction: column; } .my-ad img { width: 100%; max-height: 160px; } }

/* v25 — full articles from licensed sources */
.article-body { font-size: 16.5px; line-height: 1.75; color: #1E2A23; }
.article-body p { margin: 0 0 14px; }
.article-body h2, .article-body h3, .article-body h4 { margin: 20px 0 8px; font-size: 19px; }
.article-body blockquote { margin: 14px 0; padding: 8px 14px; border-left: 4px solid var(--green); background: var(--soft-2); }
.article-body a { text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 14px; }
.article-source { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: var(--soft-2); font-size: 14px; }
.article-source small { flex-basis: 100%; color: var(--muted); }

/* v26 — rates scrolling with the announcement */
.announce-track.scroll > * { animation-duration: var(--dur, 22s); }
.ticker { display: inline-flex; gap: 36px; white-space: nowrap; }
.ticker a, .ticker span { color: inherit; }
.ticker-rates { display: inline-flex; gap: 28px; }
.ticker-rates span { font-variant-numeric: tabular-nums; }
.announce-track:not(.scroll) .ticker { overflow: hidden; text-overflow: ellipsis; }

/* v27 — mobile apps */
.in-app .web-only { display: none !important; }
.in-app .install-bar { display: none !important; }
.store-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.store-badges a { padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
.native-app .topbar { padding-top: env(safe-area-inset-top); }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--red); }
