/**
 * Z2Market Premium Dark Purple Theme
 * 
 * Modern, elegant dark purple color scheme
 * Premium marketplace design system
 */

:root {
  /* ============================================
     DARK PURPLE COLOR PALETTE
     ============================================ */
  
  /* Primary Colors - Deep Purple */
  --brand-primary: #8b5cf6;
  --brand-primary-dark: #7c3aed;
  --brand-primary-light: #a78bfa;
  --brand-primary-lighter: #c4b5fd;
  
  /* Secondary Colors - Deep Violet */
  --brand-secondary: #6d28d9;
  --brand-secondary-dark: #5b21b6;
  --brand-secondary-light: #8b5cf6;
  
  /* Accent Colors */
  --brand-accent: #f472b6;
  --brand-accent-light: #f9a8d4;
  --brand-cyan: #22d3ee;
  --brand-emerald: #34d399;
  
  /* Extended Purple Palette */
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --purple-950: #3b0764;

  /* Brand Gradients - Dark Purple */
  --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(109, 40, 217, 0.1) 100%);
  --brand-gradient-hover: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
  --brand-gradient-vivid: linear-gradient(135deg, #c084fc 0%, #8b5cf6 50%, #6d28d9 100%);
  --brand-gradient-dark: linear-gradient(135deg, #581c87 0%, #3b0764 100%);
  
  /* Glass Effect Gradients */
  --glass-purple: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(109, 40, 217, 0.05) 100%);
  --glass-dark: linear-gradient(135deg, rgba(59, 7, 100, 0.95) 0%, rgba(30, 10, 60, 0.98) 100%);

  /* ============================================
     BACKGROUND COLORS - Elegant Light/Dark Mix
     ============================================ */
  --bg-main: #ffffff;
  --bg-soft: #faf8ff;
  --bg-light: #f5f3ff;
  --bg-purple-tint: #f3e8ff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  
  /* Dark Mode Backgrounds */
  --bg-dark-primary: #0f0a1f;
  --bg-dark-secondary: #1a1033;
  --bg-dark-card: #251847;
  --bg-dark-elevated: #2d1f54;

  /* ============================================
     TEXT COLORS
     ============================================ */
  --text-main: #1e1b4b;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-on-purple: #ffffff;
  --text-purple: #7c3aed;
  --text-purple-light: #a78bfa;

  /* ============================================
     BORDER & DIVIDER
     ============================================ */
  --border-color: #e9d5ff;
  --border-light: #f3e8ff;
  --border-purple: rgba(139, 92, 246, 0.3);
  --border-purple-light: rgba(139, 92, 246, 0.15);

  /* ============================================
     SHADOWS - Purple Tinted
     ============================================ */
  --shadow-soft: 0 2px 8px rgba(139, 92, 246, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.16);
  --shadow-xl: 0 16px 48px rgba(109, 40, 217, 0.2);
  --shadow-purple: 0 4px 20px rgba(139, 92, 246, 0.25);
  --shadow-purple-lg: 0 8px 40px rgba(139, 92, 246, 0.35);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);

  /* ============================================
     STATUS COLORS - Modern Vibrant
     ============================================ */
  --success-color: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --error-color: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning-color: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --info-color: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* ============================================
     LEGACY SUPPORT
     ============================================ */
  --primary-color: var(--brand-primary);
  --primary-dark: var(--brand-primary-dark);
  --primary-light: var(--brand-primary-light);
  --secondary-color: var(--brand-secondary);
  --accent-color: var(--brand-accent);
  --bg-color: var(--bg-main);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --shadow-sm: var(--shadow-soft);
  
  /* Extended Brand Aliases */
  --brand-blue-900: #1e3a8a;
  --brand-violet-800: var(--brand-secondary);
  --brand-violet-600: var(--brand-primary);
  --brand-indigo-600: #6366f1;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text-main);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-400);
}

/* ============================================
   PREMIUM NAVBAR - Dark Purple Theme
   ============================================ */

/* Navbar - Modern Premium Header */
.navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.98) 100%) !important;
  box-shadow: 0 2px 20px rgba(139, 92, 246, 0.08);
  border-bottom: 1px solid var(--border-purple-light);
  min-height: 72px;
  padding: 0;
  position: relative;
  z-index: 1030;
}

.navbar .container-fluid {
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 768px) {
  .navbar .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 255, 0.95) 100%) !important;
}

/* Logo */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-primary) !important;
  text-decoration: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.navbar-brand:hover {
  opacity: 0.8;
  color: var(--brand-primary-dark) !important;
}

/* Logo Image */
.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.navbar-brand:hover .navbar-logo {
  opacity: 0.8;
}

/* Responsive Logo Sizes */
@media (max-width: 768px) {
  .navbar-logo {
    height: 32px;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 28px;
  }
}

/* Nav Links */
.nav-link {
  font-weight: 500;
  color: var(--text-main) !important;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover {
  color: var(--brand-primary) !important;
}

/* Search Bar - Modern Purple Theme */
.navbar-search {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .navbar-search {
    display: none;
  }
}

.navbar-search-form {
  display: flex;
  align-items: stretch;
  height: 44px;
  background: var(--bg-main);
  border: 2px solid var(--border-purple-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-search-form:focus-within {
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), var(--shadow-purple);
}

.navbar-search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  min-width: 0;
}

.navbar-search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.navbar-search-category {
  border: none;
  border-left: 2px solid var(--border-purple-light);
  background: var(--bg-purple-tint);
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  width: 160px;
  flex-shrink: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b5cf6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: all 0.2s ease;
}

.navbar-search-category:hover {
  background-color: var(--purple-100);
}

.navbar-search-category:focus {
  background-color: var(--purple-100);
}

.navbar-search-btn {
  border: none;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 0;
  width: 48px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-search-btn:hover {
  background: var(--brand-gradient-hover);
  transform: scale(1.02);
}

.navbar-search-btn:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.navbar-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Icon Buttons - Modern Purple Style */
.navbar-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--bg-purple-tint);
  border: 1px solid var(--border-purple-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.navbar-icon-btn:hover {
  background: var(--brand-gradient-soft);
  color: var(--brand-primary);
  border-color: var(--border-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.navbar-icon-btn:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
}

.navbar-icon-btn:active {
  transform: translateY(0);
  background: var(--purple-100);
}

.navbar-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
}

/* Badge on Icons - Purple Accent */
.navbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
  color: white;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 5px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.4);
  z-index: 1;
  animation: badgePop 0.3s ease-out;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Profile Button */
.navbar-profile-btn {
  transition: all 0.2s ease !important;
}

.navbar-profile-btn:hover {
  background: rgba(102, 126, 234, 0.08) !important;
}

.navbar-profile-btn:focus {
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

.navbar-avatar {
  transition: transform 0.2s ease;
}

.navbar-profile-btn:hover .navbar-avatar {
  transform: scale(1.05);
}

/* Dropdown Menu Improvements */
.dropdown-menu {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  padding: 0 !important;
  margin-top: 8px !important;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 16px !important;
  background-color: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  margin: 0 !important;
}

.dropdown-item {
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--text-primary, #1f2937) !important;
  border: none !important;
  background: transparent !important;
  width: 100%;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #f3f4f6 !important;
  color: var(--brand-primary, #667eea) !important;
}

.dropdown-item:focus {
  background-color: #f3f4f6 !important;
  outline: none;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  stroke-width: 1.5;
}

.dropdown-item:hover svg,
.dropdown-item:focus svg {
  opacity: 1;
}

.dropdown-item.text-danger {
  color: #ef4444 !important;
}

.dropdown-item.text-danger:hover {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
}

.dropdown-divider {
  margin: 8px 0 !important;
  opacity: 0.3;
  border-color: #e5e7eb !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .navbar-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .navbar-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}

/* Navbar Container Spacing */
.navbar .container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .navbar {
    min-height: 60px;
    max-height: 60px;
    padding: 0.4rem 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-search {
    max-width: 200px;
  }

  .navbar-search-form {
    height: 40px;
  }

  .navbar-search-category {
    width: 120px;
    font-size: 12px;
    padding: 0 8px;
    padding-right: 24px;
  }

  .navbar-search-input {
    font-size: 13px;
    padding: 0 8px;
  }

  .navbar-search-btn {
    width: 40px;
  }

  .navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Ensure navbar is above hero content */
body {
  padding-top: 0;
}

/* Fix z-index issues - navbar should be above everything */
.navbar {
  z-index: 1030 !important;
}

.navbar .dropdown-menu {
  z-index: 1050 !important;
}

/* Hero section should not overlap navbar */
.hero-section {
  position: relative;
  z-index: 1;
}

/* ============================================
   ORDER CARDS & BUYER DASHBOARD
   ============================================ */

/* Order Cards */
.order-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #ffffff;
}

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

.order-thumbnail {
  border-radius: 6px;
  background: var(--bg-light);
}

/* Status Tabs */
.nav-pills .nav-link {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
}

/* Order Timeline */
.order-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  margin-bottom: 1.5rem;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  background: var(--bg-color);
  padding: 0.5rem;
  flex: 1;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
}

.timeline-item.active .timeline-icon {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.timeline-item.completed .timeline-icon {
  background: var(--success-color);
  color: #ffffff;
  border-color: var(--success-color);
}

.timeline-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.timeline-item.active .timeline-label {
  color: var(--primary-color);
  font-weight: 600;
}

.timeline-item.completed .timeline-label {
  color: var(--success-color);
}

/* Order Detail View */
.order-detail-view {
  padding: 0;
}

.order-detail-view .card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.order-detail-view .card-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* Offcanvas Styling */
.offcanvas {
  border-left: 1px solid var(--border-color);
}

.offcanvas-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

/* Premium Delivery Modal Styles */
.delivery-item-premium {
  animation: fadeInUp 0.4s ease-out;
}

.delivery-header-premium {
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.delivery-credentials-card .input-group-text,
.delivery-details-card .input-group-text {
  min-width: 45px;
  justify-content: center;
}

.delivery-field-value {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  background-color: #ffffff;
}

.delivery-field-value:focus {
  background-color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.delivery-info-badge .badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.copy-all-btn-premium {
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.copy-all-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .order-timeline {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .timeline-item {
    flex: 0 0 auto;
    min-width: 80px;
  }

  .timeline-label {
    font-size: 0.65rem;
  }

  .order-card .row {
    flex-direction: column;
  }

  .order-card .col-md-2 {
    margin-bottom: 1rem;
  }
}

/* Hero Section - Clear separation from navbar */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 0 0 2rem 2rem;
  margin-top: 0;
  margin-bottom: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.hero-section h1,
.hero-section p {
  color: white;
}

.hero-image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
}

/* ============================================
   BUTTONS - Premium Purple System
   ============================================ */

/* Primary Button - Gradient Purple */
.btn-primary {
  background: var(--brand-gradient);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-purple);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple-lg);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25), var(--shadow-purple);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* Secondary Button - Outlined Purple */
.btn-secondary {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary) !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--brand-gradient-soft);
  border-color: var(--brand-primary-dark);
  color: var(--brand-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
  background: var(--purple-100);
}

/* Link Button */
.btn-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.btn-link:hover {
  color: var(--brand-primary-dark);
  background: var(--brand-gradient-soft);
  text-decoration: none;
}

.btn-link:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
}

/* Outline Primary Button */
.btn-outline-primary {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary) !important;
  background: transparent;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
  background: var(--brand-gradient);
  border-color: var(--brand-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn-outline-primary:focus {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.btn-outline-primary:active {
  transform: translateY(0);
}

/* Text Primary Color */
.text-primary {
  color: var(--brand-primary) !important;
}

/* Success Button - Emerald */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Warning Button */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ============================================
   CARDS - Premium Purple Glass Effect
   ============================================ */
.card {
  border: 1px solid var(--border-purple-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover::before {
  opacity: 1;
}

.card-body {
  overflow: visible;
  padding: 1.5rem;
}

.card-header {
  background: var(--bg-purple-tint);
  border-bottom: 1px solid var(--border-purple-light);
  font-weight: 600;
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: 16px 16px 0 0;
}

.card-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-purple-light);
  padding: 1rem 1.5rem;
  border-radius: 0 0 16px 16px;
}

/* Listing Step Cards */
.listing-step.card {
  overflow: visible;
}

.listing-step.card .card-body {
  overflow: visible;
}

/* ============================================
   FORMS - Purple Themed Inputs
   ============================================ */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  background: var(--bg-main);
}

.form-control:hover {
  border-color: var(--border-purple);
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  background: #ffffff;
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-select:hover {
  border-color: var(--border-purple);
}

.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-text {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

/* Container - Use Bootstrap defaults, only override if needed */
.container {
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Auth Pages */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  max-width: 450px;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
}

/* Loading States */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Placeholder/Skeleton */
.placeholder {
  background-color: var(--bg-light);
  border-radius: 0.25rem;
}

.placeholder-glow .placeholder {
  animation: placeholder-glow 2s ease-in-out infinite;
}

@keyframes placeholder-glow {
  50% {
    opacity: 0.2;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Utilities */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

/* Category Chips */
.category-chip {
  transition: all 0.2s;
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
}

.category-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-chip.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

/* Listing Cards */
.listing-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.listing-card .card-img-top {
  transition: transform 0.3s ease;
}

.listing-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Dropdown Menu - Premium Styling */
.dropdown-menu {
  min-width: 260px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  padding: 4px 0 !important;
  margin-top: 10px !important;
  z-index: 1050 !important;
  background-color: #ffffff !important;
}

.dropdown-item {
  padding: 0.625rem 1rem !important;
  color: var(--text-primary) !important;
  font-weight: 400;
  transition: background-color 0.15s;
}

.dropdown-item:hover {
  background-color: var(--bg-light) !important;
  color: var(--text-primary) !important;
}

.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

.dropdown-item {
  padding: 10px 16px !important;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
  border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f3f4f6 !important;
  color: var(--text-primary) !important;
}

.dropdown-item.text-danger:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
}

.dropdown-divider {
  margin: 8px 0 !important;
  border-color: #e5e7eb !important;
}

/* Dropdown Header Section */
.dropdown-menu .border-bottom {
  background-color: #f9fafb !important;
  padding: 12px 16px !important;
}

/* Ensure dropdown appears above everything */
.dropdown {
  position: relative;
  z-index: 1050;
}

/* Fix dropdown z-index when navbar is sticky */
.navbar.sticky-top .dropdown-menu {
  z-index: 1051 !important;
}

/* Marketplace Search Bar */
#searchForm {
  max-width: 520px;
  width: 100%;
}

#searchForm .form-control {
  border-radius: 8px 0 0 8px;
  padding: 0.625rem 1rem;
  border-right: none;
  font-size: 0.9rem;
}

#searchForm .form-control:focus {
  border-right: none;
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
  border-color: var(--primary-color);
}

#searchForm .btn {
  border-radius: 0 8px 8px 0;
  padding: 0.625rem 1.25rem;
  border-left: 1px solid var(--primary-color);
}

/* Mobile: Hide search bar smoothly */
@media (max-width: 767.98px) {
  #searchForm {
    display: none !important;
  }

  /* Ensure navbar doesn't jump when search hides */
  .navbar .container-fluid {
    transition: none;
  }
}

/* Premium Card Styling */
.card {
  overflow: hidden;
}

.card-header {
  background-color: var(--bg-light);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-color);
  border-color: var(--border-color);
  transition: all 0.2s;
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Image Gallery */
.img-thumbnail {
  transition: all 0.2s;
  border: 2px solid var(--border-color);
}

.img-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Trust Badges */
.badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.badge.bg-success {
  background-color: var(--secondary-color) !important;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

.badge.bg-warning {
  background-color: var(--accent-color) !important;
  color: white;
}

/* Filters Panel */
#filtersPanel .card {
  position: sticky;
  top: 100px;
}

/* Empty States */
.text-center.py-5 {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Enhancements */
.footer h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer a:hover {
  color: var(--primary-color) !important;
}

/* ============================================
   Z2Market Footer (component)
   ============================================ */
.z2-footer {
  background: linear-gradient(180deg, var(--bg-dark-secondary, #1a1033) 0%, var(--bg-dark-primary, #0f0a1f) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-on-purple, #fff);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

.z2-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.z2-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.z2-footer__brand {
  max-width: 260px;
}

.z2-footer__logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.z2-footer__logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  display: block;
  filter: brightness(0) invert(1);
}

.z2-footer__tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.z2-footer__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
}

.z2-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.z2-footer__links li {
  margin-bottom: 0.5rem;
}

.z2-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.z2-footer__links a:hover {
  color: var(--brand-primary-light, #a78bfa);
}

.z2-footer__payments {
  max-width: 240px;
}

.z2-footer__payment-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.z2-footer__payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.z2-footer__payment-icon svg {
  flex-shrink: 0;
}

.z2-footer__trust-line {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.z2-footer__trust-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-emerald, #34d399);
}

/* Localization */
.z2-footer__localization {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.z2-footer__locale-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.z2-footer__locale-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.z2-footer__select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.z2-footer__select:focus {
  outline: none;
  border-color: var(--brand-primary, #8b5cf6);
}

.z2-footer__locale-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* Footer bottom bar */
.z2-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  text-align: center;
}

.z2-footer__copyright,
.z2-footer__contact,
.z2-footer__location {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.z2-footer__contact a {
  color: var(--brand-primary-light, #a78bfa);
  text-decoration: none;
}

.z2-footer__contact a:hover {
  text-decoration: underline;
}

/* Z2 Footer responsive */
@media (max-width: 1023px) {
  .z2-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .z2-footer__brand {
    max-width: none;
    grid-column: 1 / -1;
  }
  .z2-footer__payments {
    max-width: none;
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .z2-footer {
    padding: 2rem 0 0;
  }
  .z2-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .z2-footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  .z2-footer__localization {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
  }
  .z2-footer__locale-sep {
    display: none;
  }
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.25em;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Premium Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

.display-4 {
  font-weight: 700;
}

/* Button Size Enhancements */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 14px;
}

/* Card Body Spacing */
.card-body {
  padding: 1.5rem;
}

.card-header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .auth-card {
    margin: 1rem;
  }

  .hero-section {
    padding: 2rem 0 !important;
    margin-top: 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .listing-card {
    margin-bottom: 1.5rem;
  }

  #filtersPanel .card {
    position: static;
  }
}

/* Dark Mode Variables (Prepared for future toggle) */
@media (prefers-color-scheme: dark) {
  /* Can be implemented later if dark mode is needed */
}

/* Animation for page transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   SELLER DASHBOARD STYLES
   ============================================ */

/* Dashboard Container - 2 Column Layout */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 64px);
  margin-top: 0;
  width: 100%;
  position: relative;
}

/* Sidebar */
.dashboard-sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

.sidebar-nav {
  padding: 0.75rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.sidebar-link.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 500;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
}

/* Main Content Area */
.dashboard-content {
  flex: 1;
  padding: 2rem;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

.section-header {
  margin-bottom: 1.5rem;
}

/* KPI Cards */
.kpi-card {
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.kpi-icon.bg-primary {
  background-color: var(--primary-color) !important;
}

.kpi-icon.bg-success {
  background-color: var(--success-color) !important;
}

.kpi-icon.bg-info {
  background-color: var(--info-color) !important;
}

.kpi-icon.bg-warning {
  background-color: var(--warning-color) !important;
}

.kpi-icon.bg-secondary {
  background-color: #6b7280 !important;
}

/* Responsive: Mobile Sidebar Collapse */
@media (max-width: 991.98px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-link {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
  }

  .dashboard-content {
    padding: 1.5rem;
  }
}

/* Dashboard Tables */
.dashboard-section .table {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-section .table thead {
  background-color: var(--bg-light);
}

/* Empty States in Dashboard */
.dashboard-section .text-center.py-5 {
  min-height: 200px;
}

/* Seller Profile Styles */
.seller-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.seller-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

/* Seller Profile Header – Actions & Stats */
.seller-profile-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.seller-profile-action-primary {
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
}

.seller-profile-actions-bottom {
  display: flex;
  justify-content: flex-end;
}

.seller-profile-report-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted, #6c757d);
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color 0.2s;
}

.seller-profile-report-link:hover {
  color: var(--error-color, #dc3545);
}

/* Seller stats grid – equal-width cards */
.seller-stats-grid {
  margin-top: 0.5rem;
}

.seller-stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-light, #f5f3ff);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e9d5ff);
}

.seller-stat-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.seller-stat-icon--rating {
  color: var(--warning-color, #f59e0b);
}

.seller-stat-icon--positive {
  color: var(--success-color, #10b981);
}

.seller-stat-icon--neutral {
  color: var(--text-muted, #6b7280);
}

.seller-stat-content {
  min-width: 0;
}

.seller-stat-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #1e1b4b);
}

.seller-stat-value--success {
  color: var(--success-color, #10b981);
}

.seller-stat-label {
  display: block;
  color: var(--text-muted, #6b7280);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.listing-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.listing-card .card-img-top {
  transition: transform 0.3s;
}

.listing-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Seller Profile Responsive */
@media (max-width: 768px) {
  .seller-avatar {
    width: 60px;
    height: 60px;
  }

  .seller-avatar-initials {
    font-size: 1.2rem;
  }

  .seller-profile-actions {
    min-height: 0;
    gap: 1rem;
  }

  .seller-profile-actions-bottom {
    justify-content: flex-start;
  }

  #sellerTabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  #sellerTabs .nav-link {
    white-space: nowrap;
  }
}

/* ============================================
   CHAT SYSTEM STYLES
   ============================================ */

/* Chat Page Layout */
body.chat-page {
  background-color: #f0f2f5;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

/* Chat Container - 3 Column Layout */
.chat-container {
  display: flex;
  height: 100vh;
  width: 100%;
  margin: 0;
  background: #ffffff;
  overflow: hidden;
}

/* Sidebar Base Styles */
.chat-sidebar {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-right: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* Left Sidebar: Conversations List */
.chat-sidebar-left {
  width: 300px;
  background: #f8f9fa;
}

/* Right Sidebar: Order Context */
/* Right sidebar removed - chat is now 2-column layout */

.chat-sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-sidebar-left .chat-sidebar-header {
  background: #ffffff;
}

.chat-sidebar-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.chat-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: inherit;
}

.chat-sidebar-left .chat-search {
  background: #ffffff;
}

.chat-search .form-control {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.chat-threads-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  background: inherit;
}

.chat-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.chat-thread-item {
  display: flex;
  padding: 0.75rem;
  margin-bottom: 0.375rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: #ffffff;
  position: relative;
  align-items: center;
}

.chat-thread-item:hover {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.chat-thread-item.active {
  background-color: #eef2ff;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.chat-thread-actions {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.chat-thread-item:hover .chat-thread-actions {
  opacity: 1;
}

.chat-thread-actions .btn {
  padding: 0.25rem;
  font-size: 1rem;
}

.chat-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.chat-thread-content {
  flex: 1;
  min-width: 0;
}

.chat-thread-content h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.chat-thread-content .badge {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.chat-thread-preview {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-thread-content small {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Main Panel: Messages */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #fafbfc;
}

.chat-empty-state i {
  font-size: 4.5rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.chat-empty-state h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 1rem;
}

.chat-empty-state p {
  font-size: 0.9375rem;
  color: #9ca3af;
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* Critical for flex children to respect overflow */
  overflow: hidden;
}

.chat-topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  flex-shrink: 0;
  z-index: 10;
}

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

.chat-topbar h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
}

.chat-topbar small {
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  margin-top: 0.125rem;
}

.chat-topbar small .presence-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  margin-right: 6px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Presence Indicator Dot */
.presence-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: #ef4444;
  z-index: 10;
}

.chat-thread-avatar .presence-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  bottom: 0;
  right: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  justify-content: flex-start;
  align-items: stretch;
}

/* Message Row - Controls alignment */
.msg-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0.5rem;
  align-items: flex-start;
}

.msg-row--out {
  align-items: flex-end;
}

.msg-row--in {
  align-items: flex-start;
}

/* New Messages Indicator */
.new-messages-indicator {
  position: sticky;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  z-index: 10;
}

.new-messages-indicator button {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Message Bubble - Only contains text */
.msg-bubble {
  max-width: 60%;
  padding: 10px 12px;
  border-radius: 12px;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 0.9375rem;
  display: inline-block;
  position: relative;
}

@media (max-width: 768px) {
  .msg-bubble {
    max-width: 80%;
  }
}

.msg-bubble--out {
  background: #667eea;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg-bubble--in {
  background: #F5F6FA;
  color: #1f2937;
  border-bottom-left-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* Message Meta - Timestamp outside bubble */
.msg-meta {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 4px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.2;
}

.msg-meta--out {
  text-align: right;
  padding-right: 0;
  align-self: flex-end;
}

.msg-meta--in {
  text-align: left;
  padding-left: 0;
  align-self: flex-start;
}

/* Legacy support - keep old classes working */
.chat-message {
  display: flex;
  width: 100%;
  align-items: flex-end;
}

.chat-message.own {
  justify-content: flex-end;
}

.chat-message.other {
  justify-content: flex-start;
}

/* Date Separator */
.chat-date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  position: relative;
}

.chat-date-separator::before,
.chat-date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
  max-width: 45%;
}

.chat-date-separator span {
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0.75rem;
  white-space: nowrap;
}

.chat-composer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
  z-index: 10;
}

.chat-composer-inner {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.chat-attach-btn {
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: color 0.2s;
}

.chat-attach-btn:hover {
  color: #667eea;
}

.chat-input {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  line-height: 1.5;
}

.chat-send-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  background: #667eea;
  border: none;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #5568d3;
}

.chat-composer textarea {
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  line-height: 1.5;
}

.chat-composer textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-composer .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  transition: all 0.2s ease;
}

.chat-composer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.chat-composer #charCount {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Order Context Panel */
.order-context-card {
  padding: 1rem;
}

.order-context-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.order-context-header h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.order-context-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

/* My Orders Panel */
.orders-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.orders-panel-search {
  position: relative;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.orders-panel-search input {
  padding-right: 2rem;
  font-size: 0.875rem;
}

.orders-search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.orders-panel-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.orders-panel-tabs::-webkit-scrollbar {
  height: 4px;
}

.orders-panel-tabs::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.orders-panel-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.orders-tab {
  flex: 0 0 auto;
  padding: 0.75rem 0.875rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  min-width: max-content;
}

.orders-tab:hover {
  color: #667eea;
  background: #f9fafb;
}

.orders-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: 600;
}

.orders-panel-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
}

.orders-list-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.orders-list-item:hover {
  background: #f9fafb;
}

.orders-list-item.active {
  background: #f3f4f6;
  border-left-color: #667eea;
}

.orders-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.orders-item-main {
  flex: 1;
  min-width: 0;
}

.orders-item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-item-time {
  font-size: 0.7rem;
  color: #9ca3af;
  white-space: nowrap;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.orders-item-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.125rem;
}

.orders-item-status {
  flex-shrink: 0;
}

.orders-item-status .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
}

/* Removed orders-panel-actions - big buttons removed per requirement H */

/* Scrollbar for orders list */
.orders-panel-list::-webkit-scrollbar {
  width: 6px;
}

.orders-panel-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.orders-panel-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.orders-panel-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Right sidebar removed - no responsive styles needed */

/* Mobile: Single column layout */
@media (max-width: 767.98px) {
  .chat-sidebar-left {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .chat-sidebar-left.show {
    left: 0;
  }

  .chat-main {
    width: 100%;
  }
}

/* Scrollbar Styling */
.chat-threads-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-threads-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chat-threads-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-threads-list::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive Chat */
@media (max-width: 768px) {
  .chat-container {
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .chat-sidebar {
    width: 100%;
    position: absolute;
    z-index: 10;
    height: 100%;
    display: none;
  }

  .chat-sidebar.show {
    display: flex;
  }

  .chat-main {
    width: 100%;
  }

  .chat-message-bubble {
    max-width: 85%;
  }
}

/* ============================================
   Star Rating Widget (Professional z2u-style)
   ============================================ */

.star-rating-widget {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem !important;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.star-rating-widget:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.star-rating-widget:first-of-type {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 2px solid #fed7aa;
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.15);
}

.star-rating-widget:first-of-type:hover {
  background: linear-gradient(135deg, #ffedd5 0%, #fef3c7 100%);
  border-color: #fdba74;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.star-rating-container {
  gap: 0.5rem;
  justify-content: center;
}

.star-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  outline: none;
  line-height: 1;
}

.star-btn:hover {
  transform: scale(1.15);
}

.star-btn:active {
  transform: scale(1.05);
}

.star-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.star-icon {
  font-size: 2.25rem;
  line-height: 1;
  display: block;
  transition: all 0.2s ease;
  cursor: pointer;
}

.star-filled {
  color: #ffc107;
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.4);
  filter: drop-shadow(0 2px 2px rgba(255, 193, 7, 0.3));
}

.star-empty {
  color: #e5e7eb;
}

.star-hover {
  color: #ffb300;
  transform: scale(1.1);
  text-shadow: 0 2px 6px rgba(255, 193, 7, 0.6);
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.5));
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.star-rating-widget:hover .rating-text {
  color: var(--primary-color);
}

/* Star rating in feedback list (read-only) */
.feedback-stars {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}

.feedback-stars .bi-star-fill {
  color: #ffc107;
  font-size: 1rem;
}

.feedback-stars .bi-star {
  color: #d1d5db;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .star-icon {
    font-size: 1.75rem;
  }

  .rating-text {
    font-size: 0.85rem;
  }
}

/* Listing Detail Page - Z2U Style Offer Card */
#offerCard {
  position: sticky;
  top: 20px;
}

@media (max-width: 991.98px) {
  #offerCard {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }
}

/* Seller Hover Card Styles */
.seller-hover-card {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1rem;
  z-index: 99999;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transform: translateY(0);
}

.seller-hover-card.showing {
  animation: fadeInUp 0.2s ease-out;
}

.seller-info-hoverable:hover .seller-avatar-hover {
  transform: scale(1.05);
}

.seller-info-hoverable:hover .seller-name-hover {
  color: var(--primary-color);
}

.seller-rating-hover {
  cursor: pointer;
}

.seller-rating-hover:hover {
  opacity: 0.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Seller card as bottom sheet */
@media (max-width: 768px) {
  .seller-hover-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
  }

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

    to {
      transform: translateY(0);
    }
  }
}

/* Listing Creation Step Indicator */
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  transition: all 0.3s ease;
}

.step-indicator.active .step-number {
  background-color: var(--primary-color);
  color: white;
}

.step-indicator.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

.step-indicator.completed .step-number {
  background-color: var(--success-color);
  color: white;
}

.step-indicator.completed .step-label {
  color: var(--success-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: #e5e7eb;
  margin: 0 8px;
  margin-top: -24px;
  transition: background-color 0.3s ease;
}

.step-indicator.active~.step-line,
.step-indicator.completed~.step-line {
  background-color: var(--success-color);
}

/* Game Search Dropdown */
#listingGame {
  position: relative;
}

/* Game autocomplete container */
.game-autocomplete {
  position: relative;
}

/* Game dropdown - attached to input */
.game-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  z-index: 2000;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: none;
}

/* Ensure dropdown is visible when shown */
.game-dropdown.show {
  display: block !important;
}

/* Legacy ID selector for compatibility */
#listingGameDropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  z-index: 2000;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

#listingGameDropdown.show {
  display: block !important;
}

#listingGameDropdown .dropdown-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#listingGameDropdown .dropdown-item:hover {
  background-color: var(--bg-light);
}

/* Premium Order Stepper - Clean & Minimal */
.order-stepper-container {
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.order-stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 1rem;
}

/* Rail System */
.stepper-rail {
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  z-index: 0;
}

.stepper-fill {
  position: absolute;
  top: 22px;
  left: 10%;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #4f46e5 100%);
  border-radius: 999px;
  z-index: 1;
  width: 0%;
  transition: width 600ms ease;
}

.stepper-steps {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

/* Step Icon - Clean & Minimal */
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #9ca3af;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.step-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* Upcoming Step */
.step.is-upcoming .step-icon {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.step.is-upcoming .step-label {
  color: #9ca3af;
}

/* Done Step (Completed - No Animation) */
.step.is-done .step-icon {
  background: #ffffff;
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
  /* NO animation - static done state */
}

.step.is-done .step-label {
  color: #10b981;
  font-weight: 500;
}

/* Active Step - Premium Subtle Animation (ONLY for active, NOT completed) */
.step.is-active .step-icon {
  background: #ffffff;
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  position: relative;
  /* Breathing scale animation */
  animation: breathingScale 3s ease-in-out infinite;
}

.step.is-active .step-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(102, 126, 234, 0.25);
  animation: pulseRing1 2.4s ease-out infinite;
  pointer-events: none;
}

.step.is-active .step-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(102, 126, 234, 0.15);
  animation: pulseRing2 2.4s ease-out 0.6s infinite;
  pointer-events: none;
}

.step.is-active .step-label {
  color: #667eea;
  font-weight: 600;
  transition: font-weight 0.25s ease;
}

.step-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
  line-height: 1.2;
  max-width: 100px;
}

/* Check Overlay for Completed Steps */
.check-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #10b981;
  z-index: 3;
  pointer-events: none;
}

.check-overlay svg {
  width: 16px;
  height: 16px;
}

.check-overlay .check-draw {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: checkDraw 0.4s ease-out forwards;
}

/* Premium Subtle Animations - Only for Active Step */

/* Breathing Scale - Very subtle */
@keyframes breathingScale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* Pulse Ring 1 - Outer ring */
@keyframes pulseRing1 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.25;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

/* Pulse Ring 2 - Inner ring (delayed) */
@keyframes pulseRing2 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0;
  }
}

/* Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

  .step.is-active .step-icon,
  .step.is-active .step-icon::before,
  .step.is-active .step-icon::after {
    animation: none;
  }

  .stepper-fill {
    transition: none;
  }

  .check-overlay .check-draw {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Check Draw Animation */
@keyframes checkDraw {
  0% {
    stroke-dashoffset: 20;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .order-stepper {
    padding: 0 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stepper-steps {
    min-width: 600px;
    padding: 0 1rem;
  }

  .stepper-rail,
  .stepper-fill {
    left: 8%;
    right: 8%;
  }

  .step {
    min-width: 120px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
  }

  .step-icon svg {
    width: 18px;
    height: 18px;
  }

  .step-label {
    font-size: 0.7rem;
    max-width: 90px;
  }
}

@media (max-width: 576px) {
  .order-stepper-container {
    margin: 1.5rem 0;
    padding: 1rem 0;
  }

  .stepper-steps {
    min-width: 500px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
  }

  .step-icon svg {
    width: 16px;
    height: 16px;
  }

  .step-label {
    font-size: 0.65rem;
    max-width: 80px;
  }
}

/* ============================================
   ENHANCED NAVBAR - Modern Z2U Style
   ============================================ */

/* Right Section Container */
.navbar-right-section {
  gap: 0.5rem !important;
}

@media (min-width: 768px) {
  .navbar-right-section {
    gap: 0.75rem !important;
  }
}

/* Action Buttons (Cart, Chat) - Modern Style */
.navbar-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.navbar-action-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-color: rgba(102, 126, 234, 0.3);
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.navbar-action-btn:active {
  transform: translateY(0);
}

.navbar-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat Button - Slightly Highlighted */
.navbar-chat-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.navbar-chat-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

/* Action Badge (Cart/Chat Count) */
.navbar-action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Become a Seller Button - Modern */
.btn-become-seller {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-become-seller:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  color: #ffffff !important;
}

.btn-become-seller svg {
  flex-shrink: 0;
}

/* Ghost Button (Login) */
.btn-ghost-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ghost-nav:hover {
  background: #f3f4f6;
  color: #667eea;
  border-color: #e5e7eb;
}

/* Primary Nav Button (Sign Up) */
.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  color: #ffffff !important;
}

/* ============================================
   PROFILE DROPDOWN - Enhanced Design
   ============================================ */

.navbar-profile-dropdown {
  position: relative;
}

.navbar-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.5rem;
  padding-right: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-profile-trigger:hover {
  background: #ffffff;
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-profile-trigger:focus {
  outline: 2px solid rgba(102, 126, 234, 0.4);
  outline-offset: 2px;
}

/* Profile Avatar */
.navbar-profile-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  overflow: visible;
}

.avatar-initials {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Profile Info */
.navbar-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  min-width: 0;
  max-width: 120px;
}

.profile-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.profile-caret {
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.navbar-profile-trigger[aria-expanded="true"] .profile-caret {
  transform: rotate(180deg);
}

/* Enhanced Dropdown Menu */
.navbar-profile-dropdown .dropdown-menu {
  min-width: 260px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin-top: 12px !important;
  overflow: hidden;
  animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .navbar-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .navbar-profile-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  
  .avatar-initials {
    font-size: 0.75rem;
  }
  
  .btn-become-seller span {
    display: none;
  }
  
  .btn-become-seller {
    padding: 0.5rem;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .navbar-action-btn {
    width: 36px;
    height: 36px;
  }
  
  .navbar-action-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .navbar-profile-trigger {
    padding: 0.25rem 0.375rem;
    padding-right: 0.5rem;
  }
  
  .navbar-profile-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .avatar-initials {
    font-size: 0.7rem;
  }
  
  .profile-caret {
    width: 12px;
    height: 12px;
  }
}

/* Mobile Navigation Drawer for Chat (Optional) */
@media (max-width: 576px) {
  .navbar-right-section {
    gap: 0.375rem !important;
  }
  
  .btn-ghost-nav {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .btn-primary-nav {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   SUSPENSION BANNER CONTAINER ALIGNMENT
   ============================================ */

/* Align banner wrapper with page container width */
.container-fluid:has(#accountStatusBanner) {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  .container-fluid:has(#accountStatusBanner) {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Global Notice Slot Container Alignment */
#global-notice-slot.container {
  max-width: 1100px;
  margin: 14px auto;
  padding: 0.5rem 1rem;
}

@media (min-width: 1200px) {
  #global-notice-slot.container {
    padding: 0.5rem 1.5rem;
  }
}

/* Fallback for browsers that don't support :has() */
#global-notice-slot .container-fluid {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  #global-notice-slot .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ============================================
   SUSPENSION BANNER - Compact Red Theme (Global)
   ============================================ */

.susp-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ff4d4f;
  background: #fff1f0;
  border-radius: 12px;
  min-height: 90px;
  max-height: 120px;
  overflow: visible;
  margin: 0;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.15);
  width: 100%;
}

.susp-banner__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4f;
  font-size: 1rem;
}

.susp-banner__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.susp-banner__title {
  font-weight: 700;
  color: #a8071a;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}

.susp-banner__reason {
  color: #5c0011;
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 620px;
  line-height: 1.3;
}

.susp-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  overflow: visible;
  line-height: 1.2;
}

.susp-banner__chips-label {
  font-size: 11px;
  font-weight: 600;
  color: #a8071a;
  margin-right: 4px;
  white-space: nowrap;
}

.susp-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #ff7875;
  background: #fff;
  color: #a8071a;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
  flex-shrink: 0;
}

.susp-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.susp-banner__support-btn {
  padding: 6px 12px;
  background: transparent;
  color: #ff4d4f;
  border: 1px solid #ff4d4f;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.susp-banner__support-btn:hover {
  background: #ff4d4f;
  color: white;
  border-color: #ff4d4f;
}

.susp-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #5c0011;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.susp-banner__close:hover {
  opacity: 1;
  background: rgba(255, 77, 79, 0.1);
}

/* Responsive for suspension banner */
@media (max-width: 768px) {
  .susp-banner {
    flex-direction: column;
    max-height: none;
    padding: 10px;
  }

  .susp-banner__content {
    max-height: none;
  }

  .susp-banner__reason {
    white-space: normal;
    text-overflow: clip;
  }

  .susp-banner__actions {
    width: 100%;
    justify-content: space-between;
  }
}