* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0d1117;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  transition: all 0.5s ease;
}

/* ---------- MOBILE MODE SWITCH (SHADCN STYLE) ---------- */
.mobile-switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.switch-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  user-select: none;
}

.mobile-switch-container.mobile-active .switch-label.label-mobile {
  color: #1ea7ff;
}

.mobile-switch-container:not(.mobile-active) .switch-label.label-pc {
  color: #fff;
}

.shadcn-switch {
  position: relative;
  display: inline-flex;
  height: 24px;
  width: 44px;
  flex-shrink: 0;
  cursor: pointer;
  align-items: center;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: colors 0.2s;
  background-color: #3f3f46;
  /* zinc-700 */
  outline: none;
  padding: 0;
}

.shadcn-switch[data-state="checked"] {
  background-color: #1ea7ff;
  /* lime/blue TrocMatch */
}

.shadcn-switch-thumb {
  pointer-events: none;
  display: block;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  transform: translateX(2px);
}

.shadcn-switch[data-state="checked"] .shadcn-switch-thumb {
  transform: translateX(20px);
}

/* ---------- MOBILE NATIVE VIEW OVERRIDES ---------- */
body.mobile-native {
  padding: 0 !important;
  gap: 0 !important;
  background: #000;
}

body.mobile-native .mobile-switch-container {
  position: fixed !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  opacity: 0.5;
  z-index: 1000 !important;
}

body.mobile-native .mobile-switch-container:hover {
  opacity: 1;
}

/* Mode PC : position en haut à gauche */
body:not(.mobile-native) .mobile-switch-container {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
}

/* Bottom Navigation Bar - Premium Glassmorphism */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 1000;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #71717a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  position: relative;
}

.bottom-nav-item.active {
  color: #1ea7ff;
  transform: translateY(-2px);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 20px;
  height: 3px;
  background: #1ea7ff;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(30, 167, 255, 0.5);
}

.bottom-nav-item i {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

/* Center button (Create Session) - Floating Action Button Style */
.bottom-nav-item.center-btn {
  transform: translateY(-20px);
  background: linear-gradient(135deg, #1ea7ff 0%, #9f61ff 100%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: white;
  box-shadow: 0 8px 16px rgba(30, 167, 255, 0.3), 0 0 0 4px rgba(13, 17, 23, 0.5);
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-nav-item.center-btn i {
  font-size: 26px;
}

/* Sheet Modal (Drawer Style) Refinement */
body.mobile-native .modal-overlay {
  align-items: flex-end !important;
  transition: backdrop-filter 0.3s ease;
  z-index: 2999 !important;
}

body.mobile-native .modal {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 28px 28px 0 0 !important;
  padding: 16px 20px 80px 20px !important;
  /* Augmenté pour dégager la bottom nav */
  background: rgba(22, 27, 34, 0.98) !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 3000 !important;
  /* Passe au-dessus de tout */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Handle indicator bar for sheet modals */
body.mobile-native .modal::before {
  content: '';
  display: block;
  width: 45px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  margin: 0 auto 20px auto;
}

/* Keep headers visible to allow mobile/PC switch and logout */
body.mobile-native header,
body.mobile-native .session-header {
  display: flex !important;
}

/* Adjust header for mobile integration */
body.mobile-native header {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  margin: 0 !important;
  position: relative !important;
  /* Changé de sticky à relative pour éviter de cacher le contenu */
  top: auto;
  z-index: 100;
  background: rgba(13, 17, 23, 0.9) !important;
  backdrop-filter: blur(10px);
}

body.mobile-native .session-header {
  position: relative !important;
  width: 100%;
}

body.mobile-native .layout,
body.mobile-native #lobby {
  padding-bottom: 100px !important;
  /* Décalage pour la navigation bar */
}

body.mobile-native .bottom-nav {
  display: flex !important;
}

/* Tinder Card Optimization */
body.mobile-native .tinder-card {
  border: none !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body.mobile-native .card-image {
  border-radius: 0 0 20px 20px;
}

/* Mobile-native specific scroll behavior */
body.mobile-native {
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding: 0 !important;
  gap: 0 !important;
}

body.mobile-native #lobby {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  /* Laisser le contenu définir la hauteur */
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
}

body.mobile-native .lobby-panel {
  flex: none !important;
  border-radius: 0 !important;
  padding: 15px !important;
}

/* Hide redundant PC elements in mobile native view */
body.mobile-native .lobby-header,
body.mobile-native .me-card,
body.mobile-native .lobby-panel hr,
body.mobile-native .lobby-panel>div:first-child {
  display: none !important;
}

body.mobile-native .lobby-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

body.mobile-native #lobby-matcher {
  margin-bottom: 80px !important;
  /* Espace pour la barre de nav */
}

body.mobile-native ::-webkit-scrollbar {
  display: none;
}

/* ---------- SPLASH SCREEN PREMIUM ---------- */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.splash-logo-img {
  width: 150px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(30, 167, 255, 0.5));
  animation: pulseLogo 2s infinite ease-in-out;
}

.splash-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(159, 97, 255, 0.2) 0%, transparent 70%);
  z-index: 1;
  animation: rotateGlow 4s infinite linear;
}

.splash-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #1ea7ff 0%, #9f61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeInText 1s ease-out 0.5s forwards;
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(30, 167, 255, 0.5));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(159, 97, 255, 0.7));
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- ONBOARDING MOBILE PREMIUM ---------- */
.onboarding-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0d1117;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 60px 24px 40px 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

.onboarding-progress {
  position: fixed;
  top: 40px;
  left: 24px;
  right: 24px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  z-index: 1001;
}

.onboarding-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1ea7ff, #9f61ff);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(30, 167, 255, 0.5);
}

.onboarding-step {
  display: none;
  flex-direction: column;
  animation: slideInRight 0.4s ease-out;
}

.onboarding-step.active {
  display: flex;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onboarding-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.2;
}

.onboarding-subtitle {
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 32px;
  line-height: 1.5;
}

.onboarding-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.onboarding-input {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
  transition: all 0.2s ease;
}

.onboarding-input:focus {
  border-color: #1ea7ff;
  box-shadow: 0 0 0 3px rgba(30, 167, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  margin-left: 4px;
}

.onboarding-card .onboarding-input {
  margin-bottom: 0px;
}

.onboarding-btn {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.onboarding-btn.primary {
  background: linear-gradient(135deg, #1ea7ff, #9f61ff);
  color: white;
  box-shadow: 0 8px 20px rgba(30, 167, 255, 0.3);
}

.onboarding-btn.primary:active {
  transform: scale(0.96);
}

.onboarding-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.onboarding-btn i {
  font-size: 20px;
}

/* Category Tags */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag-item {
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-item.active {
  background: rgba(30, 167, 255, 0.15);
  border-color: #1ea7ff;
  color: #1ea7ff;
}

/* Photo Upload Slots */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.photo-slot {
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.photo-slot.has-image {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Gender / Radio items */
.radio-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-item.active {
  border-color: #1ea7ff;
  background: rgba(30, 167, 255, 0.1);
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-item.active .radio-circle {
  border-color: #1ea7ff;
}

.radio-item.active .radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1ea7ff;
}

/* ---------- STORIES SECTION (LOBBY USERS) ---------- */
.stories-container {
  display: none;
  padding: 15px 0;
  overflow-x: auto;
  gap: 15px;
  padding-left: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
  display: none;
}

body.mobile-native .stories-container {
  display: flex;
}

.story-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 70px;
}

.story-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #1ea7ff, #9f61ff, #f87171);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #0d1117;
  object-fit: cover;
}

.story-name {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Matcher Controls (PC & Mobile) */
.matcher-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  width: 100%;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
  transform: scale(0.9);
}

.control-btn.btn-pass {
  color: #f87171;
}

.control-btn.btn-star {
  color: #facc15;
  background: rgba(250, 204, 21, 0.05);
  border-color: rgba(250, 204, 21, 0.2);
}

.control-btn.btn-like {
  color: #1ea7ff;
  width: 68px;
  height: 68px;
  font-size: 32px;
  background: rgba(30, 167, 255, 0.1);
  border-color: rgba(30, 167, 255, 0.3);
}

body.mobile-native .matcher-controls {
  display: flex !important;
}

/* ---------- HEADER SESSION ---------- */
.session-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: #161b22;
  border: 1px solid #30363d;
  font-size: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.session-id span {
  color: #58a6ff;
  font-weight: 600;
}

.session-users {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #9ca3af;
}

.session-users span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #484f58;
  background: #0d1117;
}

/* ---------- LAYOUT TROC ---------- */
.layout {
  flex: 1;
  display: none;
  gap: 20px;
  min-height: 0;
}

.column {
  flex: 1;
  background: #161b22;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.column.user {
  max-width: 450px;
  min-width: 350px;
  /* Garantir une largeur minimale */
}

.column-subtitle {
  display: none !important;
  /* Retirer la phrase "Produits e-commerce de ..." */
}

.column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #30363d;
  gap: 10px;
}

.column-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.icon-img img {
  width: 48px;
  height: 48px;
  filter: none;
  opacity: 1;
}

.column-subtitle {
  font-size: 13px;
  color: #8b949e;
  margin-top: 2px;
}

.valise-label {
  font-size: 14px;
  background: rgba(88, 166, 255, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(88, 166, 255, 0.2);
  color: #58a6ff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.valise-total {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.ready-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-top: 5px;
  border-top: 1px dashed #30363d;
}

.ready-status {
  font-size: 13px;
  color: #9ca3af;
}

.ready-status span {
  font-weight: 600;
}

.btn-ready {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #3fb950;
  background: #238636;
  color: #f0f6f0;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  font-weight: 600;
}

.btn-ready:hover:enabled {
  background: #3fb950;
  box-shadow: 0 0 0 2px #238636, 0 0 0 4px #3fb950;
  transform: translateY(-1px);
}

.btn-ready:disabled {
  opacity: .5;
  cursor: default;
  background: #21262d;
  border-color: #484f58;
  color: #9ca3af;
}

.address-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  margin-bottom: 15px;
}

.address-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(35, 134, 54, 0.1);
  border: 1px solid #238636;
  border-radius: 8px;
  color: #3fb950;
  font-weight: 700;
  font-size: 13px;
}

.address-details-simplified {
  display: none;
  /* Cache par défaut, affiché via JS si nécessaire */
  font-size: 12px;
  color: #8b949e;
  line-height: 1.5;
}

.address-hint {
  font-size: 11px;
  color: #6e7681;
  border-top: 1px solid #30363d;
  padding-top: 8px;
}

.valise-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-add-product {
  margin-top: 4px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #58a6ff;
  background: #0d1117;
  color: #c9d1d9;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-add-product:hover {
  background: #1f2937;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, .4);
}

.dropzone {
  flex: 1;
  border-radius: 12px;
  border: 2px dashed #484f58;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  overflow-y: auto;
  background: #0d1117;
  transition: background .3s ease, border-color .3s ease;
}

.dropzone.highlight {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}

.dropzone.disabled {
  opacity: .6;
  filter: grayscale(.2);
}

.product-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  /* Icon, Info+Qty, Price */
  /* Largeur fixe pour l'icône */
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #161b22;
  border: 1px solid #30363d;
  cursor: grab;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  min-width: 300px;
  /* Éviter que la carte ne s'écrase trop */
}

.product-card:hover {
  border-color: #58a6ff;
  background: #1c2128;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-card:active {
  cursor: grabbing;
  transform: translateY(0);
  box-shadow: none;
}

/* Tags de catégorie et d'échange */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  grid-column: 1 / -1;
  /* Prend toute la ligne si sous l'info */
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-category {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.tag-exchange {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

body.light-mode .tag-category {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

body.light-mode .tag-exchange {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.2);
}

.product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f6f8;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
  min-width: 100px;
  /* Forcer un minimum pour le titre */
}

.product-meta {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: #3fb950;
  white-space: nowrap;
  padding: 0 15px;
  border-left: 1px solid #30363d;
  height: 100%;
  display: flex;
  align-items: center;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 17, 23, 0.8);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #30363d;
  width: fit-content;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #484f58;
  background: #161b22;
  color: #e5e7eb;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:disabled {
  opacity: .4;
  cursor: default;
}

.center-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.basket-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.basket-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.basket-stats {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 5px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #30363d;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #484f58;
  background: #0d1117;
  font-weight: 500;
}

.badge.good {
  border-color: #3fb950;
  background: rgba(63, 185, 80, 0.2);
}

.badge.danger {
  border-color: #f85149;
  background: rgba(248, 81, 73, 0.2);
}

.timer {
  font-size: 16px;
  font-weight: 700;
  color: #facc15;
}

.timer.finished {
  color: #f85149;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.btn-launch {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #3fb950;
  background: #238636;
  color: #c9d1d9;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: all .15s ease;
  white-space: nowrap;
  min-width: 210px;
}

.btn-launch:hover:enabled {
  box-shadow: 0 0 0 2px #238636, 0 0 0 4px #3fb950;
  transform: translateY(-2px);
  background: #3fb950;
}

.btn-launch:disabled {
  opacity: .45;
  cursor: default;
  box-shadow: none;
  transform: none;
  background: #21262d;
  border-color: #484f58;
}

.tips {
  font-size: 12px;
  color: #8b949e;
  flex: 1;
}

.receipt {
  margin-top: 12px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-size: 11px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.dropzone::-webkit-scrollbar {
  width: 6px;
}

.dropzone::-webkit-scrollbar-thumb {
  background: #484f58;
  border-radius: 999px;
}

@media (max-width:1200px) {
  .layout {
    flex-direction: column;
  }

  .column.user {
    max-width: none;
  }
}

/* ---------- OFFERS PANEL ---------- */
.offers-box {
  margin-top: 14px;
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid #30363d;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offers-header {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.offers-status {
  font-size: 12px;
  color: #9ca3af;
}

.offers-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.offer-col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  margin-bottom: 4px;
}

.offer-list {
  list-style: none;
  font-size: 12px;
  color: #e5e7eb;
  max-height: 90px;
  overflow-y: auto;
  margin-bottom: 4px;
}

.offer-list li {
  margin-bottom: 2px;
}

.offer-total {
  font-size: 12px;
  color: #9ca3af;
}

.offer-total span {
  font-weight: 700;
  color: #e5e7eb;
}

/* --- SPLIT BASKET (2 zones séparées) --- */
.split-basket {
  display: flex;
  gap: 10px;
  flex: 1;
  position: relative;
  min-height: 200px;
  margin-top: 10px;
}

.basket-col {
  flex: 1;
  background: rgba(13, 17, 23, 0.3);
  border: 1px dashed #30363d;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.basket-col.active-a {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.05);
}

.basket-col.active-b {
  border-color: #d29922;
  background: rgba(210, 153, 34, 0.05);
}

.basket-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  opacity: 0.7;
}

.basket-col .dropzone {
  flex: 1;
  min-height: 150px;
  overflow-y: auto;
}

/* ---------- MODALS (Bienvenue / Session / Produit) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #161b22;
  border-radius: 18px;
  border: 1px solid #30363d;
  padding: 30px 28px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.modal h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
}

.social-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e5e7eb;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
}

.social-btn:hover {
  background: #1f2933;
  border-color: #4b5563;
}

.social-btn.primary {
  background: #2563eb;
  border-color: #2563eb;
}

.social-btn.primary:hover {
  background: #3b82f6;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.modal-divider {
  margin: 14px 0;
  font-size: 12px;
  color: #6b7280;
}

.hidden {
  display: none !important;
}

.qr-box {
  background: #0d1117;
  padding: 12px;
  border-radius: 12px;
  margin: 15px 0;
  display: inline-block;
  border: 1px solid #30363d;
}

.session-url {
  background: #0d1117;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #30363d;
  font-family: monospace;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 16px;
  word-break: break-all;
  text-align: left;
}

.btn-launch-main {
  background: #22c55e;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  width: 100%;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
}

.btn-launch-main:hover {
  background: #16a34a;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

/* LOBBY / MARKETPLACE */
#lobby {
  background: #161b22;
  border-radius: 16px;
  border: 1px solid #30363d;
  padding: 20px;
  display: none;
  gap: 20px;
  flex-direction: column;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lobby-title {
  font-size: 18px;
  font-weight: 700;
}

.lobby-subtitle {
  font-size: 13px;
  color: #9ca3af;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 18px;
}

.lobby-panel {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid #30363d;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.me-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.me-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.me-name {
  font-weight: 600;
  font-size: 14px;
}

.me-tag {
  font-size: 11px;
  color: #9ca3af;
}

.me-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #161b22;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  margin-right: 4px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.user-card {
  border-radius: 10px;
  border: 1px solid #30363d;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all .15s ease;
  background: #111827;
}

.user-card:hover {
  border-color: #58a6ff;
  background: #1f2933;
}

.user-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-status {
  font-size: 11px;
  color: #9ca3af;
}

.badge-premium {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-verified {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.valise-preview-list {
  font-size: 12px;
  color: #e5e7eb;
  list-style: none;
}

.valise-preview-list li {
  margin-bottom: 4px;
}

.valise-preview-list span {
  color: #3fb950;
  font-weight: 600;
}

.btn-create-session {
  margin-top: 6px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #58a6ff;
  background: #111827;
  color: #c9d1d9;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}

.btn-create-session:disabled {
  opacity: .5;
  border-color: #374151;
  cursor: default;
}

.btn-create-session:hover:enabled {
  background: #1f2937;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.4);
}

.lobby-premium-note {
  font-size: 11px;
  color: #9ca3af;
}

.lobby-premium-note strong {
  color: #facc15;
}

@media (max-width:1050px) {
  #lobby .lobby-grid {
    grid-template-columns: 1fr;
  }
}

/* MODAL PRODUIT */
#product-modal .modal {
  width: 480px;
  text-align: left;
}

#product-modal h2 {
  text-align: center;
  margin-bottom: 16px;
}

.form-row {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.form-col {
  flex: 1;
}

.form-row label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
  display: block;
}

.input-text {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e5e7eb;
  font-size: 13px;
  transition: all .15s ease;
}

.input-text:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px #58a6ff;
}

.input-text::placeholder {
  color: #6b7280;
  font-size: 12px;
}

/* Import Vinted */
#vinted-status {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

#btn-import-vinted {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12px;
  transition: all .15s ease;
}

#btn-import-vinted:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.type-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.type-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.icon-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  margin-top: 4px;
}

.icon-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.icon-choice {
  width: 70px;
  /* Increased to accommodate labels */
  height: 48px;
  /* Increased for label visibility */
  border-radius: 8px;
  background: #0d1117;
  border: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 4px;
  color: #ffffff;
}

.icon-choice:hover {
  border-color: #4b5563;
  background: #1f2937;
}

.icon-choice.selected {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.modal-buttons {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-modal-primary {
  padding: 10px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-modal-primary:hover {
  background: #16a34a;
}

.btn-modal-secondary {
  padding: 9px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
}

.btn-modal-secondary:hover {
  background: #1f2937;
}

/* ---------- INVOICE / TICKET TROC ---------- */
.invoice-box {
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.invoice-header strong {
  font-size: 12px;
}

.invoice-section {
  margin-top: 10px;
}

.invoice-title {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.line-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 2px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-top: 8px;
  font-size: 12px;
}

.payment-btn {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.payment-btn:hover {
  background: #111827;
}

.margin-debug {
  margin-top: 8px;
  font-size: 10px;
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #b91c1c;
  padding: 6px;
  border-radius: 4px;
}

/* ---------- ADMIN STATS ---------- */
#admin-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#toggle-admin {
  align-self: flex-end;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #e5e7eb;
  cursor: pointer;
}

#toggle-admin:hover {
  background: #1f2937;
  border-color: #6b7280;
}

.admin-panel {
  display: none;
  background: #111827;
  border-radius: 12px;
  border: 1px solid #30363d;
  padding: 12px 14px;
  font-size: 11px;
  color: #e5e7eb;
}

.admin-panel h3 {
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-pill {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020617;
  font-size: 11px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.admin-table thead {
  background: #020617;
}

.admin-table th,
.admin-table td {
  border: 1px solid #1f2933;
  padding: 4px 6px;
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  font-weight: 600;
}

.footer-note {
  font-size: 12px;
  color: #484f58;
  text-align: center;
  padding-top: 10px;
}


/* Pulse Animation for Ready Button */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(248, 81, 73, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(248, 81, 73, 0);
  }
}

.pulse-alert {
  animation: pulse-red 2s infinite;
  border-color: #f85149 !important;
}

/* Animations pour les notifications Matcher */
@keyframes slideDownIn {
  from {
    transform: translate(-50%, -50px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Badge Favoris sur la carte */
.status-star {
  transform: translate(-50%, 0) rotate(0deg) !important;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* Badge Favoris sur la carte */
.status-star {
  transform: translate(-50%, 0) rotate(0deg) !important;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
  font-size: 32px !important;
}

.card-likes-count {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.card-likes-count:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Matches List Styling (Premium & Responsive) */
.match-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  border-color: #1ea7ff;
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-2px);
}

.match-card-img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  background: #0f172a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  width: 0; /* Force flex item to respect min-width: 0 */
}

.match-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  display: block;
}

.match-card-owner {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-card-price {
  font-size: 14px;
  color: #4ade80;
  font-weight: 800;
}

.match-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.match-card-actions button {
  padding: 8px 16px !important;
  font-size: 12px !important;
  height: auto !important;
  width: auto !important;
  min-width: 90px;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

@media (max-width: 480px) {
  .match-card {
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }

  /* Header Duo Visuel - Mobile */
  .match-card > div:first-child {
    gap: 8px !important;
    padding: 6px !important;
  }

  .match-card > div:first-child > div {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .match-card > div:first-child > div > img,
  .match-card > div:first-child > div > span {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .match-card > div:first-child > div:nth-child(2) {
    font-size: 14px !important;
  }

  .match-card-img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .match-card-title {
    font-size: 14px;
  }

  .match-card-actions button {
    padding: 6px 12px !important;
    font-size: 11px !important;
    min-width: 75px;
    width: 75px;
  }

  .match-card-owner {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .match-card {
    gap: 8px;
    padding: 8px;
  }

  /* Header Duo Visuel - Ultra Mobile */
  .match-card > div:first-child {
    gap: 6px !important;
    padding: 5px !important;
  }

  .match-card > div:first-child > div {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .match-card > div:first-child > div > img,
  .match-card > div:first-child > div > span {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .match-card > div:first-child > div:nth-child(2) {
    font-size: 12px !important;
  }

  .match-card-img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .match-card-actions button {
    min-width: 68px;
    width: 68px;
    padding: 5px 8px !important;
  }
}

/* --- MUTUAL MATCH ANIMATIONS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

.mutual-match-overlay {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* ==========================================================================
   TROC CALENDAR (Shadcn Lime Inspired)
   ========================================================================== */

.calendar-modal {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: white;
}

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

.calendar-title {
  font-weight: 700;
  font-size: 18px;
  color: #f8fafc;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.calendar-day-label {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.calendar-day:hover {
  background: rgba(163, 230, 53, 0.1);
  /* Lime light */
  color: #a3e635;
}

.calendar-day.selected {
  background: #a3e635;
  /* Lime 400 */
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(163, 230, 53, 0.4);
}

.calendar-day.today {
  border-color: #a3e635;
  color: #a3e635;
}

.calendar-day.disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.time-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
}

.time-slot {
  padding: 10px 5px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: #a3e635;
  color: #a3e635;
}

.time-slot.selected {
  background: #a3e635;
  color: #0f172a;
  font-weight: 700;
  border-color: #a3e635;
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-confirm-invit {
  background: #a3e635;
  color: #0f172a;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-confirm-invit:active {
  transform: scale(0.98);
}

.btn-cancel-invit {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
}