:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-hover: #243044;
  --border: #2d3a4f;
  --text: #e8edf4;
  --text-muted: #8b9cb3;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #6366f1;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  line-height: 1.5;
  overscroll-behavior: none;
}

body.sheet-open {
  overflow: hidden;
}

.app {
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

.view {
  display: none;
}

.view-active {
  display: block;
}

/* ── Scan Screen ── */

.scan-screen {
  position: relative;
  height: calc(100dvh - var(--nav-height) - var(--safe-bottom));
  background: #000;
  overflow: hidden;
}

.camera-prompt {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.camera-prompt.hidden {
  display: none;
}

.camera-prompt-card {
  width: 100%;
  max-width: 340px;
  text-align: center;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.camera-prompt-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.camera-prompt-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.camera-prompt-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.camera-help {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  padding: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5 !important;
  font-size: 0.85rem !important;
  text-align: left;
  word-break: break-word;
}

.camera-help a {
  color: var(--primary);
  font-weight: 600;
}

.scanner-reader {
  position: absolute;
  inset: 0;
}

.scanner-reader video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

#scanner-reader > div {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

#scanner-reader img[alt="Info icon"] {
  display: none !important;
}

#scanner-reader button {
  display: none !important;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.scan-top {
  padding: calc(20px + var(--safe-top)) 20px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.scan-top h1 {
  font-size: 1.3rem;
  font-weight: 700;
}

.scan-top p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 4px;
}

.phone-url-hint {
  margin-top: 10px !important;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  font-size: 0.8rem !important;
  color: #fff !important;
  word-break: break-all;
}

.scan-frame {
  position: relative;
  margin: 0 auto;
  width: 88%;
  max-width: 360px;
  height: 22vh;
  max-height: 160px;
}

.scan-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--primary);
  border-style: solid;
}

.scan-corner.tl { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 4px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 4px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 4px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-radius: 0 0 4px 0; }

.scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {
  0%, 100% { top: 10%; opacity: 0.6; }
  50% { top: 85%; opacity: 1; }
}

.scan-bottom {
  padding: 20px 20px calc(16px + var(--safe-bottom));
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: auto;
}

.scan-status {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.scan-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-scan-action {
  padding: 12px 20px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-scan-action:active {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Bottom Nav ── */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px 4px;
  min-height: 56px;
  cursor: pointer;
}

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

.nav-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-btn-scan .nav-icon {
  font-size: 1.8rem;
  background: var(--primary);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

.nav-btn-scan.active .nav-icon {
  background: var(--primary-hover);
}

/* ── Inventory View ── */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(16px + var(--safe-top)) 16px 8px;
}

.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

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

.btn-logout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
  min-height: 40px;
  min-width: 40px;
}

.logout-form {
  margin: 0;
}

.login-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}

.login-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.login-card h1 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.login-card > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.login-form {
  text-align: left;
}

.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 16px;
}

.login-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.btn-logout {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 16px;
}

.search-box input,
select,
.item-form input,
.item-form textarea,
.sheet-panel input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}

.search-box input:focus,
select:focus,
.item-form input:focus,
.item-form textarea:focus,
.sheet-panel input:focus {
  border-color: var(--primary);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238b9cb3' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.item-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.content {
  padding: 0 16px 16px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s;
  min-height: 48px;
}

.item-card:active {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.item-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.item-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  flex-shrink: 0;
}

.item-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--secondary);
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.item-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-prices {
  display: flex;
  gap: 20px;
}

.price-tag {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-weight: 700;
  color: var(--success);
  font-size: 1rem;
}

.price-value.cost {
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h2 {
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state .btn {
  margin-top: 20px;
}

/* ── Buttons ── */

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  min-height: 48px;
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

.btn-large {
  padding: 16px 24px;
  font-size: 1.05rem;
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

/* ── Bottom Sheets ── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sheet-panel {
  position: relative;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 12px 20px calc(24px + var(--safe-bottom));
  animation: slideUp 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

.sheet-panel-tall {
  max-height: 92dvh;
}

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

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 4px auto 16px;
}

.sheet-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.item-form .form-row {
  margin-bottom: 14px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.required {
  color: var(--danger);
}

.form-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.detail-field.full {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 1rem;
  font-weight: 500;
}

.detail-value.mono {
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.detail-value.price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--success);
}

.detail-value.price.cost {
  color: var(--text-muted);
}

.detail-actions {
  padding-top: 8px;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 3000;
  font-size: 0.95rem;
  text-align: center;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger);
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Dashboard ── */

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.dashboard-content {
  padding: 0 16px 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card.wide {
  grid-column: 1 / -1;
}

.stat-card.accent-blue { border-color: rgba(59, 130, 246, 0.4); }
.stat-card.accent-purple { border-color: rgba(139, 92, 246, 0.4); }
.stat-card.accent-green { border-color: rgba(34, 197, 94, 0.4); }

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dashboard-search input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.quick-action-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 72px;
}

.quick-action-btn span:first-child {
  font-size: 1.4rem;
}

.filter-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.text-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row.scroll-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.chip[data-category]:not(.active):not([data-category=""]) {
  border-color: var(--chip-color, var(--border));
  color: var(--chip-color, var(--text));
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.recent-item:active {
  border-color: var(--primary);
}

.recent-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.recent-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

/* ── Status ── */

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-in_stock {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.status-posted {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.status-sold {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-status {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.btn-status.posted {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.btn-status.sold {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-status.stock {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

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

.detail-header-row h2 {
  font-size: 1.2rem;
  flex: 1;
}

.item-card-sub {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.qty-badge {
  font-size: 0.75rem;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* ── Categories manage ── */

.category-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.category-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.category-manage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cat-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-manage-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.btn-icon-sm {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.sheet-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.form-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 10px;
}

.item-form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
}

#sold-price-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 12px;
}

/* ── Desktop ── */

@media (min-width: 769px) {
  .app {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 24px calc(var(--nav-height) + 24px);
  }

  .scan-screen {
    border-radius: var(--radius);
    height: 70vh;
    max-height: 600px;
    border: 1px solid var(--border);
  }

  .inventory-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card.wide {
    grid-column: span 2;
  }

  .item-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }

  .sheet {
    align-items: center;
    padding: 20px;
  }

  .sheet-panel {
    border-radius: var(--radius);
    max-height: 85vh;
  }

  .bottom-nav {
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
  }

  .nav-btn-scan .nav-icon {
    margin-top: -12px;
    width: 48px;
    height: 48px;
  }
}