/* 
  Carspek - Carbon Fiber Premium Design System v4.0
  A premium automotive marketplace design language
*/

/* ===== DESIGN TOKENS ===== */
:root {
  /* Core Palette */
  --clr-base: #0B0B14;
  --clr-base-alt: #0F0F1A;
  --clr-surface: rgba(18, 18, 30, 0.75);
  --clr-surface-solid: #12121E;
  --clr-surface-raised: rgba(25, 25, 42, 0.8);
  --clr-surface-hover: rgba(30, 30, 50, 0.9);
  --clr-overlay: rgba(0, 0, 0, 0.6);

  /* Accent Colors */
  --clr-primary: #00B4FF;
  --clr-primary-hover: #0095D6;
  --clr-primary-subtle: rgba(0, 180, 255, 0.08);
  --clr-primary-glow: rgba(0, 180, 255, 0.25);

  --clr-secondary: #FFB800;
  --clr-secondary-hover: #E6A600;
  --clr-secondary-subtle: rgba(255, 184, 0, 0.08);
  --clr-secondary-glow: rgba(255, 184, 0, 0.25);

  --clr-accent-gradient: linear-gradient(135deg, #00B4FF 0%, #7C3AED 100%);
  --clr-gold-gradient: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);

  /* Semantic */
  --clr-success: #10B981;
  --clr-success-subtle: rgba(16, 185, 129, 0.1);
  --clr-danger: #F43F5E;
  --clr-danger-subtle: rgba(244, 63, 94, 0.1);
  --clr-warning: #F59E0B;
  --clr-warning-subtle: rgba(245, 158, 11, 0.1);
  --clr-info: #3B82F6;
  --clr-info-subtle: rgba(59, 130, 246, 0.1);

  /* Text */
  --clr-text: #E8E8F0;
  --clr-text-secondary: #7A7A8E;
  --clr-text-tertiary: #4A4A5E;

  /* Borders */
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-hover: rgba(255, 255, 255, 0.12);
  --clr-border-active: rgba(0, 180, 255, 0.3);

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-primary: 0 0 20px rgba(0, 180, 255, 0.15);
  --shadow-glow-secondary: 0 0 20px rgba(255, 184, 0, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;

  /* Layout */
  --navbar-height: 72px;
  --sidebar-width: 270px;
  --container-max: 1280px;
  --hitbox-min: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-base);
  background-image:
    radial-gradient(ellipse at 15% 5%, rgba(0, 180, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--clr-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

::selection {
  background: rgba(0, 180, 255, 0.25);
  color: #fff;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
}
a:hover {
  color: var(--clr-primary-hover);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--clr-text);
  line-height: 1.3;
}
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

.text-muted { color: var(--clr-text-secondary); }
.text-success { color: var(--clr-success); }
.text-danger { color: var(--clr-danger); }
.text-primary { color: var(--clr-primary); }
.text-secondary { color: var(--clr-secondary); }
.text-warning { color: var(--clr-warning); }

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-tertiary);
  margin-bottom: var(--space-md);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-content {
  min-height: calc(100vh - var(--navbar-height) - 64px);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  padding: 0 var(--space-xl);
  background: rgba(11, 11, 20, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-in-out);
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: var(--space-lg);
}

.navbar-brand img {
  height: 38px;
  width: auto;
  transition: transform var(--duration-fast) var(--ease-out), filter var(--duration-fast);
}
.navbar-brand:hover img {
  transform: scale(1.05);
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(0, 180, 255, 0.3));
}

.search-bar {
  flex: 1;
  max-width: 520px;
  margin: 0 var(--space-lg);
}

.search-bar form {
  display: flex;
  width: 100%;
}

.search-bar .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  min-height: 42px;
  background: var(--clr-surface-solid);
  font-size: 14px;
}

.search-bar .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-height: 42px;
  padding: 0 20px;
  white-space: nowrap;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-btn {
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  border-radius: var(--radius-sm) !important;
}

.nav-welcome {
  font-size: 13px;
  color: var(--clr-text-secondary);
  margin: 0 4px;
  white-space: nowrap;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clr-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

/* ===== GLASSMORPHISM ===== */
.glass-panel {
  background: var(--clr-surface);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: var(--hitbox-min);
  padding: 0 var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-in-out);
  text-align: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--clr-accent-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 180, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 180, 255, 0.25);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--clr-gold-gradient);
  color: var(--clr-base);
  font-weight: 700;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-secondary);
  color: var(--clr-base);
}

.btn-danger {
  background: linear-gradient(135deg, var(--clr-danger) 0%, #DC2626 100%);
  color: #fff;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.25);
}

.btn-success {
  background: linear-gradient(135deg, var(--clr-success) 0%, #059669 100%);
  color: #fff;
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--clr-border-hover);
  color: var(--clr-text);
}
.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text-secondary);
  border: none;
  padding: 0 var(--space-md);
}
.btn-ghost:hover {
  color: var(--clr-text);
  background: rgba(255,255,255,0.04);
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--space-md);
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-xs {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  width: var(--hitbox-min);
  padding: 0;
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ===== FORM INPUTS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.form-control {
  width: 100%;
  min-height: var(--hitbox-min);
  background-color: var(--clr-surface-solid);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--clr-text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.form-control:hover {
  border-color: var(--clr-border-hover);
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-subtle);
  background: var(--clr-base-alt);
}
.form-control::placeholder {
  color: var(--clr-text-tertiary);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A7A8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ===== CARDS ===== */
.card {
  background: var(--clr-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--clr-border);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

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

.card-interactive {
  cursor: pointer;
}
.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary);
}

.card-accent-left {
  border-left: 3px solid var(--clr-primary);
}

.card-glow:hover {
  box-shadow: var(--shadow-glow-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--clr-text-tertiary);
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 18px;
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--clr-text-tertiary);
  font-size: 14px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge-primary {
  background: var(--clr-primary-subtle);
  color: var(--clr-primary);
  border: 1px solid rgba(0, 180, 255, 0.15);
}

.badge-success {
  background: var(--clr-success-subtle);
  color: var(--clr-success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-danger {
  background: var(--clr-danger-subtle);
  color: var(--clr-danger);
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.badge-warning {
  background: var(--clr-warning-subtle);
  color: var(--clr-warning);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-info {
  background: var(--clr-info-subtle);
  color: var(--clr-info);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border);
}

.badge-gold {
  background: var(--clr-secondary-subtle);
  color: var(--clr-secondary);
  border: 1px solid rgba(255, 184, 0, 0.15);
}

/* Legacy badge support */
.badge-green { background: var(--clr-success-subtle); color: var(--clr-success); border: 1px solid rgba(16,185,129,0.15); }
.badge-orange { background: var(--clr-warning-subtle); color: var(--clr-warning); border: 1px solid rgba(245,158,11,0.15); }
.badge-blue { background: var(--clr-info-subtle); color: var(--clr-info); border: 1px solid rgba(59,130,246,0.15); }

/* ===== STAT CARDS ===== */
.stat-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.primary::after { background: var(--clr-accent-gradient); }
.stat-card.success::after, .stat-card.green::after { background: linear-gradient(90deg, var(--clr-success), transparent); }
.stat-card.warning::after, .stat-card.orange::after { background: linear-gradient(90deg, var(--clr-warning), transparent); }
.stat-card.info::after, .stat-card.blue::after { background: linear-gradient(90deg, var(--clr-info), transparent); }
.stat-card.danger::after { background: linear-gradient(90deg, var(--clr-danger), transparent); }

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.stat-card-icon svg {
  width: 22px;
  height: 22px;
}

.stat-card-icon.primary { background: var(--clr-primary-subtle); color: var(--clr-primary); }
.stat-card-icon.success { background: var(--clr-success-subtle); color: var(--clr-success); }
.stat-card-icon.warning { background: var(--clr-warning-subtle); color: var(--clr-warning); }
.stat-card-icon.info { background: var(--clr-info-subtle); color: var(--clr-info); }
.stat-card-icon.danger { background: var(--clr-danger-subtle); color: var(--clr-danger); }

.stat-label {
  font-size: 13px;
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--clr-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value.plain {
  background: none;
  -webkit-text-fill-color: var(--clr-text);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--navbar-height));
}

.dashboard-sidebar {
  background: var(--clr-surface-solid);
  border-right: 1px solid var(--clr-border);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.sidebar-profile {
  padding: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--space-md);
}

.sidebar-profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-profile-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sidebar-profile-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--clr-text);
}

.dashboard-main {
  padding: var(--space-xl) 40px;
  overflow-y: auto;
}

/* Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 11px var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--clr-text-secondary);
  transition: all var(--duration-fast) var(--ease-in-out);
  cursor: pointer;
  min-height: 42px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--clr-text);
}
.nav-item:hover svg {
  opacity: 0.9;
}

.nav-item.active {
  background: var(--clr-primary-subtle);
  color: var(--clr-primary);
  font-weight: 600;
}
.nav-item.active svg {
  opacity: 1;
  color: var(--clr-primary);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--clr-primary);
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-tertiary);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  margin-top: var(--space-sm);
}

/* ===== LISTINGS LAYOUT ===== */
.listings-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.listings-sidebar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-xl));
}

.listings-main {
  width: 100%;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal);
}

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

.product-card-image {
  height: 160px;
  background: linear-gradient(135deg, var(--clr-base-alt), var(--clr-surface-solid));
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-card-image svg {
  width: 48px;
  height: 48px;
  color: var(--clr-text-tertiary);
  opacity: 0.4;
}

.product-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-price {
  font-weight: 800;
  font-size: 20px;
  background: var(--clr-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-border);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-surface-solid);
  border: 2px solid var(--clr-border);
  z-index: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item.completed::before {
  background: var(--clr-success);
  border-color: var(--clr-success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-item.active::before {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
  animation: timelinePulse 2s infinite;
}

@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 180, 255, 0); }
}

.timeline-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--clr-text);
}

.timeline-desc {
  font-size: 13px;
  color: var(--clr-text-secondary);
}

/* ===== WIZARD ===== */
.wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-lg);
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}

.wizard-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-surface-solid);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--clr-text-tertiary);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  z-index: 1;
}

.wizard-dot.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.3);
}

.wizard-dot.completed {
  background: var(--clr-success);
  border-color: var(--clr-success);
  color: #fff;
}

.wizard-dot svg {
  width: 18px;
  height: 18px;
}

.wizard-line {
  width: 60px;
  height: 2px;
  background: var(--clr-border);
  transition: background var(--duration-normal) var(--ease-out);
}

.wizard-line.completed {
  background: var(--clr-success);
}

.wizard-step {
  animation: wizardFadeIn 0.35s var(--ease-out);
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step h3 {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.wizard-step h3 svg {
  width: 22px;
  height: 22px;
  color: var(--clr-primary);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
}

/* Category Selector Cards */
.category-select-card {
  cursor: pointer;
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.category-select-card:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-subtle);
}

.category-select-card.selected {
  border-color: var(--clr-primary);
  background: var(--clr-primary-subtle);
  box-shadow: var(--shadow-glow-primary);
}

.category-select-card input[type="radio"] {
  display: none;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  background: var(--clr-primary-subtle);
  color: var(--clr-primary);
  transition: all var(--duration-normal);
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.category-select-card.selected .category-icon {
  background: var(--clr-primary);
  color: #fff;
}

/* Logistic Option Cards */
.logistic-card {
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.logistic-card:hover {
  border-color: var(--clr-border-hover);
  background: var(--clr-surface-hover);
}

.logistic-card.selected {
  border-color: var(--clr-primary);
  background: var(--clr-primary-subtle);
  box-shadow: var(--shadow-glow-primary);
}

.logistic-card.montage-card.selected {
  border-color: var(--clr-secondary);
  background: var(--clr-secondary-subtle);
  box-shadow: var(--shadow-glow-secondary);
}

.logistic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logistic-icon.cargo {
  background: var(--clr-primary-subtle);
  color: var(--clr-primary);
}

.logistic-icon.montage {
  background: var(--clr-secondary-subtle);
  color: var(--clr-secondary);
}

/* ===== ALERTS ===== */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: alertSlide 0.3s var(--ease-out);
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

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

.alert-error {
  background: var(--clr-danger-subtle);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--clr-danger);
}

.alert-info {
  background: var(--clr-info-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--clr-info);
}

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

/* ===== DATA PANEL (Bid/Order details) ===== */
.data-panel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--clr-border);
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--clr-border);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

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

/* ===== PRICE TAG ===== */
.price-tag {
  font-weight: 800;
  font-size: 20px;
  background: var(--clr-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-tag.gold {
  background: var(--clr-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-tag.sm {
  font-size: 16px;
}

.price-tag.lg {
  font-size: 28px;
}

/* ===== INFO BOX ===== */
.info-box {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.info-box.success {
  background: var(--clr-success-subtle);
  border-color: rgba(16, 185, 129, 0.12);
}

.info-box.warning {
  background: var(--clr-warning-subtle);
  border-color: rgba(245, 158, 11, 0.12);
}

.info-box-label {
  font-size: 12px;
  color: var(--clr-text-secondary);
  margin-bottom: 2px;
}

.info-box-value {
  font-weight: 700;
  font-size: 15px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.4s var(--ease-out) forwards;
}

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

.slide-up {
  animation: slideUp 0.5s var(--ease-out) forwards;
}

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

.scale-in {
  animation: scaleIn 0.3s var(--ease-out) forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Stagger delay utilities */
.delay-1 { animation-delay: 0.05s; opacity: 0; }
.delay-2 { animation-delay: 0.1s; opacity: 0; }
.delay-3 { animation-delay: 0.15s; opacity: 0; }
.delay-4 { animation-delay: 0.2s; opacity: 0; }
.delay-5 { animation-delay: 0.25s; opacity: 0; }

/* ===== FOOTER ===== */
.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface-solid);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand img {
  height: 26px;
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}

.footer-brand:hover img {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--clr-text-secondary);
  font-size: 13px;
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: var(--clr-text);
}

/* ===== AUTH PAGES ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--navbar-height) - 64px);
  padding: var(--space-xl) var(--space-lg);
}

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

.auth-card h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.auth-divider {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
}

.auth-divider p {
  color: var(--clr-text-secondary);
  font-size: 14px;
}

.auth-divider a {
  font-weight: 600;
}

/* Tab Switcher */
.tab-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--clr-base);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--clr-border);
}

.tab-switcher .tab {
  flex: 1;
  min-height: 42px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-in-out);
  color: var(--clr-text-secondary);
  background: transparent;
  border: none;
  font-family: inherit;
}

.tab-switcher .tab svg {
  width: 18px;
  height: 18px;
}

.tab-switcher .tab.active {
  background: var(--clr-accent-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 180, 255, 0.2);
}

.tab-switcher .tab:not(.active):hover {
  color: var(--clr-text);
  background: rgba(255,255,255,0.03);
}

/* ===== DASHBOARD CARDS (Customer) ===== */
.dashboard-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: var(--space-xl);
  cursor: pointer;
  text-decoration: none;
  color: var(--clr-text);
  position: relative;
  overflow: hidden;
}

.dashboard-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: transparent;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background var(--duration-normal) var(--ease-out);
}

.dashboard-action-card:hover::before {
  background: var(--clr-accent-gradient);
}

.dashboard-action-card:hover {
  color: var(--clr-text);
}

.dashboard-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-normal) var(--ease-out);
}

.dashboard-card-icon svg {
  width: 28px;
  height: 28px;
}

.dashboard-action-card:hover .dashboard-card-icon {
  transform: scale(1.1);
}

.dashboard-card-icon.primary { background: var(--clr-primary-subtle); color: var(--clr-primary); }
.dashboard-card-icon.success { background: var(--clr-success-subtle); color: var(--clr-success); }
.dashboard-card-icon.warning { background: var(--clr-warning-subtle); color: var(--clr-warning); }
.dashboard-card-icon.info { background: var(--clr-info-subtle); color: var(--clr-info); }
.dashboard-card-icon.gold { background: var(--clr-secondary-subtle); color: var(--clr-secondary); }

/* ===== BID FORM ===== */
.bid-form-container {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  margin-top: var(--space-md);
}

.bid-form-row {
  display: flex;
  gap: var(--space-md);
  align-items: flex-end;
  flex-wrap: wrap;
}

.bid-form-row .form-group {
  flex: 1;
  min-width: 140px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: var(--space-md);
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
    gap: var(--space-xs);
  }
  .dashboard-sidebar .sidebar-profile {
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-sm);
  }
  .dashboard-sidebar .nav-item {
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
    min-height: 38px;
  }
  .dashboard-sidebar .nav-item.active::before {
    display: none;
  }
  .dashboard-main {
    padding: var(--space-lg) var(--space-md);
  }
  .listings-layout {
    grid-template-columns: 1fr;
  }
  .listings-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  body {
    font-size: 14px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  .navbar {
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }
  .search-bar {
    display: none;
  }
  .nav-welcome {
    display: none;
  }
  .nav-btn {
    font-size: 12px !important;
    padding: 0 10px !important;
    min-height: 34px !important;
  }
  .container {
    padding: 0 var(--space-md);
  }
  .wizard-progress {
    padding: 0;
  }
  .wizard-line {
    width: 30px;
  }
  .wizard-dot {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .stat-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .bid-form-row {
    flex-direction: column;
  }
  .bid-form-row .btn {
    width: 100%;
  }
}

/* ===== UTILITY CLASSES ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.w-full { width: 100%; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
