@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* =============================================
   UZMAT — DESIGN SYSTEM v1.0
   Premium Heavy Equipment Marketplace
   ============================================= */

:root {
  /* === BRAND COLORS === */
  --primary: #2563eb;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;

  --secondary: #111111;
  --secondary-50: #F8F8F8;
  --secondary-100: #EBEBEB;
  --secondary-200: #D4D4D4;
  --secondary-300: #ABABAB;
  --secondary-400: #7A7A7A;
  --secondary-500: #555555;
  --secondary-600: #3D3D3D;
  --secondary-700: #2A2A2A;
  --secondary-800: #1A1A1A;
  --secondary-900: #111111;

  --success: #22C55E;
  --success-50: #F0FDF4;
  --success-100: #DCFCE7;
  --success-600: #16A34A;

  --warning: #F59E0B;
  --warning-50: #FFFBEB;
  --warning-100: #FEF3C7;
  --warning-600: #D97706;

  --danger: #EF4444;
  --danger-50: #FFF5F5;
  --danger-100: #FEE2E2;
  --danger-600: #DC2626;

  --info: #3B82F6;
  --info-50: #EFF6FF;
  --info-100: #DBEAFE;
  --info-600: #2563EB;

  --purple: #8B5CF6;
  --purple-50: #F5F3FF;
  --purple-100: #EDE9FE;

  /* === SURFACES === */
  --surface-0: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #F8F9FA;
  --surface-3: #E9ECEF;
  --surface-4: #DEE2E6;

  /* === TEXT === */
  --text-primary: #111111;
  --text-secondary: #495057;
  --text-muted: #868E96;
  --text-placeholder: #ADB5BD;
  --text-inverse: #FFFFFF;

  /* === BORDERS === */
  --border: #DEE2E6;
  --border-light: #F1F3F5;
  --border-focus: #2563eb;

  /* === SPACING === */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* === BORDER RADIUS === */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-modal: 0 25px 50px rgba(0,0,0,0.25);
  --shadow-primary: 0 4px 20px rgba(255,214,0,0.35);
  --shadow-sidebar: 4px 0 24px rgba(0,0,0,0.12);

  /* === TYPOGRAPHY === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;

  --text-xs: 11px;  --text-sm: 13px;  --text-base: 15px; --text-md: 16px;
  --text-lg: 18px;  --text-xl: 20px;  --text-2xl: 24px;  --text-3xl: 30px;
  --text-4xl: 36px; --text-5xl: 48px; --text-6xl: 60px;

  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* === TRANSITIONS === */
  --t-fast: 150ms ease;
  --t-normal: 200ms ease;
  --t-slow: 300ms ease;

  /* === Z-INDEX === */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;
  --z-toast: 1090;

  /* === LAYOUT === */
  --sidebar-width: 240px;
  --container-max: 1280px;
  --container-pad: 24px;
  --navbar-height: 64px;
}

/* === DARK MODE === */
[data-theme="dark"] {
  --surface-0: #111111;
  --surface-1: #1A1A1A;
  --surface-2: #222222;
  --surface-3: #2A2A2A;
  --surface-4: #333333;
  --text-primary: #F8F9FA;
  --text-secondary: #ADB5BD;
  --text-muted: #6C757D;
  --border: #333333;
  --border-light: #2A2A2A;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.4);
}

/* ============================================= RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); font-size: var(--text-base); color: var(--text-primary); background: var(--surface-0); line-height: var(--leading-normal); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

/* ============================================= LAYOUT */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }
.section-lg { padding: var(--sp-24) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); } .gap-8 { gap: var(--sp-8); }

/* ============================================= TYPOGRAPHY */
.font-display { font-family: var(--font-display); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.font-400 { font-weight: 400; } .font-500 { font-weight: 500; }
.font-600 { font-weight: 600; } .font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-brand { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.leading-tight { line-height: var(--leading-tight); }

/* ============================================= BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; border-radius: var(--radius-lg);
  cursor: pointer; border: 2px solid transparent; transition: all var(--t-normal);
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn-xs  { font-size: var(--text-xs);  padding: 6px 12px;  border-radius: var(--radius-md); }
.btn-sm  { font-size: var(--text-sm);  padding: 8px 16px;  border-radius: var(--radius-md); }
.btn-md  { font-size: var(--text-sm);  padding: 10px 20px; border-radius: var(--radius-lg); }
.btn-lg  { font-size: var(--text-base); padding: 13px 28px; border-radius: var(--radius-lg); }
.btn-xl  { font-size: var(--text-md);  padding: 16px 36px; border-radius: var(--radius-xl); }

.btn-primary   { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-dark      { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-dark:hover { background: var(--secondary-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-outline   { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.btn-outline-primary { background: transparent; color: var(--primary-700); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--secondary); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: var(--success-600); }

.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover  { background: var(--danger-600); }

.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5a; }

.btn-telegram { background: #229ED9; color: #fff; border-color: #229ED9; }
.btn-telegram:hover { background: #1a8ec2; }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================= BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 600; border-radius: var(--radius-full);
  padding: 3px 10px; line-height: 1;
}
.badge-primary { background: var(--primary); color: var(--secondary); }
.badge-dark    { background: var(--secondary); color: #fff; }
.badge-success { background: var(--success-100); color: var(--success-600); }
.badge-warning { background: var(--warning-100); color: var(--warning-600); }
.badge-danger  { background: var(--danger-100);  color: var(--danger-600); }
.badge-info    { background: var(--info-100);    color: var(--info-600); }
.badge-purple  { background: var(--purple-100);  color: var(--purple); }
.badge-surface { background: var(--surface-2);   color: var(--text-secondary); }
.badge-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.badge-sm  { font-size: 10px; padding: 2px 7px; }
.badge-lg  { font-size: var(--text-sm); padding: 5px 14px; }
.badge-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 4px; }

/* ============================================= CARDS */
.card {
  background: var(--surface-0); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  overflow: hidden; transition: all var(--t-normal);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card-body { padding: var(--sp-6); }
.card-header { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border-light); }
.card-footer { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border-light); background: var(--surface-1); }
.card-flat { box-shadow: none; border: 1px solid var(--border); }
.card-flat:hover { box-shadow: var(--shadow-sm); transform: none; }

/* ============================================= INPUTS */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.form-hint  { font-size: var(--text-xs); color: var(--text-muted); }
.form-error { font-size: var(--text-xs); color: var(--danger); }

.input, .select, .textarea {
  width: 100%; background: var(--surface-0); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); color: var(--text-primary);
  font-family: var(--font-sans); font-size: var(--text-sm); transition: border-color var(--t-fast);
}
.input { padding: 10px 14px; height: 42px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,214,0,0.15); }
.input::placeholder { color: var(--text-placeholder); }
.input-error { border-color: var(--danger); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.input-sm { height: 36px; padding: 8px 12px; border-radius: var(--radius-md); font-size: var(--text-xs); }
.input-lg { height: 50px; padding: 12px 16px; font-size: var(--text-base); }
.select { padding: 10px 36px 10px 14px; height: 42px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23868E96' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.textarea { padding: 12px 14px; resize: vertical; min-height: 100px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 42px; }
.input-group .input-icon { position: absolute; left: 14px; color: var(--text-muted); font-size: 15px; pointer-events: none; }
.input-group .input-suffix { position: absolute; right: 14px; color: var(--text-muted); font-size: 13px; }

/* ============================================= TABLE */
.table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--border-light); box-shadow: var(--shadow-card); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { background: var(--surface-1); color: var(--text-secondary); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-primary); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-1); }
.table-striped tr:nth-child(even) td { background: var(--surface-1); }

/* ============================================= AVATAR */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }
.avatar-2xl { width: 80px; height: 80px; font-size: 30px; }
.avatar-primary { background: var(--primary); color: var(--secondary); }
.avatar-dark    { background: var(--secondary); color: #fff; }
.avatar-success { background: var(--success-100); color: var(--success-600); }
.avatar-info    { background: var(--info-100); color: var(--info-600); }

/* ============================================= PROGRESS */
.progress { background: var(--surface-3); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; border-radius: var(--radius-full); transition: width var(--t-slow); }
.progress-xs  { height: 4px; }
.progress-sm  { height: 6px; }
.progress-md  { height: 8px; }
.progress-lg  { height: 12px; }
.progress-primary { background: var(--primary); }
.progress-success { background: var(--success); }
.progress-warning { background: var(--warning); }
.progress-danger  { background: var(--danger); }
.progress-info    { background: var(--info); }

/* ============================================= ALERT */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius-lg); font-size: var(--text-sm); border: 1px solid transparent; }
.alert-icon { flex-shrink: 0; width: 20px; text-align: center; }
.alert-success { background: var(--success-50); border-color: var(--success-100); color: var(--success-600); }
.alert-warning { background: var(--warning-50); border-color: var(--warning-100); color: var(--warning-600); }
.alert-danger  { background: var(--danger-50);  border-color: var(--danger-100);  color: var(--danger-600); }
.alert-info    { background: var(--info-50);    border-color: var(--info-100);    color: var(--info-600); }

/* ============================================= TABS */
.tabs { display: flex; border-bottom: 2px solid var(--border-light); gap: 0; }
.tab { padding: 12px 20px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all var(--t-fast); white-space: nowrap; }
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--primary-700); border-bottom-color: var(--primary); }

/* ============================================= PAGINATION */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-item { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all var(--t-fast); border: 1.5px solid transparent; color: var(--text-secondary); }
.page-item:hover { background: var(--surface-2); color: var(--text-primary); }
.page-item.active { background: var(--primary); color: var(--secondary); font-weight: 700; border-color: var(--primary); }
.page-item.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================= NAVBAR */
.navbar { height: var(--navbar-height); background: var(--surface-0); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; position: sticky; top: 0; z-index: var(--z-sticky); box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; align-items: center; gap: var(--sp-6); width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--secondary); white-space: nowrap; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); transition: all var(--t-fast); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--surface-2); }
.nav-link.active { font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* ============================================= SIDEBAR */
.sidebar { width: var(--sidebar-width); background: var(--secondary); height: 100vh; position: fixed; left: 0; top: 0; overflow-y: auto; z-index: var(--z-sticky); display: flex; flex-direction: column; box-shadow: var(--shadow-sidebar); }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.sidebar-logo { padding: 20px var(--sp-6); border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.sidebar-user-name { color: #fff; font-weight: 600; font-size: var(--text-sm); }
.sidebar-user-role { color: rgba(255,255,255,0.45); font-size: var(--text-xs); margin-top: 1px; }
.sidebar-nav { flex: 1; padding: var(--sp-4) var(--sp-3); }
.sidebar-section { margin-bottom: var(--sp-5); }
.sidebar-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); text-transform: uppercase; padding: 0 var(--sp-3); margin-bottom: var(--sp-2); }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 9px var(--sp-3); border-radius: var(--radius-md); color: rgba(255,255,255,0.6); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all var(--t-fast); position: relative; }
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.sidebar-link.active { background: var(--primary); color: var(--secondary); font-weight: 600; }
.sidebar-link .sidebar-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: var(--radius-full); }
.sidebar-link.active .sidebar-badge { background: rgba(0,0,0,0.2); color: var(--secondary); }
.sidebar-footer { padding: var(--sp-4) var(--sp-3); border-top: 1px solid rgba(255,255,255,0.08); }

/* ============================================= STATS CARD */
.stat-card { background: var(--surface-0); border-radius: var(--radius-xl); padding: var(--sp-6); box-shadow: var(--shadow-card); border: 1px solid var(--border-light); }
.stat-card-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: var(--sp-4); }
.stat-card-value { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-card-label { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.stat-card-trend { display: flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; margin-top: var(--sp-3); }
.stat-card-trend.up   { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

/* ============================================= SKELETON */
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 1000px 100%; animation: shimmer 2s infinite; border-radius: var(--radius-md); }

/* ============================================= ANIMATIONS */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown{ from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink    { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.animate-fadeIn  { animation: fadeIn  0.3s ease forwards; }
.animate-slideUp { animation: slideUp 0.4s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.3s ease forwards; }
.animate-pulse   { animation: pulse  2s ease infinite; }
.animate-spin    { animation: spin   1s linear infinite; }

/* ============================================= UTILITIES */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky  { position: sticky; }
.top-0 { top: 0; }
.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border-light); }
.bg-surface-1 { background: var(--surface-1); }
.bg-surface-2 { background: var(--surface-2); }
.bg-primary { background: var(--primary); }
.bg-dark { background: var(--secondary); }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); } .mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }
.p-4 { padding: var(--sp-4); } .p-6 { padding: var(--sp-6); }
.px-4 { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.shrink-0 { flex-shrink: 0; }
.opacity-50 { opacity: 0.5; }

/* ============================================= DIVIDER */
.divider { border: none; border-top: 1px solid var(--border-light); margin: var(--sp-6) 0; }
.divider-sm { margin: var(--sp-4) 0; }

/* ============================================= TOOLTIP */
.tooltip-wrap { position: relative; }
.tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; font-size: var(--text-xs); padding: 5px 10px; border-radius: var(--radius-md); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--t-fast); z-index: var(--z-tooltip); }
.tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--secondary); }
.tooltip-wrap:hover .tooltip { opacity: 1; }

/* ============================================= MODAL */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: var(--z-modal-backdrop); display: flex; align-items: center; justify-content: center; padding: var(--sp-6); backdrop-filter: blur(2px); }
.modal { background: var(--surface-0); border-radius: var(--radius-2xl); box-shadow: var(--shadow-modal); max-width: 560px; width: 100%; animation: scaleIn 0.25s ease; }
.modal-header { padding: var(--sp-6); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
.modal-body { padding: var(--sp-6); }
.modal-footer { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: var(--sp-3); }

/* ============================================= STAR RATING */
.stars { display: flex; gap: 2px; color: var(--warning); font-size: 13px; }
.star-empty { color: var(--surface-3); }

/* ============================================= SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-8); }
.section-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; color: var(--text-primary); }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-muted); margin-top: var(--sp-2); font-size: var(--text-md); }
.section-link { color: var(--primary-700); font-weight: 600; font-size: var(--text-sm); display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--primary-800); }

/* ============================================= BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); padding: var(--sp-4) 0; }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-item:last-child { color: var(--text-primary); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--primary-700); }

/* ============================================= CHIP / TAG */
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--text-secondary); border-radius: var(--radius-full); padding: 5px 14px; font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all var(--t-fast); border: 1.5px solid transparent; }
.chip:hover { background: var(--surface-3); color: var(--text-primary); }
.chip.active { background: var(--primary); color: var(--secondary); font-weight: 600; }
.chip-sm { padding: 3px 10px; font-size: var(--text-xs); }

/* ============================================= EQUIPMENT CARD */
.eq-card { background: var(--surface-0); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); border: 1px solid var(--border-light); overflow: hidden; transition: all var(--t-slow); cursor: pointer; }
.eq-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.eq-card:hover .eq-card-img-overlay { opacity: 1; }
.eq-card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.eq-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.eq-card:hover .eq-card-img { transform: scale(1.04); }
.eq-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); color: #bbb; font-size: 48px; }
.eq-card-img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); opacity: 0; transition: opacity var(--t-normal); }
.eq-card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.eq-card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; background: rgba(255,255,255,0.9); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; transition: all var(--t-fast); backdrop-filter: blur(4px); }
.eq-card-fav:hover { background: #fff; color: var(--danger); transform: scale(1.1); }
.eq-card-photo-count { position: absolute; bottom: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,0.6); color: #fff; font-size: var(--text-xs); padding: 3px 8px; border-radius: var(--radius-full); backdrop-filter: blur(4px); }
.eq-card-body { padding: var(--sp-4) var(--sp-5); }
.eq-card-title { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); line-height: var(--leading-snug); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eq-card-price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--primary-700); margin-bottom: 2px; }
.eq-card-price-usd { font-size: var(--text-sm); color: var(--text-muted); font-weight: 400; }
.eq-card-meta { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-3); font-size: var(--text-xs); color: var(--text-muted); }
.eq-card-meta i { font-size: 11px; }
.eq-card-seller { display: flex; align-items: center; gap: 6px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border-light); }
.eq-card-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }

/* ============================================= FILTER PANEL */
.filter-panel { background: var(--surface-0); border-radius: var(--radius-xl); border: 1px solid var(--border-light); box-shadow: var(--shadow-card); overflow: hidden; }
.filter-header { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.filter-section { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border-light); }
.filter-section:last-child { border-bottom: none; }
.filter-section-title { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; font-size: var(--text-sm); color: var(--text-secondary); }
.filter-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.filter-checkbox:hover { color: var(--text-primary); }
.filter-count { margin-left: auto; color: var(--text-muted); font-size: var(--text-xs); }

/* ============================================= KANBAN */
.kanban { display: flex; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-4); }
.kanban::-webkit-scrollbar { height: 6px; }
.kanban::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 3px; }
.kanban::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.kanban-col { flex-shrink: 0; width: 280px; background: var(--surface-1); border-radius: var(--radius-xl); overflow: hidden; }
.kanban-col-header { padding: var(--sp-4) var(--sp-5); display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: var(--text-sm); border-bottom: 2px solid var(--border-light); }
.kanban-col-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); min-height: 200px; }
.kanban-card { background: var(--surface-0); border-radius: var(--radius-lg); padding: var(--sp-4); box-shadow: var(--shadow-xs); border: 1px solid var(--border-light); cursor: grab; transition: all var(--t-fast); }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ============================================= CHART BARS (CSS) */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bar-chart-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: height var(--t-slow); position: relative; min-width: 20px; }
.bar:hover { opacity: 0.85; }
.bar-label { font-size: 10px; color: var(--text-muted); text-align: center; white-space: nowrap; }
.bar-primary { background: var(--primary); }
.bar-dark    { background: var(--secondary); }
.bar-success { background: var(--success); }
.bar-muted   { background: var(--surface-3); }

/* ============================================= DONUT CHART */
.donut { position: relative; display: flex; align-items: center; justify-content: center; }
.donut-label { position: absolute; text-align: center; }
.donut-value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--text-primary); }
.donut-subtitle { font-size: var(--text-xs); color: var(--text-muted); }

/* ============================================= LIVE DOT */
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: blink 1.5s ease infinite; display: inline-block; }

/* ============================================= MAP PLACEHOLDER */
.map-placeholder { background: #e8f0e8; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px); background-size: 40px 40px; }
.map-road-h { position: absolute; background: rgba(255,255,255,0.7); height: 8px; left: 0; right: 0; }
.map-road-v { position: absolute; background: rgba(255,255,255,0.7); width: 8px; top: 0; bottom: 0; }
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.map-pin-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.map-pin-icon i { transform: rotate(45deg); font-size: 14px; color: var(--secondary); }
.map-pin.active .map-pin-icon { background: var(--secondary); }
.map-pin.active .map-pin-icon i { color: var(--primary); }

/* ============================================= RESPONSIVE */
@media (max-width: 1280px) { :root { --container-pad: 20px; } }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .sidebar { transform: translateX(-100%); transition: transform var(--t-normal); }
  .sidebar.open { transform: translateX(0); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .nav-links { display: none; }
  :root { --container-pad: 16px; --navbar-height: 56px; }
  .section { padding: var(--sp-12) 0; }
  .section-title { font-size: var(--text-2xl); }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  :root { --container-pad: 16px; }
}
