/**
 * Premium Seller Dashboard Styles
 * Modern Dark Purple Theme
 */

/* ============================================
   CSS VARIABLES FOR SIDEBAR WIDTH
   ============================================ */

:root {
  --sidebar-width-expanded: 280px;
  --sidebar-width-collapsed: 80px;
  --sidebar-width: var(--sidebar-width-expanded);
  --navbar-height: 72px;
  --suspension-banner-height: 0px; /* Initialize to 0, updated by JS */
}

body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-width-collapsed);
}

/* ============================================
   DASHBOARD LAYOUT - Purple Gradient
   ============================================ */

.dashboard-container {
  display: flex;
  min-height: calc(100vh - 72px);
  margin-top: 0;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-purple-tint) 50%, var(--bg-soft) 100%);
  position: relative;
}

.dashboard-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, var(--purple-100) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 1rem;
  }
}

/* ============================================
   PREMIUM SIDEBAR - Dark Purple Glass
   ============================================ */

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 245, 255, 0.98) 100%);
  border-right: 1px solid var(--border-purple-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--navbar-height, 72px);
  height: calc(100vh - var(--navbar-height, 72px));
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
}

.dashboard-sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

/* ============================================
   SIDEBAR TOGGLE BUTTON - FIXED POSITION
   Always visible, never clipped by sidebar overflow
   ============================================ */

.sidebar-toggle-fixed {
  position: fixed;
  top: calc(var(--navbar-height, 72px) + var(--suspension-banner-height, 0px) + 20px);
  left: calc(var(--sidebar-width) - 18px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: 3px solid #ffffff;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: auto;
  box-shadow: 
    0 4px 16px rgba(139, 92, 246, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: 
    left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sidebar-toggle-fixed:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 24px rgba(139, 92, 246, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar-toggle-fixed:active {
  transform: scale(0.95);
}

.sidebar-toggle-fixed i {
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* Animate icon on hover */
.sidebar-toggle-fixed:hover i {
  transform: translateX(-2px);
}

body.sidebar-collapsed .sidebar-toggle-fixed:hover i {
  transform: translateX(2px);
}

/* Legacy class support - hide if present */
.sidebar-toggle-btn {
  display: none !important;
}

.dashboard-sidebar.collapsed .sidebar-link span,
.dashboard-sidebar.collapsed .sidebar-section-title {
  display: none;
}

.dashboard-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.875rem;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-purple-light);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(109, 40, 217, 0.03) 100%);
  position: relative;
}

.sidebar-header h5 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease;
}

/* Wallet badge in sidebar header */
.sidebar-wallet-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 1rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5b21b6;
  white-space: nowrap;
  margin-left: auto;
  cursor: default;
  transition: all 0.2s ease;
}

.sidebar-wallet-badge:hover {
  background: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 100%);
  transform: scale(1.03);
}

.sidebar-wallet-badge i {
  font-size: 0.8rem;
  color: #7c3aed;
}

/* Hide header title when collapsed */
.dashboard-sidebar.collapsed .sidebar-header h5 {
  opacity: 0;
  width: 0;
}

.dashboard-sidebar.collapsed .sidebar-wallet-badge {
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

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

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 0.375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  border: 1px solid transparent;
}

.sidebar-link i {
  font-size: 1.125rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: var(--brand-gradient-soft);
  color: var(--brand-primary);
  transform: translateX(4px);
  border-color: var(--border-purple-light);
}

.sidebar-link:hover i {
  color: var(--brand-primary);
  transform: scale(1.1);
}

.sidebar-link.active {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}

.sidebar-link.active i {
  color: #ffffff;
}

.sidebar-link.active::before {
  display: none;
}

/* Seller Status Widget */
.sidebar-insights-widget {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #f5f3ff 100%);
  overflow: hidden;
}
.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}
.insights-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary, #6d28d9);
}
.insights-dots {
  display: flex;
  gap: 5px;
}
.insights-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s;
}
.insights-dot.active {
  background: var(--brand-primary, #7c3aed);
  width: 16px;
  border-radius: 3px;
}
.insights-carousel {
  min-height: 110px;
  position: relative;
  overflow: hidden;
}
.insights-slide {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.insights-slide.active {
  opacity: 1;
  transform: translateX(0);
}
.insights-slide.slide-out {
  opacity: 0;
  transform: translateX(-12px);
}
.insights-slide.slide-in {
  opacity: 0;
  transform: translateX(12px);
}
.insights-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.insights-nav-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.insights-nav-btn:hover {
  background: var(--brand-primary, #7c3aed);
  color: #fff;
  border-color: var(--brand-primary, #7c3aed);
}
.insights-counter {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
}
.insights-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: #9ca3af;
}
.si-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.si-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}
.si-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.si-stat-info {
  min-width: 0;
}
.si-stat-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.si-stat-lbl {
  font-size: 0.6rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.si-commission {
  text-align: center;
  padding: 4px 0;
}
.si-comm-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}
.si-comm-pct {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.si-comm-sub {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.si-comm-saved {
  font-size: 0.75rem;
  color: #10b981;
  margin-bottom: 6px;
}
.si-comm-bonuses {
  text-align: left;
}
.si-comm-bonus {
  font-size: 0.7rem;
  color: #4b5563;
  margin-bottom: 2px;
}
.si-comm-tip {
  font-size: 0.72rem;
  color: #d97706;
  background: #fffbeb;
  border-radius: 6px;
  padding: 6px 8px;
}
.si-health {
  padding: 2px 0;
}
.si-health-item {
  margin-bottom: 8px;
}
.si-health-bar {
  height: 5px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}
.si-health-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.si-health-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}
.si-health-info span:first-child {
  font-weight: 700;
  color: #1f2937;
}
.si-health-lbl {
  color: #9ca3af;
}
.si-health-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.si-health-mini {
  flex: 1;
  font-size: 0.68rem;
  color: #6b7280;
  background: #fff;
  border-radius: 6px;
  padding: 5px 7px;
  border: 1px solid #f0f0f0;
}
.si-health-mini strong {
  color: #1f2937;
}
.si-vault {
  padding: 2px 0;
}
.si-vault-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.si-vault-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1f2937;
}
.si-vault-lbl {
  font-size: 0.75rem;
  color: #9ca3af;
}
.si-vault-bar-wrap {
  margin-bottom: 8px;
}
.si-vault-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.si-vault-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.si-vault-pct {
  font-size: 0.7rem;
  color: #6b7280;
}
.si-vault-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brand-primary, #7c3aed);
  text-decoration: none;
  font-weight: 600;
}
.si-vault-link:hover {
  text-decoration: underline;
}
.si-progress {
  padding: 2px 0;
}
.si-prog-month {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}
.si-prog-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.si-prog-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #f0f0f0;
  text-align: center;
}
.si-prog-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.si-prog-lbl {
  font-size: 0.6rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.si-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.si-verified {
  font-size: 0.7rem;
  font-weight: 600;
  color: #10b981;
}
.si-unverified {
  font-size: 0.7rem;
  font-weight: 600;
  color: #f59e0b;
}
.si-rank-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.dashboard-sidebar.collapsed .sidebar-insights-widget {
  display: none;
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */

.dashboard-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.dashboard-header-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-header-search {
  position: relative;
  width: 300px;
}

.dashboard-header-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.dashboard-header-search input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dashboard-header-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-header-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-header-btn:hover {
  background: var(--bg-soft);
  color: var(--brand-primary);
}

.dashboard-header-btn.has-notification::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.dashboard-create-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-create-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ============================================
   WELCOME & ONBOARDING STRIP - Purple Gradient
   ============================================ */

.welcome-strip {
  background: var(--brand-gradient);
  border: none;
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-purple-lg);
}

.welcome-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-strip::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.welcome-strip-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-strip-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
}

/* ============================================
   BUYER WELCOME STRIP - Clean White Design
   ============================================ */
.buyer-welcome {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.buyer-welcome-text {
  margin-bottom: 18px;
}
.buyer-welcome-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.buyer-welcome-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 4px 0 0;
}
.buyer-tips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.buyer-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.buyer-tip-card:hover {
  border-color: #e0e7ff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}
.buyer-tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.buyer-tip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.buyer-tip-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}
.buyer-tip-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
@media (max-width: 1199px) {
  .buyer-tips-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .buyer-tips-row { grid-template-columns: 1fr; }
  .buyer-welcome { padding: 18px 16px; }
}

.onboarding-checklist {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.onboarding-item {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 16px;
  padding: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.onboarding-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.onboarding-item.completed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.onboarding-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.onboarding-item.completed .onboarding-item-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.onboarding-item:not(.completed) .onboarding-item-icon {
  background: var(--brand-gradient-soft);
  color: var(--brand-primary);
}

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

.onboarding-item-content {
  flex: 1;
}

.onboarding-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.onboarding-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.onboarding-item-check {
  color: #10b981;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   PREMIUM KPI CARDS - Purple Glass Design
   ============================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.buyer-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
.buyer-kpi-grid .kpi-card {
  padding: 1rem 0.85rem;
  border-radius: 16px;
}
.buyer-kpi-grid .kpi-card-value {
  font-size: 1.5rem;
}
.buyer-kpi-grid .kpi-card-label {
  font-size: 0.72rem;
}
.buyer-kpi-grid .kpi-card-subtext {
  font-size: 0.65rem;
}
.buyer-kpi-grid .kpi-card-icon {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

.kpi-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
  border: 1px solid var(--border-purple-light);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.kpi-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

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

.kpi-card:hover::after {
  opacity: 1;
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.kpi-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

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

.kpi-card-icon.primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.kpi-card-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.kpi-card-icon.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.kpi-card-icon.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.kpi-card-icon.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.kpi-card-icon.secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
}

.kpi-trend.up {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.kpi-trend.down {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.kpi-trend.neutral {
  background: var(--bg-purple-tint);
  color: var(--brand-primary);
}

.kpi-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.kpi-card-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--brand-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.125rem;
}

.kpi-card-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-card.pending-payout {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.95) 100%);
}

.kpi-card.pending-payout::before {
  opacity: 1;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* ============================================
   CLICKABLE KPI CARDS
   ============================================ */

/* KPI card link wrapper */
.kpi-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Clickable KPI card */
.kpi-card.clickable {
  cursor: pointer;
  position: relative;
}

/* Hover effect for clickable KPI cards */
.kpi-card-link:hover .kpi-card.clickable {
  box-shadow: var(--shadow-purple-lg), 0 0 0 2px var(--brand-primary);
  transform: translateY(-8px);
  border-color: var(--brand-primary);
}

.kpi-card-link:hover .kpi-card.clickable::before {
  opacity: 1;
}

/* Focus visible state for accessibility */
.kpi-card-link:focus-visible .kpi-card.clickable {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  box-shadow: var(--shadow-purple-lg);
}

/* Active/pressed state */
.kpi-card-link:active .kpi-card.clickable {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* Arrow indicator for clickable cards */
.kpi-card.clickable::after {
  content: '\F285'; /* Bootstrap Icons chevron-right */
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.875rem;
  color: var(--brand-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.kpi-card-link:hover .kpi-card.clickable::after {
  opacity: 0.6;
  transform: translateX(0);
}

/* ============================================
   QUICK ACTIONS - Purple Accent Cards
   ============================================ */

.quick-actions-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
  border: 1px solid var(--border-purple-light);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quick-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.quick-actions-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-actions-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem;
  background: var(--bg-main);
  border: 1px solid var(--border-purple-light);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-action-btn:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
  color: var(--text-main);
}

.quick-action-btn:hover::before {
  opacity: 1;
}

.quick-action-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
  position: relative;
  z-index: 1;
}

.quick-action-btn:hover .quick-action-btn-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.quick-action-btn-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.quick-action-btn-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.quick-action-btn:hover .quick-action-btn-title {
  color: var(--brand-primary-dark);
}

.quick-action-btn-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   IMPROVED ORDERS TABLE - Purple Accent
   ============================================ */

.orders-table-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
  border: 1px solid var(--border-purple-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.orders-table-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-purple-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

.orders-table-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orders-table-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.orders-table-view-all {
  font-size: 0.875rem;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.orders-table-view-all:hover {
  background: var(--brand-gradient-soft);
  border-color: var(--border-purple);
  color: var(--brand-primary-dark);
}

.orders-table-wrapper {
  overflow-x: auto;
  min-height: 220px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.orders-table thead {
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--bg-purple-tint) 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.orders-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  border-bottom: 2px solid var(--border-purple-light);
  white-space: nowrap;
}

.orders-table tbody tr {
  border-bottom: 1px solid var(--border-purple-light);
  transition: all 0.3s ease;
}

.orders-table tbody tr:hover {
  background: var(--brand-gradient-soft);
}

.orders-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-main);
  vertical-align: middle;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.order-status-badge.funds-held {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
  color: #b45309;
}

.order-status-badge.delivered {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  color: #1d4ed8;
}

.order-status-badge.completed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: #047857;
}

.order-status-badge.disputed {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
  color: #b91c1c;
}

.order-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-purple-tint);
  color: var(--brand-primary);
}

.order-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.order-row-action-btn {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-purple-light);
  background: #ffffff;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.order-row-action-btn:hover {
  border-color: var(--brand-primary);
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-purple);
}

.buyer-name-link {
  color: var(--brand-primary, #7c3aed);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.buyer-name-link:hover {
  color: var(--brand-primary-dark, #6d28d9);
  text-decoration: underline;
}

/* ============================================
   INSIGHTS PANEL - Purple Glass Cards
   ============================================ */

.insights-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.insight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
  border: 1px solid var(--border-purple-light);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.insight-card:hover {
  box-shadow: var(--shadow-purple);
  border-color: var(--border-purple);
}

.insight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.insight-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.insight-card-body {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-chart-placeholder {
  width: 100%;
  height: 180px;
  background: var(--brand-gradient-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 0.875rem;
  border: 1px dashed var(--border-purple);
}

.insight-empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.insight-empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--purple-300);
  opacity: 0.5;
}

.insight-empty-state-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.insight-stats-list {
  padding: 0.5rem 0;
}

.insight-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.insight-stat-row:last-child {
  border-bottom: none;
}

.insight-stat-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.insight-stat-label i {
  color: var(--purple-400);
  font-size: 1rem;
}

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

.top-platforms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-platform-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.top-platform-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.top-platform-rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.top-platform-rank.top-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
}

.top-platform-rank.top-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
}

.top-platform-rank.top-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
  color: #ffffff;
}

.top-platform-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.top-platform-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  :root {
    --sidebar-width-expanded: 240px;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .buyer-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
    width: 280px !important;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .dashboard-sidebar.open {
    left: 0;
  }

  /* Hide fixed toggle on mobile - use mobile floating button instead */
  .sidebar-toggle-fixed {
    display: none !important;
  }

  .dashboard-content {
    margin-left: 0;
  }

  .dashboard-header {
    padding: 1rem;
  }

  .dashboard-header-search {
    display: none;
  }

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

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .insights-panel {
    grid-template-columns: 1fr;
  }

  .orders-table-wrapper {
    overflow-x: auto;
  }
}

/* Desktop: Show fixed toggle button */
@media (min-width: 769px) {
  .sidebar-toggle-fixed {
    display: flex;
  }
  
  /* Ensure main content adjusts when sidebar collapses */
  .dashboard-content {
    transition: margin-left 0.3s ease;
  }
}

/* Mobile Menu Toggle - Premium Floating Button */
.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-purple-lg), 0 0 30px rgba(139, 92, 246, 0.3);
  cursor: pointer;
  z-index: 999;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-purple-lg), 0 0 50px rgba(139, 92, 246, 0.4);
}

.mobile-sidebar-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .mobile-sidebar-toggle {
    display: flex;
  }
}

/* Sidebar Overlay - Purple Tinted */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 7, 100, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ============================================
   SETTINGS & MESSAGES CARDS
   ============================================ */

.settings-card,
.messages-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.settings-card-header,
.messages-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-soft);
}

.settings-card-title,
.messages-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
}

.settings-card-subtitle,
.messages-card-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.settings-card-body,
.messages-card-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

/* ============================================
   EMPTY STATES
   ============================================ */

.orders-empty-state,
.disputes-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.orders-empty-state-icon,
.disputes-empty-state-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.orders-empty-state-text,
.disputes-empty-state-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.messages-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.messages-empty-state-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.messages-empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.messages-empty-state-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   DASHBOARD SEARCH BOX
   ============================================ */

.dashboard-search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.dashboard-search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

.dashboard-search-box .form-control {
  padding-left: 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.dashboard-search-box .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================
   EARNINGS PAGE SPECIFIC STYLES
   ============================================ */

.earnings-section {
  gap: 1rem;
}

.earnings-kpis {
  gap: 1.5rem;
}

.earnings-kpis .kpi-card {
  min-height: 100%;
}

/* Withdraw Card */
.withdraw-card {
  border-radius: 16px;
  border-width: 2px !important;
}


/* ============================================
   REUSABLE EMPTY STATE SYSTEM (GLOBAL)
   ============================================ */

.empty-state-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
}

.empty-state-content {
  max-width: 320px;
  opacity: 0.85;
}

.empty-state-content img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-content .empty-state-icon {
  font-size: 3rem;
  color: var(--text-light);
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

.empty-state-content h5 {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-main);
}

.empty-state-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.empty-state-content .btn {
  margin-top: 0.5rem;
}

/* Orders Table Header Alignment */
.orders-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.orders-table-title {
  margin: 0;
  flex-shrink: 0;
}

.orders-table-view-all {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================
   SUSPENSION BANNER - Compact Red Theme
   ============================================ */

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

.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;
  max-height: 70px;
  overflow: hidden;
}

.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: 4px;
  align-items: center;
  max-height: 32px;
  overflow: hidden;
  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;
}

.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);
}

/* Disabled Button State */
.btn.is-disabled,
a.is-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.3);
}

.btn.is-disabled:hover,
a.is-disabled:hover {
  opacity: 0.5 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 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;
  }
}

/* ============================================
   PROFILE COMPLETION HIGHLIGHT ANIMATION
   ============================================ */

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-purple-rgb, 138, 43, 226), 0.6);
    background-color: rgba(var(--accent-purple-rgb, 138, 43, 226), 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--accent-purple-rgb, 138, 43, 226), 0.2);
    background-color: rgba(var(--accent-purple-rgb, 138, 43, 226), 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-purple-rgb, 138, 43, 226), 0);
    background-color: rgba(var(--accent-purple-rgb, 138, 43, 226), 0.05);
  }
}

.highlight-incomplete {
  animation: highlightPulse 1s ease-in-out 3;
  border-radius: 8px;
  position: relative;
}

.highlight-incomplete::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--accent-purple, #8a2be2);
  border-radius: 12px;
  pointer-events: none;
  animation: highlightPulse 1s ease-in-out 3;
}

/* Profile completion progress bar colors */
.seller-profile-progress-fill.bg-danger {
  background: linear-gradient(90deg, #dc3545 0%, #e85d6a 100%) !important;
}

.seller-profile-progress-fill.bg-warning {
  background: linear-gradient(90deg, #ffc107 0%, #ffda6a 100%) !important;
}

.seller-profile-progress-fill.bg-success {
  background: linear-gradient(90deg, #28a745 0%, #48c774 100%) !important;
}

.orders-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.status-filter-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #faf5ff;
}

.status-filter-btn.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.status-filter-btn.active:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  color: #fff;
}

.status-filter-btn i {
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .status-filter-group {
    gap: 0.35rem;
  }
  .status-filter-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}