/* === Theme Variables === */
:root,
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #263348;
  --bg-input: #0f172a;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --border: #334155;
  --border-light: #1e293b;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --drop-zone-bg: #1e293b;
  --drop-zone-border: #475569;
  --drop-zone-active: #6366f1;
  --sidebar-bg: #1e293b;
  --scrollbar-track: #1e293b;
  --scrollbar-thumb: #475569;
  --code-bg: #0f172a;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --accent-glow: rgba(79, 70, 229, 0.1);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #16a34a;
  --success-bg: rgba(22, 163, 74, 0.1);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.1);
  --drop-zone-bg: #f1f5f9;
  --drop-zone-border: #cbd5e1;
  --drop-zone-active: #4f46e5;
  --sidebar-bg: #ffffff;
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --code-bg: #f1f5f9;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

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

.header-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.header-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-icon {
  font-size: 16px;
}

/* === App Layout === */
.app-layout {
  display: flex;
  min-height: calc(100vh - 65px);
}

/* === Sidebar === */
.sidebar {
  width: 320px;
  min-width: 320px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s, min-width 0.3s, opacity 0.3s;
}

.sidebar.hidden {
  width: 0;
  min-width: 0;
  border-right: none;
  opacity: 0;
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-text-danger:hover {
  background: var(--error-bg);
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.history-item {
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  margin-bottom: 4px;
}

.history-item:hover {
  background: var(--bg-card-hover);
}

.history-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 24px;
}

.history-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.history-delete {
  position: absolute;
  top: 10px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s;
}

.history-delete:hover {
  color: var(--error);
  background: var(--error-bg);
}

.history-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  font-size: 14px;
}

/* === Content Area === */
.content-area {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.greeting {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

/* === Drop Zone === */
.drop-zone {
  border: 2px dashed var(--drop-zone-border);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  background: var(--drop-zone-bg);
  cursor: pointer;
  transition: all 0.3s;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--drop-zone-active);
  background: var(--accent-glow);
}

.drop-zone.drag-over {
  transform: scale(1.01);
}

.drop-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.drop-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.drop-subtext {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.file-input-label {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.file-input-label:hover {
  background: var(--accent-hover);
}

.drop-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* === Image Previews === */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  user-select: none;
}

.preview-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.preview-item.selected {
  border-color: var(--success);
  box-shadow: 0 0 0 2px var(--success-bg), 0 4px 12px rgba(34, 197, 94, 0.2);
}

.preview-item.selected::after {
  content: '\2713';
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}

.preview-item .image-number {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 3;
}

.remove-btn:hover {
  background: var(--error);
}

/* === Image Toolbar === */
.image-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.image-toolbar.hidden {
  display: none;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

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

.toolbar-btn.btn-danger:hover {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error);
}

.selection-count {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* === Notes Section === */
.notes-section {
  margin-top: 20px;
}

.notes-section.hidden {
  display: none;
}

.notes-section label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.notes-section textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.notes-section textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.notes-section textarea::placeholder {
  color: var(--text-muted);
}

/* === Analyze Button === */
.analyze-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 24px auto 0;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.analyze-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.analyze-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 48px 16px;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.loading-text {
  color: var(--text-secondary);
  font-size: 16px;
}

/* === Error Display === */
.error-display {
  background: var(--error-bg);
  border: 1px solid var(--error);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-display.hidden {
  display: none;
}

.error-display p {
  color: var(--error);
  font-size: 14px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
}

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

/* === Results === */
.results {
  margin-top: 32px;
}

.results.hidden {
  display: none;
}

.result-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border);
}

.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
}

.copy-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-bg);
}

.toggle-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-content {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

/* === Section-specific styles === */

/* Title section - larger text */
[data-section="title"] .section-content {
  font-size: 18px;
  font-weight: 600;
}

/* HTML Preview */
.html-preview {
  background: white;
  border-radius: 8px;
  padding: 16px;
  max-height: 500px;
  overflow-y: auto;
}

.html-preview iframe {
  width: 100%;
  border: none;
  min-height: 400px;
}

.html-source {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  max-height: 500px;
}

.html-source.hidden {
  display: none;
}

.html-source code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Item Specifics table */
.specifics-table {
  width: 100%;
  border-collapse: collapse;
}

.specifics-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specifics-table tr:last-child {
  border-bottom: none;
}

.specifics-table td {
  padding: 8px 12px;
  font-size: 14px;
}

.specifics-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 200px;
  white-space: nowrap;
}

/* Tags as pills */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

/* Price display */
.price-display {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.price-tier {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 16px;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

/* === Tab Bar === */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.tab-btn.active .tab-count {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-intro {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.tab-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* === Seller Notes (internal) === */
.seller-notes-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.seller-notes-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.seller-notes-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.seller-notes-textarea::placeholder {
  color: var(--text-muted);
}

/* === Manual Fields (Price/SKU) === */
.manual-fields {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.field-group {
  flex: 1;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.field-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.field-group input::placeholder {
  color: var(--text-muted);
}

/* === eBay Integration === */
.ebay-btn.connected {
  border-color: var(--success);
  color: var(--success);
}

.ebay-draft-section {
  text-align: center;
  margin: 24px 0 8px;
}

.stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.stage-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ebay-draft-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.ebay-draft-status.hidden {
  display: none;
}

.ebay-draft-status.success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.ebay-draft-status.error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

.ebay-draft-status a {
  color: inherit;
  font-weight: 600;
}

/* === Item Cards (Staged / Listed) === */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.item-card:hover {
  border-color: var(--accent);
}

.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  gap: 12px;
}

.item-card-info {
  flex: 1;
  min-width: 0;
}

.item-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.item-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.item-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.item-card-fields {
  display: flex;
  gap: 12px;
  padding: 0 20px 12px;
}

.item-card-fields .field-group {
  flex: 1;
}

.item-card-fields input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}

.item-card-fields input:focus {
  outline: none;
  border-color: var(--accent);
}

.item-card-fields label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-card-notes {
  padding: 0 20px 12px;
}

.item-card-notes label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-card-notes p {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 0;
  white-space: pre-wrap;
}

.item-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card-hover);
}

.item-action-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
}

.item-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.item-action-btn.primary {
  background: #0064d2;
  color: white;
  border-color: #0064d2;
}

.item-action-btn.primary:hover {
  background: #0050aa;
  border-color: #0050aa;
}

.item-action-btn.publish {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.item-action-btn.publish:hover {
  opacity: 0.9;
}

.item-action-btn.danger {
  color: var(--error);
  border-color: transparent;
}

.item-action-btn.danger:hover {
  background: var(--error-bg);
  border-color: var(--error);
}

.item-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.staged {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.pushed {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.listed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* === New Listing Button === */
.new-listing-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 24px auto 48px;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.new-listing-btn:hover {
  background: var(--accent);
  color: white;
}

/* === Responsive === */
@media (max-width: 768px) {
  header {
    padding: 12px 16px;
  }

  .header-left {
    gap: 8px;
  }

  .logo {
    font-size: 20px;
  }

  .subtitle {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 57px;
    left: 0;
    bottom: 0;
    z-index: 99;
    width: 300px;
    min-width: 300px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .sidebar.hidden {
    width: 0;
    min-width: 0;
  }

  .content-area {
    padding: 20px 16px;
  }

  .drop-zone {
    padding: 32px 16px;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

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