/* ==========================================================================
   Clean Animation Stage for Hero Showcase (Two-State Camera & object.dart)
   ========================================================================== */

:root {
  --app-primary: #1E1912;
  --app-primary-rgb: 30, 25, 18;
  --app-bg: #F8F8F7;
  --app-surface: #FFFFFF;
  --app-border: #E8E8E7;
  --app-text-muted: #787572;
  --app-yellow: #FFDC44;
  --app-item-orange: #FF6F3C;
  --app-scanner-purple: #7C3AED;
  --app-stickers-pink: #FF7597;
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* ==========================================================================
   Hero Layout Integration (2-Column Desktop & Compact Mobile)
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 35%, rgba(255, 220, 68, 0.14) 0%, rgba(248, 248, 247, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #F8F8F7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 105px 5% 45px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(56, 161, 243, 0.16) 0%, rgba(248, 248, 247, 0) 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

body.mode-choisir .hero::before {
  opacity: 1;
}

body.mode-repartir .hero::before {
  background: radial-gradient(circle at 75% 35%, rgba(255, 82, 82, 0.16) 0%, rgba(248, 248, 247, 0) 60%);
  opacity: 1;
}

.hero-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 10;
}

/* Left Column: Hero Content */
.hero-content {
  text-align: left;
  max-width: 580px;
  z-index: 10;
}

.hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--app-primary, #1E1912);
  letter-spacing: -0.025em;
  display: block;
}

.hero p,
.hero p.hero-subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--app-text-muted, #787572);
  margin-bottom: 20px !important;
  font-weight: 450;
  display: block;
}

/* ==========================================================================
   Vertical Narrative Segmented Control
   ========================================================================== */
.hero-nav-segment {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0 28px;
  list-style: none;
  position: relative;
}


.hero-seg-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, transform 0.15s ease, border-left-color 0.2s ease;
  color: var(--app-primary, #1E1912);
  width: 100%;
  font-family: inherit;
  position: relative;
}

.hero-seg-item.hero-seg-static {
  cursor: default;
  opacity: 0.55;
}

.hero-seg-item.active {
  border: none;
  border-left: 4px solid var(--app-yellow, #FFDC44);
}

/* Distinct selected colors per item */
#btn-mode-inventorier.active {
  background: rgba(255, 220, 68, 0.18);
  border-left-color: #FFDC44;
}

#btn-mode-choisir.active {
  background: rgba(56, 161, 243, 0.16);
  border-left-color: #38A1F3;
}

#btn-mode-repartir.active {
  background: rgba(255, 82, 82, 0.16);
  border-left-color: #FF5252;
}


.hero-seg-item:not(.hero-seg-static):not(.active):hover {
  background: rgba(30, 25, 18, 0.04);
  transform: translateX(2px);
}

.hero-seg-label {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: block;
}

.hero-seg-item.active .hero-seg-label {
  font-weight: 800;
}

.hero-seg-desc {
  font-size: 1.15rem;
  color: var(--app-text-muted, #787572);
  font-weight: 400;
  line-height: 1.5;
  display: block;
}

/* ==========================================================================
   Hero Store Buttons (replacing old CTA)
   ========================================================================== */
.hero-store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
}

.hero-store-ios {
  background: var(--app-primary, #1E1912);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30, 25, 18, 0.22);
}

.hero-store-ios:hover {
  background: #2E2920;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 25, 18, 0.3);
}

.hero-store-android {
  background: #FFFFFF;
  color: var(--app-primary, #1E1912);
  border-color: var(--app-border, #E8E8E7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero-store-android:hover {
  background: #F6F6F4;
  border-color: #D4D4D0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hero-store-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-store-sub {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1;
}

.hero-store-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Inter Tight', sans-serif;
}

/* Right Column: Hero Animation Stage */
.hero-animation-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 3D Scene Viewport */
.scene-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 680px;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Responsive: Laptop / Tablet (1024px to 1200px) */
@media (max-width: 1200px) and (min-width: 1024px) {
  .hero-grid {
    gap: 20px;
  }

  .scene-viewport {
    height: 620px;
    max-width: 400px;
  }

  .phone-mockup-wrapper {
    transform: rotateY(-12deg) rotateX(6deg) scale(0.88);
  }
}

/* Responsive: Mobile & Small Tablet (< 1024px) */
@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding: 105px 16px 20px;
    display: block;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-content {
    max-width: 580px;
    text-align: center;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6.2vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    min-height: auto;
    text-align: center;
    padding: 0 16px;
  }

  .hero-store-buttons {
    display: none;
  }

  /* Mobile: Centered badge-style pills in flex row (single line on larger screens, wraps if needed) */
  .hero-nav-segment {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    overflow-x: visible;
    gap: 8px;
    margin: 10px auto 14px;
    width: 100%;
    max-width: none;
    padding: 0 8px;
    border-left: none;
  }

  .hero-seg-item {
    width: auto !important;
    max-width: max-content !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    border: 1.5px solid transparent !important;
    transition: all 0.22s ease;
    white-space: nowrap;
  }

  .hero-seg-item:not(.active) {
    background: rgba(30, 25, 18, 0.05) !important;
  }

  .hero-seg-item:not(.hero-seg-static):not(.active):hover {
    transform: none !important;
  }

  .hero-seg-item.active {
    border: 1.5px solid transparent !important;
  }

  #btn-mode-inventorier.active {
    background: rgba(255, 220, 68, 0.22) !important;
    border-color: rgba(255, 220, 68, 0.5) !important;
  }

  #btn-mode-choisir.active {
    background: rgba(56, 161, 243, 0.20) !important;
    border-color: rgba(56, 161, 243, 0.45) !important;
  }

  #btn-mode-repartir.active {
    background: rgba(255, 82, 82, 0.20) !important;
    border-color: rgba(255, 82, 82, 0.45) !important;
  }

  .hero-seg-item.hero-seg-static {
    display: inline-flex !important;
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
  }

  .hero-seg-item::before,
  .hero-seg-item::after {
    display: none;
  }

  .hero-seg-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-align: center;
    white-space: nowrap;
  }

  .hero-seg-item.active .hero-seg-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
  }

  .hero-seg-desc {
    display: none !important;
  }

  .hero-store-buttons {
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-store-btn {
    padding: 9px 14px;
    gap: 8px;
  }

  .hero-store-name {
    font-size: 0.88rem;
  }

  .hero-store-sub {
    display: none;
  }

  .hero-animation-stage {
    width: 100%;
    margin-top: -18px;
  }

  .scene-viewport {
    height: 480px;
    max-width: 360px;
    overflow: visible;
  }

  .phone-mockup-wrapper {
    transform: rotateY(-8deg) rotateX(4deg) scale(0.68);
  }

  .object-item {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
  }

  .object-item.state-focus {
    opacity: 1;
    transform: translate3d(0px, -35px, -100px) rotateY(-4deg) scale(0.66);
  }

  .object-item.state-capturing {
    opacity: 1;
    transform: translate3d(0px, -35px, -100px) rotateY(-4deg) scale(0.69);
  }

  .object-item.state-enter {
    opacity: 0;
    transform: translate3d(280px, -35px, -100px) scale(0.66);
  }

  .object-item.state-exit {
    opacity: 0;
    transform: translate3d(-250px, -35px, -100px) scale(0.63);
  }
}

/* Extra small mobile (< 380px) */
@media (max-width: 379px) {
  .hero {
    padding-top: 76px;
  }

  .hero h1 {
    font-size: 1.45rem;
    padding: 0 10px;
  }

  .scene-viewport {
    height: 420px;
    overflow: visible;
  }

  .phone-mockup-wrapper {
    transform: rotateY(-6deg) rotateX(4deg) scale(0.60);
  }
}

/* ==========================================================================
   Header: Store buttons always visible on Desktop & Mobile
   ========================================================================== */
#action-buttons-nav,
#action-buttons-nav.nav-hidden {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Mobile header: hide logo text "Slice" (icon only) */
@media (max-width: 1023px) {
  .logo span {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar #action-buttons-nav {
    gap: 6px;
  }

  .navbar #action-buttons-nav .btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .navbar .logo img {
    width: 44px;
    height: 44px;
  }
}

/* Ambient backlight glow with mode responsiveness */
.scene-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 220, 68, 0.24) 0%, rgba(255, 111, 60, 0.08) 45%, rgba(248, 248, 247, 0) 70%);
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.45s ease;
}

.scene-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 161, 243, 0.30) 0%, rgba(56, 161, 243, 0.08) 45%, rgba(248, 248, 247, 0) 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

body.mode-choisir .scene-glow::after {
  opacity: 1;
}

body.mode-repartir .scene-glow::after {
  background: radial-gradient(circle, rgba(255, 82, 82, 0.32) 0%, rgba(255, 82, 82, 0.08) 45%, rgba(248, 248, 247, 0) 70%);
  opacity: 1;
}

/* ==========================================================================
   Layer 1: Background Cutout Objects Track (Moves from RIGHT to LEFT)
   ========================================================================== */
.objects-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform-style: preserve-3d;
}

.object-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin-top: -200px;
  margin-left: -200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.75s var(--ease-snap),
    opacity 0.45s ease;
  will-change: transform, opacity;
}

.object-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.2)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.1));
}

/* 1. Enter state: Coming from the RIGHT, perfectly proportioned */
.object-item.state-enter {
  opacity: 0;
  transform: translate3d(420px, -55px, -110px) rotateY(12deg) scale(0.81);
}

/* 2. Focus state: Centered directly in the transparent camera viewfinder */
.object-item.state-focus {
  opacity: 1;
  transform: translate3d(0px, -55px, -110px) rotateY(-6deg) rotateX(3deg) scale(0.81);
}

/* 3. Capturing state: Micro shutter recoil */
.object-item.state-capturing {
  opacity: 1;
  transform: translate3d(0px, -55px, -110px) rotateY(-6deg) rotateX(3deg) scale(0.84);
}

/* 4. Disappear state: Fades out in place once switched to object card mode */
.object-item.state-disappear {
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
  pointer-events: none;
}

/* 5. Legacy exit state (if needed) */
.object-item.state-exit {
  opacity: 0;
  transform: translate3d(-380px, -55px, -110px) rotateY(-12deg) scale(0.76);
  transition: transform 0.5s var(--ease-snap), opacity 0.2s ease;
}

/* ==========================================================================
   Layer 2: Smartphone Mockup (No side buttons)
   ========================================================================== */
.phone-mockup-wrapper {
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(7deg) scale(0.96);
  transition: transform 0.3s ease;
}

/* Phone Case */
.phone-body {
  width: 320px;
  height: 660px;
  background: transparent;
  border: 11px solid #111111;
  border-radius: 48px;
  padding: 0;
  position: relative;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.35),
    0 30px 60px -30px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 0 2px #1E1912;
}

/* Glass Screen */
.phone-screen {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 37px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Gloss Reflection overlay */
.phone-glare {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.04) 35%, transparent 60%);
  pointer-events: none;
  z-index: 50;
  border-radius: 37px;
}

/* Shutter Flash (covers entire screen, blooms fast and dissolves smoothly) */
.camera-flash {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.camera-flash.flash-active {
  opacity: 1;
  transition: opacity 0.05s ease-in;
}

/* Status Bar & Dynamic Island (Floats cleanly over camera / object views) */
.phone-status-bar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 24px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  z-index: 35;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: color 0.2s ease;
}

/* On white background screens (Object / Choisir / Repartir), status bar text is dark */
.status-bar-dark,
.phone-screen:has(.object-screen-app.active) .phone-status-bar,
.phone-screen:has(.choose-screen-app.active) .phone-status-bar {
  color: var(--app-primary, #1E1912) !important;
}

.status-time {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.2px;
}

.status-notch {
  width: 90px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.notch-camera-dot {
  width: 10px;
  height: 10px;
  background: #0d1b2a;
  border-radius: 50%;
  border: 1px solid #1a2a3a;
  box-shadow: inset 0 0 2px #3a86ff;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   STATE 1: FULLSCREEN CAMERA VIEW (Transparent Glass Viewfinder)
   ========================================================================== */
.camera-screen-view {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 20;
  padding: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
  overflow: hidden;
  border-radius: 37px;
}

.camera-screen-view.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Top solid black bar (covers status bar down to viewfinder) */
.camera-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: #000000;
  z-index: 24;
}

/* Viewfinder is transparent covering phone interior between top and bottom black bars */
.camera-viewfinder {
  position: absolute;
  top: 74px;
  bottom: 126px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

/* Live image inside viewfinder hidden: physical object behind phone is seen through glass */
.camera-live-image {
  display: none !important;
}

/* Bottom solid black bar (contains gallery icon & shutter button) */
.camera-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 126px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 14px;
  z-index: 25;
}

.camera-gallery-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.12s ease;
}

.camera-gallery-btn svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
}

.camera-shutter-outer {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.12s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.camera-shutter-outer.clicked {
  transform: scale(0.92);
}

.camera-shutter-inner {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.camera-shutter-outer.clicked .camera-shutter-inner {
  transform: scale(0.78);
  opacity: 0.85;
}

.camera-footer-spacer {
  width: 44px;
}

/* ==========================================================================
   STATE 2: OBJECT.DART SCREEN (Photo Card + Form + CTAs)
   ========================================================================== */
.object-screen-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  padding: 44px 18px 18px;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.object-screen-app.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* App Header */
.object-header {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.object-header-title {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--app-primary);
  letter-spacing: -0.3px;
}

.object-header-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-primary);
  border: none;
}

.object-header-close svg {
  width: 20px;
  height: 20px;
}

/* Bento Photo Card - Rallongé pour atténuer le saut visuel avec la caméra */
.object-photo-card {
  width: 100%;
  height: 280px;
  border-radius: 18px;
  background: #F3F3F3;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-photo-image {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Analysis Overlay (Rotating Multicolor Gradient) */
.analysis-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 15;
  overflow: hidden;
}

.analysis-overlay.analyzing {
  opacity: 1;
}

.analysis-gradient {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
      rgba(255, 111, 60, 0.7),
      rgba(255, 117, 151, 0.6),
      rgba(124, 58, 237, 0.6),
      rgba(255, 220, 68, 0.6),
      rgba(255, 111, 60, 0.7));
  filter: blur(24px);
  animation: rotateGrad 2s linear infinite;
}

@keyframes rotateGrad {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.analysis-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
}

.analysis-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 25, 18, 0.85);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 20;
  white-space: nowrap;
}

.spinner-dots {
  display: inline-flex;
  gap: 3px;
}

.spinner-dots span {
  width: 4px;
  height: 4px;
  background: #FFDC44;
  border-radius: 50%;
  animation: bounceDot 1.2s infinite ease-in-out;
}

.spinner-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.spinner-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounceDot {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* ==========================================================================
   Form Fields (InputContainer clone)
   ========================================================================== */
.object-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-container {
  background: #FFFFFF;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-container.highlight {
  border-color: rgba(30, 25, 18, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.input-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--app-text-muted);
  margin-bottom: 2px;
  text-align: left;
}

.input-body {
  min-height: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.input-value {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--app-primary);
  line-height: 1.2;
  text-align: left;
  display: block;
  flex: 1;
}

.input-trailing {
  color: var(--app-primary);
  display: flex;
  align-items: center;
}

.input-trailing svg {
  width: 16px;
  height: 16px;
}

/* Multicolor Gradient Shimmers (Slice _buildShimmerPlaceholder) */
.gradient-shimmer-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
}

.gradient-shimmer-bar {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg,
      rgba(232, 232, 231, 0.9) 0%,
      rgba(255, 111, 60, 0.7) 25%,
      rgba(255, 117, 151, 0.7) 50%,
      rgba(124, 58, 237, 0.6) 75%,
      rgba(232, 232, 231, 0.9) 100%);
  background-size: 300% 100%;
  animation: multicolorShimmer 1.1s infinite linear;
}

@keyframes multicolorShimmer {
  0% {
    background-position: 150% 0;
  }

  100% {
    background-position: -150% 0;
  }
}

/* ==========================================================================
   Bottom CTAs with animated click on "Objet suivant"
   ========================================================================== */
.object-footer-ctas {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.cta-btn {
  flex: 1;
  height: 46px;
  border-radius: 13px;
  background: var(--app-primary);
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(30, 25, 18, 0.15);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  overflow: hidden;
}

/* Visual Tap/Click Animation on CTA */
.cta-btn.tap-active {
  transform: scale(0.92);
  background: #4A4742;
  box-shadow: 0 1px 3px rgba(30, 25, 18, 0.25);
}

.cta-btn.tap-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

/* ==========================================================================
   Responsive & Mobile (Zero horizontal scroll)
   ========================================================================== */
@media (max-width: 768px) {
  .stage-container {
    padding: 0;
  }

  .scene-viewport {
    height: 640px;
    max-width: 100vw;
  }

  .phone-mockup-wrapper {
    transform: rotateY(-8deg) rotateX(4deg) scale(0.82);
  }

  .object-item {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
  }

  .object-item.state-focus {
    opacity: 1;
    transform: translate3d(0px, -35px, -80px) rotateY(-2deg) scale(0.66);
  }

  .object-item.state-capturing {
    opacity: 1;
    transform: translate3d(0px, -35px, -80px) rotateY(-2deg) scale(0.69);
  }

  .object-item.state-enter {
    opacity: 0;
    transform: translate3d(260px, -35px, -80px) scale(0.66);
  }

  .object-item.state-exit {
    opacity: 0;
    transform: translate3d(-230px, -35px, -80px) scale(0.63);
  }
}

/* ==========================================================================
   Segmented Control (Switcher between Inventorier and Choisir)
   ========================================================================== */
.segmented-control-wrapper {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.segmented-control {
  display: flex;
  align-items: center;
  background: #EAEAE8;
  padding: 4px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  gap: 4px;
}

.segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #787572;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-snap);
  user-select: none;
  white-space: nowrap;
}

.segment-btn:hover {
  color: #1E1912;
}

.segment-btn.active {
  background: #FFFFFF;
  color: #1E1912;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.segment-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.segment-btn.active svg {
  transform: scale(1.08);
}

/* When in Choisir or Repartir mode, hide the 3D background objects track gracefully */
.mode-choisir .objects-track,
.mode-repartir .objects-track {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mode-choisir .camera-screen-view,
.mode-choisir .object-screen-app {
  display: none !important;
}

/* ==========================================================================
   STATE 3: LIST_VIEW / CHOISIR MODE SCREEN
   ========================================================================== */
.choose-screen-app {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-color: #F8F8F7;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

.choose-screen-app.active {
  opacity: 1;
  pointer-events: auto;
}

/* Top Header (Floating overlay over cards) */
.choose-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 44px 18px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: transparent;
  pointer-events: none;
}

.choose-back-btn {
  background: transparent;
  border: none;
  color: #1E1912;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}

.choose-select-pill {
  background: #1E1912;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  user-select: none;
  pointer-events: auto;
}

.choose-select-pill svg {
  color: #FFFFFF;
  flex-shrink: 0;
}

.choose-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.choose-icon-btn {
  background: transparent;
  border: none;
  color: #1E1912;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}

/* ==========================================================================
   Cards Deck Container (PageView vertical cards with peek & opacity)
   ========================================================================== */
.cards-deck-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 76px;
  overflow: visible;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Card (Vertical PageView Item) */
.deck-card {
  position: absolute;
  width: calc(100% - 24px);
  max-width: 278px;
  height: 370px;
  background: #FFFFFF;
  border-radius: 26px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: transform 0.5s var(--ease-snap), opacity 0.45s ease;
  will-change: transform, opacity;
}

/* Vertical PageView States: One under another with increased spacing */
.deck-card.card-active {
  transform: translate3d(0, 16px, 0) scale(1);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.deck-card.card-prev-peek {
  transform: translate3d(0, -395px, 0) scale(0.96);
  opacity: 0.28;
  z-index: 4;
  pointer-events: none;
}

.deck-card.card-next-peek {
  transform: translate3d(0, 415px, 0) scale(0.96);
  opacity: 0.45;
  z-index: 5;
  pointer-events: none;
}

.deck-card.card-swiped-up {
  transform: translate3d(0, -560px, 0) scale(0.92);
  opacity: 0;
  z-index: 12;
  pointer-events: none;
}

/* Inner Card Structure */
.deck-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

/* Upper Photo Area */
.deck-card-photo {
  flex: 1;
  min-height: 280px;
  background: #EAE5DC;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.deck-card-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.16));
  transition: transform 0.3s ease;
}

/* Bottom Bar: Dots on left, "Dans ma liste" or "Ça m'intéresse" on right */
.deck-card-body {
  height: 64px;
  padding: 0 18px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Dots bar (like Flutter ObjectCover: dash + dot) */
.deck-dots-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.deck-dot {
  height: 3.5px;
  width: 5px;
  border-radius: 2px;
  background: #A4A3A0;
  transition: all 0.25s ease;
}

.deck-dot.active {
  width: 18px;
  background: #1E1912;
}

/* Action CTA text/button (Grey pill when unselected as in screenshot) */
.deck-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F0EDE8;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #1E1912;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 9999px;
  user-select: none;
  transition: all 0.25s ease;
}

.deck-cta-btn .heart-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #1E1912;
  stroke-width: 2.3;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.deck-cta-btn.is-selected {
  background: transparent;
  padding: 7px 2px;
  color: #1E1912;
}

.deck-cta-btn.is-selected .heart-icon {
  fill: #1E1912;
  stroke: #1E1912;
  transform: scale(1.08);
}

.deck-cta-btn.tap-press {
  transform: scale(0.92);
}

/* ==========================================================================
   User Sticker Badge (Classic Slice Logo Vignette)
   ========================================================================== */
.user-sticker {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 54px;
  height: 54px;
  z-index: 25;
  transform: scale(0) rotate(-15deg);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.user-sticker img.slice-vignette-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-sticker.sticker-visible {
  transform: scale(1) rotate(6deg);
  opacity: 1;
}

/* ==========================================================================
   Simulated Touch Pointer Indicator
   ========================================================================== */
.touch-pointer {
  position: absolute;
  z-index: 90;
  pointer-events: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(30, 25, 18, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: left 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
    top 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.2s ease,
    transform 0.15s ease;
}

.touch-pointer.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.touch-pointer.tapping {
  transform: translate(-50%, -50%) scale(0.78);
  background: rgba(255, 220, 68, 0.7);
}

.touch-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 220, 68, 0.7);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.touch-pointer.tapping .touch-ring {
  animation: touchRipple 0.38s ease-out forwards;
}

@keyframes touchRipple {
  0% {
    opacity: 1;
    transform: scale(0.6);
  }

  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* ==========================================================================
   Wishlist Bottom Sheet: Collapsed (Dark) & Expanded (LIGHT MODE)
   ========================================================================== */
.wishlist-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25);
  height: 66px;
  /* Clean collapsed height without home handle */
  overflow: hidden;
  transition: height 0.52s var(--ease-snap), background-color 0.35s ease;
  background-color: #1E1912;
}

.wishlist-sheet.expanded {
  height: 100%;
  /* Covers screen in expanded light mode */
  background-color: #F8F8F7;
  border-radius: 0;
}

/* Collapsed Bar: Dark #1E1912, White Text, Badge, Chevron Up */
.wishlist-collapsed-bar {
  height: 66px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.wishlist-sheet.expanded .wishlist-collapsed-bar {
  display: none;
}

.wishlist-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.wishlist-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wishlist-bar-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.wishlist-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.wishlist-badge.pulse {
  transform: scale(1.35);
  background: #FFDC44;
  color: #1E1912;
}

.wishlist-bar-chevron {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-home-indicator,
.iphone-home-indicator-dark {
  display: none !important;
}

/* ==========================================================================
   Expanded Sheet Inner Content (LIGHT MODE matching Screenshot 2)
   ========================================================================== */
.wishlist-expanded-content {
  display: none;
  background-color: #F8F8F7;
  height: 100%;
  flex-direction: column;
  padding: 44px 0 10px 0;
  overflow-y: hidden;
}

.wishlist-sheet.expanded .wishlist-expanded-content {
  display: flex;
}

/* Expanded Light Header */
.wishlist-expanded-header {
  padding: 12px 18px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wishlist-close-btn {
  background: transparent;
  border: none;
  color: #1E1912;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  padding: 0;
}

.wishlist-expanded-title {
  font-size: 17px;
  font-weight: 800;
  color: #1E1912;
  margin: 0;
}

.wishlist-header-sticker {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status Card (White container, 14 jours restants & Inventaire PDF) */
.wishlist-status-card {
  background: #FFFFFF;
  border-radius: 16px;
  margin: 4px 12px 14px 12px;
  padding: 11px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.status-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.status-days-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #1E1912;
  white-space: nowrap;
}

.status-saved-badge {
  background: #EDF8EE;
  color: #51B15A;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-card-divider {
  height: 1px;
  background: #F3F3F3;
  margin: 10px 0;
}

.status-pdf-label {
  font-size: 13px;
  font-weight: 600;
  color: #1E1912;
  white-space: nowrap;
}

.status-export-btn {
  background: #EEEEEE;
  color: #1E1912;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Wishlist Items List (Clean Light List matching Screenshot 2) */
.wishlist-items-container {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Individual Row (Dismissible Container) */
.wishlist-row {
  position: relative;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  max-height: 80px;
  transition: transform 0.42s var(--ease-snap),
    opacity 0.3s ease,
    max-height 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
    margin 0.35s ease,
    padding 0.35s ease;
  user-select: none;
}

/* Red Delete Background underneath row content - revealed only during swipe */
.wishlist-delete-bg {
  position: absolute;
  inset: 0;
  background: #FF5252;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.wishlist-row.is-swiping {
  background: #FF5252;
}

.wishlist-row.is-swiping .wishlist-delete-bg {
  opacity: 1;
}

.wishlist-delete-bg svg {
  color: #FFFFFF;
  stroke: #FFFFFF;
}

/* Light Mode Row Content that slides to reveal the red background */
.wishlist-row-content {
  position: relative;
  z-index: 2;
  background: #F8F8F7;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px;
  border-radius: 14px;
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

.wishlist-row-thumb {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: #EFEFEF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wishlist-row-thumb img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.wishlist-row-title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  color: #1E1912;
  line-height: 1.25;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 6-dot drag handle matching Screenshot 2 */
.wishlist-drag-dots {
  display: grid;
  grid-template-columns: repeat(2, 3.5px);
  gap: 3.5px;
  width: 14px;
  justify-content: center;
  cursor: grab;
  flex-shrink: 0;
  padding: 4px;
}

.wishlist-drag-dots span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #A4A3A0;
  display: block;
}

/* Dragging during Reordering */
.wishlist-row.is-dragging {
  transform: scale(1.03) translateY(-4px);
  z-index: 50;
  background: transparent;
}

.wishlist-row.is-dragging .wishlist-row-content {
  background: #FFFFFF;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Swipe to Delete & Collapse Animations */
.wishlist-row.is-swiping .wishlist-row-content {
  transform: translate3d(-105%, 0, 0);
}

.wishlist-row.is-collapsed {
  max-height: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
}

/* ==========================================================================
   STATE 4: REPARTITION EQUITABLE (list_result.dart) STYLES
   Exact reproduction of real app UI
   ========================================================================== */
.result-screen-app {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.result-screen-app.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Minimal Native App Bar */
.result-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 18px 8px;
  background: #FFFFFF;
  z-index: 10;
}

.result-bar-back {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #4A4742;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-bar-icon-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #4A4742;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scrollable Container */
.result-scrollable-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 18px 40px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.result-scrollable-body::-webkit-scrollbar {
  display: none;
}

/* Page Title & Subtitle */
.result-page-header {
  margin: 4px 0 10px;
  text-align: left;
}

.result-main-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: var(--app-primary, #1E1912);
  margin: 0 0 3px 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.result-author-name {
  font-size: 0.85rem;
  color: #A4A3A0;
  font-weight: 500;
  margin: 0;
}

/* 3-Col Spec Grid (White card with soft shadow & rounded corners) */
.result-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 14px 8px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(232, 232, 231, 0.7);
  margin-bottom: 20px;
}

.result-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.result-spec-icon {
  color: #787572;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-spec-icon svg {
  stroke-width: 1.6;
}

.result-spec-label {
  font-size: 11px;
  color: #787572;
  font-weight: 500;
  margin-bottom: 4px;
}

.result-spec-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--app-primary, #1E1912);
  line-height: 1.2;
}

/* Users List */
.result-users-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-user-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-user-header {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.result-user-smiley {
  width: 14px;
  height: 14px;
  color: #787572;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-user-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #787572;
  letter-spacing: 0.01em;
}

/* Minimalist Rows (Exact match with Screenshot 2) */
.result-cards-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-object-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.result-object-card:hover {
  transform: translateX(2px);
}

.result-object-card.highlight-card {
  transform: scale(1.02);
}

.result-card-thumb-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #F3F3F3;
  border: none;
  overflow: visible;
  flex-shrink: 0;
  box-shadow: none;
}

.result-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.result-card-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #1E1912;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #1E1912;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-card-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-primary, #1E1912);
  line-height: 1.3;
  text-align: left;
  flex: 1;
}

/* ==========================================================================
   OBJECT EXPANDED FULLSCREEN VIEW (Exact match with Screenshot 1)
   ========================================================================== */
.object-expanded-screen {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.object-expanded-screen.modal-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.object-expanded-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 44px 18px 8px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.object-expanded-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 232, 231, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1E1912;
  pointer-events: auto;
  transition: background 0.15s ease;
}

.object-expanded-close:hover {
  background: rgba(232, 232, 231, 0.95);
}

.object-expanded-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 50px 18px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.object-expanded-photo-wrap {
  width: 100%;
  max-width: 310px;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #F3F3F3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.object-expanded-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.object-expanded-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: var(--app-primary, #1E1912);
  line-height: 1.25;
  margin: 0 0 28px 0;
  letter-spacing: -0.02em;
  max-width: 280px;
}

/* 5-Item Specs Grid with Precise Arrows */
.object-expanded-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 24px;
  column-gap: 12px;
  width: 100%;
  max-width: 310px;
}

.expanded-spec-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.expanded-spec-icon {
  color: #4A4742;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.expanded-spec-icon svg {
  stroke-width: 1.7;
}

.expanded-spec-icon.rotate-diag-left svg {
  transform: rotate(-90deg);
}

.expanded-spec-label {
  font-size: 11px;
  color: #A4A3A0;
  font-weight: 500;
  margin-bottom: 4px;
}

.expanded-spec-value {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-primary, #1E1912);
}