/* ============================================================
   ZISIMA SOCIAL — CSS v3  ·  TikTok-inspired  ·  Mobile-first
   ============================================================ */

:root,
html[data-zsm-theme="dark"] {
  --zsm-bg: #0a0a0a;
  --zsm-bg2: #111111;
  --zsm-bg3: #1a1a1a;
  --zsm-surface: #1e1e1e;
  --zsm-border: rgba(255, 255, 255, 0.08);
  --zsm-green: #1b5e20;
  --zsm-green-light: #2e7d32;
  --zsm-green-glow: rgba(27, 94, 32, 0.4);
  --zsm-pink: #c2185b;
  --zsm-pink-light: #e91e63;
  --zsm-pink-glow: rgba(194, 24, 91, 0.45);
  --zsm-white: #f5f5f5;
  --zsm-grey: #9e9e9e;
  --zsm-text: #eeeeee;
  --zsm-text-dim: #bdbdbd;
  --zsm-header-h: 56px;
  --zsm-bottom-h: 48px;
  --zsm-radius: 16px;
  --zsm-radius-sm: 10px;
  --zsm-font: "Roboto", sans-serif;
  --zsm-font-display: "Roboto", sans-serif;
  --zsm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --zsm-app-max: 520px;
  --zsm-app-max-w: 520px;
    --zsm-shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --zsm-shadow-md: 0 6px 18px rgba(0,0,0,0.5);
}

html[data-zsm-theme="light"] {
  --zsm-bg: #f3f5f7;
  --zsm-bg2: #ffffff;
  --zsm-bg3: #eef2f6;
  --zsm-surface: #f7f9fc;
  --zsm-border: rgba(15, 23, 42, 0.12);
  --zsm-green: #1b5e20;
  --zsm-green-light: #2e7d32;
  --zsm-green-glow: rgba(46, 125, 50, 0.2);
  --zsm-pink: #c2185b;
  --zsm-pink-light: #e91e63;
  --zsm-pink-glow: rgba(194, 24, 91, 0.2);
  --zsm-white: #101418;
  --zsm-grey: #516173;
  --zsm-text: #0f172a;
  --zsm-text-dim: #334155;
  --zsm-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --zsm-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.14);
}

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--zsm-bg);
  color: var(--zsm-text);
  font-family: var(--zsm-font);
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img,
video {
  max-width: 100%;
  display: block;
}
button {
  font-family: var(--zsm-font);
}

/* ---- WRAPPER ---- */
.zsm-content {
  padding-top: calc(var(--zsm-header-h)+8px);
  padding-bottom: calc(var(--zsm-bottom-h)+16px);
  min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.zsm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--zsm-header-h);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--zsm-border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  z-index: 1000;
}
html[data-zsm-theme="light"] .zsm-header {
  background: rgba(255, 255, 255, 0.94);
}
.zsm-logo a {
  display: flex;
  align-items: center;
}
.zsm-logo-svg {
  height: 38px;
  width: auto;
  display: block;
  transition: transform var(--zsm-transition);
}
.zsm-logo a:hover .zsm-logo-svg {
  transform: scale(1.04);
}
.zsm-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.zsm-logo-text {
  font-family: var(--zsm-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--zsm-pink-light);
}
.zsm-logo__main {
  font-family: var(--zsm-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--zsm-pink-light);
}
.zsm-logo__sub {
  font-family: var(--zsm-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--zsm-white);
  opacity: 0.85;
}

.zsm-search-wrap {
  flex: 1;
  position: relative;
  max-width: 220px;
}
.zsm-search {
  width: 100%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border-accent);
  border-radius: 50px;
  padding: 7px 34px 7px 14px;
  color: var(--zsm-text);
  font-family: var(--zsm-font);
  font-size: 0.82rem;
  outline: none;
  transition: border var(--zsm-transition);
}
.zsm-search:focus {
  border-color: var(--zsm-pink-light);
}
.zsm-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
  color: var(--zsm-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.zsm-search-icon svg {
  stroke: var(--zsm-text);
}

/* Search toggle icon — hidden by default, shown on small screens */
.zsm-search-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-text);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-search-toggle svg {
  stroke: var(--zsm-text) !important;
}
.zsm-search-toggle:hover {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 399px) {
  .zsm-search-wrap {
    flex: 0 0 auto;
    max-width: none;
    position: relative;
  }
  .zsm-search-wrap .zsm-search {
    display: none;
  }
  .zsm-search-wrap .zsm-search-icon {
    display: none;
  }
  .zsm-search-toggle {
    display: flex;
    position: relative;
    z-index: 10002;
  }
  /* Expanded state */
  .zsm-search-wrap.zsm-search--expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--zsm-header-h) + env(safe-area-inset-top, 0px));
    z-index: 10060;
    max-width: none;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top, 0px) 10px 0;
    gap: 8px;
  }
  html[data-zsm-theme="light"] .zsm-search-wrap.zsm-search--expanded {
    background: rgba(255, 255, 255, 0.98);
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search {
    display: block;
    flex: 1;
    min-width: 0;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-icon {
    display: inline-flex;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-toggle svg line {
    display: none;
  }
  .zsm-search-wrap.zsm-search--expanded
    .zsm-search-toggle
    svg
    circle {
    display: none;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-toggle::after {
    content: "✕";
    font-size: 1.1rem;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-toggle svg {
    display: none;
  }
  /* Shrink header icons on small screens */
  .zsm-menu-btn,
  .zsm-search-toggle,
  .zsm-filter-btn,
  .zsm-header-notif,
  .zsm-header-msg,
  .zsm-header-groups,
  .zsm-header-avatar {
    width: 32px;
    height: 32px;
  }
  .zsm-menu-btn svg,
  .zsm-search-toggle svg,
  .zsm-filter-btn svg,
  .zsm-header-notif svg,
  .zsm-header-msg svg,
  .zsm-header-groups svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 768px) {
  .zsm-search-wrap {
    flex: 0 0 auto;
    max-width: none;
    position: relative;
  }
  .zsm-search-wrap .zsm-search,
  .zsm-search-wrap .zsm-search-icon {
    display: none;
  }
  .zsm-search-toggle {
    display: flex !important;
    position: relative;
    z-index: 10002;
  }
  .zsm-search-wrap.zsm-search--expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--zsm-header-h) + env(safe-area-inset-top, 0px));
    z-index: 10060;
    max-width: none;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top, 0px) 10px 0;
    gap: 8px;
  }
  html[data-zsm-theme="light"] .zsm-search-wrap.zsm-search--expanded {
    background: rgba(255, 255, 255, 0.98);
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search {
    display: block;
    flex: 1;
    min-width: 0;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-icon {
    display: inline-flex;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-toggle svg {
    display: none;
  }
  .zsm-search-wrap.zsm-search--expanded .zsm-search-toggle::after {
    content: "✕";
    font-size: 1.1rem;
  }
}

.zsm-menu-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-menu-btn:hover {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}
.zsm-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 22px;
  height: 22px;
}
.zsm-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--zsm-white);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Side Menu */
.zsm-side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 320px);
  background: linear-gradient(
    180deg,
    rgba(9, 11, 18, 0.98) 0%,
    rgba(16, 20, 30, 0.97) 55%,
    rgba(12, 16, 25, 0.98) 100%
  );
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  padding: 18px 0 20px;
  transform: translateX(-108%);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    visibility 0s linear 0.28s;
}
.zsm-side-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    visibility 0s linear 0s;
}
.zsm-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.zsm-menu-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}
.zsm-side-menu__profile {
  width: calc(100% - 22px);
  margin: 12px 11px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--zsm-white);
  text-align: left;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
  opacity: 0;
  filter: blur(3px);
  transform: translateX(-8px);
}
.zsm-side-menu__profile:hover {
  transform: translateY(-1px) translateX(0);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}
.zsm-side-menu__profile-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.zsm-side-menu__profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zsm-side-menu__profile-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zsm-side-menu__profile-title {
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.zsm-side-menu__profile-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zsm-side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zsm-side-menu ul li a {
  display: block;
  margin: 4px 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  opacity: 0;
  filter: blur(3px);
  transform: translateX(-8px);
}
.zsm-side-menu ul li a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px) scale(1.01);
}
.zsm-side-menu.open .zsm-side-menu__profile,
.zsm-side-menu.open ul li a {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}
.zsm-side-menu.open .zsm-side-menu__profile {
  transition:
    opacity 0.24s ease 0.1s,
    transform 0.28s ease 0.1s,
    filter 0.24s ease 0.1s,
    border-color 0.2s,
    background 0.2s;
}
.zsm-side-menu.open ul li:nth-child(1) a {
  transition:
    opacity 0.24s ease 0.14s,
    transform 0.28s ease 0.14s,
    filter 0.24s ease 0.14s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.zsm-side-menu.open ul li:nth-child(2) a {
  transition:
    opacity 0.24s ease 0.18s,
    transform 0.28s ease 0.18s,
    filter 0.24s ease 0.18s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.zsm-side-menu.open ul li:nth-child(3) a {
  transition:
    opacity 0.24s ease 0.22s,
    transform 0.28s ease 0.22s,
    filter 0.24s ease 0.22s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.zsm-side-menu.open ul li:nth-child(4) a,
.zsm-side-menu.open ul li:nth-child(5) a,
.zsm-side-menu.open ul li:nth-child(6) a {
  transition:
    opacity 0.24s ease 0.26s,
    transform 0.28s ease 0.26s,
    filter 0.24s ease 0.26s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.zsm-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 10, 0.58);
  backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0.24s;
}
.zsm-menu-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.24s ease,
    visibility 0s linear 0s;
}

body.zsm-menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .zsm-side-menu,
  .zsm-menu-overlay,
  .zsm-side-menu__profile,
  .zsm-side-menu ul li a,
  .zsm-menu-close {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.zsm-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--zsm-bottom-h);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--zsm-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 2px 4px;
  z-index: 1000;
}
.zsm-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: var(--zsm-radius-sm);
  transition: all var(--zsm-transition);
  color: var(--zsm-grey);
  flex: 1;
  max-width: 52px;
}
.zsm-nav-item:hover,
.zsm-nav-item.active {
  color: var(--zsm-white);
}
.zsm-nav-item.active .zsm-nav-icon {
  transform: scale(1.15);
}
.zsm-nav-icon {
  font-size: 1.8rem;
  transition: transform var(--zsm-transition);
  line-height: 1;
}
.zsm-nav-icon-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.zsm-plus__icon-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.zsm-nav-label {
  display: none;
}

/* PLUS button */
.zsm-plus {
  background: linear-gradient(135deg, #e53935 0%, #fdd835 50%, #43a047 100%) !important;
  color: white !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  margin-top: -10px !important;
  box-shadow:
    0 0 0 2px rgba(13, 13, 13, 0.85),
    0 4px 14px rgba(229, 57, 53, 0.4) !important;
  flex-direction: row !important;
  justify-content: center !important;
  padding: 0 !important;
  max-width: 44px !important;
  flex: 0 0 44px !important;
  transition: all var(--zsm-transition) !important;
  position: relative;
  z-index: 0;
  overflow: visible !important;
}
.zsm-plus::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    #e53935,
    #fdd835,
    #43a047,
    #e53935
  );
  z-index: -1;
  opacity: 0.85;
}
html[data-zsm-theme="light"] .zsm-plus {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(229, 57, 53, 0.35) !important;
}
.zsm-plus:hover {
  background: linear-gradient(135deg, #ef5350 0%, #ffeb3b 50%, #66bb6a 100%) !important;
  transform: scale(1.08) translateY(-2px) !important;
}
.zsm-plus__icon {
  font-size: 20px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ============================================================
  width: 26px;
  height: 26px;
.zsm-feed {
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: start;
}

/* Seules les cartes annonces marketplace occupent 1 colonne.
   Tout le reste (divertissement, group-post, carousels, sponsored,
   empty state) s'étend sur les 2 colonnes pour conserver leur layout. */
.zsm-feed > *:not(.zsm-card--annonce) {
  grid-column: 1 / -1;
}

.zsm-card {
  background: var(--zsm-bg);
  overflow: hidden;
  position: relative;
  top: -20px;
  cursor: pointer;
  animation: zsm-fade-in 0.4s ease both;
}

/* === Marketplace card (annonces) — surcharge === */
.zsm-card--mkt {
  background: var(--zsm-surface);
  border-radius: var(--zsm-radius-sm);
  border: 1px solid var(--zsm-border);
  box-shadow: var(--zsm-shadow-sm);
  transition: box-shadow var(--zsm-transition);
  display: flex;
  flex-direction: column;
  top: 0;
}
.zsm-card--mkt:hover {
  box-shadow: var(--zsm-shadow-md);
}
@keyframes zsm-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lien wrapper du média (marketplace) */
.zsm-card--mkt .zsm-card__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

/* Card Media (photo) — original (divertissement) */
.zsm-card__media {
  position: relative;
  overflow: visible;
  background: #000;
  cursor: pointer;
  aspect-ratio: 3/4;
}
.zsm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Card Media (photo) — marketplace */
.zsm-card--mkt .zsm-card__media {
  overflow: hidden;
  background: #111;
  border-radius: var(--zsm-radius-sm) var(--zsm-radius-sm) 0 0;
}
.zsm-card--mkt .zsm-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zsm-bg3);
}
.zsm-card__no-img {
  font-size: 2rem;
  opacity: .4;
}

/* Card Media (video reel) — original (divertissement plein écran) */
.zsm-card__media--video-reel {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 90vh;
  background: #000;
  overflow: visible !important;
  cursor: pointer;
}

/* Card Media (video reel) — marketplace (compact 3:4) */
.zsm-card--mkt .zsm-card__media--video-reel {
  aspect-ratio: 3/4;
  max-height: none;
  overflow: hidden !important;
  border-radius: var(--zsm-radius-sm) var(--zsm-radius-sm) 0 0;
}
.zsm-reel-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
/* Spinner de chargement vidéo (style TikTok) */
.zsm-card__media--video-reel::before,
.zsm-video-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(99, 102, 241, 0.8);
  border-radius: 50%;
  z-index: 0;
  animation: zsm-spin 0.8s linear infinite;
  pointer-events: none;
}
@keyframes zsm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Gradient overlay original (divertissement plein écran) */
.zsm-card__media::after,
.zsm-card__media--video-reel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* Marketplace : pas d'overlay sur l'image (infos sous l'image) */
.zsm-card--mkt .zsm-card__media::after {
  content: none;
}
.zsm-card--mkt .zsm-card__media--video-reel::after {
  height: 30%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.35) 0%,
    transparent 100%
  );
}

/* Play/Pause button (reel) */
.zsm-reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsm-card__media--video-reel:hover .zsm-reel-play-btn,
.zsm-card__media--video-reel.paused .zsm-reel-play-btn {
  opacity: 1;
}
.zsm-reel-play-btn:active {
  transform: translate(-50%, -50%) scale(0.88);
}

/* ---- Overlay: info en bas à gauche ---- */
.zsm-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 60px;
  padding: 16px 14px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
  background-color: rgb(21 14 14 / 13%);
  border-radius: 0px 15px 15px 0px;
}
.zsm-card__overlay-name {
  font-family: var(--zsm-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  margin-bottom: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.zsm-card__overlay-loc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.zsm-card__overlay-cat {
  display: inline-block;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.zsm-card__overlay-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--zsm-pink-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 3px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.zsm-card__overlay-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Views badge ---- */
.zsm-card__views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--zsm-grey);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ---- Actions TikTok: côté droit vertical ---- */
.zsm-card__tiktok-actions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.zsm-tk-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform var(--zsm-transition);
  text-decoration: none;
}
.zsm-tk-action:hover {
  transform: scale(1.15);
  color: white;
}
.zsm-tk-icon {
  /* increase icon size by ~30% for story pages */
  font-size: 1.625rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.zsm-tk-count {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}
.zsm-tk-action.liked .zsm-tk-icon {
  color: var(--zsm-pink-light);
  filter: drop-shadow(0 0 8px var(--zsm-pink-glow));
}
.zsm-tk-action.zsm-tk-wa .zsm-tk-icon {
  color: #25d366;
}
.zsm-tk-action.zsm-tk-wa:hover .zsm-tk-icon {
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.5));
}

/* Rating popup (stars) */
.zsm-rating-btn {
  position: relative;
}
.zsm-stars-popup {
  display: none;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(-8px, -50%);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 8px;
  border-radius: 16px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 12;
}
.zsm-rating-btn--open .zsm-stars-popup,
.zsm-rating-btn:focus-within .zsm-stars-popup {
  display: flex;
}
.zsm-star {
  font-size: 0.85rem;
  color: #9e9e9e;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}
.zsm-star--active {
  color: #ffd54f;
}

/* No-counter buttons (chat, WA) — compact spacing */
.zsm-tk-action.zsm-chat-btn,
.zsm-tk-action.zsm-tk-wa,
.zsm-tk-action.zsm-chat-btn--wa-fallback {
  margin-top: -4px;
}
.zsm-vid-action.zsm-chat-btn,
.zsm-vid-action.zsm-wa-btn,
.zsm-vid-action.zsm-chat-btn--wa-fallback {
  margin-top: -4px;
}
.zsm-photo-action.zsm-chat-btn,
.zsm-photo-action.zsm-photo-wa,
.zsm-photo-action.zsm-chat-btn--wa-fallback {
  margin-top: -4px;
}
/* WhatsApp SVG — fixed display size */
.zsm-tk-wa svg,
.zsm-wa-btn svg,
.zsm-photo-wa svg {
  width: 18px;
  height: 18px;
}

/* Chat button — pink accent to distinguish from comment */
.zsm-chat-btn .zsm-tk-icon,
.zsm-chat-btn .zsm-vid-icon,
.zsm-chat-btn .zsm-photo-action-icon {
  color: var(--zsm-pink-light);
}
.zsm-chat-btn:hover .zsm-tk-icon,
.zsm-chat-btn:hover .zsm-vid-icon,
.zsm-chat-btn:hover .zsm-photo-action-icon {
  filter: drop-shadow(0 0 8px var(--zsm-pink-glow));
}
.zsm-chat-btn--wa-fallback .zsm-tk-icon,
.zsm-chat-btn--wa-fallback .zsm-vid-icon,
.zsm-chat-btn--wa-fallback .zsm-photo-action-icon {
  color: #25d366;
}

/* Chat message popup (editable pre-filled) */
.zsm-chat-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.zsm-chat-popup {
  background: var(--zsm-bg2);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.zsm-chat-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--zsm-border);
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.zsm-chat-popup__close {
  background: none;
  border: none;
  color: var(--zsm-grey);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.zsm-chat-popup__close:hover {
  color: #fff;
}
.zsm-chat-popup__msg {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--zsm-bg3);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.zsm-chat-popup__msg:focus {
  outline: none;
  background: var(--zsm-bg1);
}
.zsm-chat-popup__send {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--zsm-pink);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--zsm-transition);
}
.zsm-chat-popup__send:hover {
  background: var(--zsm-pink-light);
}
.zsm-chat-popup__send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.zsm-chat-popup__footer {
  display: flex;
  flex-direction: column;
}
.zsm-chat-popup__error {
  color: #ff6b6b;
  font-size: 0.82rem;
  padding: 6px 16px 0;
  min-height: 1.2em;
}

/* Author (mini) */
.zsm-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 6px;
  cursor: pointer;
}
.zsm-card__author:hover .zsm-card__author-name {
  color: var(--zsm-pink-light);
}
.zsm-card__author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--zsm-pink);
  flex-shrink: 0;
}
.zsm-card__author-info {
  flex: 1;
}
.zsm-card__author-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--zsm-white);
  transition: color var(--zsm-transition);
}
.zsm-card__author-date {
  font-size: 0.7rem;
  color: var(--zsm-grey);
}

/* Hidden elements (kept for JS compatibility) */
.zsm-card__counters {
  display: none;
}
.zsm-card__actions {
  display: none;
}

/* ============================================================
   MARKETPLACE CARD — body + actions bar
   ============================================================ */
.zsm-card__body {
  padding: 8px 10px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zsm-card__price {
  font-size: 0.92rem;
  font-weight: 700;
    color: var(--zsm-pink-light);
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.zsm-card__title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--zsm-text);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zsm-card__title a {
  color: inherit;
  text-decoration: none;
}
.zsm-card__title a:hover {
  color: var(--zsm-pink);
}
.zsm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.zsm-card__cat {
  font-size: 0.7rem;
  color: var(--zsm-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.zsm-card__loc {
  display: none;
}
.zsm-card__author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  cursor: pointer;
}
.zsm-card__author-line .zsm-card__author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--zsm-pink);
  flex-shrink: 0;
}
.zsm-card__author-line .zsm-card__author-info {
  flex: 1;
  min-width: 0;
}
.zsm-card__author-line .zsm-card__author-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--zsm-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zsm-card__author-line .zsm-card__author-date {
  display: block;
  font-size: 0.63rem;
  color: var(--zsm-grey);
}
.zsm-card__author-line--mkt-top {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 4px;
  align-items: center;
}
.zsm-card__author-line--mkt-top .zsm-card__author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.zsm-card__author-line--mkt-top .zsm-card__author-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}
.zsm-card__author-line--mkt-top .zsm-card__author-name-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zsm-card__author-line--mkt-top .zsm-card__author-date {
  display: none;
}
/* Actions bar — rangée horizontale en bas */
.zsm-card__actions-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 8px;
  border-top: 1px solid var(--zsm-border);
  background: var(--zsm-surface);
  border-radius: 0 0 var(--zsm-radius-sm) var(--zsm-radius-sm);
  flex-shrink: 0;
}
.zsm-mkt-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: none;
  border: none;
  color: var(--zsm-text);
  cursor: pointer;
  padding: 3px 5px;
  text-decoration: none;
  transition: transform var(--zsm-transition);
  flex-shrink: 0;
}
.zsm-mkt-action:hover {
  transform: scale(1.15);
  color: var(--zsm-pink);
}
.zsm-mkt-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsm-mkt-count {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  color: var(--zsm-grey);
}
.zsm-mkt-action.liked .zsm-mkt-icon {
  color: var(--zsm-pink);
}
.zsm-mkt-action.zsm-mkt-wa .zsm-mkt-icon {
  color: #25d366;
}
.zsm-mkt-details-btn {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--zsm-pink);
  text-decoration: none;
  padding: 3px 6px;
  border: 1px solid var(--zsm-pink);
  border-radius: 20px;
  white-space: nowrap;
  transition: background var(--zsm-transition), color var(--zsm-transition);
  flex-shrink: 0;
}
.zsm-mkt-details-btn:hover {
  background: var(--zsm-pink);
  color: #fff;
}
}
.zsm-comments-panel {
  display: none !important;
}

/* Load More */
.zsm-load-more-wrap {
  text-align: center;
  padding: 20px 0 8px;
}
.zsm-btn-load-more {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-text);
  padding: 10px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--zsm-font);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--zsm-transition);
}
.zsm-btn-load-more:hover {
  background: var(--zsm-pink);
  border-color: var(--zsm-pink);
  color: white;
}

/* Empty */
.zsm-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--zsm-grey);
}
.zsm-empty span {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}
.zsm-btn-primary {
  display: inline-block;
  margin-top: 16px;
  background: var(--zsm-pink);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--zsm-font);
  transition: all var(--zsm-transition);
}
.zsm-btn-primary:hover {
  background: var(--zsm-pink-light);
  transform: translateY(-2px);
}

/* ============================================================
   VIDEO FEED — Plein écran TikTok (/zsm-videos/)
   ============================================================ */
body.zsm-video-active {
  overflow: hidden;
}

.zsm-content > .zsm-video-feed,
.zsm-video-feed {
  position: fixed !important;
  top: var(--zsm-header-h);
  left: 0;
  right: 0;
  bottom: var(--zsm-bottom-h);
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zsm-video-feed::-webkit-scrollbar {
  display: none;
}

.zsm-video-item {
  position: relative;
  width: 100%;
  height: calc(
    100vh - var(--zsm-header-h) - var(--zsm-bottom-h) - 6px
  );
  min-height: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: visible;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.zsm-video-player,
.zsm-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video overlay */
.zsm-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    transparent 55%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px 16px;
  z-index: 2;
}
.zsm-video-info {
  flex: 1;
  padding-right: 70px;
}
.zsm-video-info h3 {
  font-family: var(--zsm-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 3px;
}
.zsm-video-info p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}
.zsm-video-info .zsm-video-price {
  color: var(--zsm-pink-light);
  font-weight: 700;
}
.zsm-video-excerpt {
  font-style: italic;
  opacity: 0.7;
}
.zsm-video-details-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 18px;
  background: var(--zsm-pink);
  color: white;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  pointer-events: auto;
  position: relative;
  z-index: 5;
  transition:
    background 0.2s,
    transform 0.15s;
}
.zsm-video-details-btn:hover {
  background: var(--zsm-pink-light);
  transform: scale(1.04);
}
.zsm-video-details-btn--orange {
  background: #ff6d00;
}
.zsm-video-details-btn--orange:hover {
  background: #ff8f00;
}

/* Forcer overflow visible sur les items stories pour le bouton détail */
.zsm-video-item {
  overflow: visible !important;
}

/* Video Actions — côté droit vertical */
.zsm-video-actions {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;
}
.zsm-vid-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-family: var(--zsm-font);
  font-size: 0.65rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform var(--zsm-transition);
  text-decoration: none;
}
.zsm-vid-action .zsm-vid-icon,
.zsm-vid-action span:first-child {
  /* increase icon size by ~30% */
  font-size: 1.625rem;
  line-height: 1;
}
.zsm-vid-action:hover {
  transform: scale(1.15);
}
.zsm-vid-action.liked span:first-child {
  color: var(--zsm-pink-light);
  filter: drop-shadow(0 0 6px var(--zsm-pink));
}
.zsm-vid-action.zsm-wa-btn {
  color: #25d366;
}

/* ── Story Author Avatar (TikTok-style) ── */
.zsm-video-actions .zsm-vid-author {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  width: 24px;
  flex-shrink: 0;
}
.zsm-video-actions .zsm-vid-author__avatar {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 1.5px solid var(--zsm-pink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  display: block;
}
.zsm-video-actions .zsm-vid-author__badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsm-vid-author__badge .zsm-verified-badge {
  margin-left: 0;
  display: inline-flex;
}
.zsm-vid-author__badge .zsm-verified-badge svg {
  width: 12px !important;
  height: 12px !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* ============================================================
   AD BADGE — Annonce injectée
   ============================================================ */
.zsm-ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 12;
  background: rgba(194, 24, 91, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.zsm-video-item--ad,
.zsm-photo-item--ad,
.zsm-card--ad {
  border: 1px solid rgba(194, 24, 91, 0.3);
}
.zsm-sponsored-badge {
  position: absolute;
  top: 60px;
  left: 2px;
  z-index: 12;
  background: linear-gradient(135deg, #bc054d69, #bead1e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(255, 143, 0, 0.4);
  animation: zsm-badge-pulse 2s ease-in-out infinite;
}
.zsm-card--ad .zsm-sponsored-badge {
  top: 28px;
}
.zsm-card--sponsored {
  border: 1px solid rgba(255, 171, 0, 0.35);
}
@keyframes zsm-badge-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

/* ============================================================
   VIDEO FORMAT — Horizontal (YouTube) vs Vertical (TikTok)
   ============================================================ */
.zsm-video--horizontal {
  scroll-snap-align: start;
  height: auto !important;
  min-height: unset !important;
  max-height: 56.25vw; /* 16:9 ratio */
  aspect-ratio: 16/9;
  background: #000;
}
.zsm-video--horizontal video.zsm-video-player,
.zsm-video--horizontal video.zsm-reel-player {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.zsm-video--vertical {
  scroll-snap-align: start;
}
.zsm-video--vertical video.zsm-video-player,
.zsm-video--vertical video.zsm-reel-player {
  object-fit: cover;
}

/* ============================================================
   CONTENT TYPE TOGGLE — Publish form
   ============================================================ */
.zsm-content-type-selector {
  margin-bottom: 4px;
}
.zsm-annonce-fields {
  overflow: hidden;
}

/* ============================================================
   PHOTO TINDER — Swiper fullscreen immersive
   ============================================================ */
.zsm-photo-tinder {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  background: #000;
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 0;
}
.zsm-photo-swiper {
  width: 100%;
  height: 100%;
}
.zsm-photo-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}
.zsm-photo-counter {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  pointer-events: none;
}

.zsm-photo-item {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  background: #000;
  border-radius: 0;
}
.zsm-photo-item img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.zsm-photo-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}
.zsm-photo-info {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zsm-photo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.zsm-photo-loc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.zsm-photo-price {
  font-size: 0.8rem;
  color: var(--zsm-pink-light);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Photo Tinder actions — vertical bar right (TikTok style) */
.zsm-photo-actions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.zsm-photo-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.zsm-photo-action:active {
  transform: scale(1.15);
}
.zsm-photo-action-icon {
  /* increase icon size by ~30% */
  font-size: 1.625rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.zsm-photo-action.liked .zsm-photo-action-icon {
  filter: drop-shadow(0 0 8px var(--zsm-pink-glow));
}
.zsm-photo-wa {
  color: #25d366;
}

/* ============================================================
   PHOTO TINDER — Swipe indicator overlay
   ============================================================ */
.zsm-swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 2.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.zsm-swipe-hint--left {
  left: 20px;
}
.zsm-swipe-hint--right {
  right: 20px;
}
.zsm-photo-tinder.swiping-left .zsm-swipe-hint--left,
.zsm-photo-tinder.swiping-right .zsm-swipe-hint--right {
  opacity: 1;
}

/* Ad badge on photo tinder */
.zsm-photo-item--ad .zsm-ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(255, 152, 0, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   PHOTO FULLSCREEN VIEWER (stories)
   ============================================================ */
.zsm-photo-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(10px);
  flex-direction: column;
}
.zsm-photo-viewer.open {
  display: flex;
}
.zsm-photo-viewer__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.zsm-photo-viewer__slides {
  flex: 1;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.zsm-photo-viewer__slides::-webkit-scrollbar {
  display: none;
}
.zsm-photo-viewer__slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.zsm-photo-viewer__slide img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}

/* ============================================================
   PUBLICATION PAGE
   ============================================================ */
.zsm-publish-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 12px 24px;
}
.zsm-publish-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--zsm-border);
  margin-bottom: 20px;
}
.zsm-back-btn {
  background: var(--zsm-surface);
  border: none;
  color: var(--zsm-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--zsm-transition);
  font-family: var(--zsm-font);
}
.zsm-back-btn:hover {
  background: var(--zsm-pink);
}
.zsm-publish-header h2 {
  font-family: var(--zsm-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--zsm-white);
}
.zsm-publish-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zsm-form-card {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius);
  padding: 16px;
  transition: border-color var(--zsm-transition);
}
.zsm-form-card:focus-within {
  border-color: var(--zsm-pink-light);
}
.zsm-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zsm-text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.zsm-label-icon {
  font-size: 1rem;
}
.zsm-input,
.zsm-textarea {
  width: 100%;
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius-sm);
  padding: 12px 14px;
  color: var(--zsm-text);
  font-family: var(--zsm-font);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--zsm-transition);
}
.zsm-input:focus,
.zsm-textarea:focus {
  border-color: var(--zsm-pink-light);
}
.zsm-input::placeholder,
.zsm-textarea::placeholder {
  color: var(--zsm-grey);
}
.zsm-input--error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
}
.zsm-tarif-alert {
  display: block;
  color: #e53935;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 5px;
}
.zsm-required {
  color: #e53935;
  font-weight: 700;
}
.zsm-char-count {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--zsm-grey);
  margin-top: 3px;
}
.zsm-char-count--over {
  color: #e53935;
  font-weight: 700;
}
.zsm-field-error {
  display: block;
  color: #e53935;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 5px;
}
.zsm-media-type-lock {
  font-size: 0.75rem;
  margin-left: 4px;
}
#zsm-media-type-selector.zsm-locked {
  opacity: 0.5;
  pointer-events: none;
}
.zsm-textarea {
  resize: vertical;
  min-height: 100px;
}

.zsm-media-upload-card {
  cursor: pointer;
  border-style: dashed;
  border-width: 2px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all var(--zsm-transition);
  font-weight: normal;
  width: 100%;
  margin-bottom: 0;
  user-select: none;
  -webkit-user-select: none;
}
.zsm-media-upload-card:hover,
.zsm-media-upload-card:focus-within {
  border-color: var(--zsm-pink-light);
  background: rgba(194, 24, 91, 0.05);
}
.zsm-media-upload-card.drag-over {
  border-color: var(--zsm-pink);
  background: rgba(194, 24, 91, 0.08);
}
.zsm-media-placeholder {
  text-align: center;
  color: var(--zsm-grey);
  pointer-events: none;
}
.zsm-upload-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}
.zsm-media-placeholder p {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--zsm-text-dim);
  margin-bottom: 4px;
}
.zsm-upload-hint {
  font-size: 0.72rem;
}
.zsm-media-preview {
  width: 100%;
  height: 200px;
  position: relative;
}
.zsm-media-preview img,
.zsm-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.zsm-remove-media {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsm-type-selector {
  display: flex;
  gap: 10px;
}
.zsm-type-opt {
  flex: 1;
  cursor: pointer;
}
.zsm-type-opt input {
  display: none;
}
.zsm-type-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--zsm-radius-sm);
  background: var(--zsm-bg3);
  border: 2px solid var(--zsm-border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--zsm-text-dim);
  transition: all var(--zsm-transition);
}
.zsm-type-opt input:checked + span {
  border-color: var(--zsm-pink-light);
  color: var(--zsm-pink-light);
  background: rgba(194, 24, 91, 0.1);
}

/* ── Story Duration Selector ── */
.zsm-duration-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.zsm-duration-opt {
  cursor: pointer;
}
.zsm-duration-opt input {
  display: none;
}
.zsm-duration-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 10px;
  border-radius: var(--zsm-radius);
  background: var(--zsm-bg3);
  border: 2px solid var(--zsm-border);
  transition: all var(--zsm-transition);
  text-align: center;
  min-height: 72px;
}
.zsm-dur-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}
.zsm-dur-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--zsm-text);
}
.zsm-dur-sub {
  font-size: 0.68rem;
  color: var(--zsm-text-dim);
  margin-top: 2px;
}
.zsm-duration-opt input:checked + .zsm-duration-chip {
  border-color: var(--zsm-pink-light);
  background: rgba(194, 24, 91, 0.12);
  box-shadow:
    0 0 0 1px var(--zsm-pink-light),
    0 4px 16px rgba(194, 24, 91, 0.15);
}
.zsm-duration-opt input:checked + .zsm-duration-chip .zsm-dur-label {
  color: var(--zsm-pink-light);
}
@media (max-width: 400px) {
  .zsm-duration-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zsm-btn-publish {
  width: 100%;
  padding: 16px;
  background: linear-gradient(
    135deg,
    var(--zsm-pink),
    var(--zsm-pink-light)
  );
  border: none;
  border-radius: var(--zsm-radius);
  color: white;
  font-family: var(--zsm-font);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px var(--zsm-pink-glow);
  transition: all var(--zsm-transition);
  margin-top: 8px;
}
.zsm-btn-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--zsm-pink-glow);
}
.zsm-btn-publish:active {
  transform: translateY(0);
}
.zsm-btn-publish:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#zsm-publish-msg {
  padding: 10px 14px;
  border-radius: var(--zsm-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}
#zsm-publish-msg.success {
  background: rgba(46, 125, 50, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(46, 125, 50, 0.3);
  display: block;
}
#zsm-publish-msg.error {
  background: rgba(194, 24, 91, 0.15);
  color: #f48fb1;
  border: 1px solid rgba(194, 24, 91, 0.3);
  display: block;
}

/* ── Sous-catégorie wrapper ── */
.zsm-subcat-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zsm-subcat-wrapper select {
  flex: 1;
}
.zsm-btn-add-subcat {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--zsm-radius-sm);
  border: 1px dashed var(--zsm-border);
  background: var(--zsm-bg3, #1a1a1a);
  color: var(--zsm-pink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--zsm-transition);
}
.zsm-btn-add-subcat:hover {
  border-color: var(--zsm-pink);
  background: rgba(233, 30, 99, 0.1);
}
.zsm-subcat-create {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zsm-subcat-actions {
  display: flex;
  gap: 8px;
}
.zsm-btn-subcat-save,
.zsm-btn-subcat-cancel {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--zsm-radius-sm);
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--zsm-transition);
}
.zsm-btn-subcat-save {
  background: var(--zsm-pink);
  color: #fff;
}
.zsm-btn-subcat-save:hover {
  opacity: 0.85;
}
.zsm-btn-subcat-cancel {
  background: var(--zsm-surface);
  color: var(--zsm-text-secondary);
  border: 1px solid var(--zsm-border);
}

/* ── Immobilier: Équipements grid ── */
.zsm-equipements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.zsm-equip-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--zsm-radius-sm);
  border: 1px solid var(--zsm-border);
  background: var(--zsm-bg3, #1a1a1a);
  cursor: pointer;
  transition: var(--zsm-transition);
  font-size: 0.82rem;
}
.zsm-equip-opt:hover {
  border-color: var(--zsm-pink);
}
.zsm-equip-opt input[type="checkbox"] {
  accent-color: var(--zsm-pink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.zsm-equip-opt input[type="checkbox"]:checked + span {
  color: var(--zsm-pink);
}

/* ── Immobilier fields container ── */
.zsm-immo-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zsm-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--zsm-text-secondary, #888);
  line-height: 1.3;
}

/* ── Period selector wrap ── */
.zsm-type-selector--wrap {
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Card overlay badges ── */
.zsm-badge-offre {
  display: inline-block;
  background: #ff6d00;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: middle;
  text-shadow: none;
  letter-spacing: 0.03em;
}
.zsm-badge-periode {
  color: #00e5ff;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── Single page: type d'offre tag ── */
.zsm-single__tag--offre {
  background: rgba(255, 109, 0, 0.2);
  color: #ff9100;
  font-weight: 700;
}

/* ── Single page: immobilier details ── */
.zsm-single__immo-details {
  background: var(--zsm-surface, #1e1e1e);
  border: 1px solid var(--zsm-border, #333);
  border-radius: var(--zsm-radius, 12px);
  padding: 14px 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zsm-single__immo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zsm-single__immo-row--block,
.zsm-single__immo-row--equip {
  flex-direction: column;
  align-items: flex-start;
}
.zsm-single__immo-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.zsm-single__immo-label {
  font-size: 0.82rem;
  color: var(--zsm-text-dim, #aaa);
  font-weight: 500;
}
.zsm-single__immo-value {
  font-size: 0.88rem;
  color: var(--zsm-text, #fff);
  font-weight: 600;
  margin-left: auto;
}
.zsm-single__immo-equips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.zsm-single__immo-equip-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--zsm-text-dim, #ccc);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 10px;
}
.zsm-single__immo-text {
  font-size: 0.85rem;
  color: var(--zsm-text-dim, #bbb);
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.zsm-single__immo-link {
  color: #00e5ff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-left: auto;
}
.zsm-single__immo-link:hover {
  text-decoration: underline;
}

/* ============================================================
   PAYMENT INFO / USSD / WHATSAPP
   ============================================================ */
.zsm-payment-info {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius);
  padding: 16px 12px;
  margin-bottom: 20px;
  text-align: center;
}
.zsm-payment-info h3 {
  font-family: var(--zsm-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zsm-white);
  margin-bottom: 12px;
}
.zsm-payment-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}
.zsm-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--zsm-text-dim);
  font-size: 0.65rem;
  line-height: 1.3;
}
.zsm-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zsm-pink);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.6rem;
}
.zsm-ussd-codes {
  margin-bottom: 20px;
}
.zsm-ussd-codes h4 {
  font-family: var(--zsm-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--zsm-white);
  margin-bottom: 8px;
}
.zsm-ussd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 6px;
}
.zsm-ussd-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--zsm-text-dim);
  min-width: 48px;
}
.zsm-ussd-code {
  font-family: "Roboto Mono", "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--zsm-pink-light);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--zsm-transition);
}
.zsm-ussd-code:hover {
  background: var(--zsm-pink);
  color: white;
}
.zsm-wa-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.7rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--zsm-transition);
  margin-top: 6px;
}
.zsm-wa-contact-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.zsm-wa-contact-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
/* ============================================================
   PUBLIC PAGE
   ============================================================ */
.zsm-public-page {
  padding: 20px 12px;
  max-width: 640px;
  margin: 0 auto;
}
.zsm-public-hero {
  text-align: center;
  padding: 28px 0;
}
.zsm-public-hero h2 {
  font-family: var(--zsm-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--zsm-white);
  margin-bottom: 8px;
}
.zsm-public-hero p {
  color: var(--zsm-text-dim);
}
.zsm-public-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.zsm-info-card {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius);
  padding: 20px;
}
.zsm-info-card h3 {
  font-family: var(--zsm-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--zsm-white);
  margin-bottom: 10px;
}
.zsm-info-card p,
.zsm-info-card li {
  color: var(--zsm-text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}
.zsm-info-card ol {
  padding-left: 20px;
}
.zsm-info-card a {
  color: var(--zsm-pink-light);
  text-decoration: underline;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.zsm-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.zsm-lightbox.open {
  display: flex;
}
.zsm-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}
.zsm-lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zsm-zoom-in 0.25s ease;
}
@keyframes zsm-zoom-in {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.zsm-lightbox__inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.zsm-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.zsm-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   MODALS
   ============================================================ */
.zsm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: flex-end;
  justify-content: center;
}
#zsm-profile-modal {
  z-index: 5500;
}
#zsm-auth-modal {
  z-index: 6000;
}
.zsm-modal.open {
  display: flex;
}
.zsm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.zsm-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--zsm-bg2);
  border-radius: var(--zsm-radius) var(--zsm-radius) 0 0;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  animation: zsm-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 92vh;
  pointer-events: auto;
}
@keyframes zsm-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.zsm-modal__panel--profile {
  max-height: 92vh;
}
.zsm-modal__panel--comments {
  max-height: 80vh;
}
.zsm-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--zsm-border);
  flex-shrink: 0;
}
.zsm-modal__title {
  font-family: var(--zsm-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--zsm-white);
  flex: 1;
}
.zsm-modal__back {
  background: none;
  border: none;
  color: var(--zsm-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
}
.zsm-modal__back:hover {
  color: var(--zsm-white);
}
.zsm-modal__close {
  background: var(--zsm-surface);
  border: none;
  color: var(--zsm-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsm-modal__body {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--zsm-surface) transparent;
}
.zsm-modal__footer {
  padding: 12px 14px;
  border-top: 1px solid var(--zsm-border);
  flex-shrink: 0;
}

/* Profile */
.zsm-profile__cover {
  height: 180px;
  background: linear-gradient(
    135deg,
    var(--zsm-pink) 0%,
    #2e7d32 100%
  );
  position: relative;
  flex-shrink: 0;
}
.zsm-profile__cover-edit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  z-index: 2;
}
.zsm-profile__cover-edit:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Avatar centré, chevauchant la couverture (style Facebook) */
.zsm-profile__avatar-wrap {
  position: absolute;
  left: 50%;
  bottom: -55px;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  z-index: 3;
}
.zsm-profile__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--zsm-bg2);
  object-fit: cover;
  background: var(--zsm-bg);
}
.zsm-profile__avatar-edit {
  position: relative;
  bottom: 13px;
  right: -30px;
  width: 20px;
  height: 20px;
  background: #3a3b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  border: 2px solid var(--zsm-bg2);
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 4;
  pointer-events: auto;
}
.zsm-profile__avatar-edit:hover {
  background: #000;
  transform: scale(1.1);
}

/* Info centrée sous l'avatar */
.zsm-profile__info {
  text-align: center;
  padding: 62px 16px 16px;
  border-bottom: 1px solid var(--zsm-border);
}
.zsm-profile__name {
  font-family: var(--zsm-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--zsm-white);
  margin-bottom: 4px;
}
.zsm-profile__loc {
  font-size: 0.82rem;
  color: var(--zsm-grey);
  margin-bottom: 4px;
}
.zsm-profile__bio {
  font-size: 0.84rem;
  color: var(--zsm-text-dim);
  margin-bottom: 10px;
  line-height: 1.5;
}
.zsm-profile__stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.zsm-profile__stats span {
  font-size: 0.8rem;
  color: var(--zsm-text-dim);
}
.zsm-profile__stats strong {
  color: var(--zsm-white);
  font-weight: 700;
}

/* ── Action buttons (WhatsApp + Message) style Facebook ── */
.zsm-profile__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.zsm-profile__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--zsm-font);
  transition:
    filter 0.18s,
    transform 0.18s;
  text-decoration: none;
}
.zsm-profile__action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.zsm-profile__action-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.zsm-profile__action-btn:active {
  transform: scale(0.96);
}
.zsm-profile__action-btn--wa {
  background: #25d366;
}
.zsm-profile__action-btn--groups {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}
.zsm-profile__action-btn--chat {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
}

/* Profile edit button */
.zsm-profile__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--zsm-bg3);
  color: var(--zsm-white);
  border: 1px solid var(--zsm-border);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}
.zsm-profile__edit-btn:hover {
  background: var(--zsm-pink);
  border-color: var(--zsm-pink);
}

/* Profile edit form */
.zsm-profile__edit-form {
  border-bottom: 1px solid var(--zsm-border);
}
.zsm-profile__edit-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zsm-profile__edit-inner label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--zsm-grey);
  font-weight: 600;
}
.zsm-profile__edit-inner input,
.zsm-profile__edit-inner textarea {
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--zsm-white);
  font-size: 0.85rem;
  font-family: var(--zsm-font);
}
.zsm-profile__edit-inner input:focus,
.zsm-profile__edit-inner textarea:focus {
  border-color: var(--zsm-pink);
  outline: none;
}
.zsm-profile__edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.zsm-profile__save-btn {
  background: var(--zsm-pink);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.zsm-profile__save-btn:hover {
  background: #e91e63;
}
.zsm-profile__cancel-btn {
  background: transparent;
  color: var(--zsm-grey);
  border: 1px solid var(--zsm-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Profile tabs */
.zsm-profile__tabs {
  display: flex;
  border-bottom: 2px solid var(--zsm-border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
.zsm-profile__tabs::-webkit-scrollbar {
  display: none;
}
.zsm-profile__tab {
  flex: 0 0 auto;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--zsm-grey);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.zsm-profile__tab.active {
  color: var(--zsm-pink);
  border-bottom-color: var(--zsm-pink);
}
.zsm-profile__tab:hover {
  color: var(--zsm-white);
}
.zsm-profile__tab-content {
  padding: 0 8px;
}
.zsm-profile__tab-content .zsm-card {
  margin: 12px 0;
}
/* Vidéos profil : même affichage que les photos / annonces */
.zsm-profile__tab-content .zsm-card__media--video-reel {
  aspect-ratio: 9/16;
  max-height: 90vh;
}
.zsm-profile__tab-content .zsm-reel-player {
  object-fit: cover;
}

/* Profile Stats cards */
.zsm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 8px;
}
.zsm-stats__card {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.zsm-stats__icon {
  font-size: 1.4rem;
}
.zsm-stats__value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--zsm-white);
  font-family: var(--zsm-font-display);
}
.zsm-stats__label {
  font-size: 0.72rem;
  color: var(--zsm-grey);
  font-weight: 500;
}

/* Profile "..." More Menu Dropdown */
.zsm-profile__more-wrap {
  position: relative;
}
.zsm-profile__action-btn--more {
  background: #333 !important;
  padding: 9px 12px !important;
}
.zsm-profile__action-btn--more:hover {
  background: #444 !important;
}
.zsm-profile__more-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  min-width: 200px;
  background: var(--zsm-bg2);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: zsmDropIn 0.18s ease-out;
}
@keyframes zsmDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.zsm-profile__more-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.zsm-profile__more-list li a {
  display: block;
  padding: 12px 18px;
  color: var(--zsm-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.zsm-profile__more-list li a:hover {
  background: var(--zsm-surface);
}
.zsm-profile__more-list li + li {
  border-top: 1px solid var(--zsm-border);
}



/* Context Menu ⋮ */
.zsm-ctx {
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}
.zsm-ctx__btn {
  background: none;
  border: none;
  color: var(--zsm-grey);
  font-size: 22px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  line-height: 1;
  transition: all 0.2s;
}
.zsm-ctx__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--zsm-white);
}
.zsm-ctx__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 32px;
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: 12px;
  padding: 6px 0;
  min-width: 210px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  z-index: 100;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.zsm-ctx__menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.zsm-ctx__menu--global {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.95);
  min-width: 220px;
  max-width: 80vw;
  z-index: 9999;
}
.zsm-ctx__menu--global.open {
  transform: translate(-50%, -50%) scale(1);
}
.zsm-ctx__item {
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--zsm-text-dim);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.zsm-ctx__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--zsm-white);
}
.zsm-ctx--delete:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}
.zsm-ctx--report:hover {
  color: #ff9800;
  background: rgba(255, 152, 0, 0.1);
}
.zsm-ctx--sponsor:hover {
  color: #ffab00;
  background: rgba(255, 171, 0, 0.1);
}

/* Saved card wrapper (Enregistrements tab) */
.zsm-saved-card-wrap {
  position: relative;
}
.zsm-unsave-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(244, 67, 54, 0.85);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1;
}
.zsm-unsave-btn:hover {
  background: #f44336;
  transform: scale(1.15);
}

/* Edit Post Overlay */
.zsm-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.zsm-edit-overlay.open {
  opacity: 1;
}
.zsm-edit-post {
  background: var(--zsm-bg2);
  border: 1px solid var(--zsm-border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.zsm-edit-post h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--zsm-white);
  flex-shrink: 0;
}
.zsm-ep__scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
}
.zsm-ep__field {
  margin-bottom: 10px;
}
.zsm-ep__field > label {
  display: block;
  font-size: 0.78rem;
  color: var(--zsm-grey);
  font-weight: 600;
  margin-bottom: 4px;
}
.zsm-edit-post label {
  font-size: 0.78rem;
  color: var(--zsm-grey);
  font-weight: 600;
}
.zsm-edit-post input,
.zsm-edit-post textarea {
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--zsm-white);
  font-size: 0.85rem;
  font-family: var(--zsm-font);
}
.zsm-edit-post input:focus,
.zsm-edit-post textarea:focus,
.zsm-edit-post select:focus {
  border-color: var(--zsm-pink);
  outline: none;
}
.zsm-edit-post select {
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--zsm-white);
  font-size: 0.85rem;
  font-family: var(--zsm-font);
  width: 100%;
}
.zsm-ep__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.zsm-ep__radios label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--zsm-white);
  font-size: 0.82rem;
  font-weight: 500;
}
.zsm-ep__radios--sm label {
  font-size: 0.75rem;
}
.zsm-ep__equips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.zsm-ep__equip-label {
  display: flex !important;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem !important;
  color: var(--zsm-white) !important;
  cursor: pointer;
}
.zsm-ep__media-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zsm-ep__media-type-badge {
  font-size: 0.72rem;
  color: var(--zsm-pink-light);
  font-weight: 700;
}
.zsm-ep__char-count {
  font-size: 0.7rem;
  color: var(--zsm-grey);
  font-weight: 400;
}
.zsm-ep__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-shrink: 0;
}
.zsm-ep__save {
  background: var(--zsm-pink);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.zsm-ep__save:hover {
  background: #e91e63;
}
.zsm-ep__cancel {
  background: transparent;
  color: var(--zsm-grey);
  border: 1px solid var(--zsm-border);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 0.84rem;
  cursor: pointer;
}

/* Toast Notification */
.zsm-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--zsm-bg3);
  color: var(--zsm-white);
  border: 1px solid var(--zsm-border);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 10001;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.zsm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Video Blocked Banner */
.zsm-video-blocked-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(194, 24, 91, 0.12);
  border: 1px solid rgba(194, 24, 91, 0.35);
  border-radius: var(--zsm-radius-sm);
  padding: 12px 16px;
  margin-top: 10px;
  color: #f48fb1;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
}
.zsm-vbb-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.zsm-vbb-text {
  flex: 1;
}
.zsm-vbb-text strong {
  color: var(--zsm-pink-light, #f06292);
}
.zsm-vbb-close {
  background: none;
  border: none;
  color: #f48fb1;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.zsm-vbb-close:hover {
  opacity: 1;
}

/* Comments */
.zsm-comments-list-wrap {
  padding: 12px;
}
.zsm-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: zsm-fade-in 0.25s ease;
  flex-wrap: wrap;
}
.zsm-comment__thread {
  width: 100%;
  padding-left: 44px;
}
.zsm-comment__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.zsm-comment__profile-link {
  cursor: pointer;
}
.zsm-comment__profile-link:hover {
  opacity: 0.8;
}
.zsm-comment__body {
  background: var(--zsm-surface);
  border-radius: 0 var(--zsm-radius-sm) var(--zsm-radius-sm)
    var(--zsm-radius-sm);
  padding: 8px 12px;
  flex: 1;
}
.zsm-comment__author {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zsm-white);
  margin-bottom: 2px;
}
.zsm-comment__text {
  font-size: 0.85rem;
  color: var(--zsm-text-dim);
  line-height: 1.4;
}
.zsm-comment__time {
  font-size: 0.68rem;
  color: var(--zsm-grey);
}

/* ── Actions (time + reply + like) ── */
.zsm-comment__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.zsm-comment__reply-btn,
.zsm-comment__like-btn {
  background: none;
  border: none;
  color: var(--zsm-grey);
  font-size: 0.72rem;
  font-family: var(--zsm-font);
  cursor: pointer;
  padding: 0;
  transition:
    color 0.2s,
    transform 0.2s;
}
.zsm-comment__like-icon {
  font-style: normal;
  font-size: 0.82rem;
}
.zsm-comment__like-count {
  font-size: 0.72rem;
}
.zsm-comment__reply-btn:hover {
  color: var(--zsm-pink);
}
.zsm-comment__edit-btn,
.zsm-comment__delete-btn {
  background: none;
  border: none;
  color: var(--zsm-grey);
  font-size: 0.72rem;
  font-family: var(--zsm-font);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.zsm-comment__edit-btn:hover {
  color: var(--zsm-white, #fff);
}
.zsm-comment__delete-btn:hover {
  color: #e53935;
}
/* ── Inline edit area ── */
.zsm-comment__edit-area {
  margin-top: 6px;
}
.zsm-comment__edit-input {
  width: 100%;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--zsm-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--zsm-radius-sm, 8px);
  color: var(--zsm-white, #fff);
  font-size: 0.82rem;
  font-family: var(--zsm-font);
  padding: 8px 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.zsm-comment__edit-input:focus {
  border-color: var(--zsm-pink, #c2185b);
}
.zsm-comment__edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.zsm-comment__edit-save {
  background: var(--zsm-pink, #c2185b);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--zsm-font);
  padding: 5px 12px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.zsm-comment__edit-save:hover {
  opacity: 0.85;
}
.zsm-comment__edit-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--zsm-grey);
  border: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--zsm-font);
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.zsm-comment__edit-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.zsm-comment__like-btn:hover {
  color: #e53935;
}
.zsm-comment__like-btn--active {
  color: #e53935;
  font-weight: 700;
}
.zsm-like-pop {
  animation: zsm-like-pop-anim 0.3s ease;
}
@keyframes zsm-like-pop-anim {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

/* ── Replies (indented) ── */
.zsm-comment--reply {
  margin-left: 40px;
  margin-bottom: 10px;
}
.zsm-comment--reply .zsm-comment__avatar {
  width: 28px;
  height: 28px;
}
.zsm-comment--reply .zsm-comment__body {
  padding: 6px 10px;
}
.zsm-comment--reply .zsm-comment__author {
  font-size: 0.72rem;
}
.zsm-comment--reply .zsm-comment__text {
  font-size: 0.8rem;
}
.zsm-comment__show-replies {
  background: none;
  border: none;
  color: var(--zsm-grey);
  font-size: 0.72rem;
  font-family: var(--zsm-font);
  cursor: pointer;
  padding: 6px 0 2px;
  display: block;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}
.zsm-comment__show-replies:hover {
  color: var(--zsm-pink);
}
.zsm-comment__replies {
  display: none;
  border-left: 2px solid var(--zsm-border);
  padding-left: 8px;
  margin-top: 6px;
}

/* ── Reply indicator bar ── */
.zsm-reply-indicator {
  width: 100%;
  background: rgba(194, 24, 91, 0.1);
  border-left: 3px solid var(--zsm-pink);
  color: var(--zsm-text-dim);
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 0 var(--zsm-radius-sm) var(--zsm-radius-sm) 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: zsm-fade-in 0.2s ease;
}
.zsm-reply-indicator__text {
  display: flex;
  align-items: center;
  gap: 4px;
}
.zsm-reply-indicator__text strong {
  color: var(--zsm-pink);
}
.zsm-reply-cancel {
  background: none;
  border: none;
  color: var(--zsm-grey);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.zsm-reply-cancel:hover {
  color: var(--zsm-white);
}

/* ── @mention in replies ── */
.zsm-comment__mention {
  color: var(--zsm-pink);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.zsm-comment__mention:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.zsm-no-comments {
  text-align: center;
  color: var(--zsm-grey);
  padding: 24px;
}

.zsm-comment-form-modal .zsm-comment-author-modal {
  width: 100%;
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius-sm);
  padding: 8px 12px;
  color: var(--zsm-text);
  font-family: var(--zsm-font);
  font-size: 0.82rem;
  outline: none;
  margin-bottom: 8px;
}
/* Login button in comment modal (guests) */
.zsm-comment-login-btn {
  width: 100%;
  padding: 14px;
  background: var(--zsm-pink);
  color: #fff;
  border: none;
  border-radius: var(--zsm-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--zsm-font);
  cursor: pointer;
  transition: background 0.2s;
}
.zsm-comment-login-btn:hover {
  background: #e91e63;
}

.zsm-comment-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.zsm-comment-input-modal,
.zsm-comment-input {
  flex: 1;
  background: var(--zsm-bg3);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius-sm);
  padding: 10px 12px;
  color: var(--zsm-text);
  font-family: var(--zsm-font);
  font-size: 0.85rem;
  resize: none;
  outline: none;
}
.zsm-comment-input-modal:focus,
.zsm-comment-input:focus {
  border-color: var(--zsm-pink-light);
}
.zsm-comment-submit-modal,
.zsm-comment-submit {
  background: var(--zsm-pink);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--zsm-transition);
}
.zsm-comment-submit-modal:hover,
.zsm-comment-submit:hover {
  background: var(--zsm-pink-light);
}

.zsm-loading {
  text-align: center;
  padding: 40px;
  color: var(--zsm-grey);
  font-size: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.zsm-bounce {
  animation: zsm-bounce 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97)
    both;
}
@keyframes zsm-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.25);
  }
}
.zsm-pulse {
  animation: zsm-pulse 0.5s ease;
}
@keyframes zsm-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--zsm-pink-glow);
  }
  100% {
    box-shadow: 0 0 0 16px transparent;
  }
}
.zsm-shake {
  animation: zsm-shake 0.4s ease;
}
@keyframes zsm-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

/* Heart double-tap animation */
.zsm-heart-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 5rem;
  pointer-events: none;
  z-index: 10;
  animation: zsm-heart-pop 0.8s ease forwards;
}
@keyframes zsm-heart-pop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Admin */
.zsm-logo-preview-wrap {
  margin-top: 10px;
  padding: 12px;
  background: #1a1a2e;
  border-radius: 8px;
  display: inline-block;
}

/* ============================================================
   SINGLE ANNONCE PAGE
   ============================================================ */
.zsm-single {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: calc(var(--zsm-bottom-h) + 20px);
}

/* Top bar retour */
.zsm-single__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  position: sticky;
  top: var(--zsm-header-h);
  z-index: 30;
  background: var(--zsm-bg);
}
.zsm-single__back {
  background: none;
  border: none;
  color: var(--zsm-text);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background var(--zsm-transition);
}
.zsm-single__back:hover {
  background: var(--zsm-bg3);
}
.zsm-single__topbar-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--zsm-text);
}

/* Média */
.zsm-single__media {
  width: 100%;
  background: #000;
}
.zsm-single__media .zsm-reel-player {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}
.zsm-single__media .zsm-card__media--video-reel {
  max-width: 100%;
  border-radius: 0;
  aspect-ratio: 16/9;
  max-height: 60vh;
}
.zsm-single__img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 70vh;
  background: #000;
}

/* Barre d'actions horizontale style Facebook */
.zsm-single__actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 6px;
  border-bottom: 1px solid var(--zsm-border);
  background: var(--zsm-bg);
}
.zsm-single__action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--zsm-text-dim);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--zsm-radius-sm);
  font-size: 0.85rem;
  transition: background var(--zsm-transition);
}
.zsm-single__action-btn:hover {
  background: var(--zsm-bg3);
}
.zsm-single__action-btn .zsm-tk-icon {
  font-size: 1.25rem;
}
.zsm-single__action-btn .zsm-tk-count {
  font-size: 0.8rem;
}
.zsm-single__action-btn.liked .zsm-tk-icon {
  filter: none;
}
.zsm-single__action-btn.zsm-tk-wa {
  text-decoration: none;
  color: #25d366;
}
.zsm-single__action-btn.zsm-tk-wa svg {
  width: 22px;
  height: 22px;
}
.zsm-video-actions .zsm-ctx {
  margin-left: 0;
}
.zsm-video-actions .zsm-ctx__btn {
  color: white;
  font-size: 1.625rem;
  padding: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.zsm-video-actions .zsm-ctx__menu {
  position: absolute;
  right: 100%;
  top: 50%;
  left: auto;
  bottom: auto;
  transform: translate(-8px, -50%) scale(0.95);
  min-width: 200px;
  max-width: 70vw;
  margin: 0;
  border-radius: 12px;
  padding: 6px 0;
  z-index: 100;
  opacity: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.zsm-video-actions .zsm-ctx__menu.open {
  transform: translate(-8px, -50%) scale(1);
  opacity: 1;
}

/* Corps */
.zsm-single__body {
  padding: 14px 16px;
}

/* Auteur */
.zsm-single__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
}
.zsm-single__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--zsm-border);
}
.zsm-single__author-info {
  display: flex;
  flex-direction: column;
}
.zsm-single__author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--zsm-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.zsm-single__author-meta {
  font-size: 0.78rem;
  color: var(--zsm-grey);
}

/* Titre */
.zsm-single__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zsm-white);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Tags */
.zsm-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.zsm-single__tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--zsm-bg3);
  color: var(--zsm-text-dim);
}
.zsm-single__tag--cat {
  background: rgba(194, 24, 91, 0.15);
  color: var(--zsm-pink-light);
}
.zsm-single__tag--price {
  background: rgba(27, 94, 32, 0.2);
  color: #66bb6a;
  font-weight: 700;
}

/* Description */
.zsm-single__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--zsm-text-dim);
  margin-bottom: 18px;
  word-break: break-word;
}
.zsm-single__desc p {
  margin-bottom: 10px;
}

/* CTA Contacter (chat) */
.zsm-single__chat-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--zsm-pink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--zsm-radius);
  border: none;
  cursor: pointer;
  transition: background var(--zsm-transition);
  margin-bottom: 10px;
}
.zsm-single__chat-cta:hover {
  background: var(--zsm-pink-light);
}
.zsm-single__chat-cta svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* CTA WhatsApp grand */
.zsm-single__wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--zsm-radius);
  text-decoration: none;
  transition: background var(--zsm-transition);
}
.zsm-single__wa-cta:hover {
  background: #1da851;
}
.zsm-single__wa-cta svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ============================================================
   MOBILE RESPONSIVE — Small screens (≤500px)
   ============================================================ */
@media (max-width: 500px) {
  /* ---- Global ---- */
  html {
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
    min-width: 0;
  }

  /* ---- Header ---- */
  .zsm-header {
    padding: 0 8px;
    gap: 6px;
  }
  .zsm-logo-svg {
    height: 30px;
  }
  .zsm-logo-text,
  .zsm-logo__main {
    font-size: 1rem;
  }
  .zsm-search-wrap {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .zsm-search {
    font-size: 0.78rem;
    padding: 6px 30px 6px 10px;
  }
  .zsm-header-avatar img {
    width: 30px;
    height: 30px;
  }

  /* ---- Bottom Bar ---- */
  .zsm-bottom {
    padding: 0 2px 4px;
    height: 58px;
  }
  .zsm-nav-item {
    padding: 4px 4px;
    max-width: none;
  }
  .zsm-nav-icon {
    font-size: 1.6rem;
  }
  .zsm-nav-icon-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  .zsm-plus {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    margin-top: -12px !important;
  }
  .zsm-plus__icon {
    font-size: 18px;
    font-weight: 700;
  }
  .zsm-plus__icon-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  /* ---- Payment ---- */
  .zsm-payment-info {
    padding: 12px 10px;
  }
  .zsm-wa-contact-btn {
    padding: 9px 14px;
    font-size: 0.65rem;
  }
  .zsm-ussd-item {
    flex-wrap: wrap;
    gap: 4px;
  }
  .zsm-ussd-code {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  /* ---- Cards / Feed ---- */
  .zsm-card__overlay {
    right: 50px;
    padding: 10px 10px;
  }
  .zsm-card__overlay-name {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
  }
  .zsm-card__overlay-price {
    font-size: clamp(0.68rem, 2.8vw, 0.8rem);
    word-break: break-word;
  }
  .zsm-card__overlay-loc {
    font-size: 0.72rem;
  }
  .zsm-card__overlay-desc {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }
  .zsm-card__overlay-cat {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
  .zsm-card__tiktok-actions {
    right: 6px;
    gap: 8px;
  }
  .zsm-tk-icon {
    font-size: 1.1rem;
  }
  .zsm-tk-count {
    font-size: 0.5rem;
  }
  /* Video actions — mobile */
  .zsm-video-actions {
    right: 6px;
    gap: 6px;
    top: 6px;
    bottom: 6px;
  }
  .zsm-vid-action span:first-child {
    font-size: 1.1rem;
  }
  .zsm-vid-action {
    font-size: 0.5rem;
  }
  /* Photo actions — mobile */
  .zsm-photo-actions {
    right: 6px;
    gap: 8px;
  }
  .zsm-photo-action-icon {
    font-size: 1.1rem;
  }
  .zsm-photo-action {
    font-size: 0.5rem;
  }
  /* WA SVG — mobile */
  .zsm-tk-wa svg,
  .zsm-wa-btn svg,
  .zsm-photo-wa svg {
    width: 15px;
    height: 15px;
  }

  /* ---- Publish Form ---- */
  .zsm-publish-page {
    padding: 16px 10px;
  }

  /* ---- Single Annonce ---- */
  .zsm-single__topbar {
    padding: 8px 10px;
  }
  .zsm-single__body {
    padding: 12px 12px;
  }
  .zsm-single__title {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }
  .zsm-single__tags {
    gap: 6px;
  }
  .zsm-single__tag {
    font-size: 0.72rem;
    padding: 3px 8px;
  }
  .zsm-single__desc {
    font-size: 0.85rem;
  }
  .zsm-single__actions {
    padding: 6px 4px;
  }
  .zsm-single__action-btn {
    padding: 6px 6px;
    gap: 3px;
  }
  .zsm-single__action-btn .zsm-tk-icon {
    font-size: 1.1rem;
  }
  .zsm-single__action-btn .zsm-tk-count {
    font-size: 0.72rem;
  }
  .zsm-single__wa-cta {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* ---- Auth Modal ---- */
  .zsm-modal__panel--auth {
    width: 95%;
    max-width: 100%;
    margin-bottom: 7vh;
    border-radius: var(--zsm-radius);
  }
  .zsm-auth-row {
    flex-direction: column;
  }
  .zsm-auth-field--half {
    width: 100%;
  }

  /* ---- Profile Modal ---- */
  .zsm-modal__panel--profile {
    width: 95%;
    max-width: 100%;
  }

  /* ---- Photo Grid ---- */
  .zsm-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
}

/* ---- Extra small (≤360px) ---- */
@media (max-width: 360px) {
  .zsm-header {
    padding: 0 6px;
    gap: 4px;
  }
  .zsm-logo-svg {
    height: 26px;
  }
  .zsm-search {
    padding: 5px 26px 5px 8px;
    font-size: 0.72rem;
  }
  .zsm-menu-btn,
  .zsm-search-toggle,
  .zsm-filter-btn,
  .zsm-header-notif,
  .zsm-header-msg,
  .zsm-header-groups,
  .zsm-header-avatar {
    width: 30px;
    height: 30px;
  }
  .zsm-menu-btn svg,
  .zsm-search-toggle svg,
  .zsm-filter-btn svg,
  .zsm-header-notif svg,
  .zsm-header-msg svg,
  .zsm-header-groups svg {
    width: 17px;
    height: 17px;
  }
  .zsm-nav-label {
    font-size: 0.48rem;
  }
  .zsm-single__action-btn .zsm-tk-count {
    display: none;
  }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 600px) {
  /* ---- App shell : tout centré dans --zsm-app-max-w ---- */
  .zsm-content {
    max-width: var(--zsm-app-max-w);
    margin: 0 auto;
  }
  .zsm-header {
    left: calc(50% - var(--zsm-app-max-w) / 2);
    right: calc(50% - var(--zsm-app-max-w) / 2);
    border-radius: 0 0 var(--zsm-radius-sm) var(--zsm-radius-sm);
  }
  .zsm-bottom {
    max-width: var(--zsm-app-max-w);
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--zsm-radius-sm) var(--zsm-radius-sm) 0 0;
  }
  .zsm-side-menu.open {
    left: calc(50% - var(--zsm-app-max-w) / 2);
  }
  .zsm-modal__panel {
    max-width: var(--zsm-app-max-w);
  }
  /* ---- Contenu ---- */
  .zsm-feed {
    max-width: 480px;
    margin: 0 auto;
  }
  .zsm-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .zsm-search-wrap {
    max-width: 300px;
  }
  .zsm-card__media--video-reel {
    border-radius: var(--zsm-radius-sm) var(--zsm-radius-sm) 0 0;
  }
}
@media (min-width: 960px) {
  .zsm-photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   BADGE VÉRIFIÉ — Étoile ondulée + checkmark blanc
   ============================================================ */
.zsm-verified-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: default;
  margin-left: 2px;
  vertical-align: middle;
}
.zsm-verified-badge svg {
  display: block;
  transition: transform 0.15s;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.zsm-verified-badge:hover svg {
  transform: scale(1.15);
}

/* ============================================================
   HEADER AVATAR / USER BUTTON
   ============================================================ */
.zsm-header-avatar {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--zsm-border);
  background: var(--zsm-surface);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-header-avatar:hover {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}

/* Header notification icon */
.zsm-header-notif {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-header-notif:hover {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}

/* Header message icon */
.zsm-header-msg {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-header-msg:hover {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}
.zsm-header-msg__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #e91e63;
  color: #fff;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Header groups icon */
.zsm-header-groups {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-header-groups:hover {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}

/* Bouton thème dans le menu latéral */
.zsm-side-menu__theme-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  color: var(--zsm-text);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.zsm-side-menu__theme-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}
html[data-zsm-theme="light"] .zsm-side-menu__theme-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.zsm-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* ── Animated gradient ring for guest avatar ── */
@keyframes zsm-guest-ring {
  0% {
    --zsm-ring-angle: 0deg;
  }
  100% {
    --zsm-ring-angle: 360deg;
  }
}
@property --zsm-ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.zsm-header-avatar--guest {
  color: #fff;
  border: none;
  overflow: visible;
  background: var(--zsm-surface);
  position: relative;
  z-index: 0;
  animation: zsm-guest-ring 2.5s linear infinite;
}
.zsm-header-avatar--guest::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--zsm-ring-angle),
    #ff006e,
    #fb5607,
    #ffbe0b,
    #06d6a0,
    #118ab2,
    #8338ec,
    #ff006e
  );
  z-index: -1;
  animation: zsm-guest-ring 2.5s linear infinite;
}
.zsm-header-avatar--guest::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--zsm-surface);
  z-index: -1;
}
.zsm-header-avatar--guest svg {
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 3px rgba(255, 0, 110, 0.4));
}

/* ============================================================
   MODAL AUTH — Connexion / Inscription / Récupération
   ============================================================ */
.zsm-modal__panel--auth {
  max-width: 440px;
  max-height: 92vh;
  margin-bottom: 7vh;
  border-radius: var(--zsm-radius);
}
.zsm-auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--zsm-border);
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--zsm-bg);
  padding-top: 4px;
}
.zsm-auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--zsm-grey);
  font-family: var(--zsm-font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.zsm-auth-tab.active {
  color: var(--zsm-pink-light);
  border-bottom-color: var(--zsm-pink-light);
}
.zsm-auth-form {
  padding: 0 2px;
}
.zsm-auth-fieldset {
  border: 1px solid var(--zsm-border);
  border-radius: 10px;
  padding: 14px 12px 10px;
  margin: 0 0 14px;
}
.zsm-auth-fieldset legend {
  font-family: var(--zsm-font);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--zsm-text-dim);
  padding: 0 6px;
}
.zsm-auth-field {
  margin-bottom: 14px;
}
.zsm-auth-field label {
  display: block;
  font-family: var(--zsm-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zsm-text-dim);
  margin-bottom: 4px;
}
.zsm-auth-field label small {
  font-weight: 400;
  opacity: 0.7;
}
.zsm-auth-field input[type="text"],
.zsm-auth-field input[type="email"],
.zsm-auth-field input[type="password"],
.zsm-auth-field input[type="tel"],
.zsm-auth-field input[type="number"] {
  width: 100%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--zsm-text);
  font-family: var(--zsm-font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.zsm-auth-field input:focus {
  border-color: var(--zsm-pink-light);
}
.zsm-auth-field input[type="file"] {
  font-family: var(--zsm-font);
  font-size: 0.78rem;
  color: var(--zsm-text-dim);
}
.zsm-auth-row {
  display: flex;
  gap: 10px;
}
.zsm-auth-field--half {
  flex: 1;
}
.zsm-auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--zsm-pink-light);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--zsm-font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  margin-top: 4px;
}
.zsm-auth-submit:hover {
  background: var(--zsm-pink);
}
.zsm-auth-submit:active {
  transform: scale(0.98);
}
.zsm-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.zsm-auth-msg {
  font-family: var(--zsm-font);
  font-size: 0.8rem;
  padding: 6px 0;
  min-height: 1.2em;
}
.zsm-auth-msg.success {
  color: #4caf50;
}
.zsm-auth-msg.error {
  color: #ef5350;
}
.zsm-auth-hint {
  font-family: var(--zsm-font);
  font-size: 0.82rem;
  color: var(--zsm-text-dim);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Registration multi-step */
.zsm-reg-step {
  display: none;
}
.zsm-reg-step.active {
  display: block;
  animation: zsm-fade-step 0.25s ease-out;
}
@keyframes zsm-fade-step {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.zsm-reg-steps-indicator {
  text-align: center;
  font-family: var(--zsm-font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zsm-grey);
  margin-bottom: 8px;
}
.zsm-auth-back-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid var(--zsm-border);
  border-radius: 10px;
  color: var(--zsm-grey);
  font-family: var(--zsm-font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.zsm-auth-back-btn:hover {
  border-color: var(--zsm-pink-light);
  color: var(--zsm-pink-light);
}

/* Bloc "connexion requise" sur la page publier */
.zsm-auth-required {
  text-align: center;
  padding: 60px 20px;
}
.zsm-auth-required__icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.zsm-auth-required h3 {
  font-family: var(--zsm-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--zsm-text);
  margin: 0 0 8px;
}
.zsm-auth-required p {
  font-family: var(--zsm-font);
  font-size: 0.88rem;
  color: var(--zsm-grey);
  margin: 0;
}

/* ============================================================
   PROGRESS BAR — Barre de progression discrète (vidéos > 1 min)
   ============================================================ */
.zsm-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
  cursor: pointer;
  transition: height 0.15s ease;
}
.zsm-progress-bar:hover,
.zsm-progress-bar.zsm-progress-bar--active {
  height: 6px;
}
.zsm-progress-bar__fill {
  height: 100%;
  background: #fff;
  width: 0%;
  pointer-events: none;
  transition: none;
}
.zsm-progress-bar__handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.15s ease;
}
.zsm-progress-bar:hover .zsm-progress-bar__handle,
.zsm-progress-bar.zsm-progress-bar--active .zsm-progress-bar__handle {
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   FOLLOW SYSTEM
   ============================================================ */

/* Follow button — inline next to username */
.zsm-follow-btn {
  display: inline-block;
  padding: 2px 10px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid #fe2c55;
  color: #fe2c55;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;
}
.zsm-follow-btn:hover {
  background: #fe2c55;
  color: #fff;
}
.zsm-follow-btn--following {
  background: transparent;
  border-color: #555;
  color: #aaa;
}
.zsm-follow-btn--following:hover {
  background: #333;
  border-color: #888;
  color: #fff;
}
.zsm-follow-btn--busy {
  opacity: 0.5;
  pointer-events: none;
}

/* Profile-level: slightly bigger button */
.zsm-profile__name .zsm-follow-btn {
  font-size: 12px;
  padding: 3px 14px;
}

/* Card-level: tiny button */
.zsm-card__author-name .zsm-follow-btn {
  font-size: 10px;
  padding: 1px 7px;
  margin-left: 5px;
}

/* Clickable stats (followers/following) */
.zsm-stat--clickable {
  cursor: pointer;
  transition: color 0.15s;
}
.zsm-stat--clickable:hover {
  color: #fe2c55;
}

/* Follow modal */
.zsm-follow-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsm-follow-modal__inner {
  background: #1a1a2e;
  border-radius: 12px;
  width: 92%;
  max-width: 380px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.zsm-follow-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zsm-follow-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.zsm-follow-modal__close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.zsm-follow-modal__close:hover {
  color: #fff;
}
.zsm-follow-modal__body {
  padding: 10px 16px;
  overflow-y: auto;
  flex: 1;
}

/* Follow list items */
.zsm-follow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.zsm-follow-item:last-child {
  border-bottom: none;
}
.zsm-follow-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}
.zsm-follow-item__info {
  flex: 1;
  min-width: 0;
}
.zsm-follow-item__name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.zsm-follow-item__name:hover {
  color: #fe2c55;
}
.zsm-follow-item .zsm-follow-btn {
  flex-shrink: 0;
}

/* ============================================================
   SHARE MODAL
   ============================================================ */
#zsm-share-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
#zsm-share-modal.zsm-share-visible {
  visibility: visible;
  opacity: 1;
}
#zsm-share-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.zsm-share-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #1e1e1e;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 12px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}
#zsm-share-modal.zsm-share-visible .zsm-share-sheet {
  transform: translateY(0);
}
.zsm-share-handle {
  width: 36px;
  height: 4px;
  background: #555;
  border-radius: 2px;
  margin: 10px auto 0;
}
.zsm-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px;
}
.zsm-share-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
#zsm-share-close {
  background: none;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
#zsm-share-close:hover {
  color: #fff;
}
#zsm-share-title {
  padding: 0 18px 10px;
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zsm-share-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 0;
  padding: 4px 12px 14px;
}
.zsm-share-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  border-radius: 12px;
  transition: background 0.15s;
}
.zsm-share-platform:hover {
  background: rgba(255, 255, 255, 0.08);
}
.zsm-share-platform:active {
  transform: scale(0.93);
}
.zsm-share-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.zsm-share-icon--whatsapp {
  background: #25d366;
}
.zsm-share-icon--facebook {
  background: #1877f2;
}
.zsm-share-icon--twitter {
  background: #000;
}
.zsm-share-icon--telegram {
  background: #0088cc;
}
.zsm-share-icon--linkedin {
  background: #0a66c2;
}
.zsm-share-icon--email {
  background: #ea4335;
}
.zsm-share-icon--sms {
  background: #34b7f1;
}
.zsm-share-icon--native {
  background: #fe2c55;
}
.zsm-share-platform-label {
  font-size: 11px;
  color: #ccc;
  text-align: center;
  line-height: 1.2;
}
.zsm-share-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 16px;
}
#zsm-share-url {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px 12px;
  color: #ddd;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
#zsm-share-url:focus {
  border-color: #fe2c55;
}
#zsm-share-copy {
  flex-shrink: 0;
  background: #fe2c55;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  white-space: nowrap;
}
#zsm-share-copy:hover {
  background: #e0254d;
}
#zsm-share-copy:active {
  transform: scale(0.95);
}
#zsm-share-copy.zsm-share-copied {
  background: #2e7d32;
}
/* Hide native share option on browsers that don't support it */
.zsm-share-no-native .zsm-share-platform[data-platform="native"] {
  display: none;
}
@media (min-width: 500px) {
  .zsm-share-sheet {
    border-radius: 16px;
    margin-bottom: 20px;
    max-height: 90vh;
  }
}

/* ============================================================
   CATÉGORIES PAGE — Grille 3 colonnes, icônes 82x82
   ============================================================ */
.zsm-categories-page {
  padding: 12px 8px;
  padding-bottom: calc(var(--zsm-bottom-h) + 24px);
}
.zsm-categories-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--zsm-white);
  margin: 0 0 16px 4px;
}
.zsm-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  justify-items: center;
}
.zsm-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--zsm-text);
  transition: all var(--zsm-transition);
  padding: 8px 4px;
  border-radius: var(--zsm-radius-sm);
  width: 100%;
  max-width: 110px;
}
.zsm-cat-card:hover {
  transform: translateY(-3px);
}
.zsm-cat-card:active {
  transform: scale(0.95);
}
.zsm-cat-card__thumb {
  width: 86px;
  height: 86px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  clip-path: url(#zsm-wavy-clip);
  transition:
    filter var(--zsm-transition),
    transform var(--zsm-transition);
}
.zsm-cat-card:hover .zsm-cat-card__thumb {
  filter: drop-shadow(0 4px 12px var(--zsm-pink-glow));
  transform: scale(1.06);
}
.zsm-cat-card__thumb img {
  width: 86px !important;
  height: 86px !important;
  max-width: 86px !important;
  max-height: 86px !important;
  object-fit: contain;
  padding: 10px;
  background: #ffffff;
}
.zsm-cat-card__icon {
  font-size: 2rem;
}
.zsm-cat-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zsm-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  line-height: 1.2;
}
html[data-zsm-theme="light"] .zsm-cat-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
html[data-zsm-theme="light"] .zsm-cat-card__thumb {
  background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 100%);
  box-shadow: 0 2px 10px rgba(194, 24, 91, 0.18);
}
html[data-zsm-theme="light"] .zsm-cat-card__thumb img {
  background: transparent;
}
html[data-zsm-theme="light"] .zsm-cat-card__name {
  color: #0f172a;
  font-weight: 700;
}
html[data-zsm-theme="light"] .zsm-categories-title {
  color: var(--zsm-text);
}

/* ============================================================
   STORY MEDIA BADGE (photo/vidéo indicator)
   ============================================================ */
.zsm-media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.zsm-video-item--photo .zsm-video-poster,
.zsm-video-item--photo .zsm-story-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.zsm-shop-page {
  padding-bottom: 80px;
}
.zsm-shop-section {
  padding: 16px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.zsm-shop-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.zsm-shop-section__icon {
  font-size: 28px;
  flex-shrink: 0;
}
.zsm-shop-section__badge-svg {
  font-size: 0;
  line-height: 0;
}
.zsm-shop-section__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.zsm-shop-section__sub {
  font-size: 13px;
  color: #888;
  margin: 2px 0 0;
}
.zsm-shop-balance {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 12px;
}
.zsm-shop-balance strong {
  color: #f9a825;
  font-size: 18px;
}
.zsm-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.zsm-shop-grid--badge {
  grid-template-columns: repeat(2, 1fr);
}
.zsm-shop-card {
  background: #1e1e30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.zsm-shop-card:active {
  transform: scale(0.97);
}
.zsm-shop-card__icon {
  font-size: 32px;
}
.zsm-shop-card__badge-icon svg {
  display: block;
}
.zsm-shop-card__label {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}
.zsm-shop-card__price {
  font-size: 16px;
  font-weight: 800;
  color: #f9a825;
}
.zsm-shop-card__btn {
  margin-top: 6px;
  background: #c2185b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.zsm-shop-card__btn:hover:not(:disabled) {
  background: #e91e63;
}
.zsm-shop-card__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.zsm-shop-card--badge {
  border-color: rgba(26, 122, 46, 0.3);
  background: linear-gradient(
    145deg,
    #1e1e30 60%,
    rgba(26, 122, 46, 0.12)
  );
}
.zsm-shop-card--badge .zsm-shop-card__btn {
  background: #1a7a2e;
}
.zsm-shop-card--badge .zsm-shop-card__btn:hover:not(:disabled) {
  background: #2e7d32;
}
.zsm-shop-verified-status {
  background: rgba(26, 122, 46, 0.15);
  border: 1px solid rgba(26, 122, 46, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #4caf50;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.zsm-shop-verified-status small {
  color: #888;
  font-size: 12px;
}
.zsm-shop-label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}
.zsm-shop-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1e1e30;
  color: #e0e0e0;
  font-size: 14px;
  -webkit-appearance: none;
}
.zsm-shop-msg {
  position: fixed;
  bottom: 70px;
  left: 12px;
  right: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  z-index: 9999;
  animation: zsm-fade-in 0.3s;
}
.zsm-shop-msg--error {
  background: #c62828;
  color: #fff;
}
.zsm-shop-msg--success {
  background: #2e7d32;
  color: #fff;
}
@keyframes zsm-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SHOP — Responsive
   ============================================================ */
@media (max-width: 420px) {
  .zsm-shop-section {
    padding: 12px 8px 16px;
  }
  .zsm-shop-section__header {
    gap: 8px;
    margin-bottom: 8px;
  }
  .zsm-shop-section__icon {
    font-size: 22px;
  }
  .zsm-shop-section__title {
    font-size: 15px;
  }
  .zsm-shop-section__sub {
    font-size: 11px;
  }
  .zsm-shop-balance {
    padding: 8px 10px;
    font-size: 12px;
  }
  .zsm-shop-balance strong {
    font-size: 15px;
  }
  .zsm-shop-grid {
    gap: 6px;
  }
  .zsm-shop-card {
    padding: 10px 6px;
    border-radius: 10px;
    gap: 4px;
  }
  .zsm-shop-card__icon {
    font-size: 24px;
  }
  .zsm-shop-card__label {
    font-size: 11px;
  }
  .zsm-shop-card__price {
    font-size: 13px;
  }
  .zsm-shop-card__btn {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 6px;
  }
  .zsm-shop-verified-status {
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }
  .zsm-shop-verified-status small {
    font-size: 10px;
  }
  .zsm-shop-card__badge-icon svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 340px) {
  .zsm-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zsm-shop-grid--badge {
    grid-template-columns: 1fr;
  }
  .zsm-shop-section__title {
    font-size: 14px;
  }
  .zsm-shop-section__sub {
    font-size: 10px;
  }
  .zsm-shop-card__icon {
    font-size: 20px;
  }
  .zsm-shop-card__label {
    font-size: 10px;
  }
  .zsm-shop-card__price {
    font-size: 12px;
  }
  .zsm-shop-card__btn {
    padding: 5px 6px;
    font-size: 10px;
  }
}

/* ============================================================
   PRESTATAIRES PAGE
   ============================================================ */
.zsm-presta-page {
  padding: 12px 10px 80px;
}
.zsm-presta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.zsm-presta-card {
  background: #1e1e30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
/* Avatar */
.zsm-presta-card__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.zsm-presta-card__avatar img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.zsm-presta-card__avatar-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2185b, #6a1b9a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.zsm-presta-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #4caf50;
  font-weight: 600;
}
/* Body info */
.zsm-presta-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}
.zsm-presta-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}
.zsm-presta-card__type {
  font-size: 11px;
  color: #c2185b;
  font-weight: 600;
  background: rgba(194, 24, 91, 0.12);
  padding: 1px 8px;
  border-radius: 10px;
}
.zsm-presta-card__info {
  font-size: 12px;
  color: #aaa;
  margin: 0;
  line-height: 1.3;
}
/* Document link/button */
.zsm-presta-card__doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
}
.zsm-presta-doc-link,
.zsm-presta-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #90caf9;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.zsm-presta-doc-link:hover,
.zsm-presta-doc-btn:hover {
  color: #fff;
}
.zsm-presta-doc-link svg,
.zsm-presta-doc-btn svg {
  flex-shrink: 0;
}
/* Stats */
.zsm-presta-card__stats {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Action buttons (bottom icons — 2x2 grid) */
.zsm-presta-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  justify-items: center;
}
.zsm-presta-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  color: #c2185b;
  transition:
    background 0.2s,
    transform 0.2s;
}
.zsm-presta-action:hover {
  background: rgba(194, 24, 91, 0.2);
  transform: scale(1.1);
}
.zsm-presta-wa {
  color: #25d366;
  order: 2;
}
.zsm-presta-wa:hover {
  background: rgba(37, 211, 102, 0.15);
}
.zsm-presta-card__actions .zsm-follow-btn {
  font-size: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  background: #c2185b;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
  order: 4;
}
.zsm-presta-card__actions .zsm-follow-btn::before {
  content: "👤+";
  font-size: 14px;
}
.zsm-presta-card__actions .zsm-follow-btn--following {
  background: rgba(255, 255, 255, 0.12);
}
.zsm-presta-card__actions .zsm-follow-btn--following::before {
  content: "✓";
}

/* ── Document Popup (fullscreen scrollable) ── */
.zsm-presta-doc-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #121220;
  display: none;
  flex-direction: column;
}
.zsm-presta-doc-popup.open {
  display: flex;
}
.zsm-presta-doc-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.zsm-presta-doc-popup__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex: 1;
  padding-right: 10px;
  line-height: 1.3;
}
.zsm-presta-doc-popup__close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zsm-presta-doc-popup__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  color: #ddd;
  font-size: 14px;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
.zsm-presta-doc-popup__body p {
  margin: 0 0 12px;
}
.zsm-presta-doc-popup__body h1,
.zsm-presta-doc-popup__body h2,
.zsm-presta-doc-popup__body h3 {
  color: #fff;
  margin: 16px 0 8px;
}

/* ── Prestataires Responsive ── */
@media (max-width: 420px) {
  .zsm-presta-grid {
    gap: 8px;
  }
  .zsm-presta-card {
    padding: 10px 8px;
    border-radius: 12px;
    gap: 6px;
  }
  .zsm-presta-card__avatar img,
  .zsm-presta-card__avatar-placeholder {
    width: 64px;
    height: 64px;
  }
  .zsm-presta-card__avatar-placeholder {
    font-size: 1.5rem;
  }
  .zsm-presta-card__name {
    font-size: 12px;
  }
  .zsm-presta-card__type {
    font-size: 10px;
  }
  .zsm-presta-card__info {
    font-size: 11px;
  }
  .zsm-presta-card__stats {
    font-size: 10px;
  }
  .zsm-presta-doc-link,
  .zsm-presta-doc-btn {
    font-size: 10px;
  }
  .zsm-presta-action {
    width: 34px;
    height: 34px;
  }
  .zsm-presta-action svg {
    width: 18px;
    height: 18px;
  }
  .zsm-presta-card__actions .zsm-follow-btn {
    width: 34px;
    height: 34px;
  }
  .zsm-presta-card__actions .zsm-follow-btn::before {
    font-size: 12px;
  }
  .zsm-presta-doc-popup__title {
    font-size: 13px;
  }
  .zsm-presta-doc-popup__body {
    font-size: 13px;
    padding: 12px;
  }
}
@media (max-width: 340px) {
  .zsm-presta-card__avatar img,
  .zsm-presta-card__avatar-placeholder {
    width: 54px;
    height: 54px;
  }
  .zsm-presta-card__name {
    font-size: 11px;
  }
  .zsm-presta-card__info {
    font-size: 10px;
  }
  .zsm-presta-action {
    width: 30px;
    height: 30px;
  }
  .zsm-presta-card__actions .zsm-follow-btn {
    width: 30px;
    height: 30px;
  }
}

/* ── Prestataire: Propre profil + crayon + profil link + modal édition ── */
.zsm-presta-card--own {
  border: 2px solid #8e146c;
  position: relative;
}
.zsm-presta-card__avatar {
  position: relative;
}
.zsm-presta-edit-pencil {
  position: absolute;
  top: 88px;
  bottom: -4px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #8e146c;
  border: 2px solid #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.zsm-presta-edit-pencil:hover {
  transform: scale(1.15);
}
.zsm-presta-profile-link {
  background: #6366f1 !important;
  order: 3;
}
.zsm-presta-profile-link:hover {
  background: #818cf8 !important;
}
.zsm-presta-card__actions .zsm-chat-btn {
  order: 1;
}

/* Modal édition profil prestataire */
.zsm-presta-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: #1a1a2e;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.zsm-presta-edit-modal.open {
  display: flex;
}
.zsm-presta-edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: #1a1a2e;
  z-index: 2;
}
.zsm-presta-edit-modal__header h3 {
  font-size: 16px;
  color: #fff;
  margin: 0;
}
.zsm-presta-edit-modal__body {
  padding: 20px;
  flex: 1;
}
.zsm-form-card {
  margin-bottom: 16px;
}
.zsm-form-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}
.zsm-input,
.zsm-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.zsm-input:focus,
.zsm-textarea:focus {
  border-color: #6366f1;
}
.zsm-textarea {
  resize: vertical;
  min-height: 80px;
}
.zsm-btn-publish {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.zsm-btn-publish:hover {
  opacity: 0.9;
}
.zsm-btn-publish:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 420px) {
  .zsm-presta-edit-pencil {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  .zsm-presta-edit-modal__body {
    padding: 14px;
  }
  .zsm-input,
  .zsm-textarea {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ── Prestataire: Badges publié / non publié ── */
.zsm-presta-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: none;
  cursor: default;
  margin-top: 4px;
}
.zsm-presta-badge--published {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}
.zsm-presta-badge--draft {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  animation: zsm-pulse-badge 2s ease-in-out infinite;
}
.zsm-presta-badge--draft:hover {
  background: rgba(255, 152, 0, 0.3);
  transform: scale(1.05);
}
@keyframes zsm-pulse-badge {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ── Alert Overlay (styled confirmation) ── */
.zsm-presta-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.zsm-presta-alert-overlay.open {
  display: flex;
}
.zsm-presta-alert {
  background: #1e1e30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: zsm-alert-in 0.25s ease-out;
}
@keyframes zsm-alert-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.zsm-presta-alert__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.zsm-presta-alert__msg {
  color: #ddd;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.zsm-presta-alert__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.zsm-alert-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.zsm-alert-btn:hover {
  transform: scale(1.03);
}
.zsm-alert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.zsm-alert-btn--primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}
.zsm-alert-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}
.zsm-alert-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ============================================================
   FILTER BUTTON (header)
   ============================================================ */
.zsm-filter-btn {
  flex-shrink: 0;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  color: var(--zsm-white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.zsm-filter-btn:hover,
.zsm-filter-btn--active {
  border-color: var(--zsm-pink-light);
  background: rgba(255, 255, 255, 0.08);
}
.zsm-filter-btn--has-filters {
  color: var(--zsm-green-light);
  position: relative;
}
.zsm-filter-btn--has-filters::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--zsm-pink);
  border-radius: 50%;
}

/* ============================================================
   GROUPS ICON (header)
   ============================================================ */
.zsm-header-icon {
  background: none;
  border: none;
  color: var(--zsm-white);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition:
    background var(--zsm-transition),
    color var(--zsm-transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.zsm-header-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--zsm-green-light);
}

/* ============================================================
   FILTER PANEL (YouTube-style slide-down)
   ============================================================ */
.zsm-filter-panel {
  position: fixed;
  top: var(--zsm-header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--zsm-bg2);
  border-bottom: 1px solid var(--zsm-border);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}
.zsm-filter-panel--open {
  display: block !important;
  max-height: 700px;
  opacity: 1;
}
.zsm-filter-panel__inner {
  padding: 14px 16px 10px;
  max-width: var(--zsm-app-max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Groups */
.zsm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zsm-filter-group--row {
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
.zsm-filter-group__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--zsm-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Select / Input */
.zsm-filter-select,
.zsm-filter-input {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius-sm);
  padding: 8px 12px;
  color: var(--zsm-text);
  font-size: 0.85rem;
  font-family: var(--zsm-font);
  outline: none;
  transition: border var(--zsm-transition);
  -webkit-appearance: none;
  appearance: none;
}
.zsm-filter-select:focus,
.zsm-filter-input:focus {
  border-color: var(--zsm-green-light);
}
.zsm-filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239e9e9e'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Range row */
.zsm-filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zsm-filter-input--half {
  flex: 1;
  min-width: 0;
}
.zsm-filter-range__sep {
  color: var(--zsm-grey);
  font-size: 0.9rem;
}

/* Chips */
.zsm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.zsm-filter-chip {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: 50px;
  padding: 5px 14px;
  color: var(--zsm-text-dim);
  font-size: 0.8rem;
  font-family: var(--zsm-font);
  cursor: pointer;
  transition: all var(--zsm-transition);
  white-space: nowrap;
}
.zsm-filter-chip:hover {
  border-color: var(--zsm-green-light);
  color: var(--zsm-white);
}
.zsm-filter-chip--active {
  background: var(--zsm-green);
  border-color: var(--zsm-green-light);
  color: #fff;
  font-weight: 500;
}

/* Toggle switches */
.zsm-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.zsm-filter-toggle input[type="checkbox"] {
  width: 36px;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background var(--zsm-transition);
  flex-shrink: 0;
}
.zsm-filter-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--zsm-grey);
  border-radius: 50%;
  transition:
    transform var(--zsm-transition),
    background var(--zsm-transition);
}
.zsm-filter-toggle input[type="checkbox"]:checked {
  background: var(--zsm-green);
  border-color: var(--zsm-green-light);
}
.zsm-filter-toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
  background: #fff;
}
.zsm-filter-toggle__label {
  font-size: 0.85rem;
  color: var(--zsm-text-dim);
}

/* Actions bar */
.zsm-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.zsm-filter-actions__reset {
  background: none;
  border: 1px solid var(--zsm-border);
  border-radius: var(--zsm-radius-sm);
  padding: 7px 18px;
  color: var(--zsm-grey);
  font-size: 0.82rem;
  font-family: var(--zsm-font);
  cursor: pointer;
  transition: all var(--zsm-transition);
}
.zsm-filter-actions__reset:hover {
  border-color: var(--zsm-text-dim);
  color: var(--zsm-white);
}
.zsm-filter-actions__apply {
  background: var(--zsm-green);
  border: none;
  border-radius: var(--zsm-radius-sm);
  padding: 7px 22px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--zsm-font);
  cursor: pointer;
  transition: background var(--zsm-transition);
}
.zsm-filter-actions__apply:hover {
  background: var(--zsm-green-light);
}

/* Active filter count badge on chip bar (optional) */
.zsm-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--zsm-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50px;
  padding: 0 4px;
  margin-left: 4px;
}

/* ============================================================
   FILTER — Localité + Géolocalisation
   ============================================================ */
.zsm-filter-loc-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.zsm-filter-input--loc {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}
.zsm-filter-geo-btn {
  background: var(--zsm-surface);
  border: 1px solid var(--zsm-border);
  border-left: none;
  border-radius: 0 var(--zsm-radius-sm) var(--zsm-radius-sm) 0;
  padding: 8px 10px;
  color: var(--zsm-grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--zsm-transition),
    background var(--zsm-transition);
  flex-shrink: 0;
}
.zsm-filter-geo-btn:hover {
  color: var(--zsm-green-light);
  background: rgba(46, 125, 50, 0.1);
}
.zsm-filter-geo-btn--active {
  color: var(--zsm-green-light);
  background: rgba(46, 125, 50, 0.15);
}
.zsm-filter-geo-btn--loading svg {
  animation: zsm-filter-geo-spin 1s linear infinite;
}
@keyframes zsm-filter-geo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Distance slider */
.zsm-filter-distance {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(46, 125, 50, 0.06);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: var(--zsm-radius-sm);
}
.zsm-filter-distance__label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--zsm-text-dim);
  margin-bottom: 8px;
}
.zsm-filter-distance__label strong {
  color: var(--zsm-green-light);
  font-size: 1rem;
  min-width: 28px;
  text-align: center;
}
.zsm-filter-distance__slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--zsm-border);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.zsm-filter-distance__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--zsm-green-light);
  border: 2px solid var(--zsm-bg2);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(46, 125, 50, 0.4);
}
.zsm-filter-distance__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--zsm-green-light);
  border: 2px solid var(--zsm-bg2);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(46, 125, 50, 0.4);
}
.zsm-filter-distance__marks {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.65rem;
  color: var(--zsm-grey);
  opacity: 0.7;
}

/* ============================================================
   GROUP POST CARDS — Feed injection
   ============================================================ */
.zsm-card--group-post {
  background: var(--zsm-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--zsm-radius) !important;
  margin-bottom: 16px !important;
  overflow: hidden;
}
.zsm-card__header--group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 12px 14px 8px !important;
}
.zsm-card__group-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 109, 0, 0.12) !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  color: #ff6d00 !important;
  font-weight: 600 !important;
  width: fit-content !important;
}
.zsm-card__group-img {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.zsm-card__group-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 180px !important;
}
.zsm-card--group-post .zsm-card__author {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
}
.zsm-card--group-post .zsm-card__avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.zsm-card--group-post .zsm-card__author-name {
  font-size: 0.82rem !important;
  color: var(--zsm-text-dim) !important;
}
.zsm-card--group-post .zsm-card__title {
  padding: 4px 14px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: var(--zsm-white) !important;
}
.zsm-card--group-post .zsm-card__content {
  padding: 0 14px 8px !important;
  font-size: 0.82rem !important;
  color: var(--zsm-text-dim) !important;
  line-height: 1.4 !important;
}
.zsm-card__media--group {
  position: relative !important;
  width: 100% !important;
  max-height: 340px !important;
  overflow: hidden !important;
}
.zsm-card__media--group img,
.zsm-card__media--group video {
  width: 100% !important;
  height: auto !important;
  max-height: 340px !important;
  object-fit: cover !important;
  display: block !important;
}
.zsm-card__photo-count {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
}
.zsm-card--group-post .zsm-card__price {
  padding: 4px 14px !important;
  font-weight: 700 !important;
  color: var(--zsm-green-light) !important;
  font-size: 0.9rem !important;
}
.zsm-card__actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 8px 14px 12px !important;
  font-size: 0.78rem !important;
  color: var(--zsm-grey) !important;
}
.zsm-card__group-link {
  margin-left: auto !important;
  color: #ff6d00 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

/* ============================================================
   SPONSORED GROUPS CAROUSEL — Horizontal scroll
   ============================================================ */
.zsm-groups-carousel {
  margin: 16px 0 !important;
  padding: 0 !important;
}
.zsm-groups-carousel__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 8px 8px !important;
}
.zsm-groups-carousel__title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--zsm-white) !important;
}
.zsm-groups-carousel__more {
  font-size: 0.75rem !important;
  color: #ff6d00 !important;
  font-weight: 600 !important;
}
.zsm-groups-carousel__viewport {
  overflow: hidden !important;
  padding: 4px 0 12px !important;
}
.zsm-groups-carousel__track {
  display: flex !important;
  gap: 0 !important;
  width: max-content !important;
  overflow: visible !important;
  padding: 0 !important;
  will-change: transform !important;
  animation: zsm-groups-marquee 42s linear infinite !important;
}
.zsm-groups-carousel__set {
  display: flex !important;
  gap: 10px !important;
  padding: 0 8px !important;
}
.zsm-groups-carousel__track::-webkit-scrollbar {
  display: none !important;
}
.zsm-groups-carousel__card {
  flex: 0 0 140px !important;
  background: var(--zsm-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--zsm-radius-sm) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  transition:
    transform var(--zsm-transition),
    box-shadow var(--zsm-transition) !important;
}
.zsm-groups-carousel__card:active {
  transform: scale(0.97) !important;
}
.zsm-groups-carousel__img-wrap {
  width: 140px !important;
  height: 90px !important;
  overflow: hidden !important;
  background: var(--zsm-bg3) !important;
}
.zsm-groups-carousel__img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.zsm-groups-carousel__placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  background: linear-gradient(
    135deg,
    var(--zsm-bg3),
    var(--zsm-surface)
  ) !important;
}
.zsm-groups-carousel__info {
  padding: 8px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.zsm-groups-carousel__name {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--zsm-white) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.zsm-groups-carousel__meta {
  font-size: 0.65rem !important;
  color: var(--zsm-grey) !important;
}
.zsm-groups-carousel__cat {
  font-size: 0.6rem !important;
  color: #ff6d00 !important;
  background: rgba(255, 109, 0, 0.1) !important;
  padding: 1px 6px !important;
  border-radius: 8px !important;
  width: fit-content !important;
  margin-top: 2px !important;
}

@keyframes zsm-groups-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --- Bouton Déconnexion (profil modal) --- */
.zsm-profile__logout-account {
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(146, 98, 0, 0.18);
  border: 1px solid rgba(184, 134, 11, 0.45);
  border-radius: 10px;
  color: #f2c14e;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.zsm-profile__logout-account:hover {
  background: rgba(146, 98, 0, 0.28);
  border-color: rgba(242, 193, 78, 0.55);
  color: #ffd166;
}

/* --- Bouton Supprimer mon compte (profil modal) --- */
.zsm-profile__delete-account {
  margin-top: 10px;
  padding: 10px 16px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 10px;
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.zsm-profile__delete-account:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
}
