/*
 * SELLER.CSS - LATIN AMERICAN EDITION
 * ====================================
 * Modern, vibrant seller dashboard with Latin American cultural inspiration
 * Featuring warm terracotta, gold accents, and energetic design elements
 */

/* ==========================================================================
   Seller Dashboard Layout - Latin American Theme
   ========================================================================== */

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

/* MODERN LATIN AMERICAN SIDEBAR */
.sidebar {
  width: 280px;
  height: 100vh;
  background: linear-gradient(165deg, #1a1f2e 0%, #2d1f3a 100%);
  position: fixed;
  left: 0;
  top: 0;
  color: #fff;
  overflow-y: auto;
  padding: 0;
  padding-top: 95px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  border-right: none;
  z-index: 100;
  /* Subtle Latin American textile pattern overlay */
  background-image:
    linear-gradient(165deg, #1a1f2e 0%, #2d1f3a 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(233, 75, 60, 0.03) 10px, rgba(233, 75, 60, 0.03) 20px);
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #E94B3C, #F5A623);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ff6b5a, #ffc04d);
}

/* Vibrant Sidebar Header with Latin American Flair */
.sidebar::before {
  content: 'LATAM Seller';
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 85px;
  background: linear-gradient(135deg, #E94B3C 0%, #DC2626 50%, #991b1b 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  border-bottom: 3px solid rgba(245, 166, 35, 0.4);
  z-index: 101;
  box-shadow: 0 4px 12px rgba(233, 75, 60, 0.3);
  /* Text styles */
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-family: 'Poppins', 'Inter', sans-serif;
  box-sizing: border-box;
}

.sidebar::after {
  content: none;
}

/* Main Navigation Items - Modern & Bold */
.main-category {
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  margin: 8px 14px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border-left: 3px solid transparent;
  overflow: hidden;
}

/* Hover Effect with Warm Latin American Colors */
.main-category:hover {
  background: linear-gradient(90deg, rgba(233, 75, 60, 0.15) 0%, rgba(245, 166, 35, 0.08) 100%);
  color: #fff;
  transform: translateX(4px);
  border-left-color: #F5A623;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

/* Active State - Vibrant Gradient */
.main-category.active {
  background: linear-gradient(90deg, rgba(233, 75, 60, 0.25) 0%, rgba(220, 38, 38, 0.15) 100%);
  color: #fff;
  font-weight: 600;
  border-left-color: #F5A623;
  box-shadow:
    0 4px 16px rgba(233, 75, 60, 0.3),
    inset 0 0 20px rgba(245, 166, 35, 0.1);
}

/* Active indicator glow */
.main-category.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #F5A623, #E94B3C);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.8);
  border-radius: 0 4px 4px 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(0.95); }
}

/* Icons with Vibrant Styling */
.main-category i {
  font-size: 18px;
  width: 22px;
  opacity: 0.85;
  transition: all 0.3s ease;
  color: rgba(245, 166, 35, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.main-category:hover i {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
  color: #F5A623;
  filter: drop-shadow(0 4px 8px rgba(245, 166, 35, 0.4));
}

.main-category.active i {
  opacity: 1;
  color: #FFC04D;
  animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-5deg); }
  75% { transform: scale(1.05) rotate(3deg); }
}

/* Subcategories - Sleek Modern Design */
.subcategories {
  display: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  margin: 0 14px 14px 14px;
  border-radius: 10px;
  border-left: 2px solid rgba(245, 166, 35, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.subcategories.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subcategories a {
  display: block;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  margin: 3px 10px;
  position: relative;
  font-size: 13.5px;
  font-weight: 400;
  border-left: 2px solid transparent;
}

.subcategories a::before {
  content: '→';
  position: absolute;
  left: 8px;
  opacity: 0;
  transition: all 0.25s ease;
  color: #F5A623;
}

.subcategories a:hover {
  background: rgba(245, 166, 35, 0.1);
  color: rgba(255, 255, 255, 0.95);
  padding-left: 28px;
  border-left-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.15);
}

.subcategories a:hover::before {
  opacity: 1;
  left: 12px;
}

.subcategories a:active,
.subcategories a.active {
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.2) 0%, rgba(233, 75, 60, 0.15) 100%);
  color: #FFC04D;
  font-weight: 500;
  border-left-color: #F5A623;
  box-shadow: 0 3px 10px rgba(245, 166, 35, 0.25);
}

/* Sidebar Username Display */
.sidebar-username {
  padding: 12px 20px;
  margin: 0 14px 20px 14px;
  background: linear-gradient(135deg, rgba(233, 75, 60, 0.12) 0%, rgba(245, 166, 35, 0.08) 100%);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid #F5A623;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-username::before {
  content: '👤';
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Navigation Divider */
.sidebar-nav-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.3) 50%, transparent 100%);
  margin: 20px 20px;
  position: relative;
}

.sidebar-nav-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, #E94B3C, #F5A623);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

/* Sidebar Navigation Buttons */
.sidebar-navigation {
  padding: 14px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding-bottom: 30px;
}

.nav-button {
  padding: 14px 20px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  backdrop-filter: blur(5px);
}

.nav-button i {
  font-size: 16px;
  transition: all 0.3s ease;
  color: rgba(245, 166, 35, 0.9);
}

.nav-button:hover {
  background: rgba(245, 166, 35, 0.15);
  color: #fff;
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.2);
}

.nav-button:hover i {
  transform: translateX(-3px);
  color: #F5A623;
}

.nav-button.logout-button {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.2);
}

.nav-button.logout-button:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.nav-button.logout-button i {
  color: rgba(239, 68, 68, 0.9);
}

.nav-button.logout-button:hover i {
  color: #ef4444;
  transform: translateX(3px);
}

.content-container {
  margin-left: 280px;
  padding: 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Notification Badges for Menu Items */
.main-category .notification-badge {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(233, 75, 60, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 2px 8px rgba(233, 75, 60, 0.4);
  }
  50% {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 75, 60, 0.6);
  }
}

/* Decorative Accent Line Below Header */
/* (sidebar::before defined above near line 58) */

/* Sidebar Loading State */
.sidebar-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.sidebar-loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(245, 166, 35, 0.3);
  border-top-color: #F5A623;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

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

/* Hover Effect Enhancement - Ripple */
.main-category::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.6s ease-out;
  pointer-events: none;
}

.main-category:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: all 0s;
}

/* Tooltip for collapsed sidebar (optional for future) */
.main-category[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #1a1f2e, #2d1f3a);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-left: 10px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.sidebar.collapsed .main-category:hover[data-tooltip]::before {
  opacity: 1;
  visibility: visible;
}

/* Home Dashboard */
.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* To Do Container */
.todo-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.todo-container h3 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.todo-container p {
  margin: 0 0 20px 0;
  color: #6c757d;
  font-size: 14px;
}

.todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.todo-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px 15px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.todo-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.todo-item .count {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 8px;
}

.todo-item span {
  font-size: 12px;
  color: #6c757d;
  display: block;
  line-height: 1.3;
}

/* Business Insights */
.business-insights-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.insights-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.more-link {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.more-link:hover {
  text-decoration: underline;
}

.insights-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.insights-graph {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insights-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.data-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.data-item h4 {
  margin: 0 0 10px 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.data-item p {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: bold;
}

.data-item span {
  color: #6c757d;
  font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   Breakpoints: 480px (phones) | 768px (tablets) | 1024px (desktop)
   ========================================================================== */

/* Extra Small Phones (< 480px) */
@media (max-width: 479px) {
  /* Single column for todo items on small phones */
  .todo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Reduce padding on small phones */
  .todo-container,
  .business-insights-container,
  .announcements-container,
  .income-container,
  .white-body,
  .product-form-container,
  .rule-board-container {
    padding: 15px;
    border-radius: 8px;
  }

  /* Smaller font sizes for better space utilization */
  .todo-item .count {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .data-item p {
    font-size: 18px;
  }

  .analytics-card-content h3 {
    font-size: 22px;
  }

  .todo-container h3,
  .insights-header h3 {
    font-size: 18px;
  }

  /* Full width income grid on phones */
  .income-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .graph-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Tighter spacing */
  .home-grid {
    gap: 15px;
    margin-bottom: 15px;
  }

  .left-column,
  .right-column {
    gap: 15px;
  }
}

/* Phones and Small Tablets (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  /* Two column todo grid for larger phones */
  .todo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Moderate padding */
  .todo-container,
  .business-insights-container,
  .announcements-container,
  .income-container,
  .white-body,
  .product-form-container,
  .rule-board-container {
    padding: 18px;
  }

  /* Scaled font sizes */
  .todo-item .count {
    font-size: 22px;
  }

  .data-item p {
    font-size: 20px;
  }

  .analytics-card-content h3 {
    font-size: 24px;
  }

  /* Responsive grid with better minmax */
  .income-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .graph-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Sidebar becomes full width on tablet in mobile mode */
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .content-container {
    margin-left: 0;
    padding: 20px;
  }

  /* Two column layout for better tablet space utilization */
  .home-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Todo grid - 3 columns on tablet */
  .todo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  /* Insights content single column */
  .insights-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Income grid - 2 columns on tablet */
  .income-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .graph-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Standard padding for tablets */
  .todo-container,
  .business-insights-container,
  .announcements-container,
  .income-container,
  .white-body,
  .product-form-container,
  .rule-board-container {
    padding: 20px;
  }

  /* Font sizes remain closer to desktop */
  .todo-item .count {
    font-size: 24px;
  }

  .data-item p {
    font-size: 22px;
  }
}

/* Mobile and Tablet Combined (< 1024px) */
@media (max-width: 1023px) {
  /* Sidebar becomes sliding drawer on mobile */
  .sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding-top: 95px;
  }

  /* Keep sidebar header fixed on mobile */
  .sidebar::before {
    position: fixed;
    width: 280px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .content-container {
    margin-left: 0;
    padding-top: 70px; /* Account for mobile nav header */
  }

  /* Single column grid for main layout */
  .home-grid {
    grid-template-columns: 1fr;
  }

  /* Stack insights content vertically */
  .insights-content {
    grid-template-columns: 1fr;
  }

  /* Reduce graph height on mobile */
  .insights-graph {
    height: 200px;
  }
}

/* Announcements */
.announcements-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.announcement {
  padding: 15px 0;
}

.announcement h4 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.announcement p {
  margin: 0 0 8px 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

.announcement .date {
  color: #adb5bd;
  font-size: 12px;
  font-style: italic;
}

/* ==========================================================================
   SELLER HOME — Modern Redesign (sh-* prefix)
   ========================================================================== */

/* Welcome banner */
.sh-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 55%, #ef4444 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  color: #fff;
}
.sh-welcome-greeting {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -.2px;
}
.sh-welcome-date {
  font-size: 13px;
  opacity: .8;
}
.sh-refresh-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  opacity: .85;
  background: rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* KPI Row */
.sh-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media(max-width:900px){ .sh-kpi-row{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .sh-kpi-row{ grid-template-columns: 1fr; } }

.sh-kpi-tile {
  background: #fff;
  border: 1.5px solid #f1f5f9;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .15s, transform .15s;
}
.sh-kpi-tile:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.sh-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sh-kpi-info { flex: 1; min-width: 0; }
.sh-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.sh-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.1;
}
.sh-kpi-info.has-alerts .sh-kpi-val { color: #3b82f6; }
.sh-kpi-info.has-warnings .sh-kpi-val { color: #eab308; }
.sh-kpi-info.updated-pulse .sh-kpi-val {
  animation: sh-pulse .6s ease;
}
@keyframes sh-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Main grid */
.sh-main-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}
@media(max-width:960px){ .sh-main-grid{ grid-template-columns: 1fr; } }

.sh-col-left,
.sh-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card base */
.sh-card {
  background: #fff;
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sh-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.sh-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
}
.sh-card-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}
.sh-more-link {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.sh-more-link:hover { text-decoration: underline; }

/* Pending items grid */
.sh-pending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media(max-width:480px){ .sh-pending-grid{ grid-template-columns: repeat(2,1fr); } }

.sh-pending-item {
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: #fafafa;
}
.sh-pending-item:hover {
  border-color: #dc2626;
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220,38,38,.08);
}
.sh-pending-item.has-action {
  border-color: #fca5a5;
  background: #fff5f5;
}
.sh-pending-item.has-action .sh-pi-count { color: #dc2626; }

.sh-pi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin: 0 auto 10px;
}
.sh-pi-count {
  font-size: 26px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
  margin-bottom: 6px;
}
.sh-pi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

/* Quick actions */
.sh-qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sh-qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  background: #fafafa;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.sh-qa-btn i {
  font-size: 20px;
  color: #dc2626;
}
.sh-qa-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220,38,38,.2);
}
.sh-qa-btn:hover i { color: #fff; }

/* Announcements */
.sh-announce-new-badge {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.sh-announce-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sh-announce-item {
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 4px solid transparent;
}
.sh-announce-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}
.sh-announce-warn {
  background: #fefce8;
  border-left-color: #eab308;
}
.sh-announce-important {
  background: #fef2f2;
  border-left-color: #ef4444;
}
.sh-announce-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sh-announce-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 20px;
}
.sh-tag-feature { background: #dbeafe; color: #1d4ed8; }
.sh-tag-maintenance { background: #fef9c3; color: #854d0e; }
.sh-tag-info { background: #e0f2fe; color: #0369a1; }
.sh-tag-important { background: #fee2e2; color: #b91c1c; }
.sh-announce-date {
  font-size: 11px;
  color: #94a3b8;
}
.sh-announce-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 5px;
}
.sh-announce-body {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

/* ==========================================================================
   SHIPPING SETTINGS — Modern Redesign (ss-* prefix)
   ========================================================================== */

.ss-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; margin-bottom: 20px;
}
.ss-save-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; background: #dc2626; color: #fff;
    border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .15s, transform .15s;
}
.ss-save-btn:hover { background: #b91c1c; transform: translateY(-1px); }
.ss-save-btn:disabled { opacity: .6; cursor: default; transform: none; }

.ss-info-banner {
    display: flex; align-items: flex-start; gap: 12px;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 12px 16px; margin-bottom: 28px; font-size: 13px; color: #1e40af;
}

.ss-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 28px; margin-bottom: 28px;
}
.ss-section-head { margin-bottom: 18px; }
.ss-section-title { font-size: 15px; font-weight: 800; color: #1a202c; margin-bottom: 3px; }
.ss-section-sub { font-size: 13px; color: #64748b; }

/* Shipping method cards */
.ss-method-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media(max-width:900px){ .ss-method-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .ss-method-grid{ grid-template-columns: 1fr; } }

.ss-method-card {
    border: 2px solid #f1f5f9; border-radius: 14px; padding: 18px 14px;
    text-align: center; cursor: pointer; transition: all .15s; background: #fafafa;
}
.ss-method-card:hover { border-color: #dc2626; background: #fff5f5; }
.ss-method-card.selected { border-color: #dc2626; background: #fff5f5; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.ss-method-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin: 0 auto 12px;
}
.ss-method-name { font-size: 14px; font-weight: 800; color: #1a202c; margin-bottom: 4px; }
.ss-method-desc { font-size: 12px; color: #64748b; line-height: 1.4; }

/* Sub-settings (show when method selected) */
.ss-subsetting {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 18px 20px; margin-top: 16px;
}
.ss-subsetting-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ss-field-label { font-size: 14px; font-weight: 600; color: #1a202c; margin-bottom: 2px; }
.ss-field-hint  { font-size: 12px; color: #94a3b8; }

/* Lempira input */
.ss-lempira-input {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden;
    background: #fff;
}
.ss-lempira-sm input { width: 80px; }
.ss-currency {
    padding: 8px 10px; background: #f1f5f9; font-size: 13px;
    font-weight: 700; color: #475569; flex-shrink: 0;
}
.ss-lempira-input input {
    padding: 8px 10px; border: none; outline: none; font-size: 15px;
    font-weight: 700; color: #1a202c; width: 120px; background: #fff;
}

/* Weight table */
.ss-weight-table { display: flex; flex-direction: column; gap: 0; }
.ss-weight-head {
    display: grid; grid-template-columns: 1fr auto;
    padding: 8px 12px; font-size: 11px; font-weight: 700;
    color: #94a3b8; text-transform: uppercase; letter-spacing: .5px;
}
.ss-weight-row {
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; gap: 16px; padding: 10px 12px;
    border-top: 1px solid #f1f5f9; font-size: 13px; font-weight: 500; color: #374151;
}

/* Zones */
.ss-zones-list { display: flex; flex-direction: column; gap: 0; }
.ss-zone-row {
    display: grid; grid-template-columns: 1fr auto auto;
    align-items: center; gap: 16px; padding: 14px 0;
    border-bottom: 1px solid #f8fafc;
}
.ss-zone-row:last-child { border-bottom: none; }
.ss-zone-intl { opacity: .7; }
.ss-zone-info { display: flex; align-items: center; gap: 12px; }
.ss-zone-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ss-zone-name { font-size: 13px; font-weight: 700; color: #1a202c; margin-bottom: 2px; }
.ss-zone-cities { font-size: 11px; color: #94a3b8; }

/* Toggle switch */
.ss-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.ss-toggle input { opacity: 0; width: 0; height: 0; }
.ss-toggle-slider {
    position: absolute; cursor: pointer; inset: 0; background: #e2e8f0;
    border-radius: 24px; transition: .2s;
}
.ss-toggle-slider::before {
    content: ''; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ss-toggle input:checked + .ss-toggle-slider { background: #dc2626; }
.ss-toggle input:checked + .ss-toggle-slider::before { transform: translateX(18px); }

/* Carrier grid */
.ss-carrier-group-label {
    font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase;
    letter-spacing: .6px; margin-bottom: 8px;
}

/* Rates info banner */
.ss-rates-info {
    display: flex; align-items: flex-start; gap: 10px;
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 12px 14px; font-size: 13px; color: #1e40af;
    margin-bottom: 20px; line-height: 1.5;
}
.ss-rates-info strong { color: #1e3a8a; }

/* Compact carrier list */
.ss-carrier-list {
    border: 1px solid #f1f5f9; border-radius: 12px; overflow: hidden; margin-bottom: 4px;
}
.ss-carrier-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; cursor: pointer;
    border-bottom: 1px solid #f8fafc; transition: background .12s;
    background: #fff;
}
.ss-carrier-row:last-child { border-bottom: none; }
.ss-carrier-row:hover { background: #f8fafc; }
.ss-carrier-row input[type="checkbox"] { display: none; }
.ss-carrier-icon-sm {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 14px;
}
.ss-carrier-info-block { flex: 1; min-width: 0; }
.ss-carrier-name-sm { font-size: 13px; font-weight: 600; color: #1e293b; }
.ss-carrier-days-sm { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.ss-carrier-link {
    font-size: 12px; color: #3b82f6; text-decoration: none; white-space: nowrap;
    flex-shrink: 0; transition: color .12s;
}
.ss-carrier-link:hover { color: #1d4ed8; text-decoration: underline; }

/* Toggle switch */
.ss-carrier-toggle-wrap { flex-shrink: 0; }
.ss-toggle-track {
    width: 40px; height: 22px; background: #e2e8f0; border-radius: 999px;
    position: relative; transition: background .2s;
}
.ss-toggle-thumb {
    width: 16px; height: 16px; background: #fff; border-radius: 50%;
    position: absolute; top: 3px; left: 3px; transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ss-carrier-row input:checked ~ .ss-carrier-toggle-wrap .ss-toggle-track { background: #dc2626; }
.ss-carrier-row input:checked ~ .ss-carrier-toggle-wrap .ss-toggle-thumb { transform: translateX(18px); }
.ss-carrier-row input:checked ~ .ss-carrier-name-sm { color: #dc2626; }

.ss-api-notice {
    display: flex; align-items: center; gap: 10px;
    background: #fefce8; border: 1px solid #fef08a; border-radius: 10px;
    padding: 12px 16px; font-size: 12px; color: #854d0e; margin-top: 16px;
}

/* Handling time */
.ss-handling-grid {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.ss-handling-option input { display: none; }
.ss-handling-card {
    border: 2px solid #f1f5f9; border-radius: 12px; padding: 16px 20px;
    text-align: center; cursor: pointer; transition: all .15s; background: #fafafa;
    min-width: 100px;
}
.ss-handling-option:hover .ss-handling-card { border-color: #e2e8f0; background: #fff; }
.ss-handling-option input:checked ~ .ss-handling-card {
    border-color: #dc2626; background: #fff5f5;
}
.ss-handling-emoji { font-size: 24px; margin-bottom: 6px; }
.ss-handling-label { font-size: 12px; font-weight: 700; color: #374151; }

/* =============================================
   SHIPPING WIZARD
   ============================================= */

/* Step progress indicator */
.ss-wiz-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 32px;
  padding: 24px 0 0;
}
.ss-wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ss-wiz-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.25s;
}
.ss-wiz-step.active .ss-wiz-step-circle {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}
.ss-wiz-step.done .ss-wiz-step-circle {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.ss-wiz-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}
.ss-wiz-step.active .ss-wiz-step-label { color: #dc2626; }
.ss-wiz-step.done .ss-wiz-step-label { color: #16a34a; }
.ss-wiz-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  margin-bottom: 22px;
  max-width: 80px;
  transition: background 0.3s;
}
.ss-wiz-line.done { background: #16a34a; }

/* Panel context (title + hint above each step's content) */
.ss-wpanel-ctx {
  margin-bottom: 20px;
}
.ss-wpanel-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 6px;
}
.ss-wpanel-hint {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  padding: 10px 14px;
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 6px 6px 0;
}

/* Wizard nav (Prev / Next / Save) */
.ss-wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.ss-wiz-prev {
  background: none;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ss-wiz-prev:hover { border-color: #94a3b8; color: #374151; }
.ss-wiz-next {
  background: #1a202c;
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ss-wiz-next:hover { background: #374151; transform: translateY(-1px); }
.ss-wiz-save {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}
.ss-wiz-save:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(220,38,38,.3); }

/* Review panel (step 3 bottom summary) */
.ss-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.ss-review-tile {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}
.ss-review-tile-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.ss-review-tile-val {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
}

/* Summary / edit mode (after first save) */
.ss-summary-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ss-sum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ss-sum-header h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
}
.ss-sum-header p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.ss-sum-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ss-sum-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s;
}
.ss-sum-card:hover { border-color: #cbd5e1; }
.ss-sum-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ss-sum-card-body { flex: 1; min-width: 0; }
.ss-sum-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.ss-sum-card-val {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2px;
}
.ss-sum-card-sub {
  font-size: 11px;
  color: #94a3b8;
}
.ss-sum-edit-btn {
  background: none;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  transition: all 0.2s;
}
.ss-sum-edit-btn:hover { border-color: #dc2626; color: #dc2626; }

/* Full edit accordion below summary cards */
.ss-edit-accordion {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.ss-edit-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
}
.ss-edit-section-toggle:last-of-type { border-bottom: none; }
.ss-edit-section-toggle:hover { background: #f1f5f9; }
.ss-edit-section-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ss-edit-section-body {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: none;
}
.ss-edit-section-body.open { display: block; }

/* =============================================
   ONBOARDING CHECKLIST
   ============================================= */

.ob-card {
  background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
  border: 1.5px solid #e0e7ff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(99,102,241,.06);
}
.ob-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
}
.ob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ob-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-title i { color: #dc2626; }
.ob-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ob-progress-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.ob-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  width: 33%;
}
.ob-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.ob-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.ob-dismiss:hover { color: #64748b; }
.ob-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ob-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ob-step:last-child { border-bottom: none; }
.ob-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.3s;
}
.ob-step.done .ob-step-icon {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}
.ob-step.active .ob-step-icon {
  border-color: #dc2626;
  background: #fff5f5;
  color: #dc2626;
}
.ob-step-body { flex: 1; min-width: 0; }
.ob-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1px;
}
.ob-step.done .ob-step-title { color: #64748b; text-decoration: line-through; }
.ob-step-sub {
  font-size: 11px;
  color: #94a3b8;
}
.ob-step-btn {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(220,38,38,.2);
}
.ob-step-btn:hover { opacity: .9; transform: translateY(-1px); }
@keyframes ob-slide-up {
  to { opacity: 0; transform: translateY(-12px); max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}
.ob-card.dismissing { animation: ob-slide-up 0.35s ease forwards; }

/* Seller Content Sections */
.seller-content {
  display: none;
  padding: 20px 0;
}

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

/* Income Grid */
.income-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.income-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.income-container h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.income-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}

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

.income-item.total {
  border-top: 2px solid #e9ecef;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: bold;
}

.income-item .label {
  color: #6c757d;
  font-size: 14px;
}

.income-item .value {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.income-actions {
  margin-top: 20px;
}

/* Analytics Cards */
.analytics-card-medium {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.analytics-card-medium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.analytics-card-container {
  width: 100%;
}

.analytics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.analytics-card-title p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.analytics-card-content h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 28px;
  font-weight: bold;
}

.analytics-card-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #28a745;
  font-size: 12px;
}

.analytics-card-footer i {
  color: #28a745;
}

/* Graph Container */
.graph-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.graph {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.graph h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

/* Product Form */
.product-form-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

.product-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

/* Rule Board */
.rule-board-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  margin-top: 20px;
}

.rule-list {
  margin: 0;
  padding-left: 20px;
}

.rule-list li {
  margin-bottom: 10px;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

/* White Body */
.white-body {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
}

/* ==========================================================================
   Seller Header & Signup
   ========================================================================== */

.seller-signup-header {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
}

.become-seller {
  display: flex;
  align-items: center;
  margin-right: 20px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.become-seller i {
  margin-right: 5px;
  font-size: 18px;
}

/* ==========================================================================
   Seller Application Container
   ========================================================================== */

.seller-app-container {
  width: 400px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #00000038;
  border-radius: 1px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.seller-app-container:hover {
  background-color: #f7f7f7;
}

/* ==========================================================================
   Seller Content Area
   ========================================================================== */

.seller-content {
  display: none;
}

.seller-content input[type="text"] {
  width: 300px;
  padding: 5px;
  margin-bottom: 10px;
}

.content-container {
  margin-left: 270px;
  padding: 20px;
  width: 100%;
}

.content h2 {
  margin-top: 0;
}

.content label {
  display: block;
  margin-bottom: 5px;
}

.content input[type="text"],
.content input[type="date"],
.content textarea {
  width: 200px;
  padding: 5px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Shop Information & Profile
   ========================================================================== */

.shop-info-container {
  box-shadow: 0 3px 5px 0 rgba(0,0,0,.05);
  border-radius: 5px;
  padding: 20px;
  background-color: white;
  max-width: 1500px;
  margin-top: 20px;
}

.shop-info-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.shop-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 15px;
}

.shop-header-details {
  flex-grow: 1;
}

.shop-name {
  margin: 0;
}

.last-active {
  margin: 5px 0 0;
  color: #777;
  font-size: 14px;
}

.shop-header-actions button {
  margin-left: 10px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  color: #000;
  cursor: pointer;
}

.shop-details {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 14px;
  justify-content: space-between;
}

.detail-label {
  font-weight: bold;
}

.detail-row {
  font-size: 14px;
}

/* ==========================================================================
   Shop Statistics & Management
   ========================================================================== */

.shop-stats {
  margin-bottom: 20px;
  margin-right: 20px;
  display: flex;
  font-size: 15px;
  padding: 20px;
}

.shop-buttons {
  padding-left: 10px;
}

.shop-imgname {
  margin-bottom: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Business Insights & Analytics
   ========================================================================== */

.business-insights-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.insights-header h3 {
  margin: 0;
  font-size: 18px;
}

.more-link {
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
}

.insights-content {
  display: flex;
}

.insights-graph {
  flex: 1;
  margin-right: 20px;
}

.insights-data {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.data-item {
  margin-bottom: 0;
}

.data-item h4 {
  margin: 0;
  font-size: 16px;
}

.data-item p {
  margin: 5px 0;
  font-size: 24px;
  font-weight: bold;
}

.data-item span {
  font-size: 12px;
  color: #108510;
}

/* ==========================================================================
   Product Information Management
   ========================================================================== */

.product-information-container {
  display: flex;
  flex-direction: column;
  max-width: 1500px;
  background-color: white;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 3px 5px 0 rgba(0,0,0,.05);
}

.product-information-container p {
  font-size: 14px;
  padding: 5px;
}

.product-information-container h3 {
  background-color: #fafafa;
  padding: 5px;
  margin-bottom: 5px;
}

/* ==========================================================================
   To-Do List Management
   ========================================================================== */

.todo-container {
  margin-top: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.todo-container h3 {
  margin-top: 0;
}

/* ==========================================================================
   My Orders Section
   ========================================================================== */

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.orders-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
}

.orders-header h2 i {
  margin-right: 10px;
  color: #007185;
}

.orders-actions {
  display: flex;
  gap: 15px;
}

/* Order Statistics Cards */
.order-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.order-stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.order-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  background-color: #c6c6c6 !important;
}

.unpaid-icon { background: #f39c12; }
.to-ship-icon { background: #3498db; }
.shipping-icon { background: #9b59b6; }
.completed-icon { background: #27ae60; }

.stat-content h3 {
  margin: 0 0 5px 0;
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
}

.stat-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* Orders Filters */
.orders-filters {
  margin-bottom: 25px;
}

.filter-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.search-container {
  display: flex;
  flex: 1;
  min-width: 300px;
}

.order-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.order-search-input:focus {
  border-color: #007185;
}

.search-btn {
  padding: 12px 20px;
  background: #007185;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background: #005a6b;
}

.filter-dropdowns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  min-width: 150px;
  outline: none;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  border-color: #007185;
}

/* ============================================
   MODERN TABS - SHOPEE/TIKTOK STYLE
   ============================================ */
.modern-tabs-wrapper {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 -30px 24px -30px;
  padding: 0 30px;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.modern-tabs-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 0 12px 0;
}

.modern-tabs-container::-webkit-scrollbar {
  display: none;
}

.modern-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #424242;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.modern-tab:hover {
  background: #e8e8e8;
  color: #212121;
}

.modern-tab.active {
  background: #007185;
  color: white;
  font-weight: 600;
}

.modern-tab .tab-label {
  line-height: 1;
}

.modern-tab .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.modern-tab.active .tab-badge {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .modern-tabs-wrapper {
    margin: 0 -20px 20px -20px;
    padding: 0 20px;
  }

  .modern-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .modern-tab .tab-badge {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    padding: 0 5px;
  }
}

/* Tab Panes - Ensure proper display */
#my-orders .tab-pane {
  display: none;
}

#my-orders .tab-pane.active {
  display: block !important;
}

/* Tab Enhancements (Old - for backwards compatibility) */
.tab-count {
  background: #007185;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 5px;
}

.tab-description {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #6c757d;
  font-size: 14px;
  border-left: 4px solid #007185;
}

/* Bulk Selection */
.bulk-selection-header {
  background: #e3f2fd;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bulk-selection-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bulk-checkbox {
  transform: scale(1.2);
}

.selected-count {
  font-weight: 600;
  color: #007185;
}

.bulk-actions {
  display: flex;
  gap: 10px;
}

/* Order Cards */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f4;
}

.order-selection {
  margin-right: 15px;
}

.order-checkbox {
  transform: scale(1.1);
}

.order-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-id {
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
}

.order-date {
  color: #6c757d;
  font-size: 14px;
}

.order-status {
  text-align: right;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.unpaid {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.to-ship {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge.shipping {
  background: #e2e3f1;
  color: #383d41;
  border: 1px solid #c3c6d4;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.cancelled {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Order Content */
.order-content {
  margin-bottom: 20px;
}

.buyer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.buyer-info i {
  color: #007185;
  font-size: 16px;
}

.buyer-name {
  font-weight: 600;
  color: #2c3e50;
}

.buyer-contact {
  color: #6c757d;
  font-size: 14px;
}

.order-items {
  margin-bottom: 15px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 10px;
}

.order-item:last-child {
  margin-bottom: 0;
}

.item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.item-details p {
  margin: 0 0 5px 0;
  color: #6c757d;
  font-size: 14px;
}

.item-quantity {
  color: #007185;
  font-weight: 600;
  font-size: 14px;
}

.item-price {
  text-align: right;
}

.item-price .price {
  font-size: 18px;
  font-weight: 600;
  color: #DB4444;
}

/* Shipping Info */
.shipping-info {
  display: flex;
  gap: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

.shipping-address,
.shipping-method {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shipping-address i,
.shipping-method i {
  color: #007185;
  font-size: 16px;
  width: 20px;
}

.tracking-number {
  margin-left: 10px;
  color: #007185;
  font-weight: 600;
  font-size: 13px;
}

/* Order Footer */
.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f3f4;
}

.order-total {
  font-size: 18px;
  color: #2c3e50;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-actions button i {
  font-size: 12px;
}

/* Orders Cards Container */
.orders-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Modern Order Card - Full Width */
.order-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #007185;
}

/* Order Card Header */
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-card-header-left {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}

.order-number-badge {
  font-size: 16px;
  font-weight: 600;
  color: #007185;
  cursor: pointer;
  text-decoration: none;
}

.order-number-badge:hover {
  text-decoration: underline;
}

.order-date-time {
  color: #757575;
  font-size: 14px;
}

.order-card-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Order Card Body */
.order-card-body {
  display: grid;
 
  gap: 24px;
  margin-bottom: 16px;
}

.order-items-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.order-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 15px;
  font-weight: 500;
  color: #212121;
  margin-bottom: 4px;
  line-height: 1.4;
}

.order-item-variation {
  font-size: 13px;
  color: #757575;
  margin-bottom: 4px;
}

.order-item-quantity {
  font-size: 13px;
  color: #424242;
}

.order-item-price {
  font-size: 15px;
  font-weight: 600;
  color: #212121;
  text-align: right;
  flex-shrink: 0;
}

/* Order Summary Section */
.order-summary-section {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.order-customer-info {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.customer-label {
  font-size: 12px;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.customer-name {
  font-size: 15px;
  font-weight: 500;
  color: #212121;
}

.order-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.pricing-row.total {
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  font-weight: 600;
  font-size: 16px;
  color: #212121;
}

.pricing-label {
  color: #757575;
}

.pricing-value {
  color: #212121;
}

/* Order Card Footer */
.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

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

.order-card-actions .standard-button {
  padding: 10px 20px;
  font-size: 14px;
}

/* Shipping Button Styling */
.standard-button.shipping-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-weight: 600;
}

.standard-button.shipping-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.orders-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007185;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.orders-loading p {
  color: #757575;
  font-size: 16px;
}

/* Empty States - Updated */
.orders-empty-state {
  text-align: center;
  padding: 80px 20px;
}

.orders-empty-state i {
  font-size: 80px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.orders-empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: #424242;
  margin-bottom: 10px;
}

.orders-empty-state p {
  font-size: 16px;
  color: #757575;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-state i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 24px;
  font-weight: 600;
}

.empty-state p {
  margin: 0;
  font-size: 16px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.pagination-info {
  color: #6c757d;
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  color: #495057;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #007185;
}

.pagination-btn.active {
  background: #007185;
  color: white;
  border-color: #007185;
}

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

.pagination-dots {
  padding: 0 10px;
  color: #6c757d;
}

/* Responsive Design for Orders */
@media (max-width: 1023px) {
  .orders-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .orders-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .order-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    min-width: 100%;
  }
  
  .filter-dropdowns {
    justify-content: stretch;
  }
  
  .filter-select {
    min-width: 100%;
  }
  
  .order-card {
    padding: 15px;
  }
  
  .order-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .order-status {
    text-align: left;
  }
  
  .shipping-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .order-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .order-actions {
    justify-content: center;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 15px;
  }

  /* MOBILE-FIRST: Convert Tables to Cards */
  .orders-table-container {
    overflow: visible;
  }

  .orders-table {
    display: block;
    border: none;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tbody {
    display: block;
  }

  .orders-table tr.order-row {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .orders-table td {
    display: block;
    border: none;
    padding: 8px 0;
    text-align: left;
  }

  .orders-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .orders-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .orders-table .product-cell::before {
    display: none;
  }

  .orders-table .product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
  }

  .orders-table .actions-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
  }

  .orders-table .actions-cell::before {
    display: none;
  }

  .orders-table .actions-cell .primary-btn,
  .orders-table .actions-cell .secondary-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 15px;
  }

  /* Tab menu horizontal scroll on mobile */
  .tab-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 8px;
  }

  .tab-menu li {
    display: inline-block;
  }
}

/* Extra small phones - even more compact */
@media (max-width: 479px) {
  .orders-header h2 {
    font-size: 20px;
  }

  .orders-actions button {
    padding: 10px 14px;
    font-size: 13px;
  }

  .order-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-select {
    padding: 12px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Mass Ship Section
   ========================================================================== */

.mass-ship-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e9ecef;
}

.mass-ship-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.mass-ship-header h2 i {
  margin-right: 12px;
  color: #007185;
}

.mass-ship-actions {
  display: flex;
  gap: 12px;
}

.mass-ship-content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

/* Mass Ship Methods */
.mass-ship-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  max-width: 900px;
}

.method-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #e9ecef;
  border-radius: 16px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007185, #00a0c6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.method-card:hover {
  border-color: #007185;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 113, 133, 0.2);
}

.method-card:hover::before {
  transform: scaleX(1);
}

.method-card.active {
  border-color: #007185;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2f7 100%);
  box-shadow: 0 8px 30px rgba(0, 113, 133, 0.25);
}

.method-card.active::before {
  transform: scaleX(1);
}

.method-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #007185 0%, #005a6b 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  box-shadow: 0 4px 15px rgba(0, 113, 133, 0.3);
  transition: all 0.3s ease;
}

.method-card:hover .method-icon {
  transform: scale(1.1) rotate(5deg);
}

.method-card.active .method-icon {
  background: linear-gradient(135deg, #005a6b 0%, #003d47 100%);
  box-shadow: 0 6px 20px rgba(0, 113, 133, 0.4);
}

.method-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.method-content h3 {
  margin: 0 0 12px 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.method-card.active .method-content h3 {
  color: #007185;
}

.method-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
}

/* Upload Section */
.upload-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.upload-instructions {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
}

.upload-instructions h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 20px;
}

.instruction-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.step-number {
  width: 30px;
  height: 30px;
  background: #007185;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.csv-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.upload-dropzone:hover {
  border-color: #007185;
  background: #f0f9ff;
}

.upload-dropzone.dragover {
  border-color: #007185;
  background: #e6f3ff;
  transform: scale(1.02);
}

.upload-icon {
  font-size: 48px;
  color: #007185;
  margin-bottom: 15px;
}

.upload-dropzone h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 18px;
}

.upload-dropzone p {
  margin: 0 0 15px 0;
  color: #6c757d;
}

.upload-link {
  color: #007185;
  font-weight: 600;
  cursor: pointer;
}

.file-requirements {
  color: #6c757d;
  font-size: 12px;
}

/* Upload Results */
.upload-results {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h3 {
  margin: 0;
  color: #2c3e50;
}

.results-summary {
  display: flex;
  gap: 20px;
}

.success-count {
  color: #27ae60;
  font-weight: 600;
}

.error-count {
  color: #e74c3c;
  font-weight: 600;
}

.results-table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.results-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.results-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* Manual Entry Section */
.manual-ship-section {
  margin-bottom: 30px;
}

.orders-filter {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: white;
}

.search-input:focus {
  border-color: #007185;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.shipping-method-filter {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: white;
  cursor: pointer;
  min-width: 200px;
}

.shipping-method-filter:focus {
  border-color: #007185;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.search-input:focus {
  border-color: #007185;
}

.order-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  min-width: 300px;
}

.order-search-input:focus {
  border-color: #007185;
}

.onpageSearch input[type="text"] {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  min-width: 200px;
}

.onpageSearch input[type="text"]:focus {
  border-color: #007185;
}

.onpageSearch {
  display: flex;
  align-items: stretch;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  height: 44px;
}

.onpageSearch:focus-within {
  border-color: #007185;
  box-shadow: 0 0 0 2px rgba(0, 113, 133, 0.1);
}

.onpageSearch button {
  background: #f8f9fa;
  border: none;
  padding: 0 15px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.onpageSearch button:hover {
  background: #007185;
  color: white;
}

.onpageSearch input[type="text"] {
  border: none;
  border-radius: 0;
  flex: 1;
  padding: 12px 15px;
  font-size: 14px;
  outline: none;
  background: transparent;
  height: 100%;
  box-sizing: border-box;
}

.shipping-method-filter {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  min-width: 200px;
}

.pending-orders {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
}

.pending-orders h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pending-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

/* Pending Order Card - Desktop First Layout */
.pending-order-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  display: grid;
  grid-template-columns: auto 200px 1fr 180px 200px 120px;
  grid-template-areas: "checkbox order-info product carrier tracking action";
  gap: 20px;
  align-items: center;
}

.pending-order-card:hover {
  border-color: #007185;
  box-shadow: 0 4px 16px rgba(0, 113, 133, 0.12);
  transform: translateY(-2px);
}

/* Checkbox */
.order-checkbox-container {
  grid-area: checkbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-select-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Order Details */
.order-basic-info {
  display: contents;
}

.order-details {
  grid-area: order-info;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.order-id {
  font-weight: 700;
  color: #007185;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-name {
  color: #2c3e50;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-date {
  color: #6c757d;
  font-size: 11px;
  white-space: nowrap;
}

/* Product Info */
.product-info {
  grid-area: product;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.product-thumbnail {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  flex-shrink: 0;
}

.product-details {
  min-width: 0;
  flex: 1;
}

.product-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 13px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-variant {
  color: #6c757d;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shipping Inputs */
.shipping-input-section {
  display: contents;
}

.carrier-select {
  grid-area: carrier;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tracking-input {
  grid-area: tracking;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.carrier-select label,
.tracking-input label {
  font-size: 11px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carrier-dropdown,
.tracking-number-input {
  padding: 8px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
  background: white;
  width: 100%;
  min-width: 0;
}

.carrier-dropdown:focus,
.tracking-number-input:focus {
  border-color: #007185;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

/* Ship Button */
.ship-action {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-single-btn {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 600;
  background: #007185;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.ship-single-btn:hover {
  background: #005a6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 133, 0.3);
}

.ship-single-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Bulk Actions Top Bar (Select All) */
.bulk-actions-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.select-all-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  margin: 0;
}

.select-all-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.refresh-orders-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #007185;
  border-radius: 6px;
  color: #007185;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-orders-btn:hover {
  background: #007185;
  color: white;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.loading-state i {
  font-size: 32px;
  color: #007185;
  margin-bottom: 16px;
}

.loading-state p {
  margin: 0;
  font-size: 14px;
}

/* Bulk Ship Actions Bar */
.bulk-ship-actions {
  background: linear-gradient(135deg, #007185 0%, #005a6b 100%);
  border-radius: 12px;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 113, 133, 0.25);
  animation: slideUp 0.3s ease;
}

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

.bulk-selection-info {
  font-weight: 600;
  color: white;
  font-size: 16px;
}

.bulk-ship-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bulk-carrier-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bulk-carrier-select label {
  font-size: 12px;
  color: white;
  font-weight: 600;
  margin-bottom: 5px;
}

.bulk-carrier-dropdown {
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
  background: white;
  color: #2c3e50;
  font-weight: 500;
}

.bulk-carrier-dropdown:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

#ship-selected-btn {
  background: white;
  color: #007185;
  border: 2px solid white;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

#ship-selected-btn:hover:not(:disabled) {
  background: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#ship-selected-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Batch Selection */
.batch-selection-info {
  margin-bottom: 30px;
}

.info-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid #007185;
}

.info-card h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 20px;
}

.info-card p {
  margin: 0 0 20px 0;
  color: #6c757d;
  line-height: 1.5;
}

.quick-links {
  display: flex;
  gap: 15px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #007185;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.link-button:hover {
  background: #005a6b;
}

.selected-orders-for-shipping {
  background: white;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #e9ecef;
}

.selected-orders-for-shipping h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
}

.empty-selection {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-selection i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-selection p {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

.empty-selection small {
  color: #adb5bd;
  font-size: 14px;
}

/* Shipping History */
.shipping-history-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #e9ecef;
  margin-top: 30px;
}

.shipping-history-section h3 {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 20px;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.history-stat {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #007185;
  margin-bottom: 5px;
}

.stat-label {
  color: #6c757d;
  font-size: 14px;
}

.recent-shipments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipment-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.shipment-time {
  font-weight: 600;
  color: #2c3e50;
  min-width: 70px;
  font-size: 14px;
}

.shipment-details {
  flex: 1;
  color: #6c757d;
  font-size: 14px;
}

.carrier-name {
  font-weight: 600;
  color: #007185;
}

.shipment-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.shipment-status.success {
  background: #d4edda;
  color: #155724;
}

.shipment-status.warning {
  background: #fff3cd;
  color: #856404;
}

/* Responsive Design for Mass Ship */

/* Tablet (1024px and below) */
@media (max-width: 1023px) {
  .mass-ship-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .mass-ship-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .mass-ship-methods {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto 40px auto;
  }

  .upload-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .orders-filter {
    flex-direction: column;
    align-items: stretch;
  }

  /* Tablet: Compress grid slightly */
  .pending-order-card {
    grid-template-columns: auto 160px 1fr 140px 160px 100px;
    gap: 12px;
    padding: 16px;
  }

  .product-thumbnail {
    width: 40px;
    height: 40px;
  }

  .order-id,
  .customer-name,
  .product-name {
    font-size: 12px;
  }

  .bulk-ship-actions {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    padding: 16px 20px;
  }

  .bulk-ship-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .bulk-carrier-dropdown {
    min-width: 100%;
  }

  #ship-selected-btn {
    width: 100%;
  }

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

  .shipment-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .mass-ship-methods {
    max-width: 100%;
  }

  .method-card {
    min-height: 160px;
    padding: 24px;
  }

  .method-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  /* Mobile: Stack all elements vertically */
  .pending-order-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "checkbox-order"
      "product"
      "carrier"
      "tracking"
      "action";
    gap: 16px;
    padding: 20px;
  }

  .order-checkbox-container {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .order-details {
    grid-area: checkbox-order;
    padding-right: 40px;
  }

  .product-info {
    grid-area: product;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
  }

  .product-thumbnail {
    width: 60px;
    height: 60px;
  }

  .carrier-select {
    grid-area: carrier;
  }

  .tracking-input {
    grid-area: tracking;
  }

  .ship-action {
    grid-area: action;
  }

  .carrier-select,
  .tracking-input {
    width: 100%;
  }

  .carrier-dropdown,
  .tracking-number-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .ship-single-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    justify-content: center;
  }

  .bulk-actions-top {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .refresh-orders-btn {
    width: 100%;
    justify-content: center;
  }

  .history-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .method-card {
    padding: 20px;
    min-height: 140px;
  }

  .method-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .method-content h3 {
    font-size: 18px;
  }

  .history-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 24px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.xs-margin-left {
  margin-left: 5px;
}

/* ==========================================================================
   Return/Refund Section (Table Layout)
   ========================================================================== */

.return-refund-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.return-refund-header h2 {
  color: #1f2937;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.return-refund-header h2 i {
  color: #ef4444;
  margin-right: 10px;
}

.return-search-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.return-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  min-width: 300px;
}

.return-search-input:focus {
  border-color: #007185;
}

.returns-table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.returns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.returns-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.returns-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.returns-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.returns-table tbody tr:hover {
  background: #f8fafc;
}

.returns-table td {
  padding: 16px;
  vertical-align: middle;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.product-cell span {
  font-weight: 500;
  color: #1f2937;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reason-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.reason-badge.defective {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fed7d7;
}

.reason-badge.not-described {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.reason-badge.changed-mind {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.reason-badge.wrong-item {
  background: #fdf4ff;
  color: #c026d3;
  border: 1px solid #e9d5ff;
}

.reason-badge.damaged {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.price {
  font-weight: 600;
  color: #059669;
  font-size: 15px;
}

.actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}

.return-btn,
.decline-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 36px;
}

.return-btn {
  background: #10b981;
  color: white;
}

.return-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.decline-btn {
  background: #ef4444;
  color: white;
}

.decline-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* New Return Action Buttons */
.approve-return-btn,
.reject-return-btn,
.refund-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 90px;
  height: 36px;
  margin-right: 6px;
}

.approve-return-btn {
  background: #10b981;
  color: white;
}

.approve-return-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.reject-return-btn {
  background: #ef4444;
  color: white;
}

.reject-return-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.refund-btn {
  background: #3b82f6;
  color: white;
}

.refund-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.approve-return-btn i,
.reject-return-btn i,
.refund-btn i {
  font-size: 12px;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.approved {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.refunded {
  background: #dbeafe;
  color: #1e40af;
}

.status-text {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* Returns Cards Layout - Mobile First */
.returns-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.returns-cards-container .loading-state,
.returns-cards-container .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.returns-cards-container .loading-state i {
  font-size: 48px;
  color: #E94B3C;
  margin-bottom: 16px;
}

.returns-cards-container .empty-state i {
  font-size: 64px;
  color: #d0d0d0;
  margin-bottom: 20px;
}

.returns-cards-container .empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.returns-cards-container .empty-state p {
  color: #999;
  font-size: 14px;
}

/* Return Card */
.return-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.return-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.return-card.expanded {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #E94B3C;
}

/* Return Card Header - Clickable */
.return-card-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.return-card-header:hover {
  background: #fafafa;
}

.return-card-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.return-product-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 250px;
}

.return-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.return-product-details {
  flex: 1;
  min-width: 0;
}

.return-product-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.return-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.return-order {
  font-weight: 500;
  color: #007185;
}

.return-date i {
  margin-right: 4px;
  font-size: 12px;
}

.return-card-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.return-amount {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.return-toggle-icon {
  font-size: 18px;
  color: #999;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.return-toggle-icon.rotated {
  transform: rotate(180deg);
  color: #E94B3C;
}

/* Return Card Details - Expandable */
.return-card-details {
  padding: 0 20px 20px 20px;
  border-top: 1px solid #f0f0f0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.return-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.return-detail-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.return-detail-item .detail-value {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.return-detail-item .detail-value i {
  color: #999;
  font-size: 14px;
}

.return-detail-item .detail-sub {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.return-detail-item .amount-highlight {
  color: #E94B3C;
  font-size: 18px;
  font-weight: 700;
}

.return-description,
.return-rejection {
  margin: 16px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #E94B3C;
}

.return-rejection {
  background: #fff5f5;
  border-left-color: #ef4444;
}

.return-description label,
.return-rejection label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.return-description label i,
.return-rejection label i {
  color: #E94B3C;
}

.return-description p,
.return-rejection p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.return-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .returns-cards-container {
    padding: 16px;
    gap: 12px;
  }

  .return-card-header {
    padding: 16px;
  }

  .return-card-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .return-product-info {
    width: 100%;
    min-width: 0;
  }

  .return-product-image {
    width: 60px;
    height: 60px;
  }

  .return-card-summary {
    width: 100%;
    justify-content: space-between;
  }

  .return-amount {
    font-size: 18px;
  }

  .return-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .return-card-actions {
    flex-direction: column;
  }

  .return-card-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   My Orders Section - Action Buttons
   ========================================================================== */

.view-details-btn,
.arrange-shipment-btn,
.print-label-btn,
.contact-buyer-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  white-space: nowrap;
  text-align: center;
}

.view-details-btn {
  background: #3b82f6;
  color: white;
}

.view-details-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.arrange-shipment-btn {
  background: #f59e0b;
  color: white;
}

.arrange-shipment-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.print-label-btn {
  background: #8b5cf6;
  color: white;
}

.print-label-btn:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.contact-buyer-btn {
  background: #10b981;
  color: white;
}

.contact-buyer-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Status badges for orders */
.status-badge.to-ship {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.status-badge.unpaid {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-badge.shipping {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.status-badge.completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-badge.cancelled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Special layout for orders actions cell - 2x2 Grid */
.order-row .actions-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  min-width: 200px;
  align-items: center;
}

/* ==========================================================================
   Return Approval Modal
   ========================================================================== */

/* General modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

/* Review modal specific z-index override */
#reviewResponseModal {
  z-index: 1001 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

.standard-modal {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: none;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 85vh;
  overflow-y: auto;
}

/* Enhanced addPaymentModal styling */
#addPaymentModal .standard-modal {
  max-width: 480px;
  margin: 3% auto;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

#addPaymentModal h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

#addPaymentModal .form-group {
  margin-bottom: 16px;
}

#addPaymentModal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

#addPaymentModal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

#addPaymentModal .form-group input,
#addPaymentModal .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#addPaymentModal .form-group input:focus,
#addPaymentModal .form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#addPaymentModal .button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

#addPaymentModal .button-group button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

#addPaymentModal .cancel-button {
  background: #f3f4f6;
  color: #374151;
}

#addPaymentModal .cancel-button:hover {
  background: #e5e7eb;
}

#addPaymentModal .add-card-button {
  background: #3b82f6;
  color: white;
}

#addPaymentModal .add-card-button:hover {
  background: #2563eb;
}

/* Navigation Confirmation Modal */
#navigationConfirmModal .confirmation-modal {
  max-width: 400px;
  text-align: center;
  padding: 32px 24px;
}

#navigationConfirmModal .confirmation-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

#navigationConfirmModal h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

#navigationConfirmModal p {
  margin: 0 0 24px 0;
  color: #6b7280;
  line-height: 1.5;
  font-size: 14px;
}

#navigationConfirmModal .confirmation-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#navigationConfirmModal .confirmation-buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

#navigationConfirmModal .cancel-nav-button {
  background: #f3f4f6;
  color: #374151;
}

#navigationConfirmModal .cancel-nav-button:hover {
  background: #e5e7eb;
}

#navigationConfirmModal .confirm-nav-button {
  background: #dc2626;
  color: white;
}

#navigationConfirmModal .confirm-nav-button:hover {
  background: #b91c1c;
}

.standard-modal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
}

.standard-modal .close:hover,
.standard-modal .close:focus {
  color: #000;
}

#returnApprovalModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.return-approval-modal {
  background-color: #fefefe;
  margin: 2% auto;
  padding: 0;
  border: none;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.return-approval-modal .modal-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 20px 30px;
  border-bottom: none;
}

.return-approval-modal .modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.return-approval-modal .modal-header i {
  margin-right: 10px;
  color: #bfdbfe;
}

.return-approval-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  height: 70vh;
}

.customer-product-info {
  padding: 30px;
  overflow-y: auto;
  background: #f9fafb;
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.info-section h3 i {
  color: #3b82f6;
  font-size: 20px;
}

.customer-details,
.product-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
  font-size: 14px;
}

.detail-value {
  color: #1f2937;
  font-size: 14px;
  flex: 1;
}

.detail-description {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 12px;
  background: #f3f4f6;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.product-display {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.product-meta h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.product-meta .product-price {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
  margin: 4px 0;
}

.product-meta .order-id {
  color: #6b7280;
  font-size: 13px;
  margin: 4px 0 0 0;
}

.return-reason-section {
  margin-top: 16px;
}

.approval-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.approval-actions .approve-btn,
.approval-actions .decline-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.approval-actions .approve-btn {
  background: #10b981;
  color: white;
}

.approval-actions .approve-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.approval-actions .decline-btn {
  background: #ef4444;
  color: white;
}

.approval-actions .decline-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Edit Product Modal Enhancements
   ========================================================================== */

.edit-product-modal-content {
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}

.edit-product-modal-content .product-form-container {
  padding: 0;
}

.edit-product-modal-content .product-form {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.edit-product-modal-content .tab-container {
  margin-top: 20px;
}

.edit-product-modal-content .tab-menu {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 25px;
}

.edit-product-modal-content .tab-menu li {
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.edit-product-modal-content .tab-menu li.active {
  border-bottom: 3px solid #007185;
  color: #007185;
}

.edit-product-modal-content .tab-pane {
  display: none;
}

.edit-product-modal-content .tab-pane.active {
  display: block;
}

.edit-product-modal-content .new-product-input-group {
  margin-bottom: 25px;
}

.edit-product-modal-content .new-product-input-group h4 {
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
}

.edit-product-modal-content .input-wrapper,
.edit-product-modal-content .sales-input-wrapper {
  margin-top: 8px;
}

.edit-product-modal-content input,
.edit-product-modal-content textarea,
.edit-product-modal-content select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.edit-product-modal-content input:focus,
.edit-product-modal-content textarea:focus,
.edit-product-modal-content select:focus {
  outline: none;
  border-color: #007185;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.edit-product-modal-content .radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.edit-product-modal-content .radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.edit-product-modal-content .input-hint {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  color: #6c757d;
  font-size: 13px;
}

.edit-product-modal-content .input-hint li {
  margin-bottom: 5px;
  padding-left: 15px;
  position: relative;
}

.edit-product-modal-content .input-hint li:before {
  content: "•";
  color: #007185;
  position: absolute;
  left: 0;
}

.edit-product-modal-content .add-video-btn {
  background: #007185;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.edit-product-modal-content .add-video-btn:hover {
  background: #005a6b;
}

.edit-product-modal-content .sales-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.edit-product-modal-content .weight-input,
.edit-product-modal-content .parcel-size-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-product-modal-content .size-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.edit-product-modal-content .size-input input {
  width: 80px;
}

.edit-product-modal-content .unit {
  font-weight: 600;
  color: #6c757d;
  font-size: 14px;
}

.edit-product-modal-content .carrier-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.edit-product-modal-content .carrier-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-product-modal-content .carrier-option:hover {
  border-color: #007185;
  background: #f8f9fa;
}

.edit-product-modal-content .carrier-option input[type="radio"]:checked + .carrier-details {
  border-left: 4px solid #007185;
  padding-left: 12px;
}

.edit-product-modal-content .carrier-details img {
  max-width: 100px;
  height: auto;
  margin-bottom: 8px;
}

.edit-product-modal-content .carrier-details p {
  margin: 0;
  color: #6c757d;
  font-size: 13px;
}

/* Variations Styling */
.edit-product-modal-content .variations-container {
  margin-top: 20px;
}

.edit-product-modal-content .variation-group {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.edit-product-modal-content .variation-group h4 {
  margin: 0 0 15px 0;
  color: #007185;
}

.edit-product-modal-content .variation-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.edit-product-modal-content .variation-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 13px;
}

.edit-product-modal-content .remove-variation {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.edit-product-modal-content .remove-variation:hover {
  background: #c82333;
}

.edit-product-modal-content .variations-button {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.edit-product-modal-content .variations-button:hover {
  background: #218838;
}

/* Preview Styling */
.edit-product-modal-content .image-preview,
.edit-product-modal-content .promotion-preview,
.edit-product-modal-content .video-preview {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.edit-product-modal-content .remove-image,
.edit-product-modal-content .remove-promotion-image,
.edit-product-modal-content .remove-video {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-product-modal-content .current-image {
  text-align: center;
  margin-bottom: 15px;
}

.edit-product-modal-content .current-image p {
  margin: 8px 0 0 0;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
}

/* Modal Footer */
.edit-product-modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 25px 0 0 0;
  border-top: 1px solid #e9ecef;
  margin-top: 30px;
}

.edit-product-modal-content .modal-footer button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.edit-product-modal-content .save-button {
  background: #28a745;
  color: white;
}

.edit-product-modal-content .save-button:hover {
  background: #218838;
}

.edit-product-modal-content .save-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.edit-product-modal-content .delist-button {
  background: #ffc107;
  color: #212529;
}

.edit-product-modal-content .delist-button:hover {
  background: #e0a800;
}

.edit-product-modal-content .delete-button {
  background: #dc3545;
  color: white;
}

.edit-product-modal-content .delete-button:hover {
  background: #c82333;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .edit-product-modal-content {
    width: 98%;
    margin: 10px auto;
  }

  .edit-product-modal-content .sales-info-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .edit-product-modal-content .variation-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .edit-product-modal-content .modal-footer {
    flex-direction: column;
  }

  .edit-product-modal-content .modal-footer button {
    width: 100%;
  }
}

/* ==========================================================================
   Customer Chat Panel
   ========================================================================== */

.customer-chat-panel {
  background: white;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  background: #f8fafc;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.chat-header h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header h3 i {
  color: #3b82f6;
}

.chat-customer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.customer-avatar i {
  font-size: 20px;
}

.chat-customer-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.customer-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.customer-status.online {
  background: #dcfce7;
  color: #166534;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(70vh - 160px);
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message.seller-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customer-message .message-avatar {
  background: #dbeafe;
  color: #1d4ed8;
}

.seller-message .message-avatar {
  background: #dcfce7;
  color: #166534;
}

.message-content {
  max-width: 70%;
}

.message-text {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.customer-message .message-text {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

.seller-message .message-text {
  background: #3b82f6;
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  padding: 0 4px;
}

.seller-message .message-time {
  text-align: right;
}

.chat-input-container {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.chat-input-area {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  resize: none;
  font-size: 14px;
  line-height: 1.4;
  min-height: 20px;
  max-height: 80px;
  font-family: inherit;
}

#chat-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input-actions {
  display: flex;
  gap: 8px;
}

.attach-btn,
.send-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.attach-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.attach-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.send-btn {
  background: #3b82f6;
  color: white;
}

.send-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

.send-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ==========================================================================
   Discount Modal Styles
   ========================================================================== */

.discount-modal {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 2% auto;
  transform: translateY(0);
}

.discount-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.discount-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.discount-modal-body {
  padding: 24px;
}

.discount-section {
  margin-bottom: 24px;
}

.discount-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-section-title i {
  color: #007bff;
}

/* Product Selection Styles */
.product-selection {
  position: relative;
}

.discount-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.discount-search-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.product-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.product-price {
  color: #007bff;
  font-weight: 600;
  font-size: 14px;
}

.product-sku {
  color: #666;
  font-size: 12px;
}

.no-results {
  padding: 16px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.selected-product {
  display: none;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid #007bff;
  border-radius: 6px;
  margin-top: 12px;
}

.selected-product img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 16px;
}

.selected-product-info {
  flex: 1;
}

.selected-product-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.selected-product-price {
  color: #007bff;
  font-weight: 600;
}

.selected-product-sku {
  color: #666;
  font-size: 12px;
}

.remove-product-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.remove-product-btn:hover {
  background: #c82333;
}

/* Discount Configuration Styles */
.discount-type-options {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.discount-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-type-option input[type="radio"] {
  width: 16px;
  height: 16px;
}

.discount-type-option label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.discount-value-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.discount-value-input {
  flex: 1;
  max-width: 200px;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.discount-value-input:focus {
  border-color: #007bff;
  outline: none;
}

.discount-unit {
  font-weight: 600;
  color: #666;
}

/* Price Preview Styles */
.price-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

.price-preview-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.price-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-breakdown:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 2px solid #007bff;
  font-weight: 600;
}

.price-label {
  color: #666;
}

.original-price {
  color: #666;
  text-decoration: line-through;
}

.discounted-price {
  color: #28a745;
  font-weight: 600;
  font-size: 18px;
}

.savings-amount {
  color: #dc3545;
  font-weight: 600;
}

/* Schedule Styles */
/* Duration preset buttons */
.duration-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.duration-btn {
  padding: 7px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.duration-btn:hover {
  border-color: #16a34a;
  color: #16a34a;
}

.duration-btn.active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  font-weight: 600;
}

.duration-custom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-input-label {
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.start-date-input,
.end-date-input {
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.start-date-input:focus,
.end-date-input:focus {
  border-color: #16a34a;
  outline: none;
}

.duration-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 0;
}

/* Additional Settings Styles */
.additional-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.min-quantity-input,
.max-uses-input,
.discount-description {
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.min-quantity-input:focus,
.max-uses-input:focus,
.discount-description:focus {
  border-color: #007bff;
  outline: none;
}

.discount-description {
  grid-column: 1 / -1;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

.stackable-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.stackable-checkbox {
  width: 16px;
  height: 16px;
}

.stackable-label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

/* Modal Footer */
.discount-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.cancel-discount-btn {
  padding: 10px 20px;
  border: 2px solid #6c757d;
  background: white;
  color: #6c757d;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-discount-btn:hover {
  background: #6c757d;
  color: white;
}

.create-discount-submit {
  padding: 10px 24px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.create-discount-submit:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .discount-modal {
    width: 95%;
    max-height: 95vh;
  }

  .schedule-inputs,
  .additional-settings {
    grid-template-columns: 1fr;
  }

  .discount-type-options {
    flex-direction: column;
    gap: 12px;
  }

  .discount-value-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .discount-modal-footer {
    flex-direction: column;
  }
  
  .cancel-discount-btn,
  .create-discount-submit {
    width: 100%;
  }
}

/* ==========================================================================
   Voucher Modal Styles
   ========================================================================== */

.voucher-modal {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 2% auto;
  transform: translateY(0);
}

.voucher-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.voucher-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.voucher-modal-title i {
  color: #28a745;
  margin-right: 8px;
}

.voucher-modal-body {
  padding: 24px;
}

.voucher-section {
  margin-bottom: 24px;
}

.voucher-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.voucher-section-title i {
  color: #28a745;
}

/* Voucher Details Styles */
.voucher-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.voucher-name-group,
.voucher-code-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voucher-label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.voucher-name-input,
.voucher-code-input {
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.voucher-name-input:focus,
.voucher-code-input:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.code-input-container {
  display: flex;
  gap: 8px;
}

.voucher-code-input {
  flex: 1;
}

.generate-code-btn {
  padding: 12px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.generate-code-btn:hover {
  background: #5a6268;
}

/* Voucher Type Options */
.voucher-type-options {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.voucher-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voucher-type-option input[type="radio"] {
  width: 16px;
  height: 16px;
}

.voucher-type-option label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.voucher-value-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.voucher-value-input {
  flex: 1;
  max-width: 200px;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.voucher-value-input:focus {
  border-color: #28a745;
  outline: none;
}

.voucher-unit {
  font-weight: 600;
  color: #666;
}

/* Voucher Preview Styles */
.voucher-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

.voucher-preview-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.voucher-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.voucher-breakdown:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 2px solid #28a745;
  font-weight: 600;
}

.voucher-breakdown-label {
  color: #666;
}

.voucher-discount-type,
.voucher-discount-value,
.voucher-applies-to {
  color: #28a745;
  font-weight: 600;
}

/* Usage Limits Styles */
.usage-limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.limit-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.total-usage-input,
.customer-usage-input,
.min-order-input {
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.total-usage-input:focus,
.customer-usage-input:focus,
.min-order-input:focus {
  border-color: #28a745;
  outline: none;
}

/* Schedule Styles */
.voucher-schedule-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.voucher-date-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voucher-date-input-label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.voucher-start-date-input,
.voucher-end-date-input {
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.voucher-start-date-input:focus,
.voucher-end-date-input:focus {
  border-color: #28a745;
  outline: none;
}

/* Additional Settings Styles */
.voucher-additional-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.voucher-description {
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  resize: vertical;
  font-family: inherit;
}

.voucher-description:focus {
  border-color: #28a745;
  outline: none;
}

.voucher-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voucher-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stackable-voucher-checkbox,
.auto-apply-checkbox,
.public-voucher-checkbox {
  width: 16px;
  height: 16px;
}

.voucher-option-label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

/* Modal Footer */
.voucher-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.cancel-voucher-btn {
  padding: 10px 20px;
  border: 2px solid #6c757d;
  background: white;
  color: #6c757d;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-voucher-btn:hover {
  background: #6c757d;
  color: white;
}

.create-voucher-submit {
  padding: 10px 24px;
  border: none;
  background: #28a745;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.create-voucher-submit:hover {
  background: #218838;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .voucher-modal {
    width: 95%;
    max-height: 95vh;
  }

  .voucher-details,
  .voucher-schedule-inputs {
    grid-template-columns: 1fr;
  }

  .voucher-type-options {
    flex-direction: column;
    gap: 12px;
  }

  .voucher-value-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .voucher-modal-footer {
    flex-direction: column;
  }
  
  .cancel-voucher-btn,
  .create-voucher-submit {
    width: 100%;
  }
  
  .usage-limits {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Promotional Tools Section Styles - Simple & Clean
   ========================================================================== */

/* Simple Header */
.promo-simple-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.promo-simple-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.promo-simple-header p {
  color: #6b7280;
  margin: 0;
  font-size: 14px;
}

/* Simple Stats Overview */
.promo-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
  .promo-overview {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
  }
}

.promo-stat-simple {
  text-align: center;
  padding: 4px;
}

.promo-stat-simple .stat-number {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.promo-stat-simple .stat-text {
  font-size: 12px;
  color: #6b7280;
}

/* Simple Wide Action Cards */
.promo-actions-simple {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* Promo Card Styles */
.promo-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.promo-card-header {
  padding: 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .promo-card-header {
    padding: 20px 24px;
  }
}

.promo-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-card-header h3 i {
  font-size: 16px;
  color: #6b7280;
}

.promo-card-body {
  padding: 16px;
}

/* Discount Cards Grid - Mobile First */
.discount-cards-grid,
.voucher-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
  .discount-cards-grid,
  .voucher-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .discount-cards-grid,
  .voucher-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Discount Card */
.discount-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.discount-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

/* Discount Card Header */
.discount-card-header {
  position: relative;
  padding: 0;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.discount-card-product-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.discount-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Discount Card Body */
.discount-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.discount-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discount-card-product-name {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discount-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
}

.discount-card-info-row:first-of-type {
  padding-top: 0;
}

.discount-card-info-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.discount-card-info-row .info-label {
  color: #6b7280;
  font-weight: 500;
}

.discount-card-info-row .info-value {
  color: #1f2937;
  font-weight: 600;
}

.discount-card-info-row.highlight {
  background: #fef2f2;
  margin: 8px -16px;
  padding: 14px 16px;
  border-bottom: none;
  border-radius: 6px;
}

.discount-card-info-row.highlight .info-label {
  color: #991b1b;
  font-weight: 600;
  font-size: 15px;
}

.discount-card-info-row.highlight .info-value {
  color: #dc2626;
  font-size: 20px;
  font-weight: 700;
}

/* Discount Card Footer */
.discount-card-footer {
  padding: 14px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .discount-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .discount-card-actions {
    width: 100%;
  }

  .discount-card-btn {
    flex: 1;
  }
}

.discount-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-card-status-text {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.discount-card-actions {
  display: flex;
  gap: 8px;
}

.discount-card-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.discount-card-btn-edit {
  background: #3b82f6;
  color: white;
}

.discount-card-btn-edit:hover {
  background: #2563eb;
}

.discount-card-btn-delete {
  background: #ef4444;
  color: white;
}

.discount-card-btn-delete:hover {
  background: #dc2626;
}

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

/* Toggle Switch in Cards */
.discount-card .toggle-switch {
  width: 44px;
  height: 24px;
}

.discount-card .toggle-slider {
  border-radius: 24px;
}

.discount-card .toggle-slider:before {
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
}

.discount-card input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Empty State */
.discount-cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.discount-cards-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  display: block;
}

.discount-cards-empty h4 {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.discount-cards-empty p {
  font-size: 14px;
  margin: 0;
  color: #9ca3af;
}

.promo-action-wide {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.promo-action-wide:hover {
  border-color: #d1d5db;
}

.promo-action-wide .action-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.promo-action-wide .action-icon-simple {
  width: 42px;
  height: 42px;
  background: #f3f4f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #4b5563;
  flex-shrink: 0;
}

.promo-action-wide .action-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px 0;
}

.promo-action-wide .action-text p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.promo-action-wide .action-btn-simple {
  padding: 9px 28px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.promo-action-wide .action-btn-simple:hover {
  background: #b91c1c;
}

/* Simple Tab Styles */
.tab-container-simple {
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.tab-menu-simple {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.tab-menu-simple li {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.tab-menu-simple li:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.tab-menu-simple li.active {
  color: #1f2937;
  background: white;
  border-bottom-color: #1f2937;
  font-weight: 600;
}

.tab-content {
  padding: 24px;
}

/* Tab Pane Visibility - Specific to promotional section only */
.tab-container-simple .tab-pane {
  display: none !important;
}

.tab-container-simple .tab-pane.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure promotional tables are always visible */
.discounts-table-container,
.vouchers-table-container {
  display: block !important;
  width: 100% !important;
  margin-top: 20px !important;
  visibility: visible !important;
}

.promotional-table {
  display: table !important;
  width: 100% !important;
  visibility: visible !important;
}

.promotional-table thead {
  display: table-header-group !important;
}

.promotional-table tbody {
  display: table-row-group !important;
}

.promotional-table tr {
  display: table-row !important;
  visibility: visible !important;
}

.promotional-table td,
.promotional-table th {
  display: table-cell !important;
  visibility: visible !important;
}

/* Legacy compatibility */
.promotional-header {
  margin-bottom: 30px;
}

.promotional-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  margin-bottom: 8px;
}

.promotional-header p {
  color: #6b7280;
  margin: 0;
}

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

/* Promotional Controls */
.promotional-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.discounts-search-input,
.vouchers-search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: white;
}

.discounts-search-input:focus,
.vouchers-search-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
  pointer-events: none;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.pagination-info {
  color: #666;
  font-size: 14px;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-dots {
  color: #666;
  font-size: 14px;
  margin: 0 5px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
}

.pagination-numbers {
  display: flex;
  gap: 4px;
}

.pagination-number {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.pagination-number.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.pagination-number.active:hover {
  background: #0056b3;
  border-color: #0056b3;
}

/* Responsive Design for Controls */
@media (max-width: 1023px) {
  .promotional-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    max-width: none;
    order: 2;
  }
  
  .create-discount-btn,
  .create-voucher-btn {
    order: 1;
    margin-bottom: 15px;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.promotional-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.promotional-table th,
.promotional-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.promotional-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.discount-badge, .discount-value {
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.final-price {
  color: #dc2626;
  font-weight: 600;
}

.price {
  color: #6b7280;
}

.voucher-code {
  font-family: monospace;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Toggle Switch for Active/Inactive */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 28px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Action Buttons - Mobile First */
.action-btn-primary,
.action-btn-danger {
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  min-height: 44px; /* iOS minimum touch target */
}

.action-btn-primary:hover {
  background: #2563eb !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.action-btn-danger:hover {
  background: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.action-btn-primary:disabled,
.action-btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Mobile responsive action buttons */
@media (max-width: 768px) {
  .discount-actions {
    flex-direction: column !important;
    width: 100%;
  }

  .action-btn-primary,
  .action-btn-danger {
    width: 100%;
    justify-content: center;
  }
}

.status-badge.active {
  background: #10b981;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.status-badge.scheduled {
  background: #f59e0b;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.stat-label {
  color: #6b7280;
  font-size: 14px;
}

/* ==========================================================================
   Reviews Section Styles
   ========================================================================== */

.reviews-header {
  margin-bottom: 30px;
}

.reviews-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  margin-bottom: 8px;
}

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.review-stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.review-stat-card .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.review-stat-card .star-rating {
  color: #fbbf24;
  margin: 8px 0;
}

.reviews-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
}

.review-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  min-width: 250px;
}

.review-search-input:focus {
  border-color: #007185;
}

.reviews-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reviews-table th,
.reviews-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.reviews-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.customer-cell .customer-name {
  font-weight: 600;
  display: block;
}

.customer-verified {
  color: #10b981;
  font-size: 12px;
}

.rating-cell {
  text-align: center;
}

.rating-cell .star-rating {
  color: #fbbf24;
  margin-bottom: 4px;
}

.rating-number {
  display: block;
  font-weight: 600;
  color: #374151;
}

.review-text-cell {
  max-width: 300px;
}

.review-preview {
  color: #6b7280;
  font-style: italic;
}

.modal-actions-review {
  display: flex;
    justify-content: center;
    margin-top: 20px;
}
.status-badge.pending-response {
  background: #f59e0b;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  white-space: nowrap;
}

.status-badge.responded {
  background: #10b981;
  color: white;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.view-review-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.view-review-btn:hover {
  background: #2563eb;
}

.reviews-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 20px 0;
}

.pagination-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.pagination-btn:hover {
  background: #2563eb;
}

.pagination-info {
  color: #6b7280;
}

/* Review Response Modal Styles */
.review-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: 2% auto;
}

.review-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 20px;
}

.review-product .product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.review-product .product-name {
  font-weight: 600;
  margin: 0 0 4px 0;
}

.review-product .product-sku {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.customer-review {
  margin-bottom: 20px;
}

.customer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.customer-avatar i {
  font-size: 48px;
  color: #9ca3af;
}

.customer-details .customer-name {
  font-weight: 600;
  margin: 0 0 8px 0;
}

.customer-details .review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.customer-details .star-rating {
  color: #fbbf24;
}

.customer-details .review-date {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.review-content h4 {
  margin: 0 0 12px 0;
  color: #374151;
}

.review-text {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  margin: 0 0 16px 0;
  font-style: italic;
  line-height: 1.6;
}

.review-images {
  display: flex;
  gap: 8px;
}

.review-images img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.seller-response-section h4 {
  margin: 0 0 16px 0;
  color: #374151;
}

.response-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 16px;
}

.response-tips {
  background: #f0f9ff;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.response-tips h5 {
  margin: 0 0 12px 0;
  color: #1e40af;
}

.response-tips ul {
  margin: 0;
  padding-left: 20px;
}

.response-tips li {
  color: #1e3a8a;
  margin-bottom: 4px;
}

/* ==========================================================================
   Shipping Settings Styles
   ========================================================================== */

.shipping-settings-header {
  margin-bottom: 30px;
}

.shipping-settings-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  margin-bottom: 8px;
}

.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.carrier-option {
  position: relative;
}

.carrier-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.carrier-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.carrier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.carrier-card input[type="radio"]:checked + .carrier-label {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.carrier-label {
  display: block;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carrier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.carrier-header img {
  height: 30px;
  width: auto;
}

.carrier-header h4 {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

.carrier-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
}

.carrier-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rate-label {
  color: #6b7280;
}

.rate-price {
  font-weight: 600;
  color: #dc2626;
  font-size: 18px;
}

.carrier-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  background: #dcfce7;
  color: #166534;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.carrier-settings {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.carrier-settings h4 {
  margin: 0 0 16px 0;
  color: #374151;
}

.preference-group {
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #374151;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

.save-settings {
  text-align: right;
}

.rate-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.rate-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rate-method:hover {
  border-color: #3b82f6;
}

.rate-method input[type="radio"]:checked {
  accent-color: #3b82f6;
}

.rate-method label {
  cursor: pointer;
  flex: 1;
}

.rate-method h4 {
  margin: 0 0 4px 0;
  color: #1f2937;
}

.rate-method p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.zones-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zone-item {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
}

.zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.zone-header h4 {
  margin: 0;
  color: #1f2937;
}

.zone-status.enabled {
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.zone-status.disabled {
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.zone-details p {
  margin: 0 0 8px 0;
  color: #6b7280;
}

.link-button {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.handling-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.handling-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.handling-option label {
  cursor: pointer;
  color: #374151;
}

.inline-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-align: center;
}

.business-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

/* Responsive Design for Return/Refund Section */
@media (max-width: 1023px) {
  .return-refund-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .return-search-container {
    width: 100%;
  }

  .return-search-input {
    width: 100%;
  }

  .returns-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .returns-table {
    min-width: 700px;
  }
  
  .returns-table th,
  .returns-table td {
    padding: 12px 8px;
  }
  
  .product-cell {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .product-thumb {
    width: 40px;
    height: 40px;
  }
  
  .product-cell span {
    max-width: 120px;
    font-size: 13px;
  }
  
  .actions-cell {
    flex-direction: column;
    gap: 4px;
  }
  
  .return-btn,
  .decline-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 60px;
  }
  
  /* Mobile adjustments for order action buttons */
  .order-row .actions-cell {
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 140px;
  }
  
  .view-details-btn,
  .arrange-shipment-btn,
  .print-label-btn,
  .contact-buyer-btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .return-approval-modal {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  
  .return-approval-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .customer-chat-panel {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    max-height: 400px;
  }
  
  .customer-product-info {
    padding: 20px;
  }
  
  .info-section {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  .approval-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .product-display {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* ========================================================================== */
/* Customer Chat Modal Styles */
/* ========================================================================== */

#customerChatModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#customerChatModal.show {
  display: flex;
}

.chat-modal-container {
  background: white;
  width: 90%;
  max-width: 600px;
  height: 80vh;
  max-height: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.chat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-bottom: 1px solid #e0e0e0;
}

.chat-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-modal-header i {
  font-size: 16px;
}

.chat-modal-header .close {
  font-size: 24px;
  font-weight: 300;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-modal-header .close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.chat-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-customer-info-bar {
  background: #f8fafc;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.customer-info-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-info-display .customer-avatar {
  font-size: 32px;
  color: #6b7280;
}

.customer-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-customer-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
}

.customer-order-info {
  font-size: 13px;
  color: #6b7280;
  font-family: 'Courier New', monospace;
}

.customer-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  align-self: flex-start;
}

.customer-status.online {
  background: #dcfce7;
  color: #166534;
}

.chat-messages-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fafafa;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.message.seller-message {
  flex-direction: row-reverse;
}

.message-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.customer-message .message-avatar {
  background: #e5f3ff;
  color: #1e40af;
}

.seller-message .message-avatar {
  background: #f0fdf4;
  color: #166534;
}

.message-content {
  flex: 1;
  max-width: 70%;
}

.message-text {
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.seller-message .message-text {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.message-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
  text-align: right;
}

.seller-message .message-time {
  text-align: left;
}

.chat-input-container {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 15px 20px;
}

.chat-input-area {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex: 1;
  min-height: 40px;
  max-height: 100px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.3s ease;
}

.chat-input-area textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.chat-input-actions {
  display: flex;
  gap: 8px;
}

.attach-btn,
.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.attach-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.attach-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.send-btn {
  background: #3b82f6;
  color: white;
}

.send-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* ==========================================================================
   CHAT MODAL - MOBILE RESPONSIVE STYLES
   ========================================================================== */

/* Tablet and below (max-width: 768px) */
@media (max-width: 768px) {
  #customerChatModal {
    padding: 0;
  }

  .chat-modal-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .chat-modal-header {
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .chat-modal-header h3 {
    font-size: 16px;
  }

  .chat-modal-header .close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .chat-customer-info-bar {
    padding: 12px 16px;
  }

  .customer-info-display .customer-avatar {
    font-size: 28px;
    min-width: 40px;
    width: 40px;
    height: 40px;
  }

  .chat-customer-name {
    font-size: 15px;
  }

  .customer-order-info {
    font-size: 12px;
  }

  .chat-messages-container {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .message {
    max-width: 85%;
  }

  .message-avatar {
    font-size: 20px;
    min-width: 32px;
    width: 32px;
    height: 32px;
  }

  .message-text {
    font-size: 14px;
    padding: 10px 14px;
  }

  .message-time {
    font-size: 11px;
  }

  .chat-input-container {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
  }

  .chat-input-area {
    gap: 8px;
  }

  .chat-input-area textarea {
    font-size: 15px;
    padding: 10px 14px;
    min-height: 44px;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* Mobile phones (max-width: 480px) */
@media (max-width: 480px) {
  .chat-modal-header {
    padding: 12px 16px;
  }

  .chat-modal-header h3 {
    font-size: 15px;
    gap: 6px;
  }

  .chat-modal-header h3 i {
    font-size: 14px;
  }

  .chat-customer-info-bar {
    padding: 10px 12px;
  }

  .customer-info-display {
    gap: 10px;
  }

  .customer-info-display .customer-avatar {
    font-size: 24px;
    min-width: 36px;
    width: 36px;
    height: 36px;
  }

  .chat-customer-name {
    font-size: 14px;
  }

  .customer-order-info {
    font-size: 11px;
  }

  .chat-messages-container {
    padding: 10px;
  }

  .message {
    max-width: 90%;
  }

  .message-avatar {
    font-size: 18px;
    min-width: 28px;
    width: 28px;
    height: 28px;
  }

  .message-text {
    font-size: 13px;
    padding: 9px 12px;
  }

  .message-time {
    font-size: 10px;
  }

  .chat-input-container {
    padding: 10px 12px;
  }

  .chat-input-area textarea {
    font-size: 14px;
    padding: 9px 12px;
    min-height: 42px;
  }

  .send-btn {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
}

/* Small mobile phones (max-width: 375px) */
@media (max-width: 375px) {
  .chat-modal-header h3 {
    font-size: 14px;
  }

  .chat-customer-name {
    font-size: 13px;
  }

  .customer-order-info {
    font-size: 10px;
  }

  .message-text {
    font-size: 12px;
    padding: 8px 11px;
  }

  .chat-input-area textarea {
    font-size: 13px;
    padding: 8px 11px;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .chat-modal-container {
    height: 100vh;
  }

  .chat-messages-container {
    max-height: calc(100vh - 200px);
  }
}

/* ==========================================================================
   MOBILE LAYOUT OVERRIDES - Sidebar & Content Container
   These styles handle the mobile slide-out sidebar pattern
   ========================================================================== */

/* Mobile-specific sidebar behavior (< 1024px) */
@media (max-width: 1023px) {
  /* Sidebar as slide-out menu on mobile */
  body.mobile-nav-active .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(165deg, #1a1f2e 0%, #2d1f3a 100%);
    z-index: 1002;
    overflow-y: auto;
    padding-top: 95px;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    margin: 0;
    border-right: none;
  }

  body.mobile-nav-active .sidebar.mobile-open {
    left: 0;
  }

  body.mobile-nav-active .sidebar::before {
    position: fixed;
    width: 280px;
    left: 0;
  }

  body.mobile-nav-active .sidebar::after {
    position: fixed;
    left: 24px;
  }

  /* Mobile header within sidebar */
  .sidebar .mobile-header {
    background: #E9232F;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
  }

  .sidebar .mobile-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
  }

  /* Main content adjustments for mobile */
  .seller-dashboard-layout {
    display: block;
    margin-top: 60px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-height: calc(100vh - 60px);
    position: relative;
    left: 0;
    right: 0;
  }

  .main-content {
    padding: 0;
    width: 100%;
    margin: 0;
    position: relative;
    left: 0;
    right: 0;
  }

  /* Mobile navigation styles without !important */
  .mobile-nav-active .main-category {
    display: block;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 8px 14px;
    border-radius: 12px;
    background: transparent;
  }

  .mobile-nav-active .main-category:hover,
  .mobile-nav-active .main-category.active {
    background: linear-gradient(90deg, rgba(233, 75, 60, 0.15) 0%, rgba(245, 166, 35, 0.08) 100%);
    color: #fff;
    border-left-color: #F5A623;
  }

  .mobile-nav-active .main-category i {
    width: 22px;
    margin-right: 14px;
    font-size: 18px;
    color: rgba(245, 166, 35, 0.9);
    opacity: 0.85;
  }

  .mobile-nav-active .main-category:hover i,
  .mobile-nav-active .main-category.active i {
    color: #F5A623;
    opacity: 1;
  }

  /* Subcategories mobile styles */
  .mobile-nav-active .subcategories {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    margin: 0 14px 14px 14px;
    border-radius: 10px;
    border-left: 2px solid rgba(245, 166, 35, 0.4);
  }

  .mobile-nav-active .subcategories a {
    display: block;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 3px 10px;
    text-decoration: none;
  }

  .mobile-nav-active .subcategories a:hover {
    background: rgba(245, 166, 35, 0.1);
    color: rgba(255, 255, 255, 0.95);
    padding-left: 28px;
    border-left-color: rgba(245, 166, 35, 0.5);
  }
}

/* Hide mobile header on desktop */
@media (min-width: 1024px) {
  .sidebar .mobile-header {
    display: none;
  }

  .mobile-overlay {
    display: none;
  }

  .sidebar-username {
    padding: 12px 20px;
    margin: 0 14px 20px 14px;
  }
}

/* Smooth transitions for mobile interactions */
@media (max-width: 1023px) {
  .sidebar,
  .mobile-overlay {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ============================================
     MOBILE-FIRST TABLE-TO-CARD CONVERSIONS
     FOR ALL TABLE SECTIONS
     ============================================ */

  /* MY PRODUCTS SECTION - Table to Cards */
  .results-table-container {
    overflow: visible;
  }

  .results-table {
    display: block;
    border: none;
  }

  .results-table thead {
    display: none;
  }

  .results-table tbody {
    display: block;
  }

  .results-table tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .results-table td {
    display: block;
    border: none;
    padding: 8px 0;
    text-align: left;
  }

  .results-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 90px;
    margin-right: 10px;
  }

  .results-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .results-table .product-cell::before {
    display: none;
  }

  .results-table .product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
  }

  .results-table .actions-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
  }

  .results-table .actions-cell::before {
    display: none;
  }

  .results-table .actions-cell button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* RETURN/REFUND SECTION - Table to Cards */
  .returns-table-container {
    overflow: visible !important;
  }

  .returns-table {
    display: block;
    border: none;
    min-width: auto !important;
  }

  .returns-table thead {
    display: none;
  }

  .returns-table tbody {
    display: block;
  }

  .returns-table tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .returns-table td {
    display: block !important;
    border: none;
    padding: 8px 0 !important;
    text-align: left;
  }

  .returns-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .returns-table .product-cell {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .returns-table .product-cell::before {
    display: none;
  }

  .returns-table .product-thumb {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
  }

  .returns-table .actions-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
  }

  .returns-table .actions-cell::before {
    display: none;
  }

  .returns-table .actions-cell .return-btn,
  .returns-table .actions-cell .decline-btn {
    width: 100%;
    min-height: 44px !important;
    padding: 12px !important;
    font-size: 15px !important;
    justify-content: center;
  }

  /* PRODUCT VIOLATIONS SECTION - Table to Cards */
  .violations-table-container {
    overflow: visible;
  }

  .violations-table {
    display: block;
    border: none;
  }

  .violations-table thead {
    display: none;
  }

  .violations-table tbody {
    display: block;
  }

  .violations-table tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #dc3545;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .violations-table td {
    display: block;
    border: none;
    padding: 8px 0;
    text-align: left;
  }

  .violations-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .violations-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .violations-table .product-cell::before {
    display: none;
  }

  .violations-table .actions-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
  }

  .violations-table .actions-cell::before {
    display: none;
  }

  .violations-table .actions-cell button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* CHATS SECTION - Table to Cards */
  .chats-table-container {
    overflow: visible;
  }

  .chats-table {
    display: block;
    border: none;
  }

  .chats-table thead {
    display: none;
  }

  .chats-table tbody {
    display: block;
  }

  .chats-table tr {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
  }

  .chats-table tr.unread {
    border-left: 4px solid #E9232F;
    background: #fff8f8;
  }

  .chats-table td {
    display: block;
    border: none;
    padding: 8px 0;
    text-align: left;
  }

  .chats-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    display: inline-block;
    width: 100px;
    margin-right: 10px;
  }

  .chats-table .customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .chats-table .customer-cell::before {
    display: none;
  }

  .chats-table .customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
  }

  .chats-table .actions-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
  }

  .chats-table .actions-cell::before {
    display: none;
  }

  .chats-table .actions-cell button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 15px;
  }

  /* GENERAL TABLE IMPROVEMENTS */
  .status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
  }

  /* Make filter rows stack on mobile */
  .filter-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .filter-select {
    width: 100%;
    min-width: auto !important;
    padding: 12px;
    font-size: 15px;
    min-height: 44px;
  }

  /* Search inputs mobile-friendly */
  .order-search-input,
  .return-search-input,
  .product-search-input {
    width: 100%;
    min-width: auto !important;
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }

  /* Action buttons in headers */
  .orders-actions,
  .return-refund-actions,
  .products-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: stretch;
  }

  .orders-actions button,
  .return-refund-actions button,
  .products-actions button {
    flex: 1;
    min-width: 140px;
    min-height: 44px;
  }

  /* ============================================
     HOME SECTION MOBILE OPTIMIZATION
     ============================================ */

  /* Performance tables in home section */
  .home-performance-container table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-performance-container table thead {
    display: block;
  }

  .home-performance-container table tbody {
    display: block;
  }

  .home-performance-container table tr {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
  }

  .home-performance-container table tr:hover {
    background: #f8f9fa;
  }

  .home-performance-container table th,
  .home-performance-container table td {
    flex: 1;
    text-align: left;
    padding: 8px 4px;
    border: none;
  }

  .home-performance-container table th:first-child,
  .home-performance-container table td:first-child {
    flex: 2;
    font-weight: 600;
  }

  .home-performance-container table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
  }

  .home-performance-container table td {
    font-size: 14px;
    color: #6c757d;
  }

  /* Tab menu scrollable on mobile */
  .home-performance-container .tab-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 8px;
  }

  .home-performance-container .tab-menu li {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Insights data stack vertically */
  .insights-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .data-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
  }

  .data-item h4 {
    font-size: 12px;
    margin-bottom: 8px;
    color: #6c757d;
  }

  .data-item p {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
  }

  .data-item span {
    font-size: 11px;
    color: #95a5a6;
  }

  /* Announcements */
  .announcements-container {
    padding: 20px;
  }

  .announcement {
    padding: 16px 0;
  }

  .announcement h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .announcement p {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
  }

  .announcement .date {
    font-size: 12px;
    color: #95a5a6;
  }

  /* ============================================
     MY PRODUCTS SECTION MOBILE OPTIMIZATION
     ============================================ */

  /* Products section header */
  #my-products .admin-tab-header {
    padding: 16px 20px;
  }

  #my-products .admin-tab-header h2 {
    font-size: 20px;
    margin: 0;
  }

  /* Products tabs - horizontal scroll */
  #my-products .tab-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  #my-products .tab-menu li {
    display: inline-block;
    padding: 12px 20px;
    font-size: 15px;
    min-width: auto;
  }

  /* Search bar mobile-friendly */
  #my-products .onpageSearch {
    width: 100%;
  }

  #my-products .onpageSearch input[type="text"] {
    width: 100%;
    min-width: auto !important;
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }

  #my-products .onpageSearch button {
    min-height: 44px;
    padding: 0 16px;
  }

  /* General container mobile padding */
  #my-products .general-container {
    padding: 16px;
  }

  /* Tab content mobile padding */
  #my-products .tab-pane {
    padding: 16px 0;
  }

  /* Input rows stack on mobile */
  #my-products .input-row {
    margin-bottom: 16px;
  }

  /* ============================================
     HOME SECTION ADDITIONAL OPTIMIZATIONS
     ============================================ */

  /* Todo container mobile-friendly */
  .todo-container {
    padding: 20px;
    margin-bottom: 16px;
  }

  .todo-container h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .todo-container p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 16px;
  }

  /* Todo items touch-friendly */
  .todo-item {
    padding: 16px;
    min-height: 80px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .todo-item:active {
    transform: scale(0.98);
  }

  .todo-item .count {
    font-size: 24px;
    font-weight: 700;
    color: #E9232F;
    margin-bottom: 8px;
  }

  .todo-item span {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
  }

  /* Business insights mobile */
  .business-insights-container {
    padding: 20px;
    margin-bottom: 16px;
  }

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

  .insights-header h3 {
    font-size: 18px;
    margin: 0;
  }

  .more-link {
    font-size: 14px;
    color: #E9232F;
    text-decoration: none;
  }

  /* Graph container mobile */
  .insights-graph {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Home performance container */
  .home-performance-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }

  .home-performance-container .insights-header h3 {
    font-size: 18px;
  }
}

/* Ultra small phones - extra compact */
@media (max-width: 479px) {
  .orders-table tr.order-row,
  .results-table tr,
  .returns-table tr,
  .violations-table tr,
  .chats-table tr {
    padding: 12px;
  }

  .product-thumb {
    width: 50px !important;
    height: 50px !important;
  }

  .status-badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  table td::before {
    width: 80px !important;
    font-size: 13px;
  }
}

/* ============================================================================
   MODERN ORDERS SECTION - MOBILE-FIRST LATIN AMERICAN THEME
   ========================================================================= */

/* Orders Container */
.orders-container {
  padding: 0;
  max-width: 100%;
}

/* Modern Header */
.orders-modern-header {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 24px;
  border-bottom: 1px solid rgba(233, 75, 60, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.header-title-section {
  flex: 1;
  min-width: 200px;
}

.orders-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1a1f2e;
}

.orders-title i {
  font-size: 32px;
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.orders-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.header-actions-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modern-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.modern-action-btn:hover {
  background: linear-gradient(135deg, rgba(233, 75, 60, 0.05), rgba(245, 166, 35, 0.05));
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.15);
}

.modern-action-btn i {
  font-size: 16px;
  color: #F5A623;
}

/* Urgent Orders Board (TikTok Shop Style) */
.urgent-orders-board {
  background: linear-gradient(135deg, #fff5f5 0%, #fff1e6 100%);
  border: 2px solid rgba(233, 75, 60, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 24px;
  box-shadow: 0 4px 16px rgba(233, 75, 60, 0.1);
}

.urgent-board-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(233, 75, 60, 0.1);
}

.urgent-board-header i {
  font-size: 24px;
  color: #E94B3C;
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.urgent-board-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #991b1b;
}

.urgent-count {
  margin-left: auto;
  background: linear-gradient(135deg, #E94B3C, #DC2626);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.urgent-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* Modern Stats Grid */
.modern-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px;
}

.modern-stat-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.modern-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-stat-card:hover::before {
  opacity: 1;
}

.modern-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modern-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.modern-stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.stat-footer {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

/* Individual Card Themes */
.unpaid-card {
  border-color: rgba(251, 191, 36, 0.2);
  color: #f59e0b;
}

.unpaid-card .stat-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #f59e0b;
}

.to-ship-card {
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.to-ship-card .stat-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #3b82f6;
}

.shipping-card {
  border-color: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.shipping-card .stat-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #8b5cf6;
}

.completed-card {
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.completed-card .stat-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #22c55e;
}

/* Modern Search and Filters */
.modern-search-filters {
  padding: 0 24px 24px 24px;
}

.search-bar-container {
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
  pointer-events: none;
}

.modern-search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: white;
}

.modern-search-input:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(156, 163, 175, 0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.clear-search-btn:hover {
  background: rgba(156, 163, 175, 0.2);
  color: #374151;
}

/* Filter Chips Row */
.filters-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters-row::-webkit-scrollbar {
  display: none;
}

.filter-chip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  background: white;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip-btn:hover {
  border-color: rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.05);
  transform: translateY(-2px);
}

.filter-chip-btn.active {
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.filter-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.filter-chip-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

.more-filters-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 2px dashed #d1d5db;
  border-radius: 24px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.more-filters-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #1a1f2e, #2d1f3a);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 15px;
  font-weight: 600;
}

.bulk-count {
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  flex: 1;
}

.bulk-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bulk-action-btn:hover {
  background: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateY(-2px);
}

.bulk-action-btn.danger {
  border-color: rgba(239, 68, 68, 0.3);
}

.bulk-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.clear-selection-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-selection-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

/* Orders List Container */
.orders-list-container {
  padding: 0 24px 24px 24px;
  min-height: 400px;
  position: relative;
}

/* Loading Skeleton */
.orders-loading {
  padding: 20px 0;
}

.loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 16px;
  height: 120px;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modern Orders Grid */
.modern-orders-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty State */
.orders-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.empty-state-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #374151;
}

.empty-state-description {
  margin: 0 0 24px 0;
  color: #6b7280;
  font-size: 14px;
}

.empty-state-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.empty-state-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .orders-modern-header {
    flex-direction: column;
    padding: 16px;
  }

  .orders-title {
    font-size: 24px;
  }

  .header-actions-section {
    width: 100%;
  }

  .modern-action-btn {
    flex: 1;
    justify-content: center;
  }

  .modern-action-btn .btn-text {
    display: none;
  }

  .modern-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .modern-stat-card {
    padding: 16px;
  }

  .stat-value h2 {
    font-size: 28px;
  }

  .modern-search-filters {
    padding: 0 16px 16px 16px;
  }

  .bulk-actions-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .bulk-actions {
    width: 100%;
    overflow-x: auto;
  }

  .orders-list-container {
    padding: 0 16px 16px 16px;
  }
}

/* ============================================================================
   ORDER CARDS - MOBILE-FIRST CARD DESIGN
   ========================================================================= */

.order-card {
  background: white;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.order-card:hover {
  border-color: rgba(245, 166, 35, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.order-card.selected {
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* Card Header */
.order-card-header {
  padding: 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card-select {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.order-card-select:hover {
  border-color: #F5A623;
}

.order-card-select.checked {
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-card-select.checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.order-number-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1f2e;
  flex: 1;
}

.order-number-badge i {
  color: #6b7280;
  font-size: 14px;
}

.order-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Status Badge Colors */
.status-pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.status-processing {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.status-shipped {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
  border: 1px solid #8b5cf6;
}

.status-delivered {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #22c55e;
}

.status-cancelled {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Card Body */
.order-card-body {
  padding: 16px;
}

.order-product-info {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.order-product-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.order-product-details {
  flex: 1;
  min-width: 0;
}

.order-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1f2e;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}

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

.order-meta-item i {
  font-size: 12px;
  color: #9ca3af;
}

.order-customer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #374151;
}

.order-customer-info i {
  color: #6b7280;
}

.order-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.order-date {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-date i {
  font-size: 12px;
}

.order-total-price {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Actions */
.order-card-actions {
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

.order-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: white;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.order-action-btn:hover {
  background: linear-gradient(135deg, rgba(233, 75, 60, 0.05), rgba(245, 166, 35, 0.05));
  border-color: rgba(245, 166, 35, 0.3);
  transform: scale(1.02);
}

.order-action-btn.primary {
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  border-color: transparent;
  color: white;
}

.order-action-btn.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.order-action-btn i {
  font-size: 14px;
}

/* Swipe Actions Layer */
.order-card-swipe-container {
  position: relative;
  touch-action: pan-y;
}

.order-card-swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  z-index: -1;
}

.swipe-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.swipe-action-ship {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.swipe-action-message {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.swipe-action-cancel {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.swipe-action i {
  font-size: 20px;
}

/* Swipe Indicator */
.swipe-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #9ca3af;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.order-card:hover .swipe-indicator {
  opacity: 1;
}

/* Urgent Badge */
.order-urgent-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 4px 10px;
  border-radius: 0 14px 0 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse-urgent 2s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .order-card {
    border-radius: 12px;
  }

  .order-card-header {
    padding: 12px;
  }

  .order-card-body {
    padding: 12px;
  }

  .order-product-image {
    width: 60px;
    height: 60px;
  }

  .order-product-name {
    font-size: 14px;
  }

  .order-card-actions {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .order-action-btn {
    font-size: 12px;
    padding: 8px 10px;
  }

  .order-action-btn span {
    display: none;
  }

  .order-total-price {
    font-size: 18px;
  }
}

/* Touch Feedback */
@media (hover: none) {
  .order-card:active {
    transform: scale(0.98);
  }

  .order-action-btn:active {
    transform: scale(0.95);
  }
}

/* Print Styles */
@media print {
  .order-card-select,
  .order-card-actions,
  .swipe-indicator {
    display: none !important;
  }

  .order-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================================================
   ORDER DETAILS MODAL
   Comprehensive order view modal with Latin American theming
   ============================================================ */

/* Modal Overlay */
.order-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.order-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* Modal Container */
.order-modal-container {
  position: relative;
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

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

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

/* Modal Header */
.order-modal-header {
  background: linear-gradient(135deg, #E94B3C 0%, #DC2626 50%, #991b1b 100%);
  color: white;
  padding: 24px 28px;
  border-bottom: 3px solid rgba(245, 166, 35, 0.4);
  box-shadow: 0 4px 12px rgba(233, 75, 60, 0.2);
}

.order-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.order-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #FFC04D, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.order-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.order-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-date-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* Modal Content */
.order-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  background: #f9fafb;
}

.order-modal-content::-webkit-scrollbar {
  width: 8px;
}

.order-modal-content::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 4px;
}

.order-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #E94B3C, #F5A623);
  border-radius: 4px;
}

.order-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #DC2626, #E94B3C);
}

/* Quick Actions */
.order-modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.order-modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-modal-action-btn i {
  font-size: 16px;
}

.order-modal-action-btn.primary {
  background: linear-gradient(135deg, #E94B3C, #DC2626);
  color: white;
  border-color: #E94B3C;
}

.order-modal-action-btn.primary:hover {
  background: linear-gradient(135deg, #DC2626, #991b1b);
  box-shadow: 0 6px 20px rgba(233, 75, 60, 0.3);
  transform: translateY(-2px);
}

.order-modal-action-btn.danger {
  color: #DC2626;
  border-color: #FCA5A5;
}

.order-modal-action-btn.danger:hover {
  background: #FEE2E2;
  border-color: #DC2626;
}

.order-modal-action-btn:not(.primary):not(.danger):hover {
  background: #f9fafb;
  border-color: #F5A623;
  color: #E94B3C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

/* Modal Sections */
.order-modal-section {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.section-title i {
  color: #F5A623;
  font-size: 20px;
}

/* Info Cards */
.info-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 14px;
}

.info-value {
  color: #1f2937;
  font-size: 14px;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.tracking-number {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #E94B3C;
}

/* Payment Status Badge */
.payment-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.payment-status-badge.paid {
  background: #D1FAE5;
  color: #065F46;
}

.payment-status-badge.pending {
  background: #FEF3C7;
  color: #92400E;
}

.payment-status-badge.failed {
  background: #FEE2E2;
  color: #991B1B;
}

.payment-status-badge.refunded {
  background: #E0E7FF;
  color: #3730A3;
}

/* Payment Breakdown */
.payment-breakdown {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #e5e7eb;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #6b7280;
}

.breakdown-row.discount-row {
  color: #059669;
  font-weight: 600;
}

.breakdown-row.total-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #e5e7eb;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.breakdown-row.total-row span:last-child {
  background: linear-gradient(135deg, #E94B3C, #F5A623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 20px;
}

/* Order Items List */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 4px;
}

.order-item-card:hover {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.order-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #f3f4f6;
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.order-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.order-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

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

.order-item-meta i {
  color: #F5A623;
  font-size: 12px;
}

.order-item-price {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 4px;
}

.order-item-unit-price {
  color: #6b7280;
  font-size: 13px;
}

.order-item-total {
  font-weight: 700;
  color: #E94B3C;
  font-size: 18px;
}

/* Order Timeline */
.order-timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-item {
  position: relative;
  padding: 16px 0;
  padding-left: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid #e5e7eb;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item.completed::before {
  background: linear-gradient(135deg, #059669, #10B981);
  border-color: #059669;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -31px;
  top: 40px;
  width: 2px;
  height: calc(100% - 20px);
  background: #e5e7eb;
  z-index: 1;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.timeline-item.completed .timeline-item-title {
  color: #059669;
}

.timeline-item-date {
  font-size: 13px;
  color: #6b7280;
}

/* Special Instructions */
.special-instructions {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.special-instruction-item {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.special-instruction-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.special-instruction-item:first-child {
  padding-top: 0;
}

.special-instruction-label {
  font-weight: 600;
  color: #E94B3C;
  margin-bottom: 6px;
  display: block;
}

.special-instruction-text {
  color: #1f2937;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .order-modal-container {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .order-modal-header {
    padding: 20px;
  }

  .order-modal-title {
    font-size: 20px;
  }

  .order-modal-close {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .order-modal-content {
    padding: 20px;
  }

  .order-modal-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .order-modal-action-btn {
    padding: 12px 16px;
    font-size: 13px;
  }

  .order-modal-action-btn span {
    display: none;
  }

  .order-item-card {
    gap: 16px;
    padding: 16px;
  }

  .order-item-image {
    width: 80px;
    height: 80px;
  }

  .order-item-details {
    width: auto;
  }

  .order-item-name {
    font-size: 14px;
  }

  .order-item-meta {
    gap: 8px;
  }

  .order-item-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-row {
    flex-direction: column;
    gap: 6px;
  }

  .info-value {
    max-width: 100%;
    text-align: left;
  }

  .section-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .order-modal-actions {
    grid-template-columns: 1fr 1fr;
  }

  .order-modal-action-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .breakdown-row.total-row {
    font-size: 16px;
  }

  .breakdown-row.total-row span:last-child {
    font-size: 18px;
  }
}

/* Load More Button */
.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
  margin-top: 20px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #E94B3C, #DC2626);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 75, 60, 0.2);
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #DC2626, #991b1b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 75, 60, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn i {
  font-size: 16px;
}

.load-more-btn.loading i {
  animation: spin 1s linear infinite;
}

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

.load-more-info {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.load-more-info span {
  font-weight: 600;
  color: #E94B3C;
}

@media (max-width: 768px) {
  .load-more-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .load-more-info {
    font-size: 13px;
  }
}

/* Modern Order Details Modal - TikTok Shop Style */
#orderDetailsModal.modal,
#shippingModal.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modern-order-modal {
  background: white;
  width: 90%;
  max-width: 900px;
  height: 90vh;
  max-height: 90vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.modern-order-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  flex-shrink: 0;
}

.modern-order-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-order-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.modern-order-header #modal-order-number {
  color: #007185;
}

.order-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: #e3f2fd;
  color: #1976d2;
}

.order-status-badge.completed {
  background: #e8f5e9;
  color: #2e7d32;
}

.order-status-badge.cancelled {
  background: #ffebee;
  color: #c62828;
}

.modal-close-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

.modern-order-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.modern-order-body > * {
  flex-shrink: 0;
}

/* Info Card */
.info-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  flex-shrink: 0;
}

.modern-order-modal .info-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 16px;
  width: 100%;
  padding: 0 !important;
  border-bottom: none !important;
  justify-content: initial !important;
  align-items: initial !important;
}

@media (min-width: 769px) {
  .modern-order-modal .info-row {
    gap: 20px;
  }
}

.modern-order-modal .info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
}

.modern-order-modal .info-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-order-modal .info-value {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.4;
}

.payment-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.payment-badge.paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.payment-badge.pending {
  background: #fff3e0;
  color: #f57c00;
}

/* Section Card */
.section-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.section-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  flex-shrink: 0;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h3 i {
  font-size: 15px;
  color: #E94B3C;
}

/* Products List */
.products-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
  background: #f8f9fa;
}

/* Modern Order Modal - Product Items */
.modern-order-modal .product-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
}

.modern-order-modal .product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: white;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.modern-order-modal .product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.modern-order-modal .product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.modern-order-modal .product-variant {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.modern-order-modal .product-pricing {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.modern-order-modal .product-quantity {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

.modern-order-modal .product-price {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  margin-left: auto;
}

/* Mobile optimization for product items */
@media (max-width: 480px) {
  .modern-order-modal .product-item {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .modern-order-modal .product-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }

  .modern-order-modal .product-info {
    gap: 8px;
  }

  .modern-order-modal .product-pricing {
    padding-top: 6px;
    border-top: 1px solid #e0e0e0;
  }

  .modern-order-modal .product-quantity {
    font-size: 14px;
  }

  .modern-order-modal .product-price {
    font-size: 16px;
    font-weight: 700;
  }
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Two Column Grid */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

/* Customer Info */
.customer-info,
.address-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.customer-contact {
  font-size: 14px;
  color: #666;
}

.address-info div {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Price Breakdown */
.price-breakdown {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.price-row.total-row {
  padding-top: 12px;
  border-top: 2px solid #e8e8e8;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Shipping Details */
.shipping-details {
  padding: 16px 20px;
}

.copy-btn {
  background: transparent;
  border: 1px solid #e8e8e8;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 8px;
  color: #666;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

/* Order Timeline - Mobile First */
.order-timeline {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #e8e8e8;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8e8e8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e8e8e8;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  background: #E94B3C;
  box-shadow: 0 0 0 2px #E94B3C;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.timeline-status {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.timeline-item.active .timeline-status {
  color: #E94B3C;
}

.timeline-date {
  font-size: 13px;
  color: #666;
}

/* Discount List */
.discount-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discount-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fff3e0;
  border-radius: 8px;
  border-left: 3px solid #ff9800;
}

.discount-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discount-name i {
  color: #ff9800;
}

.discount-value {
  font-size: 15px;
  font-weight: 600;
  color: #e65100;
}

.discount-text {
  color: #e65100;
}

.discount-amount {
  color: #e65100;
  font-weight: 600;
}

/* Profit Breakdown - Mobile First */
.profit-breakdown {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}

.profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
}

.profit-row.deduction {
  color: #666;
}

.profit-row.deduction i {
  color: #f44336;
  font-size: 12px;
  margin-right: 4px;
}

.profit-row.deduction span:last-child {
  color: #f44336;
}

.profit-row.profit-total {
  padding-top: 16px;
  border-top: 2px solid #4caf50;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.profit-row.profit-total i {
  color: #4caf50;
  margin-right: 6px;
}

.profit-amount {
  color: #4caf50;
  font-size: 20px;
  font-weight: 700;
}

/* Order Notes - Mobile First */
.order-notes {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-label i {
  font-size: 14px;
  color: #999;
}

.note-content {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 3px solid #e8e8e8;
}

.seller-notes-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 80px;
}

.seller-notes-input:focus {
  outline: none;
  border-color: #E94B3C;
  box-shadow: 0 0 0 3px rgba(233, 75, 60, 0.1);
}

.save-notes-btn {
  padding: 8px 16px;
  background: #E94B3C;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: all 0.2s;
}

.save-notes-btn:hover {
  background: #d43d2c;
}

.save-notes-btn i {
  font-size: 12px;
}

/* Download Options - Mobile First */
.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  margin-bottom: 8px;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.download-btn:hover {
  background: #f5f5f5;
  border-color: #E94B3C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.download-btn i {
  font-size: 24px;
  color: #E94B3C;
}

.download-btn span {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

@media (min-width: 480px) {
  .download-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .download-btn {
    padding: 18px 12px;
  }

  .download-btn span {
    font-size: 13px;
  }
}

/* Modal Actions */
.modal-actions {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  background: #fafafa;
}

.action-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.action-btn.primary {
  background: #007185;
  color: white;
}

.action-btn.primary:hover {
  background: #005a6d;
}

.action-btn.secondary {
  background: white;
  color: #1a1a1a;
  border: 1px solid #e8e8e8;
}

.action-btn.secondary:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.action-btn.success {
  background: #2e7d32;
  color: white;
}

.action-btn.success:hover {
  background: #1b5e20;
}

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

/* Responsive */
@media (max-width: 650px) {
  .modern-order-modal .info-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .modern-order-modal {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .modern-order-header {
    padding: 16px;
  }

  .modern-order-header h2 {
    font-size: 18px;
  }

  .modern-order-header #modal-order-number {
    display: block;
    margin-top: 2px;
  }

  .modern-order-body {
    padding: 16px;
    gap: 16px;
  }

  .modern-order-modal .products-list {
    padding: 16px;
    gap: 16px;
  }

  .modern-order-modal .price-breakdown,
  .modern-order-modal .profit-breakdown {
    padding: 16px;
  }

  .info-card {
    padding: 16px;
  }

  .info-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }

  .order-timeline {
    padding: 16px;
  }

  .timeline-item {
    grid-template-columns: 20px 1fr;
    gap: 12px;
  }

  .timeline-dot {
    width: 20px;
    height: 20px;
  }

  .timeline-item::after {
    left: 9px;
  }

  .order-notes {
    padding: 16px;
  }

  .download-options {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .download-btn {
    padding: 14px 10px;
  }

  .download-btn i {
    font-size: 20px;
  }

  .download-btn span {
    font-size: 11px;
  }

  .section-header h3 {
    font-size: 15px;
  }

  .profit-amount {
    font-size: 18px;
  }
}

/* ==========================================================================
   MODERN MY PRODUCTS SECTION - MOBILE-FIRST DESIGN
   ========================================================================== */

/* Products Header */
.products-header {
    margin-bottom: 24px;
}

.products-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Products Stats Grid */
.products-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-info h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
}

.stat-info p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* Products Filters */
.products-filters {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: #DC2626;
    border-radius: 2px;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tab span {
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.filter-tab.active {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.filter-tab.active span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.filter-tab:hover:not(.active) {
    background: #F9FAFB;
    border-color: #DC2626;
}

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #DC2626;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-button:hover {
    background: #F9FAFB;
    border-color: #DC2626;
    color: #DC2626;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-actions-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-actions-left span {
    font-weight: 600;
    color: #991B1B;
}

.bulk-actions-right {
    display: flex;
    gap: 8px;
}

.bulk-action-btn {
    padding: 8px 16px;
    border: none;
    background: #DC2626;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-action-btn:hover {
    background: #B91C1C;
}

.bulk-action-btn.danger {
    background: #EF4444;
}

.bulk-action-btn.danger:hover {
    background: #DC2626;
}

/* Products Grid - Card Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Loading & Empty States */
.loading-state, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.loading-state p, .empty-state p {
    margin-top: 12px;
    font-size: 16px;
}

.empty-state h3 {
    color: #1F2937;
    margin: 0 0 8px 0;
    font-size: 20px;
}

/* Product Card - TikTok Shop / Shopee Style */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    border: 1px solid #F3F4F6;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Product Image */
.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #F9FAFB;
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.product-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-active {
    background: #10B981;
    color: white;
}

.badge-inactive {
    background: #6B7280;
    color: white;
}

.badge-low-stock {
    background: #F59E0B;
    color: white;
}

.badge-out-stock {
    background: #EF4444;
    color: white;
}

.badge-featured {
    background: #8B5CF6;
    color: white;
}

.badge-missing-data {
    background: #F59E0B;
    color: white;
}

/* Product Card Body */
.product-card-body {
    padding: 16px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #DC2626;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6B7280;
}

.product-info-row i {
    margin-right: 4px;
    color: #9CA3AF;
}

.product-stock {
    font-weight: 600;
}

.product-stock.low {
    color: #F59E0B;
}

.product-stock.out {
    color: #EF4444;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating i {
    color: #F59E0B;
}

/* Product Card Details */
.product-card-details {
    border-top: 1px solid #F3F4F6;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6B7280;
}

.product-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9CA3AF;
    font-weight: 600;
}

.product-detail-value {
    font-weight: 600;
    color: #1F2937;
}

/* Product Card Actions */
.product-card-actions {
    border-top: 1px solid #F3F4F6;
    padding: 12px;
    display: flex;
    gap: 8px;
}

.product-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-action-btn:hover {
    background: #F9FAFB;
    border-color: #DC2626;
    color: #DC2626;
}

.product-action-btn.primary {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.product-action-btn.primary:hover {
    background: #B91C1C;
}

.product-action-btn.danger {
    color: #EF4444;
}

.product-action-btn.danger:hover {
    background: #FEF2F2;
    border-color: #FEE2E2;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

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

.pagination-info {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* Mobile Responsive - Products Section */
@media (max-width: 768px) {
    .products-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .products-header-top button {
        width: 100%;
    }

    .products-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        font-size: 13px;
        padding: 6px 12px;
    }

    .filter-controls {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-actions {
        flex-direction: row;
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .product-card-body {
        padding: 12px;
    }

    .product-card-title {
        font-size: 14px;
        min-height: 38px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-card-actions {
        flex-wrap: wrap;
    }

    .product-action-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .bulk-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions-right {
        flex-wrap: wrap;
    }

    .bulk-action-btn {
        flex: 1;
        min-width: calc(50% - 4px);
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-details {
        flex-wrap: wrap;
        gap: 8px;
    }
}


/* Draft-specific styles */
.draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.btn-action-compact.publish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-action-compact.publish:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-item.info {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.stat-item.info .stat-value,
.stat-item.info .stat-label {
    color: white;
}

/* ==========================================================================
   MOBILE-FIRST PROMOTIONAL SECTION & CHAT REDESIGN
   ========================================================================== */

/* Simple Promotional Section - Mobile Responsive */
@media (max-width: 768px) {
  .promo-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .promo-stat-simple .stat-number {
    font-size: 24px;
  }

  .promo-stat-simple .stat-text {
    font-size: 12px;
  }

  .promo-action-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .promo-action-wide .action-left {
    width: 100%;
  }

  .promo-action-wide .action-btn-simple {
    width: 100%;
    padding: 10px;
  }

  .tab-menu-simple li {
    padding: 12px 16px;
    font-size: 13px;
  }

  .tab-content {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .promo-overview {
    grid-template-columns: 1fr;
  }
}

/* Promotional Table - Mobile-First Responsive Design */
@media (max-width: 768px) {
  .promotional-table {
    display: block;
    width: 100%;
  }
  
  .promotional-table thead {
    display: none;
  }
  
  .promotional-table tbody {
    display: block;
  }
  
  .promotional-table tr {
    display: block;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
  }
  
  .promotional-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .promotional-table td:last-child {
    border-bottom: none;
  }
  
  .promotional-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .promotional-table .product-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .promotional-table .product-cell::before {
    margin-bottom: 8px;
  }
  
  .promotional-table .actions-cell {
    flex-direction: column;
    gap: 8px;
  }
  
  .promotional-table .actions-cell button {
    width: 100%;
    min-height: 44px;
  }
  
  .discount-actions,
  .promotional-table .actions-cell > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .discount-actions button {
    width: 100%;
    min-height: 44px;
  }
}

/* Promotional Controls - Mobile Responsive */
.promotional-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .promotional-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .promotional-controls .input-group {
    width: 100%;
  }
  
  .promotional-controls .standard-button,
  .promotional-controls .create-discount-btn,
  .promotional-controls .create-voucher-btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
}

/* Campaign Notice Styling */
.campaign-notice {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  border: 2px dashed #3b82f6;
}

.campaign-notice i {
  font-size: 48px;
  color: #3b82f6;
  margin-bottom: 16px;
  display: block;
}

.campaign-notice p {
  font-size: 16px;
  color: #1e40af;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Discount Modal - Mobile-First Redesign */
.discount-modal,
.voucher-modal {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px auto;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .discount-modal,
  .voucher-modal {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .discount-modal-header,
  .voucher-modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .discount-modal-body,
  .voucher-modal-body {
    padding: 16px;
  }
  
  .discount-modal-footer,
  .voucher-modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
  }
  
  .discount-modal-footer button,
  .voucher-modal-footer button {
    flex: 1;
    min-height: 48px;
    font-size: 15px;
  }
}

/* Product Selection in Modal - Mobile Optimized */
.product-search-results {
  max-height: 300px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .product-search-results {
    max-height: 200px;
  }
}

.product-result-item {
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 60px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .product-result-item {
    min-height: 72px;
    padding: 16px 12px;
  }
}

.product-result-item:hover {
  background: #f9fafb;
}

.product-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
}

@media (max-width: 768px) {
  .product-result-item img {
    width: 60px;
    height: 60px;
  }
}

/* Discount Type Options - Touch-Friendly */
.discount-type-options,
.voucher-type-options {
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .discount-type-options,
  .voucher-type-options {
    flex-direction: column;
  }
  
  .discount-type-option,
  .voucher-type-option {
    min-height: 52px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .discount-type-option input,
  .voucher-type-option input {
    width: 20px;
    height: 20px;
  }
  
  .discount-type-option label,
  .voucher-type-option label {
    font-size: 15px;
    cursor: pointer;
  }
  
  .discount-type-option:has(input:checked),
  .voucher-type-option:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
  }
}

/* Form Inputs - Mobile Optimized */
.discount-section input[type="text"],
.discount-section input[type="number"],
.discount-section input[type="date"],
.discount-section textarea,
.voucher-section input[type="text"],
.voucher-section input[type="number"],
.voucher-section input[type="datetime-local"],
.voucher-section textarea {
  font-size: 16px;
  min-height: 44px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  width: 100%;
}

@media (max-width: 768px) {
  .discount-section input,
  .discount-section textarea,
  .voucher-section input,
  .voucher-section textarea {
    font-size: 16px !important;
    min-height: 48px;
  }
}

/* Price Preview - Mobile Friendly */
.price-preview,
.voucher-preview {
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .price-preview,
  .voucher-preview {
    padding: 20px;
  }
  
  .price-breakdown {
    font-size: 15px;
    margin: 12px 0;
  }
}

/* Toggle Switch - Larger for Mobile */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

@media (max-width: 768px) {
  .toggle-switch {
    width: 56px;
    height: 32px;
  }
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .toggle-slider:before {
    height: 24px;
    width: 24px;
  }
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

@media (max-width: 768px) {
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
  }
}

/* ==========================================================================
   CONVERSATION CARDS - CHAT SECTION
   ========================================================================== */

.chats-list {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.conversation-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.conversation-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #3b82f6;
}

.conversation-card.unread {
  background: #eff6ff;
  border-color: #3b82f6;
}

@media (max-width: 768px) {
  .conversation-card {
    padding: 14px;
    min-height: 88px;
  }
}

.conversation-avatar {
  position: relative;
  flex-shrink: 0;
}

.conversation-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .conversation-avatar img {
    width: 52px;
    height: 52px;
  }
}

.unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border: 2px solid white;
  border-radius: 50%;
}

.conversation-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.conversation-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .conversation-name {
    font-size: 15px;
  }
}

.conversation-time {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .conversation-time {
    font-size: 12px;
  }
}

.context-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  width: fit-content;
}

.order-badge {
  background: #fef3c7;
  color: #92400e;
}

.product-badge {
  background: #dbeafe;
  color: #1e40af;
}

.conversation-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.conversation-message.unread-message {
  color: #374151;
  font-weight: 500;
}

@media (max-width: 768px) {
  .conversation-message {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }
}

.unread-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  width: fit-content;
}

/* ==========================================================================
   Seller messaging — redesigned conversation card content (no buyer avatar)
   The outer .conversation-card / .conversation-card.unread shell (card frame,
   hover lift, green unread left-accent) is defined inline in
   sellerDashboard.html and reused here. These selectors style the inner
   content emitted by createConversationCard() in sellerMessaging.js.
   ========================================================================== */
.conv-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Top row: prominent buyer name + optional unread pill + clear date */
.conv-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.conv-card-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.conversation-card:hover .conv-card-name { color: #065f46; }
.conversation-card.unread .conv-card-name { color: #059669; }

.conv-card-date {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.conv-card-unread {
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.4);
}

/* Context chip: labeled "Pedido #…" / "Producto: …" with optional thumbnail */
.conv-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  width: fit-content;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
}

.conv-card-chip-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.conv-card-chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: #fff;
}

.conv-card-chip-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-card-chip--order {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.conv-card-chip--order .conv-card-chip-icon { background: #10b981; }

.conv-card-chip--product {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.conv-card-chip--product .conv-card-chip-icon { background: #3b82f6; }

.conv-card-chip--general {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}
.conv-card-chip--general .conv-card-chip-icon { background: #9ca3af; }

/* Last-message preview, single-line with ellipsis */
.conv-card-preview {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-card.unread .conv-card-preview { color: #374151; font-weight: 500; }
.conv-card-preview--empty { font-style: italic; color: #9ca3af; }

@media (max-width: 768px) {
  .conv-card-name { font-size: 15px; }
  .conv-card-chip { font-size: 12px; }
  .conv-card-preview { font-size: 13px; }
}

/* Loading and Empty States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.loading-state i,
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

@media (max-width: 768px) {
  .loading-state,
  .empty-state {
    padding: 40px 20px;
  }
  
  .loading-state i,
  .empty-state i {
    font-size: 40px;
  }
}

.loading-state h3,
.empty-state h3 {
  font-size: 18px;
  color: #6b7280;
  margin: 12px 0 8px;
}

.loading-state p,
.empty-state p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modern Filters - Chat Section */
.modern-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .modern-filters {
    flex-direction: column;
  }
  
  .filter-item {
    width: 100%;
  }
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .filter-item {
    padding: 12px 16px;
  }
}

.filter-item i {
  color: #6b7280;
  font-size: 14px;
}

.filter-item select,
.filter-item input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #374151;
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .filter-item select,
  .filter-item input {
    font-size: 15px;
    min-height: 24px;
  }
}

.filter-item select:focus,
.filter-item input:focus {
  outline: none;
}

.search-filter {
  flex: 1;
  min-width: 250px;
}

@media (max-width: 768px) {
  .search-filter {
    min-width: 100%;
  }
}

/* Modern Chat Header Stats */
.modern-chats-header {
  margin-bottom: 24px;
}

.header-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
}

@media (max-width: 768px) {
  .header-title h2 {
    font-size: 20px;
  }
}

.header-title p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.stat-box {
  background: white;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

@media (max-width: 768px) {
  .stat-box {
    padding: 14px 12px;
  }
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .stat-value {
    font-size: 24px;
  }
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .stat-label {
    font-size: 12px;
  }
}

.stat-label i {
  font-size: 12px;
}

/* Pagination - Mobile Friendly */
.modern-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 0;
}

@media (max-width: 768px) {
  .modern-pagination {
    gap: 8px;
  }
}

.page-btn {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .page-btn {
    padding: 12px;
    font-size: 13px;
  }
  
  .page-btn span {
    display: none;
  }
}

.page-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #3b82f6;
}

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

.page-info {
  font-size: 14px;
  color: #6b7280;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .page-info {
    font-size: 13px;
  }
}

/* ========================================
   Payment Settings Section - Modern Redesign
   ======================================== */

.payment-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-settings-header h2 {
    margin: 0;
    font-size: 28px;
    color: #1a1a1a;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.payment-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.payment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.payment-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.bank-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
}

.payment-card-info h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.payment-card-info p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #666;
}

.payment-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #1a1a1a;
    font-weight: 500;
}

.payment-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-card-action {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-action:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-card-action.danger {
    color: #dc3545;
}

.btn-card-action.danger:hover {
    background: #fff5f5;
    border-color: #dc3545;
}

.default-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 14px;
}

/* Loading State */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-placeholder i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 16px;
}

.loading-placeholder p {
    color: #666;
    font-size: 16px;
}

/* Modern Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #667eea;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #666;
}

.toast-close {
    cursor: pointer;
    color: #999;
    font-size: 18px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #666;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Modal Redesign */
.payment-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.modal-header .close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-header .close:hover {
    color: #666;
}

.modal-description {
    padding: 0 32px;
    margin: 16px 0 24px 0;
    color: #666;
    font-size: 14px;
}

.payment-modal-content form {
    padding: 0 32px 32px 32px;
}

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

.form-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-section select,
.form-section input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-section input:focus,
.form-section select:focus,
.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.checkbox-section {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #1a1a1a;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.modal-actions button {
    flex: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .payment-settings-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-settings-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .payment-card-actions {
        flex-direction: column;
    }

    .btn-card-action {
        width: 100%;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        top: 70px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }

    .payment-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-description,
    .payment-modal-content form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .payment-settings-header h2 {
        font-size: 22px;
    }

    .section-description {
        font-size: 13px;
    }

    .payment-card {
        padding: 16px;
    }

    .default-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }
}

/* Fix Modal Centering */
#addPaymentModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#addPaymentModal.modal[style*="display: block"] {
    display: flex !important;
}

.payment-modal-content {
    position: relative;
    margin: auto;
}

/* Fix Input Icon Overlap */
.input-with-icon input,
.input-with-icon select {
    padding-left: 44px !important;
}

.form-section input,
.form-section select {
    box-sizing: border-box;
}

/* ================================================
   SIMPLIFIED SHIPPING MODAL STYLES
   ================================================ */

/* Status Indicator */
.ship-status-indicator {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
  border-radius: 12px;
  border-left: 4px solid #007185;
  align-items: center;
}

.ship-status-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007185;
  font-size: 20px;
  flex-shrink: 0;
}

.ship-status-text strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.ship-status-text p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* Form Styles */
.ship-form-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ship-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ship-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ship-form-group .required {
  color: #c62828;
  margin-left: 2px;
}

.ship-input,
.ship-textarea {
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.2s ease;
  background: white;
}

.ship-input:focus,
.ship-textarea:focus {
  outline: none;
  border-color: #007185;
  box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.ship-textarea {
  resize: vertical;
  min-height: 70px;
}

.ship-help-text {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* Checkbox Group */
.ship-checkbox-group {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.ship-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ship-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007185;
}

.ship-checkbox-label .checkbox-text {
  font-size: 13px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ship-checkbox-label .checkbox-text i {
  color: #007185;
  font-size: 14px;
}

/* Item Display */
.ship-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fafafa;
  border-radius: 8px;
}

.ship-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

.ship-item-info {
  flex: 1;
}

.ship-item-info strong {
  font-size: 14px;
  color: #1a1a1a;
  display: block;
  margin-bottom: 4px;
}

.ship-item-info span {
  font-size: 12px;
  color: #666;
}

.ship-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ship-status-indicator {
    flex-direction: column;
    text-align: center;
  }

  .ship-form-content {
    gap: 14px;
  }
}

/* Shipping Button in Order Cards */
.order-action-btn.shipping-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.order-action-btn.shipping-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Return / Refund Filter Tabs */
.returns-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.return-filter-tab {
  padding: 8px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.return-filter-tab:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.return-filter-tab.active {
  background: #ff6b35;
  border-color: #ff6b35;
  color: #fff;
}

.tab-badge {
  background: rgba(0,0,0,0.12);
  color: inherit;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
}

.return-filter-tab.active .tab-badge {
  background: rgba(255,255,255,0.3);
}

.tab-badge-warning { background: #fff3cd; color: #856404; }
.tab-badge-info    { background: #cce5ff; color: #004085; }
.tab-badge-success { background: #d4edda; color: #155724; }

.return-filter-tab.active .tab-badge-warning,
.return-filter-tab.active .tab-badge-info,
.return-filter-tab.active .tab-badge-success {
  background: rgba(255,255,255,0.3);
  color: inherit;
}

/* ===== Ship Order Modal ===== */
#shipOrderModal {
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  position: fixed;
  inset: 0;
}

.ship-modal-panel {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ship-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.ship-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ship-modal-title i {
  font-size: 22px;
  color: #ff6b35;
  background: #fff3ee;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-modal-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.ship-modal-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #888;
}

.ship-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ship-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ship-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.ship-field .req {
  color: #e53935;
}

.ship-input,
.ship-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ship-input:focus,
.ship-select:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.ship-select optgroup {
  font-weight: 700;
  color: #555;
}

.ship-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  justify-content: flex-end;
}

.ship-btn-cancel {
  padding: 10px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ship-btn-cancel:hover {
  border-color: #bbb;
  background: #f5f5f5;
}

.ship-btn-confirm {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b35 0%, #e85d25 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.ship-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,107,53,0.4);
}

.ship-btn-confirm:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 520px) {
  .ship-modal-panel {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   BULK IMPORT  —  #bulk-import section
   ═══════════════════════════════════════════════════════ */

.bi-page { padding: 28px 24px 56px; max-width: 720px; margin: 0 auto; }

/* Hero */
.bi-hero {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}
.bi-title    { font-size: 24px; font-weight: 800; color: #1a202c; margin: 0 0 6px; }
.bi-subtitle { font-size: 15px; color: #64748b; margin: 0; line-height: 1.5; }

/* How it works — 3 cards */
.bi-how {
    display: flex; align-items: stretch; gap: 0;
    margin-bottom: 32px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
}
.bi-how-card {
    flex: 1; padding: 24px 20px; text-align: center;
    border-right: 1px solid #e2e8f0;
}
.bi-how-card:last-child { border-right: none; }
.bi-how-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin: 0 auto 14px;
}
.bi-how-step  { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.bi-how-title { font-size: 14px; font-weight: 700; color: #1a202c; margin-bottom: 6px; }
.bi-how-desc  { font-size: 13px; color: #64748b; line-height: 1.5; }
.bi-how-arrow { display: flex; align-items: center; color: #cbd5e1; font-size: 16px; padding: 0 4px; }

/* Download zone */
.bi-download-zone {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; background: #ede9fe; border: 1px solid #c4b5fd;
    border-radius: 14px; padding: 20px 24px; margin-bottom: 32px;
}
.bi-download-left { display: flex; align-items: center; gap: 16px; }
.bi-file-icon { font-size: 36px; color: #6c63ff; flex-shrink: 0; }
.bi-download-label { font-size: 15px; font-weight: 700; color: #1a202c; }
.bi-download-hint  { font-size: 13px; color: #64748b; margin-top: 3px; }
.bi-download-btn {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    background: #6c63ff; color: #fff; border: none;
    padding: 11px 22px; border-radius: 10px; font-size: 14px;
    font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; flex-shrink: 0;
}
.bi-download-btn:hover    { background: #5a52d5; transform: translateY(-1px); }
.bi-download-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Section label */
.bi-section-label {
    font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase;
    letter-spacing: .7px; margin: 28px 0 14px;
}

/* Drop zone */
.bi-drop-zone {
    border: 2px dashed #c7d2fe; border-radius: 14px;
    padding: 52px 32px; text-align: center; background: #fafafe;
    transition: border-color .2s, background .2s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-bottom: 32px;
}
.bi-drop-zone.drag-over { border-color: #6c63ff; background: #ede9fe; }
.bi-drop-icon { font-size: 48px; color: #a5b4fc; margin-bottom: 4px; }
.bi-drop-main { font-size: 17px; font-weight: 700; color: #374151; margin: 0; }
.bi-drop-or   { font-size: 13px; color: #94a3b8; }
.bi-drop-hint { font-size: 12px; color: #b0bac9; margin-top: 2px; }
.bi-btn-pick {
    display: inline-flex; align-items: center; gap: 8px;
    background: #6c63ff; color: #fff; border: none;
    padding: 11px 22px; border-radius: 9px; font-size: 14px;
    font-weight: 700; cursor: pointer; transition: background .15s;
}
.bi-btn-pick:hover { background: #5a52d5; }
.bi-uploading { text-align: center; padding: 40px; font-size: 15px; color: #6c63ff; font-weight: 600; }
.bi-uploading i { margin-right: 8px; }

/* Preview header */
.bi-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bi-preview-stats  { display: flex; gap: 8px; flex-wrap: wrap; }
.bi-stat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.bi-stat-pill.total { background: #f1f5f9; color: #475569; }
.bi-stat-pill.ok    { background: #f0fdf4; color: #16a34a; }
.bi-stat-pill.err   { background: #fef2f2; color: #dc2626; }
.bi-btn-change {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: #64748b; border: 1px solid #e2e8f0;
    padding: 8px 14px; border-radius: 8px; font-size: 13px;
    font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap;
}
.bi-btn-change:hover { background: #f8fafc; }

/* Error summary */
.bi-error-summary { border: 1px solid #fecaca; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.bi-err-toggle {
    display: flex; align-items: center; gap: 8px;
    background: #fef2f2; padding: 10px 14px; font-size: 13px;
    font-weight: 600; color: #dc2626; cursor: pointer;
    transition: background .15s;
}
.bi-err-toggle:hover { background: #fee2e2; }
.bi-err-toggle i:first-child { flex-shrink: 0; }
.bi-err-toggle i:last-child { transition: transform .2s; }
#bi-error-list { padding: 8px 14px 12px; background: #fff; }
.bi-err-item { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; padding: 5px 0; border-bottom: 1px solid #fee2e2; }
.bi-err-item:last-child { border-bottom: none; }
.bi-err-row  { font-weight: 700; color: #dc2626; white-space: nowrap; flex-shrink: 0; }
.bi-err-name { font-weight: 600; color: #374151; }
.bi-err-msgs { color: #6b7280; }

/* Preview table */
.bi-table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 10px; }
.bi-preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bi-preview-table th { background: #f8fafc; color: #64748b; font-weight: 600; padding: 9px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.bi-preview-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #374151; }
.bi-preview-table tr:last-child td { border-bottom: none; }
.bi-preview-table tr.bi-row-invalid { background: #fff8f8; }
.bi-td-num  { color: #94a3b8; font-size: 11px; width: 32px; }
.bi-td-name { font-weight: 500; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.bi-badge.active { background: #dcfce7; color: #16a34a; }
.bi-badge.draft  { background: #f1f5f9; color: #64748b; }
.bi-badge.missing { background: #fef3c7; color: #b45309; white-space: nowrap; }
.bi-badge.ok-data { background: #dbeafe; color: #1d4ed8; }

/* Confirm + import */
.bi-confirm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.bi-btn-import {
    display: inline-flex; align-items: center; gap: 8px;
    background: #10b981; color: #fff; border: none;
    padding: 12px 24px; border-radius: 10px; font-size: 15px;
    font-weight: 700; cursor: pointer; transition: background .15s, transform .15s;
}
.bi-btn-import:hover    { background: #059669; transform: translateY(-1px); }
.bi-btn-import:disabled { background: #94a3b8; cursor: default; transform: none; }

/* Result */
.bi-result-wrap { text-align: center; padding: 24px 0 8px; }
.bi-result-icon { font-size: 60px; margin-bottom: 12px; }
.bi-result-icon.success { color: #10b981; }
.bi-result-icon.warn    { color: #f59e0b; }
.bi-result-title { font-size: 20px; font-weight: 800; color: #1a202c; margin: 0 0 16px; }
.bi-result-pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bi-result-note { font-size: 13px; color: #64748b; margin: 8px 0 0; }

/* Help toggle */
.bi-help-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; margin-top: 32px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #475569;
    transition: background .15s;
}
.bi-help-toggle:hover, .bi-help-toggle.open { background: #f1f5f9; }
.bi-help-toggle i:first-child { color: #6c63ff; }
.bi-help-toggle i:last-child { transition: transform .2s; }
.bi-help-toggle.open i:last-child { transform: rotate(180deg); }
.bi-help-body {
    border: 1px solid #e2e8f0; border-top: none;
    border-radius: 0 0 10px 10px; padding: 20px 18px;
    background: #fff; animation: biFadeIn .2s ease;
}
@keyframes biFadeIn { from { opacity:0; transform:translateY(4px);} to { opacity:1; transform:none;} }
.bi-help-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; margin-bottom: 10px; }
.bi-req-rows { display: flex; flex-direction: column; gap: 6px; }
.bi-req-row  { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.bi-col-tag  { display: inline-block; font-family: monospace; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.bi-col-tag.req { background: #ede9fe; color: #6c63ff; }
.bi-col-tag.opt { background: #f0fdf4; color: #16a34a; }
.bi-col-ex-inline { font-size: 12px; color: #94a3b8; }
.bi-cat-pills { display: flex; flex-direction: column; gap: 10px; }
.bi-cat-group { background: #f8fafc; border-radius: 8px; padding: 10px 14px; }
.bi-cat-main  { font-size: 13px; font-weight: 700; color: #1a202c; display: block; margin-bottom: 6px; }
.bi-cat-main code { background: #ede9fe; color: #6c63ff; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.bi-cat-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.bi-cat-subs code { background: #fff; border: 1px solid #e2e8f0; color: #475569; border-radius: 4px; padding: 2px 7px; font-size: 11px; }

/* Responsive */
@media (max-width: 600px) {
    .bi-how { flex-direction: column; }
    .bi-how-card { border-right: none; border-bottom: 1px solid #e2e8f0; }
    .bi-how-card:last-child { border-bottom: none; }
    .bi-how-arrow { display: none; }
    .bi-download-zone { flex-direction: column; align-items: flex-start; }
    .bi-confirm-row { flex-direction: column; align-items: stretch; }
    .bi-btn-import, .bi-btn-change { justify-content: center; }
}

/* ================================================================
   FINANCE / PAYMENTS  (fp-* prefix)
   ================================================================ */

/* ── Page shell ──────────────────────────────────────────── */
.fp-page { padding: 36px 36px 64px; max-width: 1020px; margin: 0 auto; }
.fp-page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.fp-page-title { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0 0 6px; letter-spacing: -.4px; }
.fp-page-sub { font-size: 15px; color: #64748b; margin: 0; }

/* ── How-it-works ─────────────────────────────────────────── */
.fp-how-it-works {
    display: flex; align-items: flex-start; gap: 0;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
    padding: 28px 32px; margin-bottom: 28px; flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.fp-hiw-step {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; flex: 1; min-width: 110px; gap: 10px; position: relative;
}
.fp-hiw-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: #f1f5f9; color: #64748b;
    font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.fp-hiw-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.fp-hiw-label { font-size: 13px; font-weight: 700; color: #1e293b; margin-top: 2px; }
.fp-hiw-sub { font-size: 12px; color: #94a3b8; line-height: 1.4; }
.fp-hiw-arrow {
    color: #cbd5e1; font-size: 20px; flex-shrink: 0;
    align-self: center; padding: 0 8px; margin-top: 12px;
}

/* ── Stat grid (payment-settings balance) ─────────────────── */
.fp-stat-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 16px; margin-bottom: 28px;
}
.fp-stat-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 24px 20px; display: flex; flex-direction: column; gap: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: box-shadow .15s;
    border-top: 3px solid transparent;
}
.fp-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.fp-stat-icon { font-size: 22px; margin-bottom: 4px; }
.fp-stat-lbl { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .6px; }
.fp-stat-val { font-size: 28px; font-weight: 800; color: #0f172a; letter-spacing: -.5px; line-height: 1.1; }
.fp-stat-date { font-size: 18px; }
.fp-stat-sub { font-size: 12px; color: #cbd5e1; margin-top: 2px; }
.fp-stat-green { border-top-color: #16a34a; }
.fp-stat-green .fp-stat-icon { color: #16a34a; }
.fp-stat-green .fp-stat-val { color: #15803d; }
.fp-stat-yellow { border-top-color: #eab308; }
.fp-stat-yellow .fp-stat-icon { color: #ca8a04; }
.fp-stat-yellow .fp-stat-val { color: #92400e; }
.fp-stat-blue { border-top-color: #3b82f6; }
.fp-stat-blue .fp-stat-icon { color: #2563eb; }
.fp-stat-blue .fp-stat-val { color: #1d4ed8; }
.fp-stat-gray { border-top-color: #94a3b8; }
.fp-stat-gray .fp-stat-icon { color: #64748b; }
.fp-stat-gray .fp-stat-val { color: #334155; }

/* ── Hero layout (my-income) ──────────────────────────────── */
.fp-hero-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 28px; align-items: stretch;
}
.fp-hero-card {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 60%, #22c55e 100%);
    border-radius: 20px; padding: 36px 32px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 8px 32px rgba(21,128,61,.28);
    position: relative; overflow: hidden;
}
.fp-hero-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.fp-hero-card::after {
    content: ''; position: absolute; bottom: -60px; right: 20px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.fp-hero-top { display: flex; align-items: center; gap: 10px; }
.fp-hero-icon-wrap {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.2); display: flex; align-items: center;
    justify-content: center; font-size: 16px; color: #fff;
}
.fp-hero-lbl { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .6px; }
.fp-hero-amount {
    font-size: 48px; font-weight: 900; color: #fff;
    letter-spacing: -1.5px; line-height: 1.05; margin-top: 8px;
    position: relative; z-index: 1;
}
.fp-hero-sub { font-size: 14px; color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.fp-hero-withdraw-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.35);
    color: #fff; border-radius: 10px; padding: 10px 18px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    margin-top: 12px; width: fit-content; transition: all .15s;
    position: relative; z-index: 1;
}
.fp-hero-withdraw-btn:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.6); }

/* 3 secondary tiles beside hero */
.fp-sec-grid {
    display: grid; grid-template-rows: repeat(3,1fr);
    gap: 12px;
}
.fp-sec-tile {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 20px 24px; display: flex; flex-direction: row; align-items: center; gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04); border-left: 4px solid transparent;
    transition: box-shadow .15s;
}
.fp-sec-tile:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.fp-sec-icon-wrap {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.fp-sec-lbl { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.fp-sec-val { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; margin-top: 2px; }
.fp-sec-hint { font-size: 11px; color: #cbd5e1; margin-top: 1px; }
.fp-sec-yellow { border-left-color: #eab308; }
.fp-sec-yellow .fp-sec-icon-wrap { background: #fef9c3; color: #ca8a04; }
.fp-sec-yellow .fp-sec-val { color: #92400e; }
.fp-sec-blue { border-left-color: #3b82f6; }
.fp-sec-blue .fp-sec-icon-wrap { background: #dbeafe; color: #2563eb; }
.fp-sec-blue .fp-sec-val { color: #1d4ed8; }
.fp-sec-purple { border-left-color: #9333ea; }
.fp-sec-purple .fp-sec-icon-wrap { background: #f3e8ff; color: #9333ea; }
.fp-sec-purple .fp-sec-val { color: #6b21a8; }

/* ── Card ────────────────────────────────────────────────── */
.fp-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.fp-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 28px; border-bottom: 1px solid #f1f5f9; gap: 16px; flex-wrap: wrap;
}
.fp-card-title { font-size: 17px; font-weight: 700; color: #0f172a; }
.fp-card-sub { font-size: 13px; color: #94a3b8; margin-top: 3px; }

/* ── Add / Withdraw buttons ─────────────────────────────── */
.fp-add-btn {
    display: flex; align-items: center; gap: 7px;
    background: #dc2626; color: #fff; border: none; border-radius: 10px;
    padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: background .15s; flex-shrink: 0;
}
.fp-add-btn:hover { background: #b91c1c; }

/* ── Spinner ─────────────────────────────────────────────── */
.fp-spinner { text-align: center; padding: 48px; color: #cbd5e1; font-size: 26px; }

/* ── Payment method rows ─────────────────────────────────── */
.fp-method-row {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 28px; border-bottom: 1px solid #f8fafc;
    transition: background .1s;
}
.fp-method-row:last-child { border-bottom: none; }
.fp-method-row:hover { background: #fafafa; }
.fp-method-bank-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.fp-method-info { flex: 1; min-width: 0; }
.fp-method-name { font-size: 16px; font-weight: 700; color: #0f172a; }
.fp-method-detail { font-size: 13px; color: #94a3b8; margin-top: 3px; }
.fp-method-badges { display: flex; align-items: center; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.fp-badge-default {
    font-size: 11px; font-weight: 700; background: #dcfce7; color: #15803d;
    border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .4px;
}
.fp-badge-unverified {
    font-size: 11px; font-weight: 600; background: #fef9c3; color: #854d0e;
    border-radius: 999px; padding: 3px 10px;
}
.fp-method-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fp-action-btn {
    font-size: 13px; padding: 7px 14px; border-radius: 8px; border: none;
    cursor: pointer; font-weight: 500; transition: all .12s;
}
.fp-action-set-default { background: #eff6ff; color: #1d4ed8; }
.fp-action-set-default:hover { background: #dbeafe; }
.fp-action-delete { background: #fff1f2; color: #dc2626; }
.fp-action-delete:hover { background: #fee2e2; }
.fp-current-default-label { font-size: 13px; color: #16a34a; font-weight: 600; padding: 7px 4px; }

/* ── Empty state ─────────────────────────────────────────── */
.fp-empty { text-align: center; padding: 56px 28px; color: #94a3b8; }
.fp-empty i { font-size: 52px; margin-bottom: 16px; display: block; }
.fp-empty p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
.fp-empty-add-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #dc2626; color: #fff; border: none; border-radius: 10px;
    padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ── Commission note ─────────────────────────────────────── */
.fp-commission-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 14px;
    padding: 16px 20px; margin-top: 20px; font-size: 14px; color: #4c1d95; line-height: 1.6;
}

/* ── Transaction filters ─────────────────────────────────── */
.fp-txn-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-filter {
    padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    border: 1.5px solid #e2e8f0; background: #fff; color: #64748b;
    cursor: pointer; transition: all .12s;
}
.fp-filter.active { background: #dc2626; border-color: #dc2626; color: #fff; }
.fp-filter:hover:not(.active) { border-color: #dc2626; color: #dc2626; }

/* ── Transaction rows ────────────────────────────────────── */
.fp-txn-row {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 28px; border-bottom: 1px solid #f8fafc;
    transition: background .1s;
}
.fp-txn-row:hover { background: #fafafa; }
.fp-txn-row:last-child { border-bottom: none; }
.fp-txn-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fp-txn-icon-sale { background: #dcfce7; color: #16a34a; }
.fp-txn-icon-payout { background: #dbeafe; color: #2563eb; }
.fp-txn-icon-refund { background: #fee2e2; color: #dc2626; }
.fp-txn-icon-commission { background: #f3e8ff; color: #7c3aed; }
.fp-txn-icon-other { background: #f1f5f9; color: #64748b; }
.fp-txn-info { flex: 1; min-width: 0; }
.fp-txn-desc { font-size: 15px; font-weight: 600; color: #0f172a; }
.fp-txn-meta { font-size: 13px; color: #94a3b8; margin-top: 3px; }
.fp-txn-right { text-align: right; flex-shrink: 0; }
.fp-txn-amount { font-size: 17px; font-weight: 700; }
.fp-txn-amount.positive { color: #16a34a; }
.fp-txn-amount.negative { color: #dc2626; }
.fp-txn-status { font-size: 12px; margin-top: 3px; font-weight: 500; }
.fp-txn-status.completed { color: #16a34a; }
.fp-txn-status.pending { color: #ca8a04; }
.fp-txn-status.processing { color: #2563eb; }
.fp-txn-status.failed { color: #dc2626; }

/* ── Load more ───────────────────────────────────────────── */
.fp-load-more {
    display: inline-block; padding: 10px 28px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; background: #fff; font-size: 14px;
    color: #64748b; cursor: pointer; font-weight: 500; transition: all .12s;
}
.fp-load-more:hover { border-color: #dc2626; color: #dc2626; }

/* ── Modal overlay ───────────────────────────────────────── */
.fp-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9000; padding: 20px;
}
.fp-modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 500px;
    max-height: 92vh; overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.fp-modal-sm { max-width: 400px; }
.fp-modal-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px 18px; border-bottom: 1px solid #f1f5f9; gap: 12px;
}
.fp-modal-title { font-size: 18px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.fp-modal-x {
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 18px; padding: 4px; line-height: 1; flex-shrink: 0;
}
.fp-modal-x:hover { color: #475569; }
.fp-modal-bd { padding: 22px 24px; }
.fp-modal-ft {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid #f1f5f9;
}
.fp-modal-warn { color: #475569; font-size: 15px; margin: 0 0 14px; line-height: 1.6; }

/* ── Form fields ─────────────────────────────────────────── */
.fp-field { margin-bottom: 18px; }
.fp-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 7px; }
.fp-input, .fp-select {
    width: 100%; padding: 11px 14px; font-size: 15px;
    border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff;
    color: #0f172a; outline: none; box-sizing: border-box;
    transition: border-color .15s;
}
.fp-input:focus, .fp-select:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.fp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fp-field-note { font-size: 12px; color: #94a3b8; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.fp-checkbox-row { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: #374151; font-weight: normal; }
.fp-checkbox-row input { width: auto; accent-color: #dc2626; }

/* ── Delete preview ──────────────────────────────────────── */
.fp-delete-preview {
    background: #f8fafc; border-radius: 10px; padding: 14px 16px;
    font-size: 14px; color: #475569;
}

/* ── Withdraw modal ──────────────────────────────────────── */
.fp-withdraw-avail {
    background: linear-gradient(135deg,#dcfce7,#bbf7d0);
    border-radius: 12px; padding: 16px 18px;
    font-size: 15px; color: #166534;
}
.fp-withdraw-avail strong { color: #14532d; font-size: 22px; display: block; margin-top: 4px; }

/* ── Buttons ─────────────────────────────────────────────── */
.fp-btn-primary {
    display: flex; align-items: center; gap: 7px;
    background: #dc2626; color: #fff; border: none; border-radius: 10px;
    padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.fp-btn-primary:hover { background: #b91c1c; }
.fp-btn-primary:disabled { background: #f87171; cursor: not-allowed; }
.fp-btn-green { background: #16a34a !important; }
.fp-btn-green:hover { background: #15803d !important; }
.fp-btn-danger {
    display: flex; align-items: center; gap: 7px;
    background: #ef4444; color: #fff; border: none; border-radius: 10px;
    padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fp-btn-danger:hover { background: #dc2626; }
.fp-btn-ghost {
    background: #f1f5f9; color: #475569; border: none; border-radius: 10px;
    padding: 11px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.fp-btn-ghost:hover { background: #e2e8f0; }

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:900px){
    .fp-stat-grid { grid-template-columns: repeat(2,1fr); }
    .fp-hero-layout { grid-template-columns: 1fr; }
    .fp-sec-grid { grid-template-rows: auto; grid-template-columns: repeat(3,1fr); }
}
@media(max-width:640px){
    .fp-page { padding: 20px 16px 48px; }
    .fp-page-title { font-size: 22px; }
    .fp-hero-amount { font-size: 36px; }
    .fp-how-it-works { flex-direction: column; align-items: flex-start; gap: 16px; }
    .fp-hiw-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 16px; }
    .fp-stat-grid { grid-template-columns: 1fr 1fr; }
    .fp-sec-grid { grid-template-columns: 1fr; }
    .fp-field-row { grid-template-columns: 1fr; }
    .fp-method-row { flex-wrap: wrap; }
    .fp-card-head { flex-direction: column; align-items: flex-start; }
    .fp-txn-row { padding: 14px 16px; }
}

/* ============================================================
   CLEARER CARD SEPARATION
   Mis Pedidos (#my-orders), Devoluciones (#return-refund) and
   Chats (#chats) list cards previously had faint 1px borders that
   blended together. Strengthen the border and add a subtle shadow
   so each card reads as a distinct, separated block. ID-scoped so
   it wins over the base card rules without touching other areas.
   ============================================================ */
#my-orders .order-card,
#return-refund .return-card,
#chats .conversation-card {
  /* A 1px outline ring + drop shadow gives each card a clear edge WITHOUT
     overriding border-color, so the unread (blue), selected (amber) and
     expanded (red) state borders stay intact. */
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Keep a stronger lift on hover (overrides the base ring above) */
#my-orders .order-card:hover,
#return-refund .return-card:hover,
#chats .conversation-card:hover {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(0, 0, 0, 0.12);
}
