.wrapper.StumpsLocations {
  background: radial-gradient(
    circle at top,
    rgba(25, 20, 45, 0.85),
    rgba(15, 10, 30, 0.95)
  );
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Search */
.cb-stump-searchbar {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem auto;
}
.cb-stump-searchbar input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 120, 0.3);
  color: #eae7ff;
  font-size: 1rem;
  border-radius: 25px;
  padding: 10px 40px 10px 15px;
  outline: none;
  transition: all 0.3s ease;
}
.cb-stump-searchbar input:focus {
  border-color: #ffd778;
  box-shadow: 0 0 15px rgba(255, 215, 120, 0.25);
}
.cb-stump-searchbar i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd778;
  font-size: 1rem;
}

/* Grid */
.cb-stumps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* Card */
.cb-stump-card {
  background: rgba(25, 20, 45, 0.9);
  border: 1px solid rgba(255, 215, 120, 0.2);
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  color: #eae7ff;
  padding: 1rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cb-stump-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 120, 0.5);
  box-shadow: 0 0 25px rgba(255, 215, 120, 0.25);
}

.cb-stump-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.cb-stump-header h5 {
  color: #ffd778;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 215, 120, 0.3);
}
.cb-stump-rank {
  background: linear-gradient(
    90deg,
    rgba(150, 120, 255, 0.4),
    rgba(255, 215, 120, 0.4)
  );
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.cb-stump-body p {
  margin: 3px 0;
  font-size: 0.85rem;
  color: #d5d3e5;
}

/* Swarm Colors */
.swarm {
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
}
.swarm.overflowing {
  background-color: #009688;
}
.swarm.abundant {
  background-color: #2887d3;
}
.swarm.moderate {
  background-color: #607d8b;
}
.swarm.sparse {
  background-color: #f1940c;
}
.swarm.low {
  background-color: #d7564d;
}

.cb-status {
  font-size: 0.9rem;
  margin-top: 5px;
}
.available-status {
  color: #7cfc00;
}
.lock-status {
  color: #ffae00;
}
.completed-status {
  color: #e74c3c;
}
.current-status {
  color: #00bfff;
}

.cb-stump-footer {
  text-align: right;
  margin-top: 0.8rem;
}
.cb-btn-teleport {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(140, 120, 255, 0.3),
    rgba(255, 215, 120, 0.25)
  );
  border: 1px solid rgba(255, 215, 120, 0.4);
  color: #fff;
  border-radius: 25px;
  padding: 6px 12px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s;
}
.cb-btn-teleport:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 120, 0.4),
    rgba(140, 120, 255, 0.35)
  );
  transform: scale(1.05);
}

.cb-highlight {
  animation: cbGlow 0.4s ease;
}
@keyframes cbGlow {
  from {
    box-shadow: 0 0 20px rgba(255, 215, 120, 0.6);
  }
  to {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  }
}

/* 🌌 Indicateur de rafraîchissement */
#cb-refresh-indicator {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(25, 20, 45, 0.85);
  border: 1px solid rgba(255, 215, 120, 0.3);
  color: #ffd778;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(255, 215, 120, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
  z-index: 9999;
}
#cb-refresh-indicator.active {
  opacity: 1;
  transform: translateY(0);
}

.cb-refresh-glow {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd778, rgba(255, 215, 120, 0.3));
  animation: cbGlowPulse 1.2s infinite ease-in-out;
}
@keyframes cbGlowPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 120, 0.4);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 215, 120, 0.8);
    opacity: 1;
  }
}

/* 🌈 Transition douce sur la grille */
.cb-fade-out {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

/* ✨ Apparition animée des cartes */
.cb-card-fade-in {
  animation: cbCardFadeIn 0.6s ease forwards;
}
@keyframes cbCardFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
    box-shadow: 0 0 0px rgba(255, 215, 120, 0);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(255, 215, 120, 0.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 215, 120, 0.1);
  }
}

/* === 🌸 Nouveau style Celestial pour les cartes Stumps === */

.cb-stump-card {
  background: linear-gradient(
    145deg,
    rgba(30, 25, 55, 0.95),
    rgba(20, 15, 35, 0.95)
  );
  border: 1px solid rgba(255, 215, 120, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  color: #eae7ff;
  padding: 1.2rem 1rem 1rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.cb-stump-card:hover {
  border-color: rgba(255, 215, 120, 0.5);
  box-shadow: 0 0 25px rgba(255, 215, 120, 0.25);
  transform: translateY(-4px);
}

/* Header */
.cb-stump-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  flex-direction: column;
}
.cb-stump-title h5 {
  font-size: 1.2rem;
  color: #ffd778;
  font-weight: 700;
  margin-bottom: 2px;
  text-shadow: 0 0 6px rgba(255, 215, 120, 0.25);
}
.cb-stump-owner {
  font-size: 0.85rem;
  color: #c6c3e0;
  margin: 0;
}
.cb-stump-rankbox {
  text-align: right;
}
.cb-stump-rank {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(150, 120, 255, 0.4),
    rgba(255, 215, 120, 0.4)
  );
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 3px;
}
.cb-stump-multi {
  display: block;
  font-size: 0.9rem;
  color: #ffd778;
  font-weight: 600;
}

/* Body grid */
.cb-stump-body {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
  flex-direction: column;
}
.cb-stump-col p {
  margin: 3px 0;
}
.cb-stump-col i {
  color: #a597ff;
  width: 18px;
}

/* Swarm colors */
.swarm {
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
}
.swarm.overflowing {
  background-color: #009688;
}
.swarm.abundant {
  background-color: #2887d3;
}
.swarm.moderate {
  background-color: #607d8b;
}
.swarm.sparse {
  background-color: #f1940c;
}
.swarm.low {
  background-color: #d7564d;
}

/* Footer */
.cb-stump-footer {
  text-align: center;
  margin-top: 0.9rem;
}
.cb-btn-teleport {
  background: linear-gradient(
    90deg,
    rgba(140, 120, 255, 0.3),
    rgba(255, 215, 120, 0.25)
  );
  border: 1px solid rgba(255, 215, 120, 0.3);
  color: #fff;
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s;
}
.cb-btn-teleport:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 120, 0.45),
    rgba(140, 120, 255, 0.35)
  );
  transform: scale(1.06);
}
/* === 🌟 Styles selon le multiplicateur === */

.cb-stump-card.multi-normal {
  border-color: rgba(255, 215, 120, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cb-stump-card.multi-event {
  border-color: rgba(255, 230, 150, 0.6);
  box-shadow: 0 0 20px rgba(255, 230, 150, 0.25);
  background: linear-gradient(
    145deg,
    rgba(40, 30, 60, 0.95),
    rgba(25, 20, 45, 0.95)
  );
}
.cb-stump-card.multi-event:hover {
  box-shadow: 0 0 35px rgba(255, 230, 150, 0.35);
  transform: translateY(-3px);
}

/* 💎 Rare (x2.5 à x3.5) — teintes roses-magenta */
.cb-stump-card.multi-rare {
  border-color: rgba(255, 160, 220, 0.6);
  box-shadow: 0 0 25px rgba(255, 160, 220, 0.25);
  background: linear-gradient(
    145deg,
    rgba(50, 25, 65, 0.95),
    rgba(30, 15, 40, 0.95)
  );
}
.cb-stump-card.multi-rare:hover {
  box-shadow: 0 0 45px rgba(255, 160, 220, 0.35);
  transform: translateY(-3px);
}

/* 🌌 Epic (x4+) — halo bleu lumineux animé */
.cb-stump-card.multi-epic {
  border-color: rgba(120, 200, 255, 0.7);
  box-shadow: 0 0 25px rgba(120, 200, 255, 0.3);
  background: linear-gradient(
    145deg,
    rgba(20, 25, 60, 0.95),
    rgba(10, 10, 35, 0.95)
  );
  position: relative;
  overflow: hidden;
}
.cb-stump-card.multi-epic::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(120, 200, 255, 0.4),
    rgba(255, 255, 255, 0.1),
    rgba(120, 200, 255, 0.4)
  );
  z-index: 0;
  opacity: 0;
  animation: epicPulse 3s infinite ease-in-out;
}
@keyframes epicPulse {
  0%,
  100% {
    opacity: 0.2;
    filter: blur(4px);
  }
  50% {
    opacity: 0.6;
    filter: blur(6px);
  }
}
.cb-stump-card.multi-epic > * {
  position: relative;
  z-index: 1;
}
/* === 🦋 CELestial Stump Cards - Header + Banners === */

.cb-stump-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(30, 25, 55, 0.95),
    rgba(20, 15, 35, 0.95)
  );
  border: 1px solid rgba(255, 215, 120, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  color: #eae7ff;
  padding: 1.2rem 1rem 1rem;
  transition: all 0.4s ease;
  overflow: hidden;
}
.cb-stump-card:hover {
  border-color: rgba(255, 215, 120, 0.5);
  box-shadow: 0 0 25px rgba(255, 215, 120, 0.25);
  transform: translateY(-4px);
}

/* 🏅 Rang en haut à gauche */
.cb-stump-rank-banner {
  position: absolute;
  top: 3px;
  left: 3px;
  /*background: linear-gradient(90deg, rgba(120,100,255,0.4), rgba(255,215,120,0.3));
  border: 1px solid rgba(255,215,120,0.4);*/
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 4px 8px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.cb-stump-card.multi-epic .cb-stump-rank-banner {
  position: absolute;
  top: 3px;
  left: 3px;
  /*background: linear-gradient(90deg, rgba(120,100,255,0.4), rgba(255,215,120,0.3));
  border: 1px solid rgba(255,215,120,0.4);*/
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 4px 8px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* 🎉 Bannière Event avec effet de lueur animée */
.cb-stump-event-banner {
  position: absolute;
  top: 0;
  right: -40px;
  background: linear-gradient(135deg, #ffd778, #fbfaff);
  background-size: 200% 200%;
  color: #1a1530;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 40px;
  padding-bottom: 0;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 215, 120, 0.4);
  text-align: center;
  z-index: 3;
  animation: cbEventGlow 3.5s infinite linear;
}
/* ✨ Animation : défilement de lumière + lueur douce */
@keyframes cbEventGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(255, 215, 120, 0.3),
      0 0 5px rgba(192, 124, 255, 0.2);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 20px rgba(255, 215, 120, 0.5),
      0 0 12px rgba(192, 124, 255, 0.4);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(255, 215, 120, 0.3),
      0 0 5px rgba(192, 124, 255, 0.2);
  }
}
/* 🌟 Variante spéciale pour x4+ (bannière “Epic”) */
.cb-stump-card.multi-epic .cb-stump-event-banner {
  position: absolute;
  top: 0;
  right: -40px;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 40px;
  padding-bottom: 0;
  background: linear-gradient(135deg, #82d1ff, #7930f1, #34779f);
  background-size: 250% 250%;
  color: #ffffff;
  animation: cbEpicShimmer 2.5s infinite ease-in-out;
}
@keyframes cbEpicShimmer {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(120, 200, 255, 0.4);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 25px rgba(180, 140, 255, 0.6);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(120, 200, 255, 0.4);
  }
}

/* === HEADER === */
.cb-stump-header {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  text-align: left;
}
.cb-stump-title h5 {
  font-size: 1.2rem;
  color: #ffd778;
  font-weight: 700;
  margin-bottom: 2px;
  text-shadow: 0 0 6px rgba(255, 215, 120, 0.25);
}
.cb-stump-owner {
  font-size: 0.85rem;
  color: #c6c3e0;
  margin: 0;
}

/* === BODY === */
/*.cb-stump-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.88rem;
}*/
.cb-stump-col p {
  margin: 3px 0;
}
.cb-stump-col i {
  color: #a597ff;
  width: 18px;
}

/* === SWARM COLORS === */
.swarm {
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
}
.swarm.overflowing {
  background-color: #009688;
}
.swarm.abundant {
  background-color: #2887d3;
}
.swarm.moderate {
  background-color: #607d8b;
}
.swarm.sparse {
  background-color: #f1940c;
}
.swarm.low {
  background-color: #d7564d;
}

/* === FOOTER === */
.cb-stump-footer {
  text-align: center;
  margin-top: 0.9rem;
}
.cb-btn-teleport {
  background: linear-gradient(
    90deg,
    rgba(140, 120, 255, 0.3),
    rgba(255, 215, 120, 0.25)
  );
  border: 1px solid rgba(255, 215, 120, 0.3);
  color: #fff;
  border-radius: 25px;
  padding: 6px 18px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s;
}
.cb-btn-teleport:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 120, 0.45),
    rgba(140, 120, 255, 0.35)
  );
  transform: scale(1.06);
  text-decoration: none;
  color: #fff;
}

/* === VARIANTES MULTIPLIER === */
.cb-stump-card.multi-normal {
  border-color: rgba(255, 215, 120, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.cb-stump-card.multi-event {
  border-color: rgba(255, 230, 150, 0.6);
  box-shadow: 0 0 20px rgba(255, 230, 150, 0.25);
}
.cb-stump-card.multi-rare {
  border-color: rgba(255, 160, 220, 0.6);
  box-shadow: 0 0 25px rgba(255, 160, 220, 0.25);
}
.cb-stump-card.multi-epic {
  border-color: rgba(120, 200, 255, 0.7);
  box-shadow: 0 0 25px rgba(120, 200, 255, 0.3);
  background: linear-gradient(
    145deg,
    rgba(20, 25, 60, 0.95),
    rgba(10, 10, 35, 0.95)
  );
  animation: epicPulse 3s infinite ease-in-out;
}
@keyframes epicPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(120, 200, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(120, 200, 255, 0.5);
  }
}
.cb-stumps-grid .cb-stump-card {
  opacity: 0;
  transform: scale(0.96);
  animation: cbCardAppear 0.6s ease forwards;
}
@keyframes cbCardAppear {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* FILTER */
.cb-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cb-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cb-filter-label {
  font-weight: 600;
  color: #ffd778;
  margin-right: 4px;
}

.cb-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 120, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: #eae7ff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cb-filter-btn:hover {
  background: rgba(255, 215, 120, 0.2);
  color: #fff;
}

.cb-filter-btn.active {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 120, 0.5),
    rgba(140, 120, 255, 0.35)
  );
  border-color: rgba(255, 215, 120, 0.5);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 215, 120, 0.3);
}

/* 🌟 Barre d'état au-dessus de la grille */
.cb-stump-stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 120, 0.25);
  border-radius: 25px;
  padding: 6px 18px;
  margin-bottom: 1rem;
  color: #eae7ff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(255, 215, 120, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.cb-stump-stats-bar span {
  color: #ffd778;
  font-weight: 600;
}

/* 🌸 Légende visuelle */
.cb-stump-legend {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 120, 0.25);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  color: #eae7ff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  text-align: left;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}
.cb-stump-legend h6 {
  color: #ffd778;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px rgba(255, 215, 120, 0.25);
}
.cb-stump-legend span {
  font-weight: 500;
}
.cb-legend-section {
  margin-bottom: 0.8rem;
}
.cb-legend-items {
  font-size: 0.9rem;
  color: #cfcbe7;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  align-items: center;
}
.cb-legend-items span {
  display: inline-flex;
  align-items: center;
}

/* 🌀 Points de légende (Traffic) */
.cb-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}
.cb-legend-dot.calm {
  background-color: #2ecc71;
}
.cb-legend-dot.light {
  background-color: #3498db;
}
.cb-legend-dot.active {
  background-color: #f39c12;
}
.cb-legend-dot.crowded {
  background-color: #e74c3c;
}
.cb-legend-dot.overload {
  background-color: #000;
}

/* Harmonisation avec tes badges */
.info-Payment,
.info-red,
.info-green,
.info-blue,
.info-pink,
.info-GR {
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}
.info-Payment {
  background-color: #b71c1c;
}
.info-red {
  background-color: #ff3d3d;
}
.info-green {
  background-color: #4caf50;
}
.info-blue {
  background-color: #2196f3;
}
.info-pink {
  background-color: #e91e63;
}
.info-GR {
  background-color: #9c27b0;
}

/* 🌌 Version responsive et compacte de la légende */
.cb-stump-legend-responsive {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 120, 0.25);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  gap: 1rem;
  color: #eae7ff;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.cb-legend-section {
  flex: 1;
  min-width: 180px;
}

.cb-stump-legend-responsive h6 {
  color: #ffd778;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px rgba(255, 215, 120, 0.25);
}

.cb-legend-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.85rem;
  color: #d5d3e5;
}

.cb-legend-items span {
  display: inline-flex;
  align-items: center;
}

/* Points Traffic */
.cb-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.cb-legend-dot.calm {
  background-color: #2ecc71;
}
.cb-legend-dot.light {
  background-color: #3498db;
}
.cb-legend-dot.active {
  background-color: #f39c12;
}
.cb-legend-dot.crowded {
  background-color: #e74c3c;
}
.cb-legend-dot.overload {
  background-color: #000;
}

/* Harmonisation badges */
.info-Payment,
.info-red,
.info-green,
.info-blue,
.info-pink,
.info-GR {
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}
.info-Payment {
  background-color: #b71c1c;
}
.info-red {
  background-color: #ff3d3d;
}
.info-green {
  background-color: #4caf50;
}
.info-blue {
  background-color: #2196f3;
}
.info-pink {
  background-color: #e91e63;
}
.info-GR {
  background-color: #9c27b0;
}
.info-white {
  background-color: #484b4c00;
}
.info-a {
  background-color: #e91e63;
}
.info-m {
  background-color: #3f51b5;
}
.info-g {
  background-color: #009688;
}

/* ✨ Glow animé doux sur les titres */
.cb-stump-legend-responsive h6 span {
  animation: cbLegendGlow 3s ease-in-out infinite;
}
@keyframes cbLegendGlow {
  0%,
  100% {
    text-shadow: 0 0 6px rgba(255, 215, 120, 0.2);
    color: #ffd778;
  }
  50% {
    text-shadow: 0 0 14px rgba(255, 215, 120, 0.5);
    color: #fff2bb;
  }
}

/* 📱 Adaptation mobile : version horizontale compacte */
@media (max-width: 768px) {
  .cb-stump-legend-responsive {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.6rem;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 120, 0.3) transparent;
  }
  .cb-legend-section {
    min-width: 220px;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 0 6px rgba(255, 215, 120, 0.15);
  }
  .cb-legend-items {
    justify-content: center;
  }
}

/* === 🦋 SWARM DOTS (petits carrés de couleur) === */
.swarm-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

/* Couleurs correspondantes */
.swarm-dot.overflowing {
  background-color: #009688;
} /* Vert émeraude */
.swarm-dot.abundant {
  background-color: #2887d3;
} /* Bleu vif */
.swarm-dot.moderate {
  background-color: #607d8b;
} /* Gris bleuté */
.swarm-dot.sparse {
  background-color: #f1940c;
} /* Orange doré */
.swarm-dot.low {
  background-color: #d7564d;
} /* Rouge clair */

/* === 🌀 TRAFFIC DOTS (pastilles rondes) === */
.traffic-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

.traffic-dot.calm-zone,
.traffic-dot.calm {
  background-color: #2ecc71;
} /* Vert */
.traffic-dot.lightly-visited,
.traffic-dot.light {
  background-color: #3498db;
} /* Bleu */
.traffic-dot.active-zone,
.traffic-dot.active {
  background-color: #f39c12;
} /* Orange */
.traffic-dot.crowded-area,
.traffic-dot.crowded {
  background-color: #e74c3c;
} /* Rouge */
.traffic-dot.near-overload,
.traffic-dot.overload {
  background-color: #000000;
} /* Noir */

/* ✨ Carte nouvellement apparue */
.cb-card-new {
  animation: cbCardAppear 0.6s ease forwards;
}
@keyframes cbCardAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
    box-shadow: 0 0 0 rgba(255, 215, 120, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 120, 0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 215, 120, 0.1);
  }
}

/* 🌟 Carte mise à jour (pulse doré) */
.cb-card-highlight {
  animation: cbCardHighlight 1.2s ease;
}
@keyframes cbCardHighlight {
  0% {
    box-shadow: 0 0 20px rgba(255, 215, 120, 0.6);
    transform: scale(1.03);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 215, 120, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  }
}

/* 💧 Région filigrane */
.cb-region-watermark {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 700;
  color: rgb(255 255 255 / 24%);
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* 🌐 Ligne Traffic + Swarm */
.cb-traffic-swarm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-direction: row;
  justify-content: space-around;
}

/* 🔐 Ligne Status + Points */
.cb-status-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  flex-direction: column;
  justify-content: space-around;
}

.cb-points strong {
  color: #f5e4be;
  font-size: 1.1rem;
}
.cb-points small {
  color: #ccc;
  font-size: 0.75rem;
}

/* 🌀 Footer : Infos à gauche, bouton à droite */
.cb-stump-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

/* ✅ Petits points Traffic + Swarm */
.traffic-dot,
.swarm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.traffic-dot.calm {
  background: #2ecc71;
}
.traffic-dot.light {
  background: #3498db;
}
.traffic-dot.active {
  background: #f39c12;
}
.traffic-dot.crowded {
  background: #e74c3c;
}
.traffic-dot.near-overload {
  background: #000;
}

.swarm-dot.overflowing {
  background: #009688;
}
.swarm-dot.abundant {
  background: #2887d3;
}
.swarm-dot.moderate {
  background: #607d8b;
}
.swarm-dot.sparse {
  background: #f1940c;
}
.swarm-dot.low {
  background: #d7564d;
}
