/* Invisible Watermarks - Main Styles */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --primary: #00AFF0;
  --primary-hover: #0091CC;
  --primary-light: #33C4FF;
  
  --bg-main: #0A0E1A;
  --bg-card: #151B2E;
  --bg-hover: #1F2937;
  --bg-input: #0F1419;
  
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --border: #374151;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--bg-hover);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.1);
}

.input-error {
  border-color: var(--error) !important;
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.card-hover {
  transition: all 0.2s;
  cursor: pointer;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 600px;
}

.hero {
  text-align: center;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   GRID
   ============================================ */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STATS CARDS
   ============================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   IMAGE GRID
   ============================================ */
.image-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.image-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-hover);
}

.image-info {
  padding: var(--spacing-md);
}

.image-name {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.image-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.image-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.buyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.buyer-badge.has-buyers {
  background: rgba(0, 175, 240, 0.15);
  color: var(--primary);
}

.image-card-actions {
  padding: 0 var(--spacing-md) var(--spacing-md);
  display: flex;
  gap: 0.5rem;
}

.quick-watermark-btn {
  flex: 1;
  font-size: 0.75rem !important;
  padding: 0.5rem 0.75rem !important;
}

/* ============================================
   BUYER CARDS
   ============================================ */
.buyer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.buyer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--primary);
  background: var(--bg-hover);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

/* ============================================
   DROPZONE
   ============================================ */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(0, 175, 240, 0.05);
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

.dropzone-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.dropzone-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 999px;
  overflow: hidden;
}

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

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }

/* ============================================
   WATERMARK LIST
   ============================================ */
.watermark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.watermark-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.watermark-info {
  flex: 1;
}

.watermark-buyer {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.watermark-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.watermark-actions {
  display: flex;
  gap: 0.5rem;
}

.watermark-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-processing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.toast-error {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.toast-info {
  border-color: var(--primary);
  background: rgba(0, 175, 240, 0.1);
}

/* ============================================
   DETECTION RESULTS ENHANCED
   ============================================ */
.detection-result-card {
  text-align: left;
  padding: 1.5rem;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.detection-result-card p {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detection-result-card p:last-child {
  margin-bottom: 0;
}

.ham-bar {
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.ham-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.ham-bar-fill.good {
  background: var(--success);
}

.ham-bar-fill.warning {
  background: var(--warning);
}

.ham-bar-fill.danger {
  background: var(--error);
}

/* ============================================
   DELETE BUTTON
   ============================================ */
.btn-danger {
  background: var(--error);
  color: white;
}

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

/* ============================================
   BUYER DRAWER (Slide-in Panel)
   ============================================ */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
}

.drawer.hidden {
  display: none;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease;
}

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

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-main);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

.drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.buyer-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
}

.buyer-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.buyer-stats .stat {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex: 1;
  text-align: center;
}

.buyer-stats .stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.buyer-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buyer-notes-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.buyer-notes-section label {
  font-weight: 600;
  color: var(--text-secondary);
}

.buyer-notes-section textarea {
  width: 100%;
  min-height: 100px;
  margin-bottom: 0.75rem;
  resize: vertical;
  font-family: inherit;
}

.buyer-watermarks {
  margin-bottom: 1rem;
}

.buyer-watermarks h4 {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Drawer watermark items */
.drawer-watermark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.drawer-watermark-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.drawer-watermark-info {
  flex: 1;
  min-width: 0;
}

.drawer-watermark-image {
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-watermark-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive drawer */
@media (max-width: 480px) {
  .drawer-content {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================
   IMAGE PICKER MODAL
   ============================================ */
.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.image-picker-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  background: var(--bg-card);
}

.image-picker-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.image-picker-item.already-watermarked {
  opacity: 0.7;
}

.image-picker-item.already-watermarked:hover {
  border-color: var(--success);
}

.image-picker-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-hover);
  display: block;
}

.image-picker-info {
  padding: 0.75rem;
}

.image-picker-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Already watermarked badge */
.image-picker-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
}

.image-picker-badge-icon {
  font-size: 0.8rem;
}

/* Overlay for already watermarked images */
.image-picker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 185, 129, 0.1);
  pointer-events: none;
}

/* ============================================
   BUYERS ACCORDION
   ============================================ */
.buyers-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 500px;
  overflow-y: auto;
}

.buyer-accordion-item {
  border-bottom: 1px solid var(--border);
}

.buyer-accordion-item:last-child {
  border-bottom: none;
}

.buyer-accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.buyer-accordion-header:hover {
  background: var(--bg-hover);
}

.buyer-accordion-header.expanded {
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}

.buyer-accordion-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  width: 20px;
  text-align: center;
}

.buyer-accordion-header.expanded .buyer-accordion-chevron {
  transform: rotate(90deg);
}

.buyer-accordion-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.buyer-accordion-info {
  flex: 1;
  min-width: 0;
}

.buyer-accordion-name {
  font-weight: 600;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buyer-accordion-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.buyer-accordion-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.buyer-accordion-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Expanded content */
.buyer-accordion-content {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
}

.buyer-accordion-content.expanded {
  display: block;
}

/* Notes section in accordion */
.buyer-accordion-notes {
  margin-bottom: 1rem;
}

.buyer-accordion-notes textarea {
  width: 100%;
  min-height: 60px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.buyer-accordion-notes textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.buyer-accordion-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.buyer-accordion-notes-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buyer-accordion-notes-save {
  font-size: 0.75rem;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.2s;
}

.buyer-accordion-notes-save.visible {
  opacity: 1;
}

/* Watermarks list in accordion */
.buyer-accordion-watermarks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.buyer-accordion-watermarks-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.buyer-accordion-wm-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.buyer-accordion-wm-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.buyer-accordion-wm-info {
  flex: 1;
  min-width: 0;
}

.buyer-accordion-wm-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buyer-accordion-wm-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.buyer-accordion-wm-actions {
  display: flex;
  gap: 0.5rem;
}

.buyer-accordion-wm-btn {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: var(--primary);
  color: white;
}

.buyer-accordion-wm-btn:hover {
  background: var(--primary-hover);
}

/* Quick actions row */
.buyer-accordion-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.buyer-accordion-action-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.buyer-accordion-action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

.buyer-accordion-action-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.buyer-accordion-action-btn.primary:hover {
  background: var(--primary-hover);
}

/* Empty watermarks in accordion */
.buyer-accordion-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Activity indicator dot */
.buyer-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.buyer-activity-dot.recent {
  background: var(--success);
}

.buyer-activity-dot.moderate {
  background: var(--warning);
}

.buyer-activity-dot.old {
  background: var(--text-muted);
}

/* ============================================
   HERO STATS
   ============================================ */
.hero-stats {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-stats-main {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(0, 175, 240, 0.1) 0%, transparent 100%);
}

.hero-stats-number {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stats-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-stats-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stats-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
}

.hero-stat-icon {
  font-size: 1rem;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .hero-stats-main {
    padding: 2rem 1rem 1.5rem;
  }
  
  .hero-stats-number {
    font-size: 3.5rem;
  }
  
  .hero-stats-label {
    font-size: 1rem;
  }
  
  .hero-stats-secondary {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .hero-stat-item {
    padding: 0.5rem 0.75rem;
  }
  
  .hero-stat-divider {
    display: none;
  }
  
  .hero-stat-item {
    flex: 1;
    min-width: 80px;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
  }
  
  .hero-stat-value {
    font-size: 1.125rem;
  }
  
  .hero-stat-label {
    font-size: 0.75rem;
  }
}

/* ============================================
   RESPONSIVE IMAGE CARDS (Grid → List on Mobile)
   ============================================ */

/* Base image card styles */
.image-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.image-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.image-card-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-hover);
}

.image-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 2.5rem;
}

/* Video badge overlay */
.image-card-thumb {
  position: relative;
}

.video-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.image-card-info {
  padding: 0.875rem;
}

.image-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.image-card-wm-count {
  color: var(--text-muted);
}

.image-card-wm-count.has-wm {
  color: var(--success);
}

.image-card-action {
  padding: 0 0.875rem 0.875rem;
}

.btn-icon-action {
  width: 100%;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-icon-action:hover {
  background: var(--primary-hover);
}

/* Desktop/Mobile visibility helpers */
.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

/* ========== MOBILE LIST VIEW ========== */
@media (max-width: 640px) {
  /* Convert grid to vertical list */
  #imagesContainer.grid-4 {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  
  /* Card becomes horizontal row */
  .image-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
  }
  
  .image-card:last-child {
    border-bottom: none;
  }
  
  .image-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-hover);
  }
  
  /* Small square thumbnail */
  .image-card-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  
  .thumb-placeholder {
    font-size: 1.25rem;
  }
  
  /* Info takes remaining space */
  .image-card-info {
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  
  .image-card-name {
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
  }
  
  .image-card-meta {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  /* Compact action button */
  .image-card-action {
    padding: 0;
  }
  
  .btn-icon-action {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Show/hide for mobile */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: inline !important;
  }
}

/* ============================================
   COMPACT BUYERS ACCORDION (Optimized)
   ============================================ */

/* Override previous accordion styles for compact layout */
.buyer-accordion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.buyer-accordion-header:hover {
  background: var(--bg-hover);
}

.buyer-accordion-header.expanded {
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}

.buyer-accordion-chevron {
  font-size: 0.625rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  width: 12px;
  flex-shrink: 0;
}

.buyer-accordion-header.expanded .buyer-accordion-chevron {
  transform: rotate(90deg);
}

/* Compact info section */
.buyer-accordion-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.buyer-accordion-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buyer-accordion-username {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Compact stats */
.buyer-accordion-stats-compact {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.buyer-stat-wm {
  color: var(--success);
  font-weight: 500;
}

.buyer-stat-none {
  color: var(--text-muted);
}

.buyer-stat-sep {
  color: var(--border);
}

.buyer-stat-date {
  color: var(--text-muted);
}

/* Mobile adjustments for buyers accordion */
@media (max-width: 640px) {
  .buyer-accordion-header {
    padding: 0.625rem 0.875rem;
  }
  
  .buyer-accordion-name {
    font-size: 0.85rem;
  }
  
  .buyer-accordion-username {
    display: none;
  }
  
  .buyer-accordion-stats-compact {
    font-size: 0.75rem;
  }
  
  .buyer-accordion-content {
    padding: 0.875rem;
  }
  
  .buyer-accordion-actions {
    flex-direction: column;
  }
}

/* ============================================
   BUYER AUTOCOMPLETE
   ============================================ */

.buyer-input-wrapper {
  position: relative;
}

.buyer-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.buyer-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.buyer-suggestion-item:last-child {
  border-bottom: none;
}

.buyer-suggestion-item:hover {
  background: var(--bg-hover);
}

.buyer-suggestion-item.selected {
  background: rgba(0, 175, 240, 0.1);
}

.buyer-suggestion-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.buyer-suggestion-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buyer-suggestion-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.buyer-suggestion-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.buyer-suggestion-new {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* No matches message */
.buyer-suggestions-empty {
  padding: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Recent Buyers Chips */
.recent-buyers-section {
  margin-bottom: 1rem;
}

.recent-buyers-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.recent-buyers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buyer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.buyer-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.buyer-chip-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.buyer-chip:hover .buyer-chip-count {
  color: rgba(255, 255, 255, 0.8);
}

/* Highlight matching text in suggestions */
.buyer-suggestion-match {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   SECTION HEADER (with action button)
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* ============================================
   WATERMARK ACTION BUTTON (More Obvious)
   ============================================ */
.btn-watermark-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-watermark-action:hover {
  background: #0ea572;
  transform: scale(1.02);
}

.btn-wm-icon {
  font-size: 0.9rem;
}

.btn-wm-text {
  display: inline;
}

/* Mobile adjustments for watermark button */
@media (max-width: 640px) {
  .btn-watermark-action {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }
  
  .btn-wm-icon {
    font-size: 0.85rem;
  }
  
  /* Keep text visible on mobile for clarity */
  .btn-wm-text {
    display: inline;
  }
  
  /* Override old btn-icon-action styles */
  .image-card-action {
    flex-shrink: 0;
  }
}

/* ============================================
   OPTION D: Gray Upload, Blue Action
   ============================================ */

/* Subtle gray button for Upload */
.btn-subtle {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-subtle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Blue "Buyer Copy" button */
.btn-buyer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

/* Mobile adjustments */
@media (max-width: 640px) {
  .btn-buyer-copy {
    padding: 0.4rem 0.625rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }
  
  .btn-subtle {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   MOBILE TOUCH TARGETS & iOS FIXES
   ============================================ */

/* Modal close button - Apple recommends 44x44px minimum touch target */
.modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drawer close button - same 44px minimum */
.drawer-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iOS Input Zoom Prevention - 16px minimum prevents auto-zoom on focus */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  font-size: max(16px, 1rem);  /* Prevents iOS Safari zoom on focus */
}

/* iOS Safe Areas - for notch/home indicator */
.drawer-content {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.drawer-header {
  padding-top: max(1.5rem, env(safe-area-inset-top));
}

/* Ensure all interactive elements have adequate touch targets on mobile */
@media (max-width: 768px) {
  /* Buttons should be at least 44px tall */
  .btn {
    min-height: 44px;
  }
  
  .btn-sm {
    min-height: 36px;
  }
  
  /* Form inputs should have adequate height */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  /* Accordion headers should have adequate touch area */
  .buyer-accordion-header {
    min-height: 56px;
  }
  
  /* Watermark items touch target */
  .watermark-item,
  .drawer-watermark-item,
  .buyer-accordion-wm-item {
    min-height: 48px;
  }
}

/* ============================================
   SESSION QUEUE (Phase 1 Quick Win)
   ============================================ */

.session-queue {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
}

.session-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

.session-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.session-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.session-queue-item:hover {
  background: var(--bg-hover);
}

.session-queue-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.session-queue-item-name {
  font-weight: 500;
}

.session-queue-item-status {
  font-size: 0.75rem;
  color: var(--success);
}

/* ============================================
   IMAGE OVERVIEW DRAWER (Phase 2)
   ============================================ */

.image-overview-drawer {
  width: 420px;
  max-width: 100vw;
}

@media (max-width: 480px) {
  .image-overview-drawer {
    width: 100vw;
  }
}

.overview-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-hover);
  flex-shrink: 0;
}

.overview-stats {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.overview-stat {
  flex: 1;
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.overview-stat:last-child {
  border-right: none;
}

.overview-stat .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

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

.overview-section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.overview-section:last-child {
  border-bottom: none;
}

.overview-section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Quick Add Form */
.overview-quick-add {
  background: rgba(0, 175, 240, 0.08);
  margin: 0 -1.5rem;
  padding: 1rem 1.5rem !important;
  border-bottom: 2px solid var(--primary) !important;
}

.quick-add-form {
  display: flex;
  gap: 0.75rem;
}

.quick-add-form input {
  flex: 1;
}

.quick-add-form .btn {
  white-space: nowrap;
}

/* Processing/Completed Items */
.overview-processing-item,
.overview-completed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}

.overview-processing-item {
  gap: 1rem;
}

.overview-processing-item .progress {
  flex: 1;
  max-width: 100px;
  height: 6px;
}

.overview-completed-item {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

/* Existing Buyers List */
.overview-existing-list {
  max-height: 300px;
  overflow-y: auto;
}

.overview-buyer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.overview-buyer-item:last-child {
  border-bottom: none;
}

.overview-buyer-item:hover {
  background: var(--bg-hover);
}

.overview-buyer-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.overview-buyer-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-buyer-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.overview-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Drawer Footer */
.drawer-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  background: var(--bg-card);
}

/* ============================================
   BATCH MODE (Phase 3)
   ============================================ */

#batchBuyerInput {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text);
}

#batchBuyerInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, 0.1);
}

/* Processing queue states */
.overview-processing-item.queued {
  opacity: 0.7;
  background: var(--bg-hover);
}

.overview-processing-item.processing {
  border-color: var(--primary);
  background: rgba(0, 175, 240, 0.05);
}

/* Batch mode toggle active state */
#batchModeToggle.btn-primary {
  background: var(--primary);
  color: white;
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.loading-skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  color: var(--text-muted) !important;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Remove animation once loaded */
.loading-skeleton.loaded {
  animation: none;
  color: inherit !important;
}
