/* Chopr — one stylesheet for landing, dashboard and admin. Mobile first. */
:root {
  --bg: #050806;
  --bg-2: #070b09;
  --card: #0b100d;
  --card-2: #080c0a;
  --line: rgba(255, 255, 255, .075);
  --line-soft: rgba(255, 255, 255, .045);
  --text: #f2f6f4;
  --muted: #87928d;
  --dim: #56615c;
  --green: #13f28a;
  --green-2: #08ca70;
  --green-soft: rgba(19, 242, 138, .09);
  --gold: #d8aa43;
  --gold-soft: rgba(216, 170, 67, .12);
  --red: #ff5c5c;
  --red-soft: rgba(255, 92, 92, .1);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--font);
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; font: 15px/1.55 var(--font); color: var(--text);
  background: var(--bg) radial-gradient(900px 520px at 50% -140px, rgba(19, 242, 138, .08), transparent 66%) no-repeat;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(36px, 9vw, 64px); letter-spacing: -.055em; }
h2 { font-size: clamp(26px, 6vw, 40px); letter-spacing: -.045em; }
h3 { font-size: 19px; letter-spacing: -.02em; }
p { margin: 0; }
.accent { color: var(--green); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
/* minmax(0,1fr): a long unbreakable child must not widen the column past the screen */
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.stack-sm { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Layout ───────────────────────────────────────── */
/* Side gutters only: vertical spacing belongs to the element (e.g. section { padding-block }). */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.wrap-narrow { max-width: 640px; }
.topbar {
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 8, 6, .72); border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: -.03em; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #02110a;
  background: linear-gradient(135deg, #34ff9f, #14e587 48%, #08ca70); box-shadow: 0 8px 24px rgba(19, 242, 138, .25);
}
.logo svg { width: 20px; height: 20px; }
section { padding-block: 64px; }
@media (max-width: 640px) { section { padding-block: 44px; } }

/* ─── Buttons & inputs ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: linear-gradient(180deg, #111813, #0a0f0c);
  color: var(--text); font: 700 14px var(--font); cursor: pointer; transition: transform .15s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* Icons inside text links (« Profil Vinted ↗ »): text-sized. :where() keeps it overridable. */
:where(a, p, span, label) > svg { width: 1em; height: 1em; vertical-align: -0.125em; flex: none; }
.btn-sm svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary {
  color: #02110a; font-weight: 800; border-color: rgba(113, 255, 190, .52);
  background: linear-gradient(135deg, #34ff9f 0%, #14e587 48%, #08ca70 100%);
  box-shadow: 0 14px 36px rgba(19, 242, 138, .18), inset 0 1px 0 rgba(255, 255, 255, .54), inset 0 -1px 0 rgba(0, 0, 0, .16);
}
.btn-danger { color: var(--red); border-color: rgba(255, 92, 92, .3); background: var(--red-soft); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #070b09; color: var(--text); font: 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(19, 242, 138, .5); box-shadow: 0 0 0 4px rgba(19, 242, 138, .08); }
input[type=checkbox] { width: auto; min-height: 0; }
.qr { justify-self: center; width: 220px; height: 220px; border-radius: 14px; background: #fff; padding: 6px; }
.code-input { text-align: center; font: 700 30px var(--display); letter-spacing: .5em; padding-left: .5em; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span {
  position: absolute; inset: 0; border-radius: 99px; background: #1a221d; border: 1px solid var(--line); cursor: pointer; transition: .2s;
}
.switch span::after {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); transition: .2s;
}
.switch input:checked + span { background: var(--green-soft); border-color: rgba(19, 242, 138, .5); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--green); }

/* ─── Cards & badges ───────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card-sm { border-radius: 16px; padding: 14px; box-shadow: none; }
.eyebrow { font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font: 700 12px var(--font);
  letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); border: 1px solid rgba(19, 242, 138, .18);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
.dot.red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot.gold { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dot.grey { background: var(--dim); box-shadow: none; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font: 700 11px var(--font);
  background: var(--green-soft); color: var(--green); border: 1px solid rgba(19, 242, 138, .2);
}
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(216, 170, 67, .3); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: rgba(255, 92, 92, .3); }
.badge.grey { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line); }
.stat { display: grid; gap: 2px; }
.stat b { font: 700 28px var(--display); letter-spacing: -.03em; }
.stat b.green { color: var(--green); }
.stat b.gold { color: var(--gold); }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.divider { height: 1px; background: var(--line-soft); margin: 4px 0; }

/* Listing card */
.item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line-soft); }
.item img, .item .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #111a15; flex: none; }
.item .price { font: 700 17px var(--display); color: var(--green); }
.tile { border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: grid; }
.tile img, .tile .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #111a15; }
.tile .body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.tile-media { position: relative; display: block; }
.tile-tag { position: absolute; top: 8px; left: 8px; }
.tile-tag.right { left: auto; right: 8px; }
.tile-price { font: 700 16px var(--display); color: var(--green); }
/* Same seller: colored frame + chip (color is stable per seller) */
.tile.same-seller { border-color: hsl(var(--seller-h) 80% 60% / .55); box-shadow: inset 0 3px 0 hsl(var(--seller-h) 85% 60%); }
.seller-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font: 600 11px var(--font);
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seller-chip.multi { color: hsl(var(--seller-h) 90% 72%); border-color: hsl(var(--seller-h) 80% 60% / .5); background: hsl(var(--seller-h) 80% 50% / .14); }
.seller-banner { margin-bottom: 12px; border-color: hsl(var(--seller-h) 80% 60% / .5); }
.total-line { color: var(--muted); }
.price-breakdown dd { white-space: nowrap; }
/* Category chips (scroll sideways on phones) */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--text); font: 600 13px var(--font); cursor: pointer; white-space: nowrap;
}
.chip span { color: var(--dim); font-weight: 700; margin-left: 2px; }
.chip.on { background: var(--green-soft); border-color: rgba(19, 242, 138, .45); color: var(--green); }
.chip.on span { color: var(--green); }
.badge.drop { background: rgba(19, 242, 138, .14); color: var(--green); border-color: rgba(19, 242, 138, .35); padding: 2px 6px; }
.tile-note {
  color: var(--gold); background: var(--gold-soft); border-radius: 8px; padding: 3px 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Sold listings stay visible: faded, with a red "Déjà vendu" bar across the photo */
.tile.sold { opacity: .62; }
.tile.sold img, .tile.sold .ph { filter: grayscale(.85); }
.tile.sold .tile-price { color: var(--muted); text-decoration: line-through; }
/* Hidden by the seller: dimmed, neutral grey bar (can come back, unlike sold) */
.tile.masked { opacity: .78; }
.tile.masked img, .tile.masked .ph { filter: grayscale(.5) brightness(.8); }
.tile.masked .tile-price { color: var(--muted); }
.sold-bar.masked-bar { background: linear-gradient(180deg, rgba(110, 125, 118, .55), rgba(60, 70, 65, .85)); text-transform: none; letter-spacing: .02em; }
.sold-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px; text-align: center;
  font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(255, 92, 92, .55), rgba(190, 40, 40, .78)); backdrop-filter: blur(2px);
}

/* Tables (admin) */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 11px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 8px; }
.table td { padding: 12px 8px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: rgba(255, 255, 255, .02); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── App shell (dashboard/admin) ──────────────────── */
.app { padding: 18px 0 calc(var(--nav-h) + var(--safe-b) + 32px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 40;
  display: flex; gap: 4px; padding: 7px; border-radius: 24px; width: min(calc(100% - 24px), 560px);
  background: rgba(11, 16, 13, .86); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.bottom-nav a {
  flex: 1; height: 50px; border-radius: 17px; display: grid; place-items: center; color: var(--muted); position: relative;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: #02110a; background: linear-gradient(135deg, #34ff9f, #14e587 48%, #08ca70); box-shadow: 0 8px 24px rgba(19, 242, 138, .3); }
.bottom-nav a .count { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 10px/16px var(--font); }
.side-nav { display: none; }

/* Notification center */
.notif-btn { position: relative; }
.notif-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font: 800 10px/18px var(--font); box-shadow: 0 0 0 2px var(--bg);
}
.notif-list { max-height: min(70dvh, 560px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid transparent; }
.notif:hover { background: rgba(255, 255, 255, .03); }
.notif.unread { background: var(--green-soft); border-color: rgba(19, 242, 138, .18); }
.notif-ico { font-size: 20px; width: 28px; text-align: center; flex: none; }
.notif-photo, .notif .ph.notif-photo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }

/* FAQ */
details.faq { border-top: 1px solid var(--line-soft); padding: 12px 0 2px; }
details.faq:first-of-type { border-top: 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--green); font: 700 20px/1 var(--display); }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: #c9d1cd; margin: 8px 0 6px; font-size: 14px; }

/* Phone header: icons only (account is in the bottom bar) */
@media (max-width: 959px) {
  .desktop-only { display: none !important; }
  .admin-chip { width: 40px; padding: 0; }
}
.topbar .row { gap: 8px; flex-wrap: nowrap; }

@media (min-width: 960px) {
  .mobile-only { display: none !important; }
  .has-side .app { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-bottom: 40px; }
  .has-side .bottom-nav { display: none; }
  .side-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: 84px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; }
  .side-nav a svg { width: 19px; height: 19px; }
  .side-nav a.active { background: var(--green-soft); color: var(--green); }
  .side-nav a .count { margin-left: auto; }
}

/* ─── Modal, toast, loader ─────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .66); backdrop-filter: blur(6px); display: grid; place-items: end center; padding: 12px; }
.modal { width: 100%; max-width: 460px; max-height: calc(100dvh - 24px); overflow: auto; animation: up .22s ease-out; }
.modal .btn { white-space: normal; text-align: center; line-height: 1.2; }
.btn.grow { min-width: 0; }
@media (min-width: 640px) { .modal-bg { place-items: center; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.toast {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 80; padding: 12px 18px; border-radius: 14px;
  background: #101814; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; max-width: calc(100% - 32px);
  animation: up .2s ease-out;
}
.toast.err { border-color: rgba(255, 92, 92, .4); color: #ffb3b3; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(19, 242, 138, .15); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font: 700 12px var(--font); font-style: normal; }
.step.done { color: var(--text); }
.step.done i { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.step.now i { border-color: var(--green); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #0d130f, #141c17, #0d130f); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ─── Landing ──────────────────────────────────────── */
.hero { padding-block: 48px 28px; text-align: center; display: grid; gap: 22px; justify-items: center; }
.hero p.lead { max-width: 560px; color: var(--muted); font-size: 17px; }
.hero .ctas { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.hero-meta b { color: var(--text); }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 12px; }
.feature .ico svg { width: 22px; height: 22px; }
.steps-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-num { font: 700 13px var(--display); color: var(--green); }
/* Pricing: cards centred (2–3 plans), popular one highlighted, ✓ feature list */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 860px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; padding: 26px 24px; grid-template-rows: auto auto 1fr auto; }
.plan.popular { border-color: rgba(19, 242, 138, .4);
  background: radial-gradient(120% 90% at 100% 0%, rgba(19, 242, 138, .10), transparent 55%), var(--card, #0b100d);
  box-shadow: 0 18px 50px -20px rgba(19, 242, 138, .35); }
.plan > .row:first-child { min-height: 28px; } /* same title row height with or without the « Populaire » badge */
.plan .price { font: 700 44px/1 var(--display); letter-spacing: -.03em; }
.plan .per { color: var(--muted); font-size: 15px; margin-left: 6px; }
.plan-features { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
/* one <span> per line: the ✓ and the text are the only two grid cells */
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 800; line-height: 1.45; }
.plan-features b { color: var(--text); }
.pricing-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 30px; }
.pricing-head p { color: var(--muted); max-width: 520px; margin: 0; }

/* Final call to action */
.final-cta { position: relative; overflow: hidden; display: grid; gap: 14px; justify-items: center; text-align: center;
  padding: 44px 24px; border-radius: 24px; border: 1px solid rgba(19, 242, 138, .22);
  background: radial-gradient(80% 120% at 50% 0%, rgba(19, 242, 138, .13), transparent 60%), var(--card, #0b100d); }
.final-cta h2 { font-size: clamp(24px, 4.6vw, 34px); max-width: 560px; margin: 0; }
.final-cta p { margin: 0; }
.final-cta .btn { width: 100%; max-width: 380px; margin-top: 6px; }
h1, h2, h3 { text-wrap: balance; }
.footer { border-top: 1px solid var(--line-soft); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Site footer (static/js/footer.js): brand + 4 link columns, bottom bar */
.site-footer { margin-top: 48px; padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg-2) 40%); font-size: 14px; }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)); }
.footer-brand .brand { color: var(--text); text-decoration: none; }
.footer-brand .logo { box-shadow: 0 0 24px rgba(19, 242, 138, .35); }
.footer-brand p { margin: 14px 0 18px; max-width: 290px; line-height: 1.55; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line);
  color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.footer-social a:hover { color: var(--green); border-color: rgba(19, 242, 138, .45); background: var(--green-soft); }
.footer-col h4 { margin: 4px 0 14px; color: var(--text); font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; line-height: 1.45; transition: color .15s; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--dim); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(19, 242, 138, .15); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer { padding-top: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
.legal { padding-block: 32px 60px; }
.legal h1 { font-size: 36px; margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal p, .legal li { color: #c9d1cd; margin-bottom: 10px; }

/* Admin status */
.health { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; font-weight: 700; }
.health.ok { background: var(--green-soft); color: var(--green); border: 1px solid rgba(19, 242, 138, .25); }
.health.warn { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(216, 170, 67, .3); }
.health.down { background: var(--red-soft); color: var(--red); border: 1px solid rgba(255, 92, 92, .3); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Extension page: numbered install steps */
ol.steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; }
ol.steps code { background: var(--panel-2, rgba(255,255,255,.06)); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* Collection page: "listings still loading" heads-up */
.pending-note { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(19, 242, 138, .10), rgba(19, 242, 138, .03)); border: 1px solid rgba(19, 242, 138, .25); }
.pending-note > div { flex: 1; min-width: 0; line-height: 1.35; }
.pending-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(19, 242, 138, .6); animation: pending-pulse 1.6s ease-out infinite; }
@keyframes pending-pulse { to { box-shadow: 0 0 0 10px rgba(19, 242, 138, 0); } }
@media (prefers-reduced-motion: reduce) { .pending-dot { animation: none; } }

/* Target price on a tile */
.target-line { color: var(--muted); }
.target-line.hit { color: var(--green); font-weight: 700; }

/* Public link: button state, votes on tiles and on the public page */
.btn.btn-on { border-color: rgba(19, 242, 138, .5); color: var(--green); }
.vote-line { color: var(--muted); }
.vote-row { gap: 8px; margin-top: 4px; }
.vote { flex: 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.vote b { margin-left: 4px; }
.vote.on { background: rgba(19, 242, 138, .14); border-color: rgba(19, 242, 138, .5); }
.vote.down.on { background: rgba(255, 92, 92, .12); border-color: rgba(255, 92, 92, .45); }
.vote:disabled { opacity: .6; cursor: wait; }
.pub-intro { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 700px) { .pub-intro { grid-template-columns: 1fr 260px; align-items: center; } }

/* Alertes page: unread alerts */
.item.unread { border-color: rgba(19, 242, 138, .35); background: linear-gradient(90deg, rgba(19, 242, 138, .07), transparent 60%); }
.badge.new-dot { padding: 1px 7px; font-size: 10px; vertical-align: 1px; }

/* « Alerte similaire » preview: small thumbnails of the newest matches */
.sim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sim-grid a { display: grid; gap: 3px; color: inherit; text-decoration: none; min-width: 0; }
.sim-grid img, .sim-grid .ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #111a15; }
@media (max-width: 420px) { .sim-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* « Filtre photo IA »: preview tiles with their similarity score; hidden ones dimmed */
.sim-ph { position: relative; display: block; }
.sim-score { position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 99px; font: 700 10px var(--font); font-style: normal;
  background: rgba(7, 12, 9, .78); color: var(--green); }
.sim-score.off { color: var(--muted); }
.sim-grid a.filtered { opacity: .38; filter: grayscale(.8); }
.sim-grid a.filtered:hover { opacity: .7; }
