/* Animation de la carte qui vole vers le deck */
.card-fly-overlay {
  position: fixed;
  z-index: 9999;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(23, 35, 69, 0.4);
  border-radius: 12px;
  border: 4px solid var(--navy);
}

/* Badge NOUVEAU clignotant */
.new-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(180deg, #ff6b81, #ff4757);
  color: white;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 0.75rem;
  border: 3px solid var(--navy);
  box-shadow: 0 4px 8px rgba(255, 71, 87, 0.4);
  z-index: 10;
  animation: popin 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulse-badge 2s infinite ease-in-out;
}

@keyframes popin { 
  from { transform: scale(0); opacity: 0; } 
  to { transform: scale(1); opacity: 1; } 
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* UI de l'Inbox (Boîte de réception) */
.inbox-modal { width: min(600px, 100%); }
.inbox-tabs { display: flex; gap: 8px; margin-bottom: 16px; background: rgba(23,35,69,.05); padding: 6px; border-radius: 16px; }
.inbox-tab { flex: 1; padding: 10px; border-radius: 12px; background: transparent; border: 3px solid transparent; font-weight: 950; color: #51607e; }
.inbox-tab.active { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: 0 4px 0 rgba(23,35,69,.15); }

.inbox-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.inbox-card {
  padding: 12px;
  border: 4px solid var(--navy);
  border-radius: 20px;
  background: white;
  box-shadow: 0 5px 0 rgba(23, 35, 69, 0.15);
}

.inbox-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(23, 35, 69, 0.15);
}

.inbox-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  object-fit: cover;
}

.inbox-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inbox-actions > button {
  flex: 1;
}

