/* ==========================================================================
   ReUse Application — Stylesheet (Squircle / Bubble UI & Micro-Animations)
   ========================================================================== */

:root {
  --primary: #16a34a;           /* Fresh Eco Green */
  --primary-hover: #15803d;
  --primary-light: #dcfce7;
  --primary-subtle: #f0fdf4;
  --primary-text: #14532d;
  
  --secondary: #0284c7;         /* Sky Blue */
  --secondary-light: #e0f2fe;
  
  --amber: #d97706;             /* Warning / Queue */
  --amber-light: #fef3c7;
  --amber-text: #92400e;
  
  --danger: #dc2626;            /* Alert / Cancel */
  --danger-light: #fee2e2;
  
  --bg-app: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  
  /* Ultra-rounded Bubble & Squircle radii */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-sheet: 0 -10px 40px rgba(15, 23, 42, 0.2);
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #f1f5f9;
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* App Viewport Container — Responsive Desktop / Tablet / Smartphone */
.app-viewport {
  background: var(--bg-app);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Format grand écran / PC / Tablette : interface spacieuse adaptée */
@media (min-width: 768px) {
  body {
    background: radial-gradient(circle at 50% 10%, #f8fafc 0%, #e2e8f0 100%);
    padding: 16px 0;
  }
  .app-viewport {
    max-width: 1100px;
    width: 95%;
    height: 96vh;
    max-height: 980px;
    border-radius: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }
  .items-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 16px !important;
  }
  .feed-content-scroll {
    padding: 16px 24px 90px !important;
  }
  .bottom-bubble-nav {
    max-width: 620px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: var(--radius-full) !important;
    bottom: 14px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  }
  .profile-page-content {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
  .reservations-page-header, .reservations-scroll-content {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
  }
  .sheet-content.bubble-sheet {
    max-width: 680px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 28px !important;
    bottom: 24px !important;
  }
}

/* Format smartphone / Écran mobile : plein écran 100% tactile */
@media (max-width: 767px) {
  body {
    background-color: var(--bg-app);
    padding: 0;
  }
  .app-viewport {
    max-width: 100vw;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* ==========================================================================
   0. SPLASH SCREEN : ANIMATION CINÉMATIQUE HAUTE DÉFINITION (DA ÉPURÉE)
   ========================================================================== */
.splash-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f0fdf4 55%, #dcfce7 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  clip-path: circle(150% at 50% 45%);
  transition: opacity 0.5s ease;
  cursor: pointer;
  animation: autoDismissSplashFallback 0.5s cubic-bezier(0.7, 0, 0.2, 1) 2.2s forwards;
}

@keyframes autoDismissSplashFallback {
  0% {
    opacity: 1;
    pointer-events: auto;
  }
  99% {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
  }
  100% {
    opacity: 0;
    pointer-events: none;
    display: none !important;
    visibility: hidden;
  }
}

/* Exit: Effet d'ouverture en vague d'eau qui part du milieu vers les côtés (Iris Ripple Wave) */
.splash-screen.wave-exit {
  animation: irisWaveExit 0.85s cubic-bezier(0.7, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes irisWaveExit {
  0% {
    clip-path: circle(150% at 50% 45%);
    filter: blur(0px) brightness(1);
    opacity: 1;
  }
  30% {
    filter: blur(1px) brightness(1.04);
  }
  100% {
    /* La vague s'ouvre du centre en grandissant vers l'extérieur jusqu'à dévoiler complètement l'app */
    clip-path: circle(0% at 50% 45%);
    filter: blur(8px) brightness(1.08);
    opacity: 0;
    transform: scale(0.96);
  }
}

.splash-screen:not(.active):not(.wave-exit) {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* Aurora & Ambient Soft Glow (Chaud, doux et sans clignotement) */
.splash-aurora-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(187, 247, 208, 0.45) 0%, rgba(220, 252, 231, 0.25) 50%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: softAuraBreathe 3.5s ease-in-out infinite alternate;
}

@keyframes softAuraBreathe {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.95; }
}

/* Floating Gentle Sparkles (Subtiles et lentes) */
.splash-particles-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  font-size: 0.9rem;
  opacity: 0;
  animation: floatParticle 3.8s ease-in-out infinite;
}

.p-1 { top: 24%; left: 20%; animation-delay: 0.2s; font-size: 1rem; }
.p-2 { top: 34%; right: 18%; animation-delay: 0.7s; font-size: 0.8rem; }
.p-3 { top: 48%; left: 16%; animation-delay: 1.2s; font-size: 0.95rem; }
.p-4 { top: 26%; right: 28%; animation-delay: 0.4s; font-size: 0.8rem; }
.p-5 { top: 58%; right: 20%; animation-delay: 0.9s; font-size: 1.1rem; }
.p-6 { top: 20%; left: 34%; animation-delay: 1.5s; font-size: 0.85rem; }
.p-7 { top: 62%; left: 26%; animation-delay: 0.8s; font-size: 0.95rem; }
.p-8 { top: 42%; left: 80%; animation-delay: 1.3s; font-size: 0.75rem; }

@keyframes floatParticle {
  0% { transform: translateY(12px) scale(0.7) rotate(0deg); opacity: 0; }
  40% { opacity: 0.75; }
  70% { opacity: 0.6; }
  100% { transform: translateY(-28px) scale(1) rotate(15deg); opacity: 0; }
}

.splash-content {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

/* Sprout Mascot Stage */
.sprout-stage {
  width: 190px;
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Ground Terrarium Mound & Fresh Grass Tufts */
.ground-stage {
  position: absolute;
  bottom: 20px;
  width: 130px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ground-mound {
  position: absolute;
  bottom: 0;
  width: 105px;
  height: 18px;
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border-radius: 50%;
  opacity: 0.4;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25);
}

.grass-tuft {
  position: absolute;
  width: 9px;
  height: 11px;
  border-radius: 50% 50% 0 0;
  background: #22c55e;
  bottom: 6px;
  opacity: 0;
  animation: tuftPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s forwards;
}

.tuft-left {
  left: 24px;
  transform: rotate(-25deg);
}

.tuft-right {
  right: 24px;
  transform: rotate(25deg);
}

@keyframes tuftPop {
  0% { transform: scale(0); opacity: 0; }
  100% { opacity: 1; }
}

/* Mascot Warm Halo (Aura douce derrière la mascotte) */
.mascot-halo {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 105px;
  background: radial-gradient(circle, rgba(134, 239, 172, 0.5) 0%, rgba(34, 197, 94, 0.12) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  animation: haloBreathe 2.4s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.85; }
}

/* Sprout Character & Ultra-Fluid Elastic Growth (60FPS Spring curve) */
.sprout-character {
  width: 145px;
  height: 145px;
  position: relative;
  z-index: 5;
  transform-origin: 80px 140px;
  animation: sproutGrowFluid 1.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sproutGrowFluid {
  0% { 
    transform: scale(0) translateY(45px); 
    opacity: 0; 
  }
  60% { 
    transform: scale(1.15) translateY(-6px); 
    opacity: 1; 
  }
  80% { 
    transform: scale(0.97) translateY(1px); 
  }
  100% { 
    transform: scale(1) translateY(0); 
    opacity: 1; 
  }
}

.sprout-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(22, 163, 74, 0.22));
}

.sprout-roots {
  animation: rootsGrow 0.6s ease 0.2s both;
}

@keyframes rootsGrow {
  0% { opacity: 0; transform: scaleY(0); }
  100% { opacity: 0.8; transform: scaleY(1); }
}

.sprout-stem {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawStem 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

@keyframes drawStem {
  to { stroke-dashoffset: 0; }
}

.sprout-leaf {
  transform-origin: 80px 75px;
}

.leaf-left {
  animation: swayLeftLush 3s ease-in-out infinite alternate 1.1s;
}

.leaf-right {
  animation: swayRightLush 3s ease-in-out infinite alternate 1.1s;
}

@keyframes swayLeftLush {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-6deg); }
}

@keyframes swayRightLush {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(6deg); }
}

.dew-drop {
  animation: sparkleDew 2.2s ease-in-out infinite alternate;
}

@keyframes sparkleDew {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 3px #fff); }
}

/* Winking face animation */
.sprout-face {
  transform-origin: 68px 50px;
  animation: facePopLush 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.85s both;
}

@keyframes facePopLush {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.eye-wink {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
  transform-origin: 75px 44px;
  animation: winkPulsePlayful 2.2s infinite 1.3s;
}

@keyframes winkPulsePlayful {
  0%, 75%, 100% { transform: scaleY(1); }
  83% { transform: scaleY(0.15) scaleX(1.1); }
  92% { transform: scaleY(1); }
}

/* Brand Typography (Épuré & Percutant) */
.splash-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUpLush 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.splash-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.brand-gradient {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(34, 197, 94, 0.25));
}

.splash-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  margin: 2px 0 0;
  letter-spacing: -0.2px;
}

/* Micro Loading Progress Bar */
.splash-loader-bar {
  width: 120px;
  height: 4px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-full);
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

.splash-loader-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #22c55e, #86efac);
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: loadProgress 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  40% { width: 50%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

@keyframes fadeUpLush {
  0% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ROUNDED SQUIRCLE / BUBBLE BASE STYLES
   ========================================================================== */
.bubble-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.bubble-btn {
  border-radius: var(--radius-full) !important;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.15s;
}

.bubble-btn:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 15px 24px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  padding: 13px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-danger {
  background-color: var(--danger);
  color: #fff;
  border: none;
  padding: 13px 20px;
  font-family: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.full-width {
  width: 100%;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-field input,
.input-field select,
.input-field textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Screens System */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.screen.active {
  display: flex;
}

#screen-app {
  overflow: hidden;
  padding: 0;
}

/* ==========================================================================
   1. AUTH SCREEN
   ========================================================================== */
.auth-wrapper {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 45%);
}

.auth-hero {
  text-align: center;
  margin-top: 10px;
}

.brand-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.brand-logo-pill .logo-emoji {
  font-size: 1.8rem;
}

.brand-logo-pill h1 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary-text);
  letter-spacing: -0.5px;
}

.auth-hero .tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 290px;
  margin: 0 auto;
  line-height: 1.4;
}

.auth-card {
  margin-top: 14px;
}

.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all 0.2s;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-social {
  background: #fff;
  border: 1.5px solid var(--border-light);
  padding: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.divider span {
  padding: 0 10px;
}

/* OAuth Social Authentication Modal */
.oauth-dialog-card {
  padding: 10px 4px 6px;
}

.oauth-provider-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.oauth-brand-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.oauth-brand-icon-wrap.google {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #ea4335;
}

.oauth-brand-icon-wrap.apple {
  background: #000000;
  color: #ffffff;
}

.oauth-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.oauth-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.oauth-account-item:hover, .oauth-account-item:active {
  border-color: var(--primary);
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}

.oauth-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1e293b;
  font-size: 1.1rem;
}

.oauth-account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.oauth-account-info strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.oauth-account-info span {
  font-size: 0.78rem;
  color: #64748b;
}

.oauth-disclaimer {
  font-size: 0.74rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  margin-top: 10px;
}

/* ==========================================================================
   2. ONBOARDING (STEPS 1, 2, 3)
   ========================================================================== */
.onboarding-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.step-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-text);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.onboarding-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.25;
}

.onboarding-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  margin: 16px 0;
}

.cat-select-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-select-card.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
  transform: scale(1.01);
}

.cat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cat-select-card.selected .cat-icon-wrap {
  background: var(--primary-light);
}

.cat-info {
  flex: 1;
}

.cat-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cat-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cat-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.cat-select-card.selected .cat-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Priority list */
.priority-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.priority-info {
  flex: 1;
}

.priority-info strong {
  display: block;
  font-size: 0.95rem;
}

.priority-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.priority-reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-reorder {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
}

.btn-reorder:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Radius Card */
.radius-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 16px 0;
}

.radius-visual {
  width: 170px;
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(22, 163, 74, 0.45);
}

.radar-outer { width: 170px; height: 170px; background: rgba(220, 252, 231, 0.4); }
.radar-mid   { width: 120px; height: 120px; background: rgba(220, 252, 231, 0.65); }
.radar-inner { width: 75px; height: 75px; background: rgba(220, 252, 231, 0.9); }

.radar-pin {
  position: absolute;
  top: 15px;
  font-size: 1.3rem;
  color: var(--danger);
  animation: bouncePin 1.5s infinite;
}

@keyframes bouncePin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.radius-display #radiusValueLabel {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary-text);
  line-height: 1;
}

.radius-display .km-unit {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.range-slider-wrap {
  width: 100%;
}

.range-slider-wrap input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
}

.range-slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.alert-info-bubble {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.alert-info-bubble i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 2px;
}

.alert-info-bubble strong {
  display: block;
  font-size: 0.88rem;
  color: #1e3a8a;
}

.alert-info-bubble p {
  font-size: 0.8rem;
  color: #3b82f6;
  margin-top: 2px;
}

.onboarding-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   APP TAB SYSTEM (FULL PAGES)
   ========================================================================== */
.app-tab-page {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 85px; /* space for bottom floating bar */
}

.app-tab-page.active {
  display: flex;
}

/* ==========================================================================
   ONGLET 1 : FEED EXPLORER
   ========================================================================== */
.main-header {
  padding: 16px 18px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.user-greeting h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 2px;
}

.btn-icon-bubble {
  background: #f1f5f9;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-icon-bubble:active {
  transform: scale(0.92);
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bubble-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.search-bubble-box i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.search-bubble-box input {
  width: 100%;
  padding: 11px 36px 11px 40px;
  background: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.search-bubble-box input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

.filters-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar { display: none; }

.pill-filter {
  background: #f1f5f9;
  border: 1.5px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}

.pill-filter.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.type-filter-bubble {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.type-pill-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 7px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.type-pill-btn.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.feed-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.feed-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

.sort-pill-btn {
  background: #f0fdf4;
  color: var(--primary-text);
  border: 1.5px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.08);
}

.sort-pill-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.15);
}

.sort-pill-btn:active {
  transform: scale(0.96);
}

.sort-pill-btn .sort-icon {
  color: var(--primary);
  font-size: 0.85rem;
}

.sort-pill-btn .sort-chevron {
  color: var(--text-muted);
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.sort-modal-container {
  display: flex;
  flex-direction: column;
}

.sort-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 62vh;
  overflow-y: auto;
  padding-bottom: 25px;
  padding-right: 2px;
}

.sort-option-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--radius-xl) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.sort-option-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
}

.sort-option-card.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.14) !important;
}

.sort-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.sort-card-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: #f1f5f9;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sort-option-card.active .sort-card-icon-bubble {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.sort-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.sort-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-card-title-row strong {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 800;
}

.sort-badge-mini {
  font-size: 0.68rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sort-option-card.active .sort-badge-mini {
  background: #bbf7d0;
  color: #166534;
}

.sort-card-text p {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.sort-card-radio {
  font-size: 1.25rem;
  color: #cbd5e1;
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sort-option-card.active .sort-card-radio {
  color: var(--primary);
  transform: scale(1.1);
}

.badge-source.priority-match {
  background: #fef08a !important;
  color: #854d0e !important;
  border: 1px solid #fde047 !important;
  font-weight: 800 !important;
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card */
.item-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.item-card:active {
  transform: scale(0.98);
}

.item-card-media {
  height: 170px;
  position: relative;
  overflow: hidden;
}

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

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-source {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge-source.street { background: rgba(15, 23, 42, 0.85); color: #fff; }
.badge-source.hand   { background: rgba(2, 132, 199, 0.9); color: #fff; }

.badge-status {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status.available { background: var(--primary); color: #fff; }
.badge-status.locked    { background: var(--amber); color: #fff; }
.badge-status.completed { background: #64748b; color: #fff; }

.item-card-body {
  padding: 16px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.card-title-row h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.distance-tag {
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.card-desc-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.queue-preview-pill {
  color: var(--amber-text);
  background: var(--amber-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

/* ==========================================================================
   ONGLET 2 : CARTE RADAR (MAP VIEW)
   ========================================================================== */
.map-view-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Map header styling & scaling */
.map-header-overlay {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.map-header-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-header-title {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: var(--text-main) !important;
  margin: 0 !important;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.map-header-subtitle {
  font-size: 0.8rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
  letter-spacing: 0.1px;
}

#liveOsmMap {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: #e2e8f0;
  z-index: 1;
  touch-action: pan-x pan-y pinch-zoom !important;
  user-select: none;
  -webkit-user-select: none;
}

.leaflet-container {
  touch-action: pan-x pan-y pinch-zoom !important;
}

/* Floating Zoom Controls */
.map-floating-zoom-controls {
  position: absolute;
  right: 16px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 500;
}

.map-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.map-zoom-btn:active {
  transform: scale(0.92);
  background: #f1f5f9;
}

.map-empty-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  max-width: 330px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  border: 1.5px solid #e2e8f0;
  border-radius: 28px;
  animation: popInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-overlay-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-overlay-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.08);
}

.forgot-pwd-link {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-pwd-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

@keyframes popInScale {
  0% { transform: translate(-50%, -46%) scale(0.92); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.leaflet-user-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.leaflet-user-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: pulseUser 2s infinite ease-out;
  pointer-events: none;
}

.leaflet-user-dot {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}

.custom-osm-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  transition: transform 0.2s ease;
}

.custom-osm-pin:hover {
  transform: scale(1.15);
}

.osm-pin-bubble {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.map-quick-cards-scroll {
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--border-light);
  z-index: 10;
}

.map-mini-card {
  min-width: 200px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-mini-card img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* ==========================================================================
   ONGLET 3 : MES RÉSERVATIONS (PAGE ENTIÈRE DÉDIÉE)
   ========================================================================== */
.reservations-page-header {
  padding: 20px 20px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.reservations-page-header h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.reservations-page-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.sub-tabs-bubble {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
}

.sub-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 9px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.reservations-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.subtab-view {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.subtab-view.active {
  display: flex;
}

/* Active Reservation Card with Large 3h Timer */
.active-res-card {
  border: 2px solid #fde68a;
  background: #fffbeb;
  position: relative;
  overflow: hidden;
}

.timer-hero-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin: 12px 0;
  border: 1px solid #fde68a;
}

.timer-hero-box .timer-digits {
  font-size: 2.2rem;
  font-weight: 900;
  color: #92400e;
  font-family: monospace;
  letter-spacing: 2px;
  margin: 4px 0;
}

.unlocked-address-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #fed7aa;
}

.unlocked-address-box strong {
  color: var(--primary-text);
  font-size: 0.92rem;
  display: block;
}

.unlocked-address-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ONGLET 4 : PROFIL & OPTIONS (PAGE ENTIÈRE DÉDIÉE)
   ========================================================================== */
.profile-page-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card-hero {
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  border-radius: var(--radius-xl);
  padding: 24px 18px;
}

.profile-avatar-big {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

.profile-card-hero h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
}

.profile-card-hero p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.user-reputation-badge-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* Eco Impact Grid */
.eco-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.eco-metric-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
}

.eco-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary);
}

.eco-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.profile-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

.pref-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* FAQ Accordions */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.faq-question {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
}

.faq-question i {
  color: #94a3b8;
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   BARRE DE NAVIGATION DU BAS (100% EN BAS FLOTTANTE)
   ========================================================================== */
.bottom-bubble-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.nav-tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
}

.nav-tab-btn i {
  font-size: 1.25rem;
}

.nav-tab-btn.active {
  color: var(--primary);
}

.nav-tab-btn:active {
  transform: scale(0.92);
}

.nav-fab-bubble {
  position: relative;
  top: -14px;
}

.fab-circle-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
  font-size: 1.4rem;
  transition: transform 0.15s;
}

.nav-badge-wrapper {
  position: relative;
}

.nav-pill-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MODALES (BOTTOM SHEETS)
   ========================================================================== */
.bottom-sheet-modal {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 100;
}

.bottom-sheet-modal.open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
}

.sheet-content.bubble-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90%;
  background: #fff;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: var(--shadow-sheet);
  overflow-y: auto;
  padding: 16px 20px 34px;
  animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  margin: 0 auto 14px;
}

.sheet-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Detail inner */
.detail-hero-media {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.detail-distance-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Security Address Box */
.address-shield-card {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.address-shield-card.unlocked {
  background: var(--primary-subtle);
  border: 1.5px solid var(--primary);
}

.address-shield-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.address-shield-card.unlocked .address-shield-icon {
  color: var(--primary);
}

.address-shield-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.address-shield-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.address-shield-text .real-gps-address {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-text);
  margin-top: 4px;
}

/* Reservation Action Buttons Container */
.reservation-action-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-lock-pickup {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  cursor: pointer;
}

.btn-lock-pickup small {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.btn-queue-join {
  background: var(--amber-light);
  color: var(--amber-text);
  border: 1.5px solid #fde68a;
  padding: 13px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* On-site Strict Validation (300m GPS + Photo) */
.verify-pickup-box {
  padding: 4px 0;
}

.verify-step-card {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.step-num-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card-content {
  flex: 1;
}

.step-card-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.step-card-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.gps-status-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: var(--text-main);
}

.gps-status-box.ok {
  background: var(--primary-light);
  color: var(--primary-text);
}

.gps-status-box.too-far {
  background: var(--danger-light);
  color: var(--danger);
}

.photo-mockup-upload {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

.photo-mockup-upload.uploaded {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-text);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Post form type pills */
.post-type-selector {
  display: flex;
  gap: 8px;
}

.type-pill-select {
  flex: 1;
  cursor: pointer;
}

.type-pill-select input { display: none; }

.type-pill-select span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.2s;
}

.type-pill-select input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-text);
}

/* Toast */
.toast-container {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDownToast 0.3s ease-out;
  pointer-events: auto;
}

.toast.success { background: var(--primary); }
.toast.warning { background: var(--amber); }
.toast.info    { background: var(--secondary); }

@keyframes slideDownToast {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hide-mobile { display: none; }
}

/* ==========================================================================
   GAMIFICATION & PLANT EVOLUTION LEVEL SYSTEM
   ========================================================================== */

.level-badge-chip {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--primary-text);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.level-badge-chip:active {
  transform: scale(0.94);
}

.level-badge-chip .level-icon {
  font-size: 0.95rem;
}

/* Plant Terrarium Visual Card */
.jar-terrarium-card {
  margin: 16px 0;
  background: radial-gradient(circle at center, #ffffff 0%, #f0fdf4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 2px solid #bbf7d0;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.12);
}

.jar-glass {
  width: 170px;
  height: 200px;
  border: 4px solid #cbd5e1;
  border-bottom-width: 8px;
  border-radius: 40px 40px 60px 60px;
  position: relative;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.85);
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.8), 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Animated Soil Layer */
.soil-fill-layer {
  width: 100%;
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  border-top: 3px solid #92400e;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soil-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#92400e 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.4;
}

/* Plant position in Jar (ancrée au niveau du sol bas) */
.plant-in-jar {
  position: absolute;
  bottom: 14%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s ease;
  animation: plantBreathe 3s ease-in-out infinite alternate;
}

@keyframes plantBreathe {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.04) translateY(-3px); }
}

.jar-sparkle {
  position: absolute;
  font-size: 1.1rem;
  pointer-events: none;
  animation: sparkleFloat 2s infinite ease-in-out alternate;
}

.jar-sparkle.sp1 { top: 15px; left: 15px; animation-delay: 0.2s; }
.jar-sparkle.sp2 { top: 25px; right: 20px; animation-delay: 0.8s; }

@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(0.8); opacity: 0.4; }
  100% { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

/* Progress bar under jar */
.jar-progress-info {
  width: 100%;
  margin-top: 14px;
}

.jar-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.jar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.jar-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Roadmap cards */
.levels-roadmap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
}

.roadmap-item.current {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.roadmap-item.passed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.roadmap-item.locked {
  opacity: 0.65;
}

.road-icon {
  font-size: 1.6rem;
}

.road-info {
  flex: 1;
}

.road-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.road-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.road-check {
  color: var(--primary);
  font-size: 1rem;
}

/* Level Up Celebration */
.level-up-celebration {
  text-align: center;
  padding: 10px 0 20px;
}

.celebration-confetti-burst {
  font-size: 3rem;
  margin-bottom: 6px;
  animation: bounceBurst 1s infinite alternate;
}

@keyframes bounceBurst {
  0% { transform: scale(0.9) rotate(-3deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}

.level-up-plant-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 14px auto;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ==========================================================================
   FIX OVERLAPPING TEXT & CHOICE CARDS IN MODALS
   ========================================================================== */

.choice-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  width: 100% !important;
}

/* Force label to be a flex block container instead of inline */
label.choice-card,
.choice-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  width: 100% !important;
  border: 2px solid var(--border-light) !important;
  border-radius: var(--radius-lg) !important;
  background: #ffffff !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

label.choice-card:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

label.choice-card:has(input[type="radio"]:checked),
label.choice-card.selected {
  border-color: var(--primary) !important;
  background: var(--primary-subtle) !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15) !important;
}

label.choice-card input[type="radio"] {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 2px 0 0 0 !important;
  accent-color: var(--primary) !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.choice-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.choice-info strong {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  line-height: 1.35 !important;
}

.choice-info span {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
}

.report-header p {
  line-height: 1.45 !important;
  margin-top: 4px !important;
  font-size: 0.84rem !important;
  color: var(--text-muted) !important;
}

/* ==========================================================================
   DYNAMIC PLANT GROWTH & WIND BREEZE ANIMATIONS
   ========================================================================== */

/* Animated Growth Effect when opening modal */
.plant-in-jar.growing {
  animation: plantSproutGrow 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes plantSproutGrow {
  0% {
    transform: scale(0.15) translateY(45px);
    opacity: 0.2;
  }
  60% {
    transform: scale(1.15) translateY(-8px);
    opacity: 1;
  }
  85% {
    transform: scale(0.95) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Continuous Wind / Breeze Swaying */
.plant-in-jar.swaying {
  animation: windSway 3.2s ease-in-out infinite alternate !important;
  transform-origin: bottom center;
}

@keyframes windSway {
  0% {
    transform: rotate(0deg) scale(1);
  }
  30% {
    transform: rotate(3.5deg) scale(1.02);
  }
  65% {
    transform: rotate(-3deg) scale(0.99);
  }
  100% {
    transform: rotate(4deg) scale(1.03);
  }
}

/* Fluttering leaves inside SVG */
.plant-in-jar svg path:not([stroke]) {
  transform-origin: center bottom;
  animation: leafFlutter 2.8s ease-in-out infinite alternate;
}

@keyframes leafFlutter {
  0% { transform: skewX(0deg); }
  50% { transform: skewX(3deg); }
  100% { transform: skewX(-2.5deg); }
}

/* Interactive plant click bounce */
.plant-in-jar:active {
  transform: scale(1.2) translateY(-6px) !important;
  transition: transform 0.1s !important;
}

/* Wind stream particles */
.wind-streak-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent);
  border-radius: var(--radius-full);
  pointer-events: none;
  animation: windBlow 2.5s infinite linear;
}

@keyframes windBlow {
  0% { transform: translateX(-120px); opacity: 0; }
  40% { opacity: 0.8; }
  100% { transform: translateX(200px); opacity: 0; }
}

/* ==========================================================================
   LOCKED & GREYED OUT ROADMAP TIERS WITH REQUIREMENTS
   ========================================================================== */

.roadmap-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border-radius: var(--radius-lg) !important;
  border: 2px solid var(--border-light) !important;
  transition: all 0.25s ease !important;
}

/* Unlocked past tier */
.roadmap-item.passed {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

.roadmap-item.passed .road-badge-status {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Current tier */
.roadmap-item.current {
  border-color: var(--primary) !important;
  background: var(--primary-subtle) !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15) !important;
}

.roadmap-item.current .road-badge-status {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* GREYED OUT & LOCKED TIERS */
.roadmap-item.locked {
  background: #f8fafc !important;
  border: 2px dashed #cbd5e1 !important;
  opacity: 0.72 !important;
  filter: grayscale(90%) !important;
}

.roadmap-item.locked .road-icon {
  filter: grayscale(100%);
  opacity: 0.55;
  transform: scale(0.9);
}

.roadmap-item.locked .road-info strong {
  color: #64748b !important;
}

.roadmap-item.locked .road-info span {
  color: #94a3b8 !important;
}

.road-lock-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.road-unlock-need-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.73rem;
  font-weight: 800;
  color: #d97706;
}

/* ==========================================================================
   RADIUS ONBOARDING: TEXT LAYER FIX, EXACT SCALE & BLOOMING FLORA
   ========================================================================== */

.radius-visual {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 180px !important;
  height: 180px !important;
}

.radar-circle {
  position: absolute !important;
  border-radius: 50% !important;
  z-index: 2 !important;
  pointer-events: none !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.radar-outer {
  width: 170px !important;
  height: 170px !important;
  background: radial-gradient(circle, #bbf7d0 0%, #86efac 52%, #4ade80 100%) !important;
  border: 2px dashed rgba(22, 163, 74, 0.65) !important;
  box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.22), 0 6px 20px rgba(22, 163, 74, 0.2) !important;
}

.radar-mid {
  width: 120px !important;
  height: 120px !important;
  background: radial-gradient(circle, rgba(187, 247, 208, 0.95) 0%, rgba(134, 239, 172, 0.85) 100%) !important;
  border: 1.5px dashed rgba(22, 163, 74, 0.5) !important;
}

.radar-inner {
  width: 75px !important;
  height: 75px !important;
  background: radial-gradient(circle, #f0fdf4 0%, rgba(187, 247, 208, 0.9) 100%) !important;
  border: 1px dashed rgba(22, 163, 74, 0.4) !important;
}

/* Ensure the big km text is in front of all layers in a clean pill bubble */
.radius-display {
  position: relative !important;
  z-index: 30 !important;
  text-align: center !important;
  pointer-events: none !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  padding: 4px 14px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(22, 163, 74, 0.25) !important;
  border: 1.5px solid rgba(187, 247, 208, 0.85) !important;
}

.radar-pin {
  z-index: 25 !important;
}

/* Dynamic Flora Meadow Container */
.radar-flora-wreath {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 20 !important;
}

.flora-item {
  position: absolute !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.3)) !important;
  user-select: none !important;
  animation: floraPop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.flora-item.flora-grass {
  filter: drop-shadow(0 1px 3px rgba(22, 163, 74, 0.25)) !important;
  opacity: 0.95 !important;
}

.flora-item.flora-flower {
  filter: drop-shadow(0 2px 5px rgba(244, 114, 182, 0.35)) !important;
}

@keyframes floraPop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-25deg); opacity: 0; }
  75% { transform: translate(-50%, -50%) scale(1.22) rotate(8deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

/* Precise Range Slider & Floating Thumb Bubble */
.range-slider-wrap {
  width: 100% !important;
  position: relative !important;
  padding-top: 24px !important;
}

.slider-thumb-bubble {
  position: absolute !important;
  top: -4px !important;
  transform: translateX(-50%) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35) !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  transition: left 0.05s ease !important;
}

.slider-ticks-exact {
  position: relative !important;
  width: 100% !important;
  height: 20px !important;
  margin-top: 6px !important;
}

.slider-ticks-exact .tick-label {
  position: absolute !important;
  transform: translateX(-50%) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
}

.slider-ticks-exact .tick-label:first-child {
  transform: translateX(0) !important;
}

.slider-ticks-exact .tick-label:last-child {
  transform: translateX(-100%) !important;
}

/* ==========================================================================
   INTERACTIVE STEP-BY-STEP ONBOARDING TOUR (SPOTLIGHT & BUBBLE POPUP)
   ========================================================================== */

.tour-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  transition: opacity 0.3s ease !important;
  border-radius: inherit !important;
}

/* Dynamic Spotlight Cutout Box with Luminous Pulsing Glow */
.tour-spotlight-box {
  position: absolute !important;
  border-radius: var(--radius-xl) !important;
  border: 3px solid #22c55e !important;
  /* Shadow creates the dark semi-transparent backdrop around the hole */
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.72), 0 0 25px rgba(34, 197, 94, 0.85) !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  pointer-events: none !important;
  z-index: 10001 !important;
  animation: pulseSpotlight 2.2s infinite ease-in-out !important;
}

@keyframes pulseSpotlight {
  0%, 100% {
    border-color: #22c55e;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.72), 0 0 20px rgba(34, 197, 94, 0.75);
  }
  50% {
    border-color: #4ade80;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.76), 0 0 35px rgba(74, 222, 128, 0.95);
  }
}

/* Tour Tooltip Card Popover with Frosted Glass (translucent / glassmorphism) */
.tour-tooltip-card {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  width: auto !important;
  max-width: none !important;
  /* Frosted Glass: transparent backdrop with blur & crystal glass reflection */
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: var(--radius-2xl) !important;
  padding: 16px 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(34, 197, 94, 0.25) !important;
  z-index: 10002 !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  animation: popInCard 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes popInCard {
  0% { transform: scale(0.92) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.tour-tooltip-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.tour-step-badge {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.4) !important;
  padding: 3px 10px !important;
  border-radius: var(--radius-full) !important;
  letter-spacing: 0.3px !important;
}

.tour-skip-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-full) !important;
  transition: all 0.15s !important;
}

.tour-skip-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.tour-body {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.tour-mascot-icon {
  font-size: 2rem !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1.5px solid rgba(74, 222, 128, 0.35) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: var(--radius-xl) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.tour-text h4 {
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 5px 0 !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.tour-text p {
  font-size: 0.82rem !important;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.tour-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 12px !important;
}

/* Dots pagination in bottom */
.tour-dots-indicator {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.tour-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: var(--radius-full) !important;
  background: rgba(255, 255, 255, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Active dot: glowing emerald / white indicator */
.tour-dot.active {
  width: 22px !important;
  height: 8px !important;
  border-radius: 4px !important;
  background: #22c55e !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8) !important;
}

.tour-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.tour-actions .btn-sm {
  padding: 7px 15px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

#tourPrevBtn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#tourPrevBtn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

#tourNextBtn {
  background: #22c55e !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

#tourNextBtn:hover {
  background: #16a34a !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   CHAT MESSENGER STYLES (Échange en main propre)
   ========================================================================== */
.chat-modal-sheet {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.chat-messenger-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.chat-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.chat-contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.chat-safe-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.chat-messages-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 4px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.86rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-bubble-meta {
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 3px;
  text-align: right;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.chat-input-row input {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.chat-input-row input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.chat-input-row button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
}

/* ==========================================================================
   LIGHTBOX PHOTO ZOOM & MULTI-VUES
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease forwards;
}

.lightbox-container {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 12px;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.lightbox-img-wrapper {
  overflow: hidden;
  max-width: 850px;
  max-height: 65vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: zoom-in;
}

.lightbox-controls {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.lightbox-controls button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px;
}

.lightbox-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
}

.lightbox-thumb.active {
  border-color: #22c55e;
  opacity: 1;
  transform: scale(1.06);
}

/* ==========================================================================
   LEGAL DOCUMENT MODAL STYLES
   ========================================================================== */
.legal-modal-sheet {
  max-height: 88vh;
  overflow-y: auto;
}

.legal-doc-content {
  padding: 8px 4px 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
}

.legal-doc-content h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
}

.legal-doc-content .legal-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-doc-section {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.legal-doc-section h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-doc-section p, .legal-doc-section ul {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

.legal-doc-section ul {
  padding-left: 20px;
  margin-top: 6px;
}

.legal-doc-section li {
  margin-bottom: 4px;
}

.legal-badge-warning {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Multi-photo upload card preview */
.multi-photo-grid-item {
  position: relative;
  width: 100%;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.multi-photo-grid-item .btn-remove-subphoto {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
}

/* Detail photo gallery */
.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.detail-thumb-item {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.detail-thumb-item.active {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Zoom cursor on hero media */
.detail-hero-media img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.detail-hero-media:hover img {
  transform: scale(1.02);
}

/* ==============================================
   MESSAGERIE INSTANTANÉE (INBOX & CHAT)
   ============================================== */
.inbox-page-header {
  padding: 16px 20px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.inbox-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.inbox-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.inbox-header-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.btn-refresh-inbox {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-refresh-inbox:hover {
  background: var(--bg-app);
  color: var(--primary);
  transform: rotate(180deg);
}

.inbox-scroll-content {
  padding: 14px 16px 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.inbox-convo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.inbox-convo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #86efac;
}

.inbox-convo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.inbox-convo-info {
  flex: 1;
  min-width: 0;
}

.inbox-convo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.inbox-convo-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.inbox-convo-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.inbox-convo-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-convo-preview.has-new {
  color: var(--text-main);
  font-weight: 600;
}

.inbox-convo-preview span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-dot-header {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==============================================
   PROFIL PUBLIC, SYSTÈME D'ABONNEMENT & ACTIONS DE SUPPRESSION
   ============================================== */

/* Message delete button */
.chat-bubble-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

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

.chat-bubble-row.theirs {
  justify-content: flex-start;
}

.chat-msg-del {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.chat-msg-del:hover {
  color: #ef4444;
  background: #fee2e2;
  transform: scale(1.1);
}

/* User Profile Modal & Bottom Sheet */
.user-profile-sheet {
  max-width: 480px;
  padding: 0 0 28px;
  border-radius: 32px 32px 0 0;
  text-align: center;
  overflow: hidden;
}

.user-profile-cover {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  position: relative;
}

.user-profile-body-content {
  padding: 0 20px;
}

.user-profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: -44px auto 10px;
}

.user-profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.user-profile-level-badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  background: #16a34a;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.user-profile-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-profile-member-date {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.user-follow-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.follow-stat-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  transition: transform 0.15s ease;
}

.follow-stat-btn:active {
  transform: scale(0.95);
}

.follow-stat-btn strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.follow-stat-btn span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.btn-follow-action {
  min-width: 150px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-follow-action.followed {
  background: #f1f5f9;
  color: #334155;
  border: 1.5px solid #cbd5e1;
}

.btn-follow-action.followed:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.user-eco-condensed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.user-eco-mini-box {
  text-align: center;
}

.user-eco-mini-box strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.user-eco-mini-box span {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

/* Author bar in ad detail */
.item-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
}

.user-mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.author-badge-pill {
  font-size: 0.65rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-danger-subtle {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger-subtle:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #f87171;
}

/* ==========================================================================
   INSTAGRAM-LIKE PUBLIC PROFILE SHEET
   ========================================================================== */
.insta-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 12px;
}

.insta-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.insta-avatar-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #16a34a, #eab308, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.insta-stats-row {
  display: flex;
  flex: 1;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.insta-stat-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 4px 6px;
}

.insta-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.insta-stat-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.insta-bio-box {
  padding: 0 6px 12px;
  text-align: left;
}

.insta-bio-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.insta-bio-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.insta-bio-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.35;
  margin-bottom: 4px;
}

.insta-bio-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.insta-actions-row {
  display: flex;
  gap: 8px;
  padding: 0 6px 14px;
}

.insta-btn-primary {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  background: var(--primary);
  color: #fff;
}

.insta-btn-primary.following {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.insta-btn-primary.following:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.insta-btn-secondary {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Instagram Story Highlights for Eco Impact */
.insta-highlights-row {
  display: flex;
  gap: 12px;
  padding: 0 6px 16px;
  overflow-x: auto;
}

.insta-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.insta-highlight-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #86efac;
  background: #f0fdf4;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.insta-highlight-circle strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: #166534;
  line-height: 1;
}

.insta-highlight-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  max-width: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Instagram Grid Feed */
.insta-grid-nav {
  display: flex;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.insta-grid-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.insta-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 6px 20px;
}

.insta-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.insta-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.insta-grid-item:hover img {
  transform: scale(1.05);
}

.insta-grid-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.58rem;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}


