/* ==========================================================================
   SOUKLY — dashboard.css
   Dashboard Vendeur — Gestion des Annonces, Statistiques et Publication Multi-étapes
   Aligné avec feed.css et auth.css (Tokens, Thèmes, Accessibilité, Micro-animations)
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS & THÈMES ---------- */
:root, [data-theme="light"] {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e8ebf0;
  --text: #101828;
  --text-2: #475467;
  --text-3: #8491a3;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --accent: #1a5cff;
  --accent-hi: #0046e6;
  --accent-soft: rgba(26, 92, 255, 0.09);
  --accent-soft-2: #eaf1ff;
  --ring: 0 0 0 3px rgba(26, 92, 255, 0.22);
  --success: #128a5b;
  --success-soft: #e6f6ee;
  --warning: #b45309;
  --warning-soft: #fff3e0;
  --danger: #d92d20;
  --danger-soft: #feeceb;
  --boost: #b76e00;
  --boost-soft: #fff4dc;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow-md: 0 4px 12px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.04);
  --shadow-lg: 0 20px 48px -10px rgba(16,24,40,.18), 0 8px 18px rgba(16,24,40,.06);
  --shadow-accent: 0 8px 20px -6px rgba(26,92,255,.45);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sidebar-w: 260px;
  --header-h: 70px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1017;
  --surface: #121a24;
  --surface-2: #182231;
  --surface-3: #202c3d;
  --text: #eef2f6;
  --text-2: #b9c3cf;
  --text-3: #7b8899;
  --border: #222d3b;
  --border-strong: #344054;
  --accent: #4c82ff;
  --accent-hi: #6b96ff;
  --accent-soft: rgba(76,130,255,.16);
  --accent-soft-2: rgba(76,130,255,.12);
  --ring: 0 0 0 3px rgba(76,130,255,.32);
  --success: #34b77f;
  --success-soft: rgba(52,183,127,.14);
  --warning: #e7a23f;
  --warning-soft: rgba(231,162,63,.14);
  --danger: #f16a6a;
  --danger-soft: rgba(241,106,106,.14);
  --boost: #e8a53c;
  --boost-soft: rgba(232,165,60,.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 22px 50px -10px rgba(0,0,0,.65);
  --shadow-accent: 0 8px 22px -6px rgba(76,130,255,.4);
  color-scheme: dark;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* ---------- 3. LAYOUT GLOBAL DASHBOARD ---------- */
.dashboard-container {
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   4. SIDEBAR FIXE & RESPONSIVE
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.sidebar-backdrop.visible {
  display: block;
}

.sidebar-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none !important;
}

.brand-logo span strong {
  color: var(--accent);
}

.btn-sidebar-close {
  display: none;
  color: var(--text-2);
  padding: 4px;
}

@media (max-width: 980px) {
  .btn-sidebar-close {
    display: block;
  }
}

/* Profil dans la sidebar */
.sidebar-user-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  margin: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-info {
  overflow: hidden;
}

.user-name {
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

/* Navigation principale */
.sidebar-nav {
  padding: 10px 14px;
  flex: 1;
  overflow-y: auto;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  text-align: left;
  transition: all 160ms ease;
  margin-bottom: 4px;
  text-decoration: none !important;
}

.nav-item-btn svg {
  flex-shrink: 0;
  color: var(--text-3);
  transition: color 160ms ease;
}

.nav-item-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item-btn:hover svg {
  color: var(--accent);
}

.nav-item-btn.active {
  background: var(--accent-soft-2);
  color: var(--accent);
  font-weight: 700;
}

.nav-item-btn.active svg {
  color: var(--accent);
}

.nav-badge-pill {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-2);
}

.nav-item-btn.active .nav-badge-pill {
  background: var(--accent);
  color: #fff;
}

/* Pied de la sidebar */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   5. CONTENU PRINCIPAL & HEADER DASHBOARD
   ========================================================================== */
.dashboard-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

@media (max-width: 980px) {
  .dashboard-main {
    margin-left: 0;
  }
}

.dashboard-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -2px rgba(16, 24, 40, 0.04);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  transition: all 220ms ease;
}

[data-theme="dark"] .dashboard-header {
  background: rgba(18, 26, 36, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .dashboard-header {
    padding: 0 16px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hamburger {
  display: none;
  padding: 8px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 160ms ease;
}
.btn-hamburger:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 980px) {
  .btn-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Barre de recherche dans le dashboard */
.dash-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  padding: 0 16px;
  height: 42px;
  border-radius: 999px;
  width: 320px;
  transition: all 200ms ease;
}

@media (max-width: 768px) {
  .dash-search-box {
    display: none;
  }
}

.dash-search-box:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 4px 14px rgba(26,92,255,0.08);
  width: 360px;
}

.dash-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
  width: 100%;
}
.dash-search-box input::placeholder {
  color: var(--text-3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms ease;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-hi));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-accent);
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.08);
}

.btn.sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
  transition: all 160ms ease;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

/* Thème icon toggle */
.theme-toggle-btn .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle-btn .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle-btn .ic-moon { display: block; }

/* Menu déroulant profil */
.profile-dropdown-wrapper {
  position: relative;
}

.profile-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1000;
  animation: fadeInDown 180ms ease forwards;
}

.profile-dropdown-menu.open {
  display: block;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 140ms ease;
}

.profile-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ==========================================================================
   6. SECTIONS DU DASHBOARD (Tabs)
   ========================================================================== */
.dashboard-content {
  padding: 28px 32px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .dashboard-content {
    padding: 18px 14px;
  }
}

.dash-tab-section {
  display: none;
}

.dash-tab-section.active {
  display: block;
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. STATS CARDS (En haut)
   ========================================================================== */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 1100px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.icon-blue { background: var(--accent-soft-2); color: var(--accent); }
.icon-green { background: var(--success-soft); color: var(--success); }
.icon-orange { background: var(--warning-soft); color: var(--warning); }
.icon-purple { background: #f3e8ff; color: #9333ea; }

.stat-variation-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.stat-variation-badge.up {
  background: var(--success-soft);
  color: var(--success);
}

.stat-variation-badge.down {
  background: var(--danger-soft);
  color: var(--danger);
}

.stat-card-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 500;
}

/* ==========================================================================
   8. SECTION "MES ANNONCES"
   ========================================================================== */
.table-card-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header-controls {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Status tabs */
.status-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.status-tabs-row::-webkit-scrollbar { display: none; }

.status-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 160ms ease;
}

.status-tab-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.status-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.status-tab-btn .tab-count {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.12);
}

.status-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Search and Sort row */
.table-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tools-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.inline-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: 1;
  max-width: 340px;
}

.inline-search-input input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
}

.tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-styled {
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  cursor: pointer;
}

/* Barre d'action groupée */
.bulk-actions-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--accent-soft-2);
  border-bottom: 1px solid var(--accent);
  color: var(--accent-hi);
  font-size: 13px;
  font-weight: 600;
}

.bulk-actions-bar.visible {
  display: flex;
}

.bulk-actions-group {
  display: flex;
  gap: 8px;
}

/* Tableau des annonces */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.ads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ads-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.ads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13.5px;
}

.ads-table tr:hover {
  background: var(--surface-2);
}

/* Colonnes spécifiques */
.col-cb {
  width: 40px;
  text-align: center;
}

.col-cb input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ad-info-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.ad-thumb-wrap {
  width: 64px;
  height: 50px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-3);
  position: relative;
  flex-shrink: 0;
}

.ad-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-badge-overlay {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  color: #fff;
}

.badge-urgent { background: var(--danger); }
.badge-top { background: var(--boost); }
.badge-vedette { background: #9333ea; }

.ad-meta-block .ad-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-meta-block .ad-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}

.ad-price-cell {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.price-drop-tag {
  display: block;
  font-size: 10.5px;
  color: var(--danger);
  font-weight: 700;
}

/* Statuts d'annonces */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-active { background: var(--success-soft); color: var(--success); }
.status-en_attente { background: var(--warning-soft); color: var(--warning); }
.status-vendue { background: var(--accent-soft-2); color: var(--accent); }
.status-expiree { background: var(--surface-3); color: var(--text-3); }
.status-refusee { background: var(--danger-soft); color: var(--danger); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Menu Actions par ligne */
.table-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.action-buttons-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 140ms ease;
}

.btn-icon-action:hover {
  background: var(--surface-3);
  color: var(--accent);
}

.btn-icon-action.danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* État vide */
.table-empty-state {
  padding: 48px 20px;
  text-align: center;
}

.empty-state-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.empty-state-subtitle {
  font-size: 13px;
  color: var(--text-3);
  max-width: 360px;
  margin: 0 auto 18px;
}

/* ==========================================================================
   9. SECTION "PUBLIER UNE ANNONCE" (WIZARD MULTI-ÉTAPES)
   ========================================================================== */
.publish-wizard-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1040px) {
  .publish-wizard-layout {
    grid-template-columns: 1fr;
  }
}

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Barre de progression des étapes */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 28px;
}

.wizard-progress-bar::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wizard-step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  color: var(--text-3);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease;
}

.wizard-step-node.active .wizard-step-bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.wizard-step-node.completed .wizard-step-bubble {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.wizard-step-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

.wizard-step-node.active .wizard-step-text {
  color: var(--text);
  font-weight: 700;
}

/* Étape 1 : Grille des catégories */
.category-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .category-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-picker-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: all 160ms ease;
}

.cat-picker-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.cat-picker-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft-2);
  box-shadow: var(--ring);
}

.cat-picker-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.cat-picker-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.subcategories-chips-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.subcat-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}

.subcat-chip:hover {
  background: var(--surface-3);
}

.subcat-chip.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Étape 2 : Suggestion de prix IA/Algorithme */
.price-suggestion-box {
  background: var(--accent-soft-2);
  border: 1px dashed var(--accent);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--accent-hi);
}

.price-suggestion-box strong {
  font-size: 13.5px;
}

.btn-apply-price {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

/* Étape 3 : Photos & Glisser-Déposer */
.photo-drop-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
  transition: all 180ms ease;
  margin-bottom: 16px;
}

.photo-drop-zone:hover, .photo-drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft-2);
}

.photo-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-grid-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.photo-item-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  cursor: grab;
}

.photo-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item-card .badge-main-photo {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.photo-item-card .btn-delete-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Suggestion d'optimisation */
.optimization-tips-callout {
  background: var(--warning-soft);
  border-left: 4px solid var(--warning);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--warning);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Étape 5 : Boost options cards */
.boost-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

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

.boost-plan-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 14px;
  background: var(--surface);
  cursor: pointer;
  transition: all 160ms ease;
  position: relative;
}

.boost-plan-card:hover {
  border-color: var(--border-strong);
}

.boost-plan-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft-2);
  box-shadow: var(--ring);
}

.boost-plan-title {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.boost-plan-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.boost-plan-desc {
  font-size: 11.5px;
  color: var(--text-2);
}

/* Boutons de navigation du wizard */
.wizard-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.draft-saved-notice {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   10. LIVE PREVIEW PHONE CARD (Aperçu en Direct)
   ========================================================================== */
.live-preview-container {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.preview-card-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.preview-header-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-feed-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.preview-image-box {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--surface-3);
}

.preview-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-content-box {
  padding: 14px;
}

.preview-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.preview-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.preview-location {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   11. MODALES (Stats, Timeline, Confirmation, Boost)
   ========================================================================== */
.dash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.dash-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dash-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 220ms ease;
}

.dash-modal-overlay.open .dash-modal-card {
  transform: scale(1);
}

.dash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-modal-title {
  font-size: 18px;
  font-weight: 800;
}

.btn-modal-close {
  color: var(--text-3);
  font-size: 20px;
  padding: 4px;
}

.btn-modal-close:hover {
  color: var(--text);
}

/* Timeline Stepper dans la modale */
.timeline-stepper {
  position: relative;
  padding-left: 24px;
  margin-top: 16px;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: var(--border);
}

.timeline-node {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}

.timeline-event-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.timeline-event-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

.timeline-event-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Graphique Vues SVG & Provenance */
.chart-bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 140px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.chart-bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.chart-bar-pillar {
  width: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hi));
  border-radius: 4px 4px 0 0;
  transition: height 300ms ease;
  min-height: 4px;
}

.chart-bar-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.traffic-provenance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.provenance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.provenance-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  margin: 0 12px;
  overflow: hidden;
}

.provenance-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* ==========================================================================
   19. SECTION MESSAGES DANS LE DASHBOARD (RESPONSIVE MASTER-DETAIL & DESIGN PRO)
   ========================================================================== */

#section-messages.active {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: calc(100vh - 110px) !important;
  min-height: 560px !important;
}

@media (max-width: 860px) {
  #section-messages.active {
    height: calc(100dvh - 130px) !important;
    min-height: 460px !important;
  }
}

.messages-page-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 12px;
}

.messages-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 0;
}

.messages-header-left {
  display: flex;
  flex-direction: column;
}

.messages-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.messages-page-header h2 {
  margin-bottom: 2px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.messages-page-header p {
  color: var(--text-3);
  font-size: 13px;
}

.messages-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messages-header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(18, 183, 106, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.messages-unread-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

/* ── LAYOUT PRINCIPAL DE LA MESSAGERIE ── */
.dash-inbox-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  height: min(740px, calc(100vh - 160px));
  min-height: 560px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.07);
  position: relative;
  transition: all var(--transition, 0.2s ease);
}

[data-theme="dark"] .dash-inbox-layout {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

/* ── COLONNE GAUCHE : LISTE ── */
.inbox-sidebar-col {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface-2);
  position: relative;
  z-index: 2;
}

.inbox-list-topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.inbox-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inbox-heading-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inbox-heading-title h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.inbox-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft-2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* Filtres pills Toutes / Non lues */
.inbox-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.inbox-filter-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inbox-filter-btn:hover {
  color: var(--text);
}

.inbox-filter-btn.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.inbox-filter-btn .filter-count {
  font-size: 11px;
  opacity: 0.8;
}

.inbox-filter-btn .unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Barre de recherche avec bouton effacer */
.inbox-search-header {
  padding: 0;
}

.inbox-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inbox-search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--surface);
}

.inbox-search-wrapper .search-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

.inbox-search-wrapper input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--text);
  padding: 0;
}

.inbox-search-wrapper input::placeholder {
  color: var(--text-3);
}

.inbox-search-clear {
  border: none;
  background: var(--surface-3);
  color: var(--text-2);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.12s ease;
}

.inbox-search-clear:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ── LISTE DES CONVERSATIONS ── */
.inbox-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.inbox-list::-webkit-scrollbar {
  width: 5px;
}

.inbox-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.16s ease;
  background: var(--surface);
  position: relative;
  user-select: none;
}

.inbox-item:hover {
  background: var(--surface-2);
}

.inbox-item.active {
  background: var(--accent-soft-2);
  border-left-color: var(--accent);
}

[data-theme="dark"] .inbox-item.active {
  background: rgba(76, 130, 255, 0.14);
}

.inbox-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #3f7aff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(26, 92, 255, 0.2);
}

.inbox-item-avatar.avatar-seller {
  background: linear-gradient(135deg, #128a5b 0%, #22c55e 100%);
  box-shadow: 0 2px 8px rgba(18, 138, 91, 0.2);
}

.inbox-item-avatar .avatar-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--surface);
}

.inbox-item-content {
  flex: 1;
  min-width: 0;
}

.inbox-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.inbox-item-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.inbox-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-2);
  flex-shrink: 0;
}

.inbox-role-badge.buyer {
  background: rgba(26, 92, 255, 0.1);
  color: var(--accent);
}

.inbox-item-time {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.inbox-item-ad-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 11.5px;
}

.inbox-item-ad-thumb {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.inbox-item-ad {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inbox-item-preview {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.inbox-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(26, 92, 255, 0.35);
  flex-shrink: 0;
}

/* ── COLONNE DROITE : FENÊTRE DE CHAT ── */
.inbox-chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  position: relative;
  height: 100%;
}

/* En-tête du chat actif */
.inbox-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  z-index: 5;
}

.inbox-header-user-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Bouton retour (mobile uniquement) */
.inbox-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.inbox-back-btn:active {
  background: var(--accent-soft-2);
  color: var(--accent);
  transform: scale(0.95);
}

.inbox-user-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.active-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.inbox-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inbox-user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.active-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent-soft-2);
  color: var(--accent);
  white-space: nowrap;
}

.inbox-chat-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success-soft);
}

/* Mini fiche annonce liée dans l'en-tête */
.inbox-header-ad-side {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.inbox-ad-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.16s ease;
  max-width: 320px;
}

.inbox-ad-card-link:hover {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: var(--shadow-sm);
}

.inbox-ad-card-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inbox-ad-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inbox-ad-thumb-placeholder {
  font-size: 16px;
}

.inbox-ad-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.inbox-ad-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.inbox-ad-card-price {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent);
}

.inbox-ad-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  margin-left: 2px;
  transition: all 0.15s ease;
}

.inbox-ad-card-link:hover .inbox-ad-link-btn {
  background: var(--accent);
  color: #fff;
}

/* ── BANNIÈRE SÉCURITÉ ── */
.inbox-safety-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(26, 92, 255, 0.04);
  border-bottom: 1px solid rgba(26, 92, 255, 0.08);
  font-size: 11.5px;
  color: var(--text-2);
}

.inbox-safety-banner svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── ZONE DES MESSAGES DÉROULANTE ── */
.inbox-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px clamp(14px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.inbox-chat-messages::-webkit-scrollbar {
  width: 5px;
}

.inbox-chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

/* Rangée de message */
.msg-row {
  display: flex;
  width: 100%;
  animation: fadeInMsg 0.18s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-row.mine {
  justify-content: flex-end;
}

.msg-row.them {
  justify-content: flex-start;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: min(78%, 520px);
}

.msg-row.mine .msg-bubble-wrap {
  align-items: flex-end;
}

.msg-row.them .msg-bubble-wrap {
  align-items: flex-start;
}

/* Bulle de message */
.msg-bubble {
  padding: 10px 15px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.msg-row.mine .msg-bubble {
  background: linear-gradient(135deg, var(--accent) 0%, #3572ff 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(26, 92, 255, 0.25);
}

.msg-row.them .msg-bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
}

[data-theme="dark"] .msg-row.them .msg-bubble {
  background: var(--surface-2);
  border-color: var(--border);
}

/* Métadonnées de bulle (Heure + statut de lecture) */
.msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 4px;
  padding: 0 4px;
}

.msg-checkmarks {
  display: inline-flex;
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
}

/* Message système (avertissement ou info Soukly) */
.msg-system-box {
  align-self: center;
  max-width: 90%;
  margin: 10px 0;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

/* ── BARRE DES RÉPONSES RAPIDES ── */
.inbox-quick-replies {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.inbox-quick-replies::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.quick-chip:hover {
  background: var(--accent-soft-2);
  border-color: var(--accent);
  color: var(--accent);
}

.quick-chip:active {
  transform: scale(0.96);
}

/* ── ZONE DE SAISIE DE MESSAGE ── */
.inbox-chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 5;
}

.inbox-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 4px 14px;
  transition: all 0.18s ease;
}

.inbox-input-wrapper:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.inbox-input-wrapper input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
  padding: 8px 0;
}

.inbox-input-wrapper input::placeholder {
  color: var(--text-3);
}

.inbox-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, #0046e6 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 92, 255, 0.35);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.inbox-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 92, 255, 0.45);
}

.inbox-send-btn:active {
  transform: translateY(1px);
}

.inbox-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   ADAPTATION RESPONSIVE SMARTPHONE & TABLETTE (MESSAGERIE)
   ========================================================================== */
@media (max-width: 860px) {
  .messages-page-shell {
    gap: 8px;
  }

  /* Sur smartphone, l'en-tête de page reste compact */
  .messages-page-header {
    display: none !important;
  }

  /* Mise en place du mode maître-détail */
  .dash-inbox-layout {
    grid-template-columns: 1fr !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  /* Mode liste active : cacher le panneau de chat */
  .dash-inbox-layout.view-list .inbox-sidebar-col {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    border-right: none !important;
  }

  .dash-inbox-layout.view-list .inbox-chat-pane {
    display: none !important;
  }

  /* Mode chat actif : cacher la liste et afficher le chat plein écran */
  .dash-inbox-layout.view-chat .inbox-sidebar-col {
    display: none !important;
  }

  .dash-inbox-layout.view-chat .inbox-chat-pane {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Le bouton retour devient visible dans le chat actif */
  .inbox-back-btn {
    display: flex !important;
  }

  /* Header du chat sur mobile */
  .inbox-chat-header {
    padding: 10px 12px;
    min-height: 60px;
  }

  .active-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .active-user-name {
    font-size: 13.5px;
    max-width: 110px;
  }

  /* Mini annonce plus compacte sur smartphone */
  .inbox-ad-card-link {
    padding: 4px 8px;
    max-width: 140px;
    gap: 6px;
  }

  .inbox-ad-card-thumb {
    width: 28px;
    height: 28px;
  }

  .inbox-ad-card-title {
    max-width: 75px;
    font-size: 11px;
  }

  .inbox-ad-card-price {
    font-size: 10.5px;
  }

  .inbox-ad-link-btn {
    display: none;
  }

  .inbox-chat-messages {
    padding: 14px 10px;
    gap: 9px;
  }

  .msg-bubble-wrap {
    max-width: 88%;
  }

  .msg-bubble {
    padding: 8px 12px;
    font-size: 13px;
  }

  .inbox-quick-replies {
    padding: 6px 10px;
    gap: 6px;
  }

  .quick-chip {
    padding: 5px 10px;
    font-size: 11px;
  }

  .inbox-chat-input-row {
    padding: 8px 10px;
    gap: 8px;
  }

  .inbox-send-btn {
    padding: 9px 12px;
  }

  .inbox-send-btn span {
    display: none;
  }
}

@media (max-width: 420px) {
  .inbox-ad-card-link {
    max-width: 115px;
  }

  .inbox-ad-card-title {
    max-width: 58px;
  }

  .active-user-name {
    max-width: 88px;
  }
}

/* ==========================================================================
   20. SECTION FAVORIS DANS LE DASHBOARD
   ========================================================================== */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.favorite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 180ms ease;
  box-shadow: var(--shadow-sm);
}

.favorite-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.fav-card-img-wrap {
  position: relative;
  height: 160px;
  background: var(--surface-3);
}

.fav-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-card-price-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 22, 41, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

.btn-remove-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  transition: all 140ms ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-remove-fav:hover {
  transform: scale(1.15);
  background: #fff;
}

.fav-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fav-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.fav-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ==========================================================================
   21. SECTION PARAMÈTRES DANS LE DASHBOARD
   ========================================================================== */
.settings-tabs-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-top: 16px;
}

.settings-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  height: fit-content;
}

.settings-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 140ms ease;
}

.settings-nav-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.settings-nav-btn.active {
  background: var(--accent);
  color: #fff;
}

.settings-content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}

.settings-sub-pane {
  display: none;
}

.settings-sub-pane.active {
  display: block;
  animation: fadeIn 180ms ease;
}

.settings-form-group {
  margin-bottom: 18px;
}

.settings-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.toggle-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: 12px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-strong);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

@media (max-width: 768px) {
  .settings-tabs-container {
    grid-template-columns: 1fr;
  }
  .settings-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   BARRE DE NAVIGATION BASSE MOBILE (SMARTPHONES) & ULTRA-RESPONSIVE PRO
   ══════════════════════════════════════════════════════════════════════ */
.dashboard-mobile-nav {
  display: none;
}

@media (max-width: 860px) {
  /* Empêcher tout débordement global */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .dashboard-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    display: block !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding-bottom: 84px !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
  }

  .dashboard-mobile-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid var(--border) !important;
    z-index: 900 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 4px !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
  }

  [data-theme="dark"] .dashboard-mobile-nav {
    background: rgba(18, 26, 36, 0.94) !important;
  }

  .dash-mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: all 160ms ease;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .dash-mob-nav-item:active {
    transform: scale(0.92);
  }

  .dash-mob-nav-item.active {
    color: var(--accent);
  }

  .dash-mob-nav-item svg {
    transition: transform 160ms ease;
  }

  .dash-mob-nav-item.active svg {
    transform: translateY(-1px);
    stroke: var(--accent);
  }

  .dash-mob-publish-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(26, 92, 255, 0.4);
    margin-top: -14px;
    transition: transform 160ms ease;
  }

  .dash-mob-publish-btn:hover {
    transform: scale(1.08);
  }

  .dash-mob-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 4px;
  }

  /* Header compact mobile */
  .dashboard-header {
    padding: 0 12px !important;
    height: 56px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    width: 100% !important;
  }
  .dash-search-box {
    display: none !important;
  }
  .header-right .btn-primary {
    display: none !important;
  }

  /* Contenu du dashboard */
  .dashboard-content {
    padding: 12px 10px 84px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Stats grid responsive 2x2 */
  .stats-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }
  .stat-card {
    padding: 12px 10px !important;
    border-radius: var(--r-md) !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .stat-card-val {
    font-size: 18px !important;
    margin: 4px 0 2px !important;
  }
  .stat-card-label {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     SECTION "MES ANNONCES" (MODE CARTES MOBILES)
     ═════════════════════════════════════════════════════════════════ */
  .table-card-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .table-header-controls {
    padding: 0 0 12px 0 !important;
    border-bottom: none !important;
    gap: 8px !important;
  }

  .status-tabs-row {
    padding-bottom: 4px !important;
    gap: 6px !important;
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .status-tabs-row::-webkit-scrollbar {
    display: none;
  }

  .status-tab-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  .table-tools-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .tools-left, .inline-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tools-right {
    width: 100% !important;
  }
  .tools-right label {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .tools-right select {
    flex: 1 !important;
  }

  .bulk-actions-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-radius: var(--r-md) !important;
    margin-bottom: 10px !important;
  }
  .bulk-actions-group {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .bulk-actions-group .btn {
    padding: 7px 4px !important;
    font-size: 11px !important;
    justify-content: center !important;
  }

  /* Rendu en cartes mobiles */
  .table-responsive {
    overflow: visible !important;
    width: 100% !important;
  }

  .ads-table,
  .ads-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .ads-table thead {
    display: none !important;
  }

  .ads-table tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
    padding: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    gap: 8px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ads-table td {
    display: flex !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .ads-table tr td:nth-child(3) {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
  }

  .ads-table tr td:nth-child(4) {
    display: inline-flex !important;
    width: auto !important;
    align-self: flex-start !important;
  }

  .ads-table tr td:nth-child(5) {
    font-size: 11.5px !important;
    color: var(--text-2) !important;
    background: var(--surface-2) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
  }

  .ads-table tr td:nth-child(6) {
    font-size: 11px !important;
    color: var(--text-3) !important;
  }

  /* Checkbox en haut à droite */
  .ads-table td.col-cb {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: auto !important;
    z-index: 2 !important;
  }
  .ads-table td.col-cb input {
    width: 18px !important;
    height: 18px !important;
  }

  /* Info annonce */
  .ad-info-cell {
    width: 100% !important;
    padding-right: 28px !important;
    gap: 10px !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  .ad-thumb-wrap {
    width: 64px !important;
    height: 50px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .ad-meta-block {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .ad-meta-block .ad-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Actions en bas de carte */
  .table-actions-cell {
    border-top: 1px solid var(--border) !important;
    padding-top: 8px !important;
    margin-top: 2px !important;
    width: 100% !important;
  }
  .action-buttons-group {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }
  .btn-icon-action {
    flex: 1 !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: var(--surface-2) !important;
    display: grid !important;
    place-items: center !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     SECTION "PUBLIER" (WIZARD MOBILE)
     ═════════════════════════════════════════════════════════════════ */
  .publish-wizard-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 14px !important;
  }
  .wizard-card {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .wizard-preview-card {
    width: 100% !important;
  }
  .wizard-progress-bar {
    display: flex !important;
    justify-content: space-between !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    gap: 4px !important;
  }
  .wizard-progress-bar::before {
    display: none !important;
  }
  .wizard-step-node {
    flex-shrink: 0 !important;
  }
  .category-picker-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .photo-grid-preview {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .boost-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* ═════════════════════════════════════════════════════════════════
     SECTION "FAVORIS" & "PARAMÈTRES"
     ═════════════════════════════════════════════════════════════════ */
  .favorites-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .settings-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .settings-card {
    padding: 14px 12px !important;
  }
}

@media (max-width: 480px) {
  .stats-cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .stat-card-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
  }
  .stat-card-title {
    font-size: 10.5px !important;
  }
  .dashboard-header {
    height: 52px !important;
  }
}


