/* Binder cards (Bootstrap grid)
 * - Min 4 colonnes (XL=5, XXL=6)
 * - Gouttières 2px + 2px aux bords via .zbd-grid-edge-tight
 * - Image only, plein cadre (ratio 63/88 unique)
 * - Badge code collé (espace réservé par padding-top sur le wrap)
 * - Drag handle discret (plus de flèches)
 */

.zbd-badge {
  font-size: .75rem;
}

.zbd-muted {
  color: #9aa0a6;
}

/* 2px aux bords en compensant le padding de .card-body */
.zbd-grid-edge-tight {
  margin-left: calc(-1rem + 2px);
  margin-right: calc(-1rem + 2px);
}

#binder-cards.zbd-layout-fixed {
  display: grid !important;
  grid-template-columns: repeat(var(--zbd-cols, 4), minmax(0, var(--zbd-max-card-width, 9999px)));
  gap: var(--zbd-gap-y, 2px) var(--zbd-gap-x, 2px);
  justify-content: center;
}

#binder-cards.zbd-layout-fixed>.col {
  width: 100% !important;
  max-width: var(--zbd-max-card-width, 9999px);
  padding: 0 !important;
}

#binder-cards .zbd-page-break {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  width: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px auto 4px auto;
  padding: 0;
  color: #dfe6f1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

#binder-cards .zbd-page-break::before,
#binder-cards .zbd-page-break::after {
  content: '';
  flex: 0 0 70px;
  max-width: 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#binder-cards .zbd-page-break.is-first {
  margin-top: 0;
  padding-top: 0;
}

#binder-cards .zbd-page-first-row .zbd-card-wrap {
  padding-top: 6px;
}

/* Inline layout selector */
#zbd-layout-chip {
  flex-direction: row;
  align-items: center;
  padding: 6px 10px;
  gap: 10px;
}

#zbd-layout-chip .chip-label {
  margin: 0;
  font-size: 0.82rem;
}

#zbd-layout-chip select {
  min-width: 150px;
}

/* Réserve l'espace du badge SANS chevauchement sur la ligne du dessus */
.zbd-card-wrap {
  position: relative;
  padding-top: 25px;
  /* espace pour le badge */
}

/* Carte compacte, bas à 2px, pas d’étirement forcé */
.zbd-card {
  position: relative;
  /* ancre badge, delete */
  border: 1px solid #2a2a2a;
  border-radius: clamp(10px, 3vw, 14px);
  padding: clamp(4px, 1vw, 6px) clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 8px);
  background: #0f1114;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
  display: block;
  height: auto;
  width: 100%;
  cursor: default;
  overflow: hidden;
}

/* Badge: visuellement "au-dessus" de la carte, mais dans l'espace réservé */
.zbd-code-badge-outside {
  position: absolute;
  left: 50%;
  top: -25px;
  /* colle le bas du badge au haut de la carte */
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

/* Delete en haut-droite — base (petit écran) : taille originale, pas de cercle */
.zbd-delete-entry {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 8;
  /* > stretched-link et flèches */
  color: #fff;
  background: transparent;
  /* pas de changement de taille en small */
  border: none;
  line-height: 1;
  padding: 0;
  /* pas de width/height → garde la taille d’icône par défaut en small */
}

.zbd-delete-entry:hover,
.zbd-delete-entry:focus {
  color: #fff;
  text-decoration: none;
}

/* -------- Image only (plein cadre) -------- */
.zbd-card .zbd-image-box {
  margin: 0 !important;
}

/* aucune marge parasite */

.zbd-image-box {
  position: relative;
  /* ancre l’overlay des flèches */
  width: 100%;
  aspect-ratio: 63 / 88;
  /* ratio unique */
  border-radius: 10px;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #11151c 0%, #181c24 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.zbd-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.zbd-card.is-move-mode {
  cursor: grab;
}

.zbd-card.is-move-mode .zbd-delete-entry {
  display: none !important;
}

.zbd-card.is-move-mode {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-drag: none;
}

.zbd-card.is-move-mode .zbd-thumb {
  pointer-events: none;
}

.zbd-card .zbd-price-badge {
  pointer-events: none;
}

/* Quick add FAB overlay (override legacy large FAB) */
.zbd-card .btn-zbd-fab {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zbd-accent);
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 20;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.zbd-card .btn-zbd-fab:hover {
  transform: scale(1.1);
  background: var(--zbd-accent-hover);
  border-color: rgba(255, 255, 255, 0.4);
  color: #000;
}

.zbd-card .btn-zbd-fab.added {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.zbd-card .btn-zbd-fab.added:hover {
  background: transparent;
  transform: scale(1.1);
}

.zbd-card .btn-zbd-fab.added img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.zbd-card .btn-zbd-fab img {
  border-radius: 50%;
  object-fit: cover;
}

/* Bouton drag (visible seulement en réorg) */
.zbd-drag-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(0, 0, 0, .65);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
  z-index: 9;
  /* au-dessus de l’overlay de nav */
  padding: 0;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.zbd-drag-btn:focus,
.zbd-drag-btn:hover {
  background: rgba(0, 0, 0, .85);
  border-color: #fff;
}

.zbd-card.is-move-mode .zbd-drag-btn {
  display: flex;
}

/* Overlay button pour bloquer les callouts mobiles et gérer la nav */
.zbd-card-overlay-btn {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  z-index: 6;
  /* sous la croix (z=8) */
  cursor: inherit;
  -webkit-touch-callout: none;
  user-select: none;
}

.price-field {
  display: none;
}

/* Variant badge (parité collection) */
.zbd-image-box .variant-badge {
  position: absolute;
  left: 50%;
  bottom: 30%;
  transform: translate(-50%, 50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  font-weight: 600;
  padding: 0.3em 0.9em;
  border-radius: 0.5rem;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.zbd-card .variant-badge--reverse {
  background: rgba(220, 240, 255, 0.55);
}

.zbd-card .variant-badge--pokeball {
  background: rgba(255, 235, 220, 0.55);
}

.zbd-card .variant-badge--masterball {
  background: rgba(235, 220, 255, 0.6);
}

/* Header / footer slab */
.zbd-card-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #232c3d 0%, #161c29 100%);
  color: #f8fafc;
  border-radius: 10px;
  padding: clamp(6px, 1.2vw, 9px) clamp(8px, 1.8vw, 12px);
  margin-bottom: clamp(4px, 1vw, 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --zbd-status-color: #3a4a64;
  --zbd-status-overlay: rgba(255, 255, 255, 0.08);
  --zbd-status-stripe: rgba(255, 255, 255, 0.12);
}

.zbd-card-header>* {
  position: relative;
  z-index: 1;
}

.zbd-card-header::before,
.zbd-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zbd-card-header::before {
  background:
    linear-gradient(180deg, var(--zbd-status-overlay), var(--zbd-status-overlay)),
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 12px,
      var(--zbd-status-stripe) 12px,
      var(--zbd-status-stripe) 22px);
  opacity: .55;
  z-index: 0;
}

.zbd-card-header::after {
  width: 4px;
  inset: 0 auto 0 0;
  background: var(--zbd-status-color);
  opacity: .65;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 0;
}

.zbd-card-header.status-collection {
  --zbd-status-color: #0f294c;
  --zbd-status-overlay: rgba(62, 101, 150, 0.18);
  --zbd-status-stripe: rgba(96, 138, 192, 0.3);
}

.zbd-card-header.status-sell {
  --zbd-status-color: #d97706;
  --zbd-status-overlay: rgba(217, 119, 6, 0.14);
  --zbd-status-stripe: rgba(217, 119, 6, 0.22);
}

.zbd-card-header.status-wishlist {
  --zbd-status-color: #7c3aed;
  --zbd-status-overlay: rgba(124, 58, 237, 0.14);
  --zbd-status-stripe: rgba(124, 58, 237, 0.22);
}

.zbd-card-header.status-sold {
  --zbd-status-color: #9ca3af;
  --zbd-status-overlay: rgba(156, 163, 175, 0.18);
  --zbd-status-stripe: rgba(156, 163, 175, 0.28);
}

.zbd-card-title {
  color: #e5e7eb;
}

.zbd-card-seriesname {
  color: #cbd5e1;
}

.zbd-card-status {
  color: #cbd5e1;
}

.zbd-card-code {
  color: #e5e7eb;
}

.zbd-card-state {
  color: #f8fafc;
}

/* Stats pane */
.zbd-stat-tile {
  background: linear-gradient(180deg, #11151c 0%, #0d1016 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.zbd-stat-label {
  font-size: 0.78rem;
  color: #9ca3af;
}

.zbd-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.2;
}

.zbd-stat-panel {
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.zbd-stat-panel-title {
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.zbd-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.zbd-stat-row:last-child {
  border-bottom: none;
}

.zbd-stat-list>div {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.zbd-stat-list>div:last-child {
  border-bottom: none;
}

.zbd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.zbd-stats-item {
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #0f1114;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.zbd-stats-left {
  width: 72px;
  min-width: 72px;
}

.zbd-stat-code-block {
  display: block;
  max-width: 100%;
  padding: 4px 6px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.zbd-stats-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #161b26 0%, #0f131b 100%);
  border-radius: 10px;
  padding: 8px;
  margin: 4px 6px 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --zbd-status-color: #3a4a64;
  --zbd-status-overlay: rgba(255, 255, 255, 0.08);
  --zbd-status-stripe: rgba(255, 255, 255, 0.12);
}

.zbd-stats-tile>* {
  position: relative;
  z-index: 1;
}

.zbd-stats-tile::before,
.zbd-stats-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zbd-stats-tile::before {
  background:
    linear-gradient(180deg, var(--zbd-status-overlay), var(--zbd-status-overlay)),
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 12px,
      var(--zbd-status-stripe) 12px,
      var(--zbd-status-stripe) 22px);
  opacity: .6;
  z-index: 0;
}

.zbd-stats-tile::after {
  width: 3px;
  inset: 6px auto 6px 0;
  border-radius: 4px;
  background: var(--zbd-status-color);
  opacity: .8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  z-index: 0;
}

.zbd-stats-tile.status-collection {
  --zbd-status-color: #0f294c;
  --zbd-status-overlay: rgba(62, 101, 150, 0.18);
  --zbd-status-stripe: rgba(96, 138, 192, 0.3);
}

.zbd-stats-tile.status-sell {
  --zbd-status-color: #d97706;
  --zbd-status-overlay: rgba(217, 119, 6, 0.14);
  --zbd-status-stripe: rgba(217, 119, 6, 0.22);
}

.zbd-stats-tile.status-wishlist {
  --zbd-status-color: #7c3aed;
  --zbd-status-overlay: rgba(124, 58, 237, 0.14);
  --zbd-status-stripe: rgba(124, 58, 237, 0.22);
}

.zbd-stats-tile.status-sold {
  --zbd-status-color: #9ca3af;
  --zbd-status-overlay: rgba(156, 163, 175, 0.18);
  --zbd-status-stripe: rgba(156, 163, 175, 0.28);
}

.zbd-stats-thumb-wrap {
  width: 72px;
  min-width: 72px;
  position: relative;
}

.zbd-stats-thumb {
  width: 72px;
  height: auto;
  background: #1a1d24;
  display: block;
}

.zbd-stat-price-overlay {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6c64b;
  color: #0b0c0e;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.1;
  pointer-events: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.zbd-stat-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
}

.zbd-stat-name {
  word-break: break-word;
  white-space: normal;
}

.zbd-stat-series {
  color: #9ca3af;
}

.zbd-stat-code {
  color: #e5e7eb;
  font-weight: 600;
}

.zbd-stat-price-top {
  color: #f8fafc;
  white-space: nowrap;
}

.zbd-stat-meta {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 6px 8px;
}

.zbd-stat-meta-row {
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.zbd-stat-meta-row span:first-child {
  color: #c3cbd8;
}

.zbd-stat-meta-row span:last-child {
  font-weight: 600;
  color: #f8fafc;
}

.zbd-stat-desc {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zbd-stats-item .card-body {
  padding: 8px 10px;
  color: #e5e7eb;
}

.zbd-stats-item .card-body .zbd-stat-meta-row span {
  display: inline-block;
  max-width: 65%;
}

.zbd-stats-item .card-body .zbd-stat-meta-row span:last-child {
  max-width: 50%;
  text-align: right;
}

.zbd-card-title {
  font-weight: 700;
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zbd-card-subline {
  font-size: clamp(0.72rem, 1.7vw, 0.82rem);
  color: #4b5563;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zbd-card-code {
  font-size: clamp(0.72rem, 1.8vw, 0.84rem);
  color: #374151;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zbd-card-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zbd-card-seriesname {
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  color: #d9e1ec;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zbd-card-status {
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  color: #cbd5e1;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zbd-card-state {
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.zbd-card-footer {
  margin-top: clamp(4px, 1.2vw, 6px);
  padding: clamp(5px, 1.4vw, 8px);
  background: linear-gradient(180deg, #0d0f12 0%, #0a0c0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
}

.zbd-chip {
  font-size: clamp(10px, 2.2vw, 11px);
  font-weight: 600;
  border-radius: 999px;
  padding: clamp(3px, 0.8vw, 4px) clamp(6px, 1.4vw, 8px);
  line-height: 1.1;
  border: 1px solid transparent;
}

.zbd-chip-code {
  background: #111827;
  color: #f9fafb;
}

.zbd-chip-status {
  background: #1f2937;
  color: #e5e7eb;
}

.zbd-chip-grading {
  background: #ede9fe;
  color: #4c1d95;
}

.zbd-chip-floating {
  position: absolute;
  z-index: 5;
  font-size: clamp(10px, 2.3vw, 11px);
  font-weight: 700;
  border-radius: 999px;
  padding: clamp(3px, 0.9vw, 4px) clamp(7px, 1.8vw, 9px);
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ZebraDex add (chips) */
.zbd-zbd-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zbd-zbd-chip {
  background: linear-gradient(180deg, #0f141b 0%, #0b0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 8px 10px;
  color: #e5e7eb;
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
  min-width: 240px;
}

.zbd-zbd-chip img {
  object-fit: contain;
  background: #0f1114;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.zbd-zbd-chip .zbd-zbd-name {
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zbd-zbd-chip .zbd-zbd-code {
  font-size: 0.78rem;
}

.zbd-zbd-chip .zbd-zbd-status {
  font-size: 0.75rem;
}

.zbd-zbd-chip .zbd-zbd-qty {
  font-size: 0.75rem;
}

.zbd-zbd-chip .btn {
  white-space: nowrap;
}

.zbd-zbd-actions {
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 576px) {
  .zbd-zbd-actions {
    width: auto;
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .zbd-zbd-chip {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (min-width: 992px) {
  .zbd-zbd-chip {
    flex: 0 0 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
  }
}

@media (min-width: 1400px) {
  .zbd-zbd-chip {
    flex: 0 0 calc(25% - 8px);
    max-width: calc(25% - 8px);
  }
}

/* View pills */
.zbd-view-pills {
  background: rgba(17, 20, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.zbd-view-pills .nav-link {
  color: #e5e7eb;
  border-radius: 12px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  flex: 0 1 120px;
  text-align: center;
  white-space: nowrap;
}

.zbd-view-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.zbd-view-pills .nav-link.active {
  background: linear-gradient(180deg, #3c6ba3 0%, #29456a 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fdfefe;
  font-weight: 700;
}

.zbd-view-pills .nav-link i {
  font-size: 1rem;
}

/* Visibilité */
.zbd-visibility-chip {
  background: linear-gradient(180deg, #11161e 0%, #0b0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 12px;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zbd-visibility-chip .form-check {
  margin: 0;
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zbd-visibility-chip .form-check-input {
  margin: 0;
}

.zbd-visibility-chip .form-check-label {
  margin: 0;
}

.zbd-visibility-label {
  font-weight: 700;
  color: #f9fafb;
}

@media (max-width: 575px) {
  .zbd-view-pills .nav-link {
    flex: 1 1 48%;
  }
}

/* Pane cards */
.zbd-pane-card {
  background: linear-gradient(180deg, #11161e 0%, #0b0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.zbd-pane-card .form-control,
.zbd-pane-card .form-select {
  background-color: #0f141b;
  border-color: #243650;
  color: #e5e7eb;
}

.zbd-pane-card .form-control:focus,
.zbd-pane-card .form-select:focus {
  background-color: #0f141b;
  border-color: #3c6ba3;
  box-shadow: 0 0 0 0.15rem rgba(60, 107, 163, 0.35);
  color: #f8fafc;
}

.zbd-pane-card .form-control::placeholder {
  color: #9ca3af;
}

/* Move toggle */
#zbd-move-toggle {
  background: linear-gradient(180deg, #0f141b 0%, #0b0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-weight: 600;
  border-radius: 10px;
}

#zbd-move-toggle:hover,
#zbd-move-toggle:focus {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

#zbd-move-toggle.btn-warning {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #0b0f15;
}

.zbd-chip-status-price {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.zbd-chip-status-price.zbd-chip-sell {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(217, 119, 6, 0.95));
  border-color: rgba(252, 211, 77, 0.9);
  color: #0f0c05;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.zbd-chip-status-price.zbd-chip-wishlist {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(124, 58, 237, 0.95));
  border-color: rgba(196, 181, 253, 0.9);
  color: #f9fafb;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.zbd-chip-positive {
  background: #1c7c3a;
  border-color: #23a14b;
}

.zbd-chip-negative {
  background: #9b1c1c;
  border-color: #c53030;
}

.zbd-chip-neutral {
  background: rgba(0, 0, 0, 0.7);
}

.zbd-card-footer .zbd-chip {
  padding: clamp(3px, 0.9vw, 4px) clamp(6px, 1.6vw, 8px);
}

.zbd-card-header .zbd-chip,
.zbd-card-footer .zbd-chip {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dense mode on very small widths */
@media (max-width: 430px) {
  .zbd-card {
    padding: 4px;
  }

  .zbd-card-header {
    padding: 6px 8px;
  }

  .zbd-chip-floating {
    font-size: 11px;
  }
}

/* Drop hints */
.zbd-card.drop-before,
.zbd-card.drop-after {
  outline: 2px solid rgba(246, 198, 75, .65);
  outline-offset: -2px;
}

.zbd-card.drop-before::before,
.zbd-card.drop-after::before {
  content: '';
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(246, 198, 75, .95) 0%, rgba(255, 236, 179, .9) 50%, rgba(246, 198, 75, .95) 100%);
  box-shadow: 0 0 12px rgba(246, 198, 75, .75);
  pointer-events: none;
}

.zbd-card.drop-before::before {
  left: -8px;
}

.zbd-card.drop-after::before {
  right: -8px;
}

.zbd-card.is-saving {
  opacity: .6;
  pointer-events: none;
}

/* --------- Responsive : agrandir drag handle & croix en grand écran --------- */
@media (min-width: 1400px) {
  .zbd-delete-entry {
    /* en XL+ : cercle contrasté, taille plus grande */
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    backdrop-filter: saturate(120%) blur(1px);
    font-size: 14px;
  }

  .zbd-delete-entry:hover,
  .zbd-delete-entry:focus {
    background: rgba(0, 0, 0, .75);
    border-color: #fff;
  }
}

@media (min-width: 1800px) {
  .zbd-delete-entry {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

@media (min-width: 2200px) {
  .zbd-delete-entry {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* ------------------------------------------------------------------------
 * Modifs
 * - Drag & drop à la place des flèches.
 * - XL+ : handle et croix grossissent; croix passe en cercle contrasté.
 * - Conserve tout le reste (ratio 63/88, bas à 2px, 2px gutters/edges).
 * --------------------------------------------------------------------- */

/* Allow FAB overflow */
.zbd-card,
.zbd-image-box {
  overflow: visible !important;
}

.zbd-thumb {
  border-radius: 10px;
}
