/* ============================================================
   La veu del ciutadà — Igualada
   Refreshed design system · mobile-first · modern, clean, friendly
   ============================================================ */

:root {
  /* — Brand blue (brighter, friendlier than the old navy) — */
  --primary:        #1d6ff2;
  --primary-strong: #155ad1;
  --primary-ink:    #0b3a86;
  --primary-50:     #eef5ff;
  --primary-100:    #dceafe;
  --primary-200:    #c2dcff;
  --primary-300:    #93befb;

  /* — Ink & neutrals (cool, low-chroma) — */
  --ink:        #122036;
  --ink-soft:   #38485f;
  --muted:      #647588;
  --faint:      #93a1b2;
  --line:       #e7ecf3;
  --line-soft:  #f0f3f8;
  --surface:    #ffffff;
  --surface-2:  #f8fafd;
  --bg:         #f3f7fc;

  /* — Semantic / category soft tints — */
  --green-bg:#e6f6ec; --green-fg:#1c7a44;
  --amber-bg:#fdf0d9; --amber-fg:#97640f;
  --violet-bg:#efeafe; --violet-fg:#5944c4;
  --slate-bg:#eceff5; --slate-fg:#3f5168;
  --rose-bg:#fdeaef;  --rose-fg:#b23a5b;
  --red-bg:#fdeaea;   --red-fg:#b3322f;

  /* — Radii — */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* — Shadows (soft, blue-tinted) — */
  --shadow-xs: 0 1px 2px rgba(16,33,53,.06);
  --shadow-sm: 0 2px 10px -2px rgba(16,33,53,.08);
  --shadow:    0 10px 30px -12px rgba(16,33,53,.18);
  --shadow-lg: 0 24px 60px -24px rgba(16,33,53,.26);

  --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --appbar-h: 64px;
  --tabbar-h: 66px;
  --maxw: 720px;
  --ease: 0.2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.page { display: none; }
.page.active { display: block; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   APP BAR
   ============================================================ */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar-inner {
  max-width: 1080px; margin: 0 auto;
  height: var(--appbar-h);
  padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* XiVi ghost brand icon in the appbar */
.brand-logo {
  height: 54px; width: auto; flex-shrink: 0;
  display: block;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  color: var(--ink);
}
.brand-sub {
  font-size: 11px; font-weight: 500; color: var(--muted);
  letter-spacing: .005em;
  line-height: 1.3;
}

.appbar-spacer { flex: 1; }

/* desktop nav (hidden on mobile) */
.topnav { display: none; align-items: center; gap: 2px; }
.topnav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: var(--ease);
}
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a.active { background: var(--primary-50); color: var(--primary-ink); }

/* language toggle pill */
.lang {
  display: inline-flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px;
  flex-shrink: 0;
}
.lang button {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  color: var(--muted);
  padding: 5px 11px; border-radius: var(--r-pill);
  transition: var(--ease);
}
.lang button.active {
  background: var(--surface); color: var(--primary-ink);
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   PAGE INTRO
   ============================================================ */
.intro { padding: 30px 0 6px; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--primary-50);
  padding: 5px 12px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.kicker svg { width: 14px; height: 14px; }
.intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.08; letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
}
.intro p {
  font-size: 16px; color: var(--ink-soft); line-height: 1.6;
  max-width: 560px; text-wrap: pretty;
}
.intro p strong { color: var(--ink); font-weight: 600; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trust {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 13px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
}
.trust svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.trust span { white-space: nowrap; }

/* ============================================================
   CARD base
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   COMPOSER
   ============================================================ */
.composer { padding: 22px; margin: 24px 0 14px; }
.composer-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.composer-head .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.composer-head h2 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.composer-head p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.field {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 15px;
  font-size: 15px; color: var(--ink);
  background: var(--surface-2);
  transition: var(--ease);
  line-height: 1.55;
}
.field::placeholder { color: var(--faint); }
.field:focus {
  outline: none; border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(29,111,242,.12);
}
textarea.field { resize: vertical; min-height: 92px; }

.composer-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; flex-wrap: wrap;
}
.btn-photo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border: 1.5px dashed var(--primary-200);
  border-radius: var(--r-sm);
  background: var(--primary-50);
  color: var(--primary-ink);
  font-size: 13.5px; font-weight: 600;
  transition: var(--ease);
}
.btn-photo:hover { border-color: var(--primary); background: var(--primary-100); }
.btn-photo span:not(.req-tag) { white-space: nowrap; }
.btn-photo svg { width: 16px; height: 16px; }
.btn-photo.has { border-style: solid; border-color: var(--primary); }
.req-tag { color: var(--red-fg); font-weight: 600; font-size: 11px; }

.char-count { font-size: 12px; color: var(--faint); margin-left: auto; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--primary); color: #fff;
  border-radius: var(--r-sm);
  padding: 11px 22px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 6px 16px -6px rgba(29,111,242,.55);
  transition: var(--ease);
}
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 8px 20px -6px rgba(29,111,242,.6); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 16px; height: 16px; }

#photo-input { display: none; }

.photo-preview { margin-top: 14px; position: relative; display: none; }
.photo-preview img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.photo-remove {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(18,32,54,.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; backdrop-filter: blur(4px);
}

.anon-note {
  display: flex; align-items: center; gap: 7px;
  margin-top: 13px; font-size: 12.5px; color: var(--muted);
}
.anon-note svg { width: 14px; height: 14px; color: var(--green-fg); }

/* ============================================================
   FEED
   ============================================================ */
.feed-head {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 2px 16px;
}
.feed-head h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-transform: none; color: var(--ink);
}
.count-pill {
  font-size: 12px; font-weight: 600; color: var(--primary-ink);
  background: var(--primary-50); padding: 3px 10px; border-radius: var(--r-pill);
}
.feed-head .rule { flex: 1; height: 1px; background: var(--line); }

.post {
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.post-cover {
  position: relative;
  aspect-ratio: 16/9; width: 100%;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover.placeholder {
  align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.post-cover.placeholder .ph-ico { width: 30px; height: 30px; opacity: .8; }
.post-cover.placeholder .ph-label {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  opacity: .75;
}

.post-body { padding: 16px 18px 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--r-pill);
  margin-bottom: 11px;
}
.chip svg { width: 12px; height: 12px; }
.chip--green  { background: var(--green-bg);  color: var(--green-fg); }
.chip--amber  { background: var(--amber-bg);  color: var(--amber-fg); }
.chip--violet { background: var(--violet-bg); color: var(--violet-fg); }
.chip--slate  { background: var(--slate-bg);  color: var(--slate-fg); }
.chip--rose   { background: var(--rose-bg);   color: var(--rose-fg); }
.chip--blue   { background: var(--primary-50);color: var(--primary-ink); }

.post-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.62; }
.expand-btn {
  color: var(--primary); font-size: 13px; font-weight: 600;
  padding: 0; margin-top: 4px; white-space: nowrap;
}
.expand-btn:hover { text-decoration: underline; }

.post-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft);
}
.post-meta {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--faint); flex-wrap: wrap;
}
.post-meta .anon { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.post-meta .anon svg { width: 12px; height: 12px; }
.post-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  transition: var(--ease);
}
.btn-share:hover { border-color: var(--primary-200); color: var(--primary-ink); background: var(--primary-50); }
.btn-share svg { width: 14px; height: 14px; }

.btn-del {
  display: none; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--red-fg); background: var(--red-bg); color: var(--red-fg);
  font-size: 12px; font-weight: 600;
}
body.admin .btn-del { display: inline-flex; }

.empty { text-align: center; color: var(--faint); padding: 48px 0; font-size: 14.5px; }

.load-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 4px 0 8px;
  padding: 14px 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--primary-ink); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-xs); transition: var(--ease);
}
.load-more:hover { border-color: var(--primary-200); background: var(--primary-50); }
.load-more svg { width: 17px; height: 17px; }

/* ============================================================
   BAROMETER
   ============================================================ */
.baro { padding: 24px; margin-top: 24px; }
.baro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.baro-head h2 {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px;
}
.baro-head p { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 520px; }
.btn-reset {
  display: none; flex-shrink: 0;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--amber-fg); background: var(--amber-bg); color: var(--amber-fg);
  font-size: 12.5px; font-weight: 600;
}
body.admin .btn-reset { display: inline-flex; align-items: center; gap: 5px; }

.voted {
  display: none; align-items: center; gap: 9px;
  margin: 16px 0 4px; padding: 12px 15px;
  background: var(--green-bg); color: var(--green-fg);
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
}
.voted.show { display: flex; animation: fade .3s ease; }
.voted svg { width: 17px; height: 17px; }

.chart { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.bar-row {
  display: flex; flex-direction: column; gap: 7px;
  padding: 11px 12px; border-radius: var(--r-sm);
  transition: var(--ease); cursor: pointer;
}
.bar-row:hover { background: var(--surface-2); }
.bar-row.voted-row { cursor: default; }
.bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bar-label { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.bar-count { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.bar-track {
  height: 12px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: var(--r-pill);
  background: var(--primary-300); min-width: 8px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.bar-fill.rank-1 { background: linear-gradient(90deg, var(--primary), var(--primary-strong)); }
.bar-fill.rank-2 { background: var(--primary); }

.baro-add { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.baro-add p { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; }
.add-row { display: flex; gap: 9px; }
.add-row .field { flex: 1; padding: 11px 14px; font-size: 14px; }
.btn-add {
  flex-shrink: 0; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  transition: var(--ease);
}
.btn-add:hover { background: var(--ink-soft); }

.total-note { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.total-note svg { width: 14px; height: 14px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 26px; margin-top: 24px; }
.privacy {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: var(--r-sm); padding: 13px 15px; margin: 18px 0 22px;
  font-size: 13px; color: var(--primary-ink); line-height: 1.55;
}
.privacy svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .01em; display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.opt-badge {
  font-weight: 500; font-size: 10.5px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 8px; border-radius: var(--r-pill);
}
.form-hint { font-size: 11.5px; color: var(--faint); }
select.field { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23647588' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}

.contact-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; flex-wrap: wrap;
}
.contact-foot .timing { font-size: 12px; color: var(--faint); }

.success { display: none; text-align: center; padding: 40px 24px; }
.success .ico {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-bg); color: var(--green-fg);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success .ico svg { width: 28px; height: 28px; }
.success h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.success p { font-size: 14px; color: var(--muted); max-width: 380px; margin: 0 auto; }

/* ============================================================
   BOTTOM TAB BAR (mobile nav)
   ============================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  display: flex; align-items: stretch;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  transition: var(--ease); padding-top: 4px;
}
.tabbar a svg { width: 23px; height: 23px; stroke-width: 2; }
.tabbar a.active { color: var(--primary); }
.tabbar a.active .tab-ico { background: var(--primary-50); }
.tab-ico {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 28px; border-radius: var(--r-pill);
  transition: var(--ease);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center; padding: 32px 20px 26px;
  font-size: 12px; color: var(--faint); line-height: 1.7;
}
.site-footer a.admin-gear { opacity: .35; font-size: 13px; display: inline-block; margin-top: 8px; }
.site-footer a.admin-gear:hover { opacity: .7; }

/* admin bar */
.admin-bar {
  display: none; background: var(--ink); color: var(--primary-200);
  font-size: 12px; padding: 8px 20px; text-align: center; letter-spacing: .02em;
}
.admin-bar button { color: #fff; text-decoration: underline; font-size: 12px; margin-left: 6px; }
body.admin .admin-bar { display: block; }

/* ============================================================
   RESPONSIVE — desktop
   ============================================================ */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  :root { --maxw: 760px; }
  .composer { padding: 26px 28px; }
  .post-body { padding: 18px 22px 16px; }
  .intro { padding: 44px 0 8px; }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PENDING POSTS (admin mode)
   ============================================================ */
.pending-section { display: none; }
body.admin .pending-section { display: block; }

.pending-section > .feed-head h3 { color: var(--amber-fg); }
.pending-pill { background: var(--amber-bg) !important; color: var(--amber-fg) !important; }

.post-pending {
  border-color: var(--amber-bg);
  background: #fffcf5;
}

.btn-approve, .btn-reject {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  transition: var(--ease);
}
.btn-approve { border: 1px solid var(--green-fg); background: var(--green-bg); color: var(--green-fg); }
.btn-approve:hover { filter: brightness(.95); }
.btn-approve svg, .btn-reject svg { width: 13px; height: 13px; }
.btn-reject  { border: 1px solid var(--red-fg);   background: var(--red-bg);   color: var(--red-fg);   }
.btn-reject:hover  { filter: brightness(.95); }

/* ============================================================
   TURNSTILE
   ============================================================ */
.turnstile-wrap {
  margin-top: 14px;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-card {
  padding: 28px 26px;
  margin-top: 24px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
  margin: 28px 0 10px;
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p  { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.privacy-content ul { padding-left: 20px; margin-bottom: 12px; }
.privacy-content li { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.privacy-content a  { color: var(--primary); text-decoration: underline; }
.privacy-content strong { color: var(--ink); font-weight: 600; }
.privacy-content table {
  width: 100%; border-collapse: collapse;
  margin: 14px 0 18px; font-size: 13px;
  display: block; overflow-x: auto;
}
.privacy-content th {
  background: var(--primary-50); color: var(--primary-ink);
  font-weight: 600; text-align: left;
  padding: 8px 12px; font-size: 12px;
  border: 1px solid var(--primary-100);
}
.privacy-content td {
  padding: 8px 12px; border: 1px solid var(--line);
  color: var(--ink-soft); vertical-align: top; font-size: 13px;
}
.privacy-content tr:nth-child(even) td { background: var(--surface-2); }

/* ============================================================
   FOOTER PRIVACY LINK
   ============================================================ */
.footer-link {
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

.proof-file-input {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.accept-terms {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.5;
}
.accept-terms a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   POST STATUS (fixed / not fixed)
   ============================================================ */
.post-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 4px;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
}
.post-status.is-fixed {
  background: var(--green-bg);
  border-color: rgba(28,122,68,.15);
}
.status-not-fixed { color: var(--muted); }
.status-fixed     { color: var(--green-fg); font-weight: 600; }
.status-link {
  color: var(--primary); font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.status-link:hover { text-decoration: underline; }

/* admin toggle — hidden by default, shown in admin mode */
.btn-fix-toggle { display: none; }
body.admin .btn-fix-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto;
  padding: 4px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--primary-200); background: var(--primary-50); color: var(--primary-ink);
  font-size: 11.5px; font-weight: 600;
  transition: var(--ease);
}
body.admin .btn-fix-toggle:hover { border-color: var(--primary); }

/* ============================================================
   FIXED POSTS — SECTION SEPARATOR + GREYED COVER + PROOF PHOTO
   ============================================================ */
.fixed-section {
  margin-top: 40px;
}
.fixed-section-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-fg);
  color: var(--green-fg);
}
.fixed-section-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-fg);
}

/* Fixed post: stacked original (greyed) + proof photo */
.post-cover--fixed {
  display: flex; flex-direction: column;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
}
.post-img--original {
  width: 100%; display: block;
  filter: grayscale(100%) brightness(0.85);
  border-bottom: 2px dashed var(--line);
}
/* Greyed placeholder (posts without a photo) */
.post-cover-ph--greyed {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  min-height: 120px; padding: 20px;
  filter: grayscale(100%) brightness(0.88);
}

/* Proof photo container */
.proof-photo-wrap {
  position: relative;
}
.proof-photo-wrap img {
  width: 100%; display: block;
}
.proof-photo-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--green-fg); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-pill);
  letter-spacing: .03em;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* Admin upload button (shown only in admin mode) */
.btn-upload-proof { display: none; }
body.admin .btn-upload-proof {
  display: inline-flex; align-items: center; gap: 6px;
  width: 100%; justify-content: center;
  padding: 10px 16px;
  background: var(--surface-2); border: 1.5px dashed var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--ease);
}
body.admin .btn-upload-proof:hover {
  background: var(--green-bg); border-color: var(--green-fg); color: var(--green-fg);
}
body.admin .btn-upload-proof svg {
  width: 15px; height: 15px;
}

/* ============================================================
   SHARE DROPDOWN MENU
   ============================================================ */
.share-wrap { position: relative; }

.share-menu {
  display: none;
  position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 200;
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fade .15s ease;
}
.share-menu.open { display: block; }

.share-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  text-align: left;
  transition: background var(--ease);
}
.share-opt:hover { background: var(--surface-2); color: var(--ink); }

.share-opt-ico {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.share-opt-ico svg { width: 18px; height: 18px; }
.share-opt-ico--wa  { color: #25d366; }
.share-opt-ico--fb  { color: #1877f2; }
.share-opt-ico--ig  { color: #e1306c; }

/* ============================================================
   BAROMETER — voted rows & "my vote" tag
   ============================================================ */
.voted.error {
  background: var(--red-bg);
  color: var(--red-fg);
}

.bar-row.user-voted {
  background: var(--primary-50);
  border-radius: var(--r-sm);
}
.bar-row.user-voted .bar-label { color: var(--primary-ink); font-weight: 600; }
.bar-row.user-voted .bar-fill  { background: linear-gradient(90deg, var(--primary), var(--primary-strong)); }

.my-vote-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  color: var(--primary-ink);
  background: var(--primary-100);
  padding: 1px 7px; border-radius: var(--r-pill);
  margin-left: 5px; vertical-align: middle;
}

/* ── Contact page: city expansion note ──────────────────────── */
.expand-cities-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--primary-ink);
  line-height: 1.4;
}
