/* ═══════════════════════════════════════════════════════════════════════════
   SHOPEE ANALYTICS DASHBOARD — DESIGN SYSTEM
   Dark Premium Theme | Glassmorphism | Inter Font
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ────────────────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-base:      #0a0a14;
  --bg-surface:   #0f0f1e;
  --bg-elevated:  #141428;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-card-hover:rgba(255,255,255,0.07);

  /* Brand colors */
  --color-primary:   #7C6FFF;
  --color-primary-dim: rgba(124,111,255,0.15);
  --color-secondary: #00D4FF;
  --color-secondary-dim: rgba(0,212,255,0.12);
  --color-success:   #00D4AA;
  --color-warning:   #FFB347;
  --color-danger:    #FF6B6B;
  --color-info:      #4ECDC4;

  /* Text */
  --text-primary:   #F0F0FF;
  --text-secondary: #A0A0C0;
  --text-muted:     #606080;
  --text-disabled:  #404060;

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.06);
  --border-medium:  rgba(255,255,255,0.1);
  --border-strong:  rgba(255,255,255,0.18);
  --border-primary: rgba(124,111,255,0.4);

  /* Sidebar */
  --sidebar-width: 240px;
  --sidebar-bg: #08081a;
  --topbar-height: 60px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 20px rgba(124,111,255,0.2);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.5);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
#app {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .sidebar-shop-selector,
.sidebar.collapsed .sidebar-footer { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; }
.sidebar.collapsed .nav-item i { margin: 0; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(124,111,255,0.4);
}

.brand-name { font-size: 14px; font-weight: 700; color: var(--text-primary); display: block; }
.brand-sub  { font-size: 11px; color: var(--text-muted); display: block; }

/* Shop selector */
.sidebar-shop-selector {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.shop-selector-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 6px;
}
.shop-selector-current {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: var(--transition);
  color: var(--text-primary);
}
.shop-selector-current:hover { background: var(--bg-card-hover); border-color: var(--border-primary); }

/* Nav */
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-section-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-disabled); padding: 12px 8px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: var(--transition); cursor: pointer;
  margin-bottom: 2px;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.nav-item.active {
  background: var(--color-primary-dim);
  color: var(--color-primary);
  border: 1px solid var(--border-primary);
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}
.sidebar-version { font-size: 11px; color: var(--text-disabled); }

/* ─── Main Wrapper ──────────────────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}
.sidebar.collapsed ~ .main-wrapper { margin-left: 64px; }

/* ─── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: rgba(10,10,20,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.sidebar-toggle {
  background: none; border: none; color: var(--text-secondary);
  font-size: 16px; cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-card); color: var(--text-primary); }

.breadcrumb { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.topbar-right { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }
.filter-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 5px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-family: inherit; cursor: pointer;
  transition: var(--transition);
}
.filter-group select:focus { outline: none; border-color: var(--color-primary); }


.month-tag:hover { border-color: var(--color-primary); }

/* ─── Page Content ──────────────────────────────────────────────────────── */
.page-content {
  flex: 1; padding: 24px;
  background: var(--bg-base);
}

/* ─── Page Header ───────────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}
.page-title {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.page-title i { color: var(--color-primary); }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  min-width: 0;
}
.card:hover { border-color: var(--border-medium); background: var(--bg-card-hover); }
.card-title {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.card-title i { color: var(--color-primary); }

/* ─── KPI Cards ─────────────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--kpi-color, var(--color-primary)), transparent);
}
.kpi-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.kpi-icon {
  width: 40px; height: 40px;
  background: rgba(var(--kpi-rgb, 124,111,255),0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
  color: var(--kpi-color, var(--color-primary));
}

.kpi-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value {
  font-size: 24px; font-weight: 800; color: var(--text-primary);
  margin: 4px 0; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.kpi-sub { font-size: 11px; color: var(--text-secondary); }
.kpi-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 20px; margin-top: 6px;
}
.kpi-badge.positive { background: rgba(0,212,170,0.15); color: var(--color-success); }
.kpi-badge.negative { background: rgba(255,107,107,0.15); color: var(--color-danger); }
.kpi-badge.neutral  { background: rgba(160,160,192,0.15); color: var(--text-secondary); }

/* ─── Grid Layouts ──────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
}

/* ─── Chart Containers ──────────────────────────────────────────────────── */
.chart-container {
  position: relative;
  width: 100%;
}
.chart-container canvas { max-width: 100%; }

/* ─── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
thead th {
  padding: 10px 14px;
  text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-card-hover); }
.td-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.td-muted { color: var(--text-secondary); }

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-success { background: rgba(0,212,170,0.15); color: var(--color-success); }
.badge-danger  { background: rgba(255,107,107,0.15); color: var(--color-danger); }
.badge-warning { background: rgba(255,179,71,0.15);  color: var(--color-warning); }
.badge-info    { background: rgba(78,205,196,0.15);  color: var(--color-info); }
.badge-primary { background: var(--color-primary-dim); color: var(--color-primary); }

/* ─── Progress Bar ──────────────────────────────────────────────────────── */
.progress-bar-wrap { height: 6px; background: var(--border-subtle); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover { background: #6A5EE8; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,111,255,0.4); }
.btn-ghost {
  background: var(--bg-card); border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-strong); }
.btn-danger {
  background: rgba(255,107,107,0.15); border: 1px solid rgba(255,107,107,0.3);
  color: var(--color-danger);
}
.btn-danger:hover { background: rgba(255,107,107,0.25); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px; }

/* ─── Form Controls ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; padding: 9px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 13px; font-family: inherit; transition: var(--transition);
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.color-swatch.selected { border-color: white; transform: scale(1.15); }

/* ─── Upload Zone ───────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px; text-align: center;
  cursor: pointer; transition: var(--transition);
  background: var(--bg-card);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-dim);
}
.upload-zone i { font-size: 32px; color: var(--color-primary); margin-bottom: 12px; }
.upload-zone-title { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.upload-zone-sub { font-size: 12px; color: var(--text-muted); }

/* ─── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-60%);
  background: var(--bg-elevated); border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl); padding: 0; width: 90%; max-width: 520px;
  z-index: 201; opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-overlay.open, .modal.open {
  opacity: 1; pointer-events: all;
}
.modal.open { transform: translate(-50%,-50%); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-subtle);
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 4px; border-radius: 6px; transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-card); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-subtle); display: flex; gap: 8px; justify-content: flex-end; }

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px; z-index: 300;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card); font-size: 13px; font-weight: 500;
  animation: slideInRight 0.3s cubic-bezier(0.4,0,0.2,1);
  min-width: 260px; max-width: 360px;
}
.toast.success { border-left: 3px solid var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-danger); }
.toast.info    { border-left: 3px solid var(--color-primary); }

/* ─── Shop Cards ────────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer;
  transition: var(--transition); position: relative; overflow: hidden;
}
.shop-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--shop-color, var(--color-primary));
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}
.shop-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.shop-avatar {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white;
  background: var(--shop-color, var(--color-primary));
  flex-shrink: 0;
}
.shop-card-actions { display: flex; gap: 4px; }
.shop-card-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.shop-card-desc { font-size: 12px; color: var(--text-muted); }
.shop-card-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.shop-stat-item { display: flex; flex-direction: column; }
.shop-stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.shop-stat-label { font-size: 11px; color: var(--text-muted); }

.add-shop-card {
  background: var(--bg-card); border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; transition: var(--transition); min-height: 160px;
}
.add-shop-card:hover { border-color: var(--color-primary); background: var(--color-primary-dim); }
.add-shop-card i { font-size: 28px; color: var(--color-primary); }
.add-shop-card span { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* ─── File List ─────────────────────────────────────────────────────────── */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.file-item:hover { border-color: var(--border-medium); }
.file-item-info { display: flex; align-items: center; gap: 10px; }
.file-month-badge {
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: var(--color-primary-dim); color: var(--color-primary);
  border: 1px solid var(--border-primary);
}

/* ─── Loading Skeleton ──────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; }
.skeleton-title { height: 24px; width: 60%; }

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}
.empty-state i { font-size: 48px; color: var(--text-disabled); margin-bottom: 16px; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; color: var(--text-muted); }

/* ─── Stat Row ──────────────────────────────────────────────────────────── */
.stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border-subtle);
}
.stat-row:last-child { border-bottom: none; }
.stat-row-label { font-size: 13px; color: var(--text-secondary); }
.stat-row-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ─── Rank Badge ────────────────────────────────────────────────────────── */
.rank-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.rank-1 { background: rgba(255,215,0,0.2); color: #FFD700; }
.rank-2 { background: rgba(192,192,192,0.2); color: #C0C0C0; }
.rank-3 { background: rgba(205,127,50,0.2); color: #CD7F32; }
.rank-other { background: var(--bg-card); color: var(--text-muted); }

/* ─── Color dots ────────────────────────────────────────────────────────── */
.color-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ─── Divider ───────────────────────────────────────────────────────────── */
.section-divider { margin: 24px 0; border: none; border-top: 1px solid var(--border-subtle); }

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeInUp 0.4s ease both; }
.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.1s; }
.fade-in-3 { animation-delay: 0.15s; }
.fade-in-4 { animation-delay: 0.2s; }
.loading-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-disabled); }

/* ─── Utility ───────────────────────────────────────────────────────────── */
.text-primary   { color: var(--color-primary) !important; }
.text-success   { color: var(--color-success) !important; }
.text-danger    { color: var(--color-danger) !important; }
.text-warning   { color: var(--color-warning) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-right     { text-align: right; }
.text-center    { text-align: center; }
.font-mono      { font-variant-numeric: tabular-nums; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Shop Color Picker ─────────────────────────────────────────────────── */
.shop-color-selected { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
