/* ============================================
   ADMIN PANEL STYLES
   Version: 2.0.0 (Full)
   ============================================ */

/* Base */
:root {
  --admin-sidebar-width: 240px;
  --admin-nav-height: 64px;
  --accent-gold: #D4AF37;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ============================================
   ADMIN NAVBAR
   ============================================ */
.admin-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--admin-nav-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
}

.admin-nav-container {
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.admin-logo .brand-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-badge {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  -webkit-text-fill-color: var(--accent-gold);
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   ADMIN SIDEBAR
   ============================================ */
.admin-sidebar {
  position: fixed;
  top: var(--admin-nav-height);
  left: 0;
  bottom: 0;
  width: var(--admin-sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  padding: 16px 0;
  z-index: 99;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  font-size: 0.85rem;
  position: relative;
  border-right: 3px solid transparent;
}

.admin-menu-item:hover {
  background: rgba(212, 175, 55, 0.05);
  color: var(--text-primary);
}

.admin-menu-item.active {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.06);
  border-right-color: var(--accent-gold);
}

.admin-menu-item i {
  width: 20px;
  font-size: 1rem;
}

.admin-menu-item .badge {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-gold);
  color: #0A0806;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ============================================
   ADMIN CONTENT
   ============================================ */
.admin-content {
  margin-top: var(--admin-nav-height);
  margin-left: var(--admin-sidebar-width);
  padding: 32px;
  min-height: calc(100vh - var(--admin-nav-height));
}

.admin-tab {
  display: none;
  animation: fadeUp 0.4s ease-out forwards;
}

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

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

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0;
}

.admin-header p {
  color: var(--text-secondary);
  margin: 4px 0 0;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-card);
}

.stat-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
}

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

/* ============================================
   ADMIN FILTERS
   ============================================ */
.admin-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search {
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  min-width: 200px;
  flex: 1;
}

.admin-search:focus {
  border-color: var(--accent-gold);
}

.admin-select {
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.admin-select:focus {
  border-color: var(--accent-gold);
}

/* ============================================
   ADMIN TABLE
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
}

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

.admin-table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

.status-badge.processing {
  background: rgba(33, 150, 243, 0.15);
  color: #2196F3;
}

.status-badge.shipped {
  background: rgba(156, 39, 176, 0.15);
  color: #9C27B0;
}

.status-badge.delivered {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.status-badge.cancelled {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
}

.status-badge.open {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.status-badge.closed {
  background: rgba(158, 158, 158, 0.15);
  color: #9E9E9E;
}

.status-badge.resolved {
  background: rgba(33, 150, 243, 0.15);
  color: #2196F3;
}

.status-badge.active {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.status-badge.inactive {
  background: rgba(158, 158, 158, 0.15);
  color: #9E9E9E;
}

/* ============================================
   PRIORITY BADGES
   ============================================ */
.priority-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
}

.priority-badge.low {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.priority-badge.medium {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

.priority-badge.high {
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
}

.priority-badge.urgent {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
}

/* ============================================
   SECTION HEADER MINI
   ============================================ */
.section-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header-mini h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.action-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-gold);
}

.action-btn.danger:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

.payment-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.payment-decision-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 1 auto;
  transition: all var(--transition-fast);
}

.payment-decision-btn:hover {
  transform: translateY(-2px);
}

.payment-decision-btn.approve:hover {
  box-shadow: 0 6px 24px rgba(46, 204, 113, 0.35);
}

.payment-decision-btn.reject:hover {
  box-shadow: 0 6px 24px rgba(231, 76, 60, 0.25);
}

.payment-decision-btn.approve {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border-color: #2ecc71;
}

.payment-decision-btn.reject {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-color: #e74c3c;
}

@media (max-width: 480px) {
  .payment-decision-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ============================================
   REPORTS - NEW
   ============================================ */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.report-chart {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
}

.report-chart h4 {
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.report-chart canvas {
  max-height: 200px;
  width: 100% !important;
}

/* ============================================
   SETTINGS - NEW
   ============================================ */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-section {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
}

.settings-section h3 {
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.settings-section .form-group {
  margin-bottom: 12px;
}

/* ============================================
   ORDER STATS
   ============================================ */
.order-stats,
.user-stats,
.review-stats,
.ticket-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.order-stats span,
.user-stats span,
.review-stats span,
.ticket-stats span {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.admin-menu-toggle {
  display: none;
}

.admin-sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --admin-sidebar-width: 0px;
  }
  
  .admin-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
  
  .admin-sidebar-overlay.open {
    display: block;
    position: fixed;
    top: var(--admin-nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6,18,20,0.6);
    backdrop-filter: blur(4px);
    z-index: 98;
  }
  
  .admin-content {
    margin-left: 0;
    padding: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-filters {
    flex-direction: column;
  }
  
  .admin-search {
    min-width: 100%;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .admin-nav-actions .btn-secondary {
    width: auto;
  }

  .admin-nav-actions .btn-secondary span {
    display: none;
  }

  .admin-user {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-nav-actions .btn-secondary span {
    display: none;
  }
  
  .admin-nav-actions .btn-secondary {
    padding: 8px 12px !important;
  }

  .admin-navbar {
    height: auto;
    padding: 10px 12px;
  }

  .admin-nav-container {
    flex-wrap: nowrap;
  }
}

#productModal .modal-content {
  max-height: 85vh;
  overflow-y: auto;
}

.cmdk-hint {
  font-size: 0.6rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  margin-right: 4px;
}

.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.cmdk-box {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.cmdk-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.cmdk-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.cmdk-input-wrap button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.cmdk-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px;
}

.cmdk-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-size: 0.85rem;
}

.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cmdk-item:hover,
.cmdk-item.active {
  background: rgba(212, 175, 55, 0.1);
}

.cmdk-item .cmdk-type {
  font-size: 0.65rem;
  color: var(--accent-gold);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  margin-right: auto;
}

.notif-wrapper {
  position: relative;
}

.notif-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #f44336;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notif-dropdown {
  position: fixed;
  top: 64px;
  right: 16px;
  left: auto;
  width: min(380px, calc(100vw - 32px));
  max-height: 400px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 200;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.notif-dropdown-header button {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.75rem;
  cursor: pointer;
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.8rem;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(212, 175, 55, 0.06);
}

.notif-item.unread {
  background: rgba(212, 175, 55, 0.1);
}

.notif-item .notif-icon {
  font-size: 1.1rem;
}

.notif-item > div {
  min-width: 0;
  overflow-wrap: break-word;
}

.notif-item .notif-time {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-top: 2px;
}

.order-timeline {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.receipt-viewer-wrap {
  margin-top: 12px;
}

.receipt-viewer {
  display: block;
  width: 100%;
  height: 320px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.receipt-viewer img {
  display: block;
  width: 100%;
  height: auto;
}

.tracking-form {
  margin-top: 12px;
}

.tracking-form input {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: inherit;
}

.timeline-step {
  display: flex;
  gap: 14px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  right: 13px;
  width: 2px;
  height: calc(100% - 12px);
  background: linear-gradient(var(--accent-gold), var(--glass-border));
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--glass-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-step.done .timeline-dot {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1a1400;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.timeline-body {
  padding-top: 4px;
}

.timeline-body strong {
  display: block;
  font-size: 0.9rem;
}

.timeline-body span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.order-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.order-detail-item .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-detail-item .value {
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.order-reject-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.order-receipt-card {
  margin-bottom: 16px;
}

.order-receipt-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.order-track-group {
  margin: 18px 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.order-track-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-track-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-track-input-row input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: inherit;
}

.order-track-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--accent-gold);
  color: #1a1400;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.order-track-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.3);
}

.order-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.order-items-list {
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.order-item-row em {
  font-style: normal;
  color: var(--text-muted);
}

.order-item-price {
  color: var(--accent-gold);
  font-weight: 600;
}

.order-empty-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.order-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.order-total-box strong {
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.order-discount-tag {
  font-size: 0.78rem;
  color: #4CAF50;
  width: 100%;
}

@media (max-width: 480px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}
.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(212, 175, 55, 0.08);
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.btn-secondary.danger {
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.4);
}

.btn-secondary.danger:hover {
  background: rgba(244, 67, 54, 0.1);
}

#productsTable th:first-child,
#productsTable td:first-child {
  width: 36px;
  text-align: center;
}

.vendor-approval-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vendor-product-card {
  display: flex;
  gap: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vendor-product-card.removing {
  opacity: 0;
  transform: translateX(20px);
}

.vendor-product-card .thumb {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.vendor-product-card .emoji {
  font-size: 2rem;
}

.vendor-product-card .body {
  flex: 1;
  min-width: 0;
}

.vendor-product-card .name {
  font-weight: 700;
  margin-bottom: 4px;
}

.vendor-product-card .price {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.vendor-product-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.vendor-product-card .desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vendor-product-card .actions {
  display: flex;
  gap: 10px;
}

.vendor-product-card .actions button {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.vendor-product-card .reject-box {
  margin-top: 12px;
}

.vendor-approval-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.vendor-approval-toolbar input[type="text"] {
  flex: 1;
  min-width: 160px;
}

.vendor-approval-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.vendor-product-card {
  position: relative;
}

.vendor-product-card .select-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  z-index: 2;
}

.new-vendor-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.vendor-history-stats {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  font-size: 0.75rem;
}

.vendor-history-stats span {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
}

#vendorPreviewModal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

#vendorPreviewImageWrap {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

#vendorPreviewImageWrap .quick-view-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.quick-view-emoji {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 12px;
}