/* ==========================================================================
   NEURAA. SMART GLASSES — LUXURY EDITORIAL & VIRTUAL TRY-ON DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg-cream: #F9F6F0;
  --bg-cream-dark: #F3ECE0;
  --color-dark: #1C1B17;
  --color-muted: #6B6861;
  --color-light: #A8A49C;
  --border-editorial: #E6E1D8;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --s23-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-editorial: 0 4px 20px rgba(28, 27, 23, 0.04);
}

[hidden] { display: none !important; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-cream);
  color: var(--color-dark);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.app-category-bar {
  display: none;
}

.category-pill {
  background: none;
  border: 1px solid var(--border-editorial);
  color: var(--color-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-pill.active {
  background: var(--color-dark);
  color: var(--bg-cream);
  border-color: var(--color-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   BETA ANNOUNCEMENT BAR & BADGES
   -------------------------------------------------------------------------- */
.beta-top-bar {
  background: var(--color-dark);
  color: var(--bg-cream);
  text-align: center;
  padding: 0.45rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-badge {
  display: inline-block;
  background: #ff3b30;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 0.45rem;
  vertical-align: middle;
}

.beta-badge-inline {
  display: inline-block;
  border: 1px solid var(--color-muted);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   EDITORIAL HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.editorial-header {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-editorial);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
}

.editorial-header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation Links */
.editorial-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.editorial-nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  text-decoration: none;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: opacity 0.2s ease;
}

.editorial-nav-link:hover {
  opacity: 0.6;
}

/* Right Utility Icons */
.editorial-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.editorial-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.editorial-icon-btn:hover {
  opacity: 0.6;
}

.editorial-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.cart-icon-wrap {
  position: relative;
}

.cart-count-dot {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-dark);
  color: var(--bg-cream);
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   HERO ADVERTISING BANNER
   -------------------------------------------------------------------------- */
.editorial-hero {
  background: var(--bg-cream-dark);
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-editorial);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-pretitle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 20ch;
  color: var(--color-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-muted);
  max-width: 50ch;
  line-height: 1.6;
}

.hero-cta-btn {
  background: var(--color-dark);
  color: var(--bg-cream);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-cta-btn:hover {
  background: var(--color-muted);
}

/* --------------------------------------------------------------------------
   FILTER & SORT BAR
   -------------------------------------------------------------------------- */
.filter-sort-bar {
  border-bottom: 1px solid var(--border-editorial);
  padding: 1.2rem 2.5rem;
}

.filter-sort-bar-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-trigger {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Collapsible Filter Drawer */
.filter-drawer-collapsed {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-editorial);
  padding: 1.5rem 2.5rem;
  display: none;
}

.filter-drawer-collapsed.open {
  display: block;
}

.filter-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.filter-column-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--color-dark);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-list-item {
  font-size: 0.95rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-list-item:hover, .filter-list-item.active {
  color: var(--color-dark);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   EDITORIAL 4-COLUMN PRODUCT GRID
   -------------------------------------------------------------------------- */
.editorial-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2rem;
  row-gap: 3.5rem;
}

@media (max-width: 1200px) {
  .editorial-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .editorial-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   EDITORIAL PRODUCT CARD
   -------------------------------------------------------------------------- */
.editorial-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.editorial-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-cream-dark);
  position: relative;
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-img.mirrored {
  transform: scaleX(-1) !important;
}

.editorial-card:hover .editorial-img {
  /* No scale zoom animation on hover */
}

/* Hover Try-on overlay to maintain aesthetic clean look */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 23, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.editorial-card:hover .card-hover-overlay {
  opacity: 1;
}

.card-action-pill {
  background: var(--bg-cream);
  color: var(--color-dark);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-editorial);
}

/* Editorial Labels Under Image */
.editorial-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.editorial-row-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.editorial-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.editorial-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-muted);
}

.editorial-row-sub {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-light);
}

.card-add-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--color-dark);
  color: var(--bg-cream);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.card-add-btn:hover {
  background: #33322d;
  transform: translateY(-1px);
}

.card-add-btn:active {
  transform: translateY(0);
}

.editorial-mrp {
  text-decoration: line-through;
}

.editorial-discount {
  color: var(--color-dark);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   CART SLIDE-OUT DRAWER
   -------------------------------------------------------------------------- */
.editorial-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100%;
  background: var(--bg-cream);
  border-left: 1px solid var(--border-editorial);
  z-index: 1200;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--s23-ease);
}

.editorial-cart-drawer.open {
  transform: translateX(0);
}

.editorial-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 23, 0.15);
  backdrop-filter: blur(4px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.editorial-cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MODAL SYSTEM
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   PHOTO CAPTURE MODAL (LUXURY CAMERA SCANNER UI)
   -------------------------------------------------------------------------- */
.s23-vto-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #09090b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.modal-header {
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  min-height: 0;
  position: relative;
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 56vh;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.modal-face-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 250px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.modal-face-guide.detected {
  border: 2.5px solid #00e6a8;
  box-shadow: 0 0 30px rgba(0, 230, 168, 0.4), inset 0 0 20px rgba(0, 230, 168, 0.15);
}

.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e6a8, transparent);
  box-shadow: 0 0 10px #00e6a8;
  opacity: 0.7;
  animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 5%; }
  100% { top: 90%; }
}

.modal-guide-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  pointer-events: none;
}

.modal-guide-badge.detected {
  background: #00e6a8;
  color: #041a14;
  border-color: #00e6a8;
  box-shadow: 0 0 20px rgba(0, 230, 168, 0.5);
}

.modal-footer {
  position: relative;
  z-index: 20;
  padding: 1rem 1.2rem 1.4rem;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  width: 100%;
}

.modal-hint-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #a8a49c;
  letter-spacing: 0.04em;
  text-align: center;
}

.snap-btn {
  background: #ffffff;
  color: #09090b;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: 99px !important;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.snap-btn:hover {
  background: #f0ede6;
  transform: scale(0.99);
}

.snap-btn:active {
  transform: scale(0.97);
}

.modal-hint-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #a8a49c;
  letter-spacing: 0.04em;
  text-align: center;
}

.snap-btn {
  background: var(--bg-cream);
  color: var(--color-dark);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2.5rem;
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.snap-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.snap-btn:active {
  transform: translateY(0);
}

.beta-bar-desktop { display: inline; }
.beta-bar-mobile { display: none; }

.header-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  display: flex;
  align-items: center;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-wrap input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-editorial);
  padding: 0.2rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  width: 140px;
  color: var(--color-dark);
  outline: none;
}

.try-home-pill-btn {
  background: #ff3b30;
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.try-home-pill-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .editorial-header {
    padding: 1rem 1.2rem;
  }
  .editorial-nav {
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.3rem;
  }
  .editorial-hero {
    padding: 3rem 1.2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .filter-sort-bar {
    padding: 1rem 1.2rem;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-container {
    padding: 2rem 1.2rem;
  }
}

@media (max-width: 768px) {
  .beta-bar-desktop { display: none; }
  .beta-bar-mobile { display: inline; }
  .beta-top-bar { padding: 0.35rem 0.6rem; font-size: 0.65rem; }

  .editorial-header {
    padding: 0.5rem 0.8rem;
  }
  .editorial-header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .header-brand {
    font-size: 1.2rem;
  }
  .editorial-nav {
    display: none;
  }
  .app-category-bar {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    background: var(--bg-cream-dark);
    border-top: 1px solid var(--border-editorial);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app-category-bar::-webkit-scrollbar {
    display: none;
  }

  .editorial-actions {
    gap: 0.4rem;
  }
  .header-search-wrap input {
    width: 60px;
    font-size: 0.62rem;
    padding: 0.15rem 0.2rem;
  }
  .try-home-pill-btn {
    font-size: 0.62rem;
    padding: 0.3rem 0.6rem;
  }

  .editorial-hero {
    padding: 1.6rem 0.8rem;
    gap: 0.6rem;
  }
  .hero-pretitle {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.35;
  }
  .hero-cta-btn {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    width: 100%;
    max-width: 290px;
  }

  .filter-sort-bar {
    padding: 0.5rem 0.8rem;
  }
  .filter-count {
    font-size: 0.7rem;
  }

  .editorial-container {
    padding: 0.8rem 0.6rem;
  }

  /* NATIVE 2-COLUMN MOBILE APP GRID */
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 0.5rem;
    row-gap: 0.8rem;
  }

  .editorial-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-editorial);
    padding-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  }

  .editorial-img-wrap {
    aspect-ratio: 3 / 4;
  }

  .editorial-details {
    padding: 0.35rem 0.45rem 0;
    gap: 0.1rem;
  }

  .editorial-title {
    font-size: 0.72rem;
    font-weight: 600;
  }

  .editorial-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-dark);
  }

  .editorial-row-sub {
    font-size: 0.68rem;
  }

  .card-action-pill {
    padding: 0.4rem 0.5rem;
    font-size: 0.58rem;
  }

  .card-add-btn {
    margin-top: 0.4rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.6rem;
    border-radius: 4px;
  }

  .modal-header {
    padding: 0.65rem 0.9rem;
  }
  .modal-title {
    font-size: 0.72rem;
  }
  .modal-video-wrap {
    max-height: 50vh;
    border-radius: 12px;
  }
  .modal-face-guide {
    width: 155px;
    height: 205px;
  }
  .snap-btn {
    font-size: 0.75rem;
    padding: 0.85rem 1.2rem;
    border-radius: 99px;
  }
}

/* --------------------------------------------------------------------------
   UPLOAD LENS ADMIN SUITE (/uploadlens)
   -------------------------------------------------------------------------- */
.upload-lens-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #ffffff;
}

.upload-lens-inner {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.upload-lens-header {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1e;
}

.upload-lens-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-lens-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #a8a49c;
  margin-top: 0.2rem;
}

.upload-lens-primary-btn {
  background: #ff3b30;
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.upload-lens-primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.upload-lens-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
}

.upload-lens-body {
  padding: 1.5rem 1.8rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.upload-form-card {
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
}

.form-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #a8a49c;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  outline: none;
}

.form-input:focus {
  border-color: #ff3b30;
}

/* Inventory Table */
.inventory-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.inventory-table th {
  background: #222227;
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a8a49c;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.table-thumb {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}

.action-btn-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.3rem;
}

.action-btn-delete {
  background: rgba(255, 59, 48, 0.15);
  border-color: rgba(255, 59, 48, 0.4);
  color: #ff3b30;
}

/* --------------------------------------------------------------------------
   360° 3D FRAME INSPECTOR & CALIBRATOR SUITE (/visual3d)
   -------------------------------------------------------------------------- */
.visual3d-modal {
  z-index: 2600;
}

.visual3d-inner {
  max-width: 1100px;
  height: 85vh;
}

.visual3d-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 850px) {
  .visual3d-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.visual3d-viewport-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: radial-gradient(circle at center, #242930 0%, #12151a 60%, #0a0b0e 100%);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.visual3d-viewport-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

.v3d-viewport-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #00e6a8;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  border: 1px solid rgba(0, 230, 168, 0.3);
}

.v3d-floating-tools {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.v3d-tool-btn {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v3d-tool-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00e6a8;
}

.visual3d-panel {
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
}

.panel-section-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.v3d-range {
  width: 100%;
  accent-color: #00e6a8;
  cursor: pointer;
}

.v3d-color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.v3d-color-dot.active, .v3d-color-dot:hover {
  border-color: #00e6a8;
  transform: scale(1.15);
}
