/* OzzyTech Premium Dark Mobile Product Scanner PWA Styles */

:root {
  --bg-dark: #070916;
  --surface: #101526;
  --surface-elevated: #161c31;
  --border: rgba(148, 163, 184, 0.14);
  --primary: #635bff;
  --primary-highlight: #8179ff;
  --success: #20c997;
  --text: #f8fafc;
  --secondary-text: #94a3b8;
  --danger: #fb7185;
  --warning: #f59e0b;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background-color: var(--bg-dark);
  position: relative;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: max(12px, env(safe-area-inset-top));
  height: calc(64px + env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand-tile {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.brand-tile .logo-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.title-wrap {
  display: flex;
  flex-direction: column;
}

.app-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.app-subtitle {
  font-size: 10px;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.username {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text);
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-form {
  display: inline-flex;
  align-items: center;
}

.btn-logout {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--secondary-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-logout:hover, .btn-logout:focus {
  background-color: rgba(251, 113, 133, 0.1);
  color: var(--danger);
}

.logout-icon {
  width: 18px;
  height: 18px;
}

/* Main Content */
.app-content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.scanner-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* Notice alerts */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}

.notice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice.warning {
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.16);
  color: var(--warning);
}

.notice.danger {
  background-color: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.16);
  color: var(--danger);
}

.hidden {
  display: none !important;
}

/* PWA Install Banner */
.install-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-text strong {
  font-size: 13px;
  color: var(--text);
}

.install-text span {
  font-size: 11px;
  color: var(--secondary-text);
}

/* Camera Scanner Container */
.camera-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

#webcam-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.scan-target-box {
  width: 220px;
  height: 220px;
  border: 2px solid var(--primary);
  border-radius: 24px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  position: relative;
}

.scan-target-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-highlight);
  box-shadow: 0 0 8px var(--primary-highlight);
  animation: scanLine 2.2s infinite ease-in-out;
}

@keyframes scanLine {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.camera-controls {
  display: flex;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

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

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

.btn-secondary {
  background-color: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--surface);
  border-color: var(--secondary-text);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Idle State Card */
.main-controls-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary-highlight);
  text-transform: uppercase;
}

.welcome-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.welcome-sub {
  font-size: 13px;
  color: var(--secondary-text);
  line-height: 1.5;
}

.scan-action-wrap {
  width: 100%;
}

.btn-scan-full {
  width: 100%;
  background-color: var(--primary);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-scan-full:hover, .btn-scan-full:focus {
  background-color: var(--primary-highlight);
  transform: translateY(-1px);
}

.btn-icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
}

.divider-line {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--secondary-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.divider-line span {
  padding: 0 10px;
}

.manual-search-form {
  width: 100%;
}

.search-input-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
}

.input-search {
  flex: 1;
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.btn-search-submit {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding: 0 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-search-submit:hover, .btn-search-submit:focus {
  background-color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 380px) {
  .search-input-wrap {
    flex-direction: column;
  }
  .btn-search-submit {
    padding: 12px;
  }
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.loading-logo-wrap {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2;
}

.loading-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.loading-pulse-ring {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-pulse-ring {
    animation: none;
    opacity: 0.15;
    transform: scale(1);
  }
}

.loading-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.loading-subtitle {
  font-size: 12px;
  color: var(--secondary-text);
  line-height: 1.4;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Product Result Display */
.product-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 110px; /* Buffer for sticky action bar */
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.btn-toolbar-newscan {
  background: transparent;
  border: none;
  color: var(--primary-highlight);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-toolbar-newscan svg {
  width: 14px;
  height: 14px;
}

.result-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}

.gallery-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-text);
}

.btn-gallery-actions {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gallery-actions svg {
  width: 14px;
  height: 14px;
}

.btn-gallery-actions:hover {
  background-color: var(--surface);
}

.result-image-wrap {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vh, 300px);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-scroll-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--secondary-text);
  font-size: 14px;
  font-weight: 600;
}

/* Gallery Controls in Card Overlay */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(22, 28, 49, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.gallery-nav-btn.prev-btn { left: 10px; }
.gallery-nav-btn.next-btn { right: 10px; }

.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(22, 28, 49, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  z-index: 10;
}

.gallery-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.gallery-photo-badge.unit-badge {
  background-color: var(--primary);
  color: var(--text);
}

.gallery-photo-badge.product-badge {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--secondary-text);
}

.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(7, 9, 22, 0.9), transparent);
  padding: 24px 16px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  z-index: 10;
}

/* Result details */
.result-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-header {
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge.bg-primary {
  background-color: rgba(99, 91, 255, 0.15);
  color: var(--primary-highlight);
  border: 1px solid rgba(99, 91, 255, 0.3);
}

.badge.bg-secondary {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--secondary-text);
}

.product-title-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.text-meta {
  font-size: 11px;
  color: var(--secondary-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price block */
.price-row {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
}

.price-row.interactive {
  cursor: pointer;
}

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

.price-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-highlight);
}

.cost-reveal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 2px;
}

.cost-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary-text);
  text-transform: uppercase;
}

.cost-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--danger);
}

/* Info grid layout */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-item {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item strong, .info-item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specifications / Serials details */
.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-text);
  margin-top: 6px;
  padding-bottom: 4px;
}

.specs-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.01);
}

.spec-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.spec-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-text);
}

.spec-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  max-width: 60%;
  word-wrap: break-word;
}

/* Sticky Bottom Action Bar */
.sticky-footer-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 12px;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.btn-flex {
  flex: 1;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-flex svg {
  width: 16px;
  height: 16px;
}

/* Modals & Sheets */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 9, 22, 0.85);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.action-sheet {
  width: 100%;
  max-width: 600px;
  background-color: var(--surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideUp 0.25s cubic-bezier(0.1, 0.8, 0.3, 1);
  border-top: 1px solid var(--border);
}

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

.sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  padding-bottom: 2px;
}

.sheet-desc {
  font-size: 11px;
  color: var(--secondary-text);
  padding-bottom: 8px;
}

.sheet-btn {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.sheet-btn:active, .sheet-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.sheet-btn.danger {
  color: var(--danger);
}

.sheet-btn.danger:active, .sheet-btn.danger:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  color: var(--text);
}

.sheet-btn.cancel {
  text-align: center;
  background-color: transparent;
  border-color: var(--border);
  color: var(--secondary-text);
  margin-top: 6px;
}

/* Upload Progress Dialog */
.progress-dialog {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  align-self: center;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-highlight);
  transition: width 0.1s ease;
}

/* In-App Multi-Capture Camera modal */
.inapp-camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  z-index: 10010;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.inapp-camera-header {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: rgba(7, 9, 22, 0.85);
  border-bottom: 1px solid var(--border);
}

.inapp-camera-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
}

.inapp-camera-capacity {
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
}

.inapp-camera-preview-wrap {
  flex: 1;
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inapp-camera-preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inapp-camera-full-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 9, 22, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.inapp-camera-full-overlay span {
  font-size: 15px;
  font-weight: 800;
  color: var(--danger);
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-md);
}

.inapp-thumbnail-container {
  height: 90px;
  background-color: rgba(7, 9, 22, 0.9);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.inapp-thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.inapp-thumbnail-strip::-webkit-scrollbar {
  display: none;
}

.inapp-pending-thumb {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.inapp-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inapp-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--danger);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inapp-camera-controls {
  height: 110px;
  background-color: rgba(7, 9, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.capture-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-capture-trigger {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #fff;
  border: 5px solid var(--surface-elevated);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-capture-trigger:active {
  transform: scale(0.9);
  background-color: var(--primary-highlight);
}

.btn-capture-trigger:disabled {
  background-color: var(--secondary-text);
  cursor: not-allowed;
}
