/* ============ Tokens ============ */
:root {
  --bg: #0A0E1A;
  --bg-2: #0E1424;
  --card: #141B2E;
  --card-2: #1A2238;
  --border: #232B42;
  --border-2: #2C354F;
  --text: #E4E6EB;
  --text-dim: #9BA3B4;
  --text-muted: #6B7387;
  --accent: #7C3AED;
  --accent-2: #A78BFA;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 0 1px rgba(124,58,237,0.12), 0 8px 32px rgba(124,58,237,0.08);
  --nav-h: 60px;
  --sb-w: 232px;
  --sb-w-collapsed: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "cv02","cv03","cv04","cv11","ss01";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* background ambient gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(124,58,237,0.10), transparent 60%),
    radial-gradient(600px 400px at -10% 30%, rgba(167,139,250,0.05), transparent 60%);
  z-index: 0;
}

/* ============ Layout ============ */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sb-w) 1fr;
  grid-template-rows: var(--nav-h) 1fr;
  grid-template-areas:
    "nav nav"
    "side main";
  transition: grid-template-columns 220ms ease;
}
.app.collapsed { grid-template-columns: var(--sb-w-collapsed) 1fr; }

.nav  { grid-area: nav; }
.side { grid-area: side; }
.main { grid-area: main; padding: 28px 32px 40px; max-width: 1600px; width: 100%; }

/* ============ Top nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px;
  background: rgba(10,14,26,0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  width: calc(var(--sb-w) - 24px);
  transition: width 220ms ease;
}
.app.collapsed .nav-logo { width: calc(var(--sb-w-collapsed) - 24px); }
.app.collapsed .nav-logo .logo-word { display: none; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-collapse-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; color: var(--text-dim);
  transition: all 150ms;
}
.nav-collapse-btn:hover { background: var(--card); color: var(--text); }

.nav-items { display: flex; gap: 2px; margin-left: 8px; }
.nav-item {
  padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: var(--text-dim); transition: all 150ms;
}
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active { color: var(--text); background: var(--card); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav-search {
  position: relative;
  width: 280px;
}
.nav-search input {
  width: 100%; height: 36px;
  padding: 0 36px 0 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all 150ms;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.nav-search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.nav-search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10.5px; font-family: inherit; font-weight: 500;
  padding: 2px 6px; border-radius: 4px;
  background: var(--bg-2); color: var(--text-muted);
  border: 1px solid var(--border);
}

.icon-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all 150ms;
}
.icon-btn:hover { background: var(--card); color: var(--text); }
.badge-dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 999px;
  background: var(--error);
  color: white; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  line-height: 1;
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 150ms;
}
.user-chip:hover { border-color: var(--border-2); background: var(--card-2); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  color: white; font-weight: 600; font-size: 11.5px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar.md { width: 32px; height: 32px; font-size: 12px; }
.user-chip .name { font-size: 13px; font-weight: 500; }
.user-chip .role { color: var(--text-muted); font-size: 11px; margin-top: -1px; }
.user-chip .name-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip .caret { color: var(--text-muted); margin-left: 2px; }

/* dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 100;
  animation: dropIn 160ms ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: translateY(0);} }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim);
  width: 100%; text-align: left;
  transition: all 120ms;
}
.dropdown-item:hover { background: var(--card-2); color: var(--text); }
.dropdown-item.check { color: var(--text); }
.dropdown-item .check-ico { margin-left: auto; color: var(--accent-2); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 2px; }
.dropdown-label {
  padding: 8px 10px 4px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600;
}

/* ============ Sidebar ============ */
.side {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  background: rgba(10,14,26,0.4);
}
.side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-dim);
  transition: all 150ms;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.side-item:hover { background: var(--card); color: var(--text); }
.side-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(124,58,237,0.18), rgba(124,58,237,0.04));
  box-shadow: inset 0 0 0 1px rgba(124,58,237,0.25);
}
.side-item.active::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.side-item .ico { flex-shrink: 0; color: currentColor; }
.side-item .label { transition: opacity 150ms; }
.app.collapsed .side-item .label { opacity: 0; pointer-events: none; }
.app.collapsed .side-item { justify-content: center; padding: 10px; }
.app.collapsed .side-item .badge-count { display: none; }

.side-item .badge-count {
  margin-left: auto;
  font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px;
  background: var(--card-2); color: var(--text-dim);
}
.side-item.active .badge-count { background: rgba(124,58,237,0.25); color: var(--accent-2); }

.side-spacer { flex: 1; }

.upgrade-card {
  margin: 8px 4px 0;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(167,139,250,0.25), transparent 55%),
    linear-gradient(160deg, #1E1B4B 0%, #2B1D5C 100%);
  border: 1px solid rgba(167,139,250,0.2);
  position: relative;
  overflow: hidden;
}
.upgrade-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(167,139,250,0.2), transparent 70%);
  pointer-events: none;
}
.upgrade-card .up-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.upgrade-card .up-sub { font-size: 11.5px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.4; }
.upgrade-card .up-btn {
  width: 100%;
  padding: 8px 12px;
  background: white; color: #1E1B4B;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  transition: transform 120ms;
}
.upgrade-card .up-btn:hover { transform: translateY(-1px); }
.upgrade-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center; color: #E9D5FF;
  margin-bottom: 10px;
}
.app.collapsed .upgrade-card { display: none; }
.app.collapsed .upgrade-mini {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin: 8px auto 0;
  border-radius: 10px;
  background: linear-gradient(160deg, #1E1B4B, #2B1D5C);
  border: 1px solid rgba(167,139,250,0.25);
  color: #E9D5FF;
}
.upgrade-mini { display: none; }

/* ============ Welcome ============ */
.welcome {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.welcome h1 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.welcome .date { color: var(--text-muted); font-size: 13px; }
.welcome .actions { display: flex; gap: 10px; }

.btn {
  height: 38px; padding: 0 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 150ms;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #6D28D9 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--card-2); border-color: var(--border-2); }

/* ============ KPI Cards ============ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
}
.card:hover { border-color: var(--border-2); }
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(124,58,237,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 200ms;
}
.card:hover::after { opacity: 1; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi {
  padding: 18px 20px;
  overflow: hidden;
}
.kpi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kpi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(124,58,237,0.12); color: var(--accent-2);
}
.kpi-icon.green { background: rgba(16,185,129,0.12); color: var(--success); }
.kpi-icon.amber { background: rgba(245,158,11,0.12); color: var(--warning); }
.kpi-icon.red   { background: rgba(239,68,68,0.12); color: var(--error); }
.kpi-label { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }

.kpi-value {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  padding: 3px 8px 3px 6px; border-radius: 999px;
}
.trend.up { background: rgba(16,185,129,0.12); color: var(--success); }
.trend.down { background: rgba(239,68,68,0.12); color: var(--error); }
.trend .period { color: var(--text-muted); font-weight: 500; margin-left: 4px; font-size: 11.5px; }

.spark { width: 84px; height: 32px; flex-shrink: 0; }

/* skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1A2238 0%, #222B44 40%, #1A2238 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sk-icon  { width: 36px; height: 36px; border-radius: 10px; }
.sk-label { width: 88px; height: 12px; }
.sk-value { width: 120px; height: 24px; margin-top: 14px; margin-bottom: 10px; }
.sk-trend { width: 60px; height: 20px; border-radius: 999px; }
.sk-spark { width: 84px; height: 28px; }

/* ============ Chart card ============ */
.chart-card { padding: 22px 24px; margin-bottom: 20px; }
.chart-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.chart-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.chart-sub { font-size: 12.5px; color: var(--text-muted); }
.chart-meta {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 10px;
}
.chart-meta .big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.seg {
  display: inline-flex; padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.seg button {
  padding: 6px 12px;
  font-size: 12px; font-weight: 500;
  color: var(--text-dim);
  border-radius: 7px;
  transition: all 150ms;
}
.seg button.active {
  background: var(--card-2);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.2);
}

.chart-wrap { position: relative; width: 100%; height: 280px; }
.tooltip {
  position: absolute;
  padding: 8px 10px;
  background: #0B1020;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  pointer-events: none;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transform: translate(-50%, -110%);
  white-space: nowrap;
  z-index: 5;
}
.tooltip .tt-date { color: var(--text-muted); font-size: 11px; margin-bottom: 2px; }
.tooltip .tt-val { font-weight: 600; }
.tooltip .tt-val .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); margin-right: 6px; vertical-align: 1px; }

/* ============ 2-col row ============ */
.row-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}
.panel { padding: 22px 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 600; margin: 0; }
.link-btn { font-size: 12px; color: var(--accent-2); font-weight: 500; padding: 4px 8px; border-radius: 6px; }
.link-btn:hover { background: rgba(167,139,250,0.08); }

/* top products bar list */
.tp-list { display: flex; flex-direction: column; gap: 16px; }
.tp-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; }
.tp-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card-2); color: var(--accent-2);
  border: 1px solid var(--border-2);
  font-size: 16px;
}
.tp-body .tp-name { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.tp-bar {
  position: relative;
  height: 6px; width: 100%;
  background: var(--bg-2); border-radius: 999px; overflow: hidden;
}
.tp-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  width: 0;
  transition: width 900ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 10px rgba(124,58,237,0.4);
}
.tp-pct { font-size: 13px; font-weight: 600; text-align: right; min-width: 52px; }
.tp-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* activity feed */
.feed { display: flex; flex-direction: column; gap: 4px; margin-top: -4px; }
.feed-item {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  align-items: flex-start;
  transition: background 150ms;
}
.feed-item:hover { background: var(--card-2); }
.feed-text { font-size: 13px; line-height: 1.45; }
.feed-text b { font-weight: 600; }
.feed-text .action { color: var(--text-dim); }
.feed-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; padding-top: 2px; }

/* ============ Orders table ============ */
.table-card { padding: 0; overflow: hidden; }
.table-head-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
}
.table-head-bar .panel-title { font-size: 15px; }
.table-filters { display: flex; gap: 8px; align-items: center; }
.chip-filter {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  font-size: 12px; color: var(--text-dim);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px;
}
.chip-filter:hover { color: var(--text); border-color: var(--border-2); }

table.orders { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders thead th {
  text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); font-weight: 600;
  padding: 10px 24px;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.orders thead th .sort-ico { margin-left: 6px; opacity: 0.5; }
.orders thead th.sorted { color: var(--text); }
.orders thead th.sorted .sort-ico { opacity: 1; color: var(--accent-2); }
.orders thead th:hover { color: var(--text); }
.orders tbody td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.orders tbody tr { transition: background 120ms; }
.orders tbody tr:hover { background: rgba(124,58,237,0.05); }
.orders tbody tr:last-child td { border-bottom: none; }
.cust-cell { display: flex; align-items: center; gap: 10px; }
.cust-cell .nm { font-weight: 500; }
.cust-cell .em { font-size: 11.5px; color: var(--text-muted); }
.mono { font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--text-dim); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500;
  padding: 3px 9px 3px 8px; border-radius: 999px;
}
.pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; }
.pill.ok   { background: rgba(16,185,129,0.12); color: #34D399; }
.pill.ok .pill-dot   { background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.pill.wait { background: rgba(245,158,11,0.12); color: #FBBF24; }
.pill.wait .pill-dot { background: #FBBF24; box-shadow: 0 0 8px rgba(251,191,36,0.6); }
.pill.err  { background: rgba(239,68,68,0.12); color: #F87171; }
.pill.err .pill-dot  { background: #F87171; box-shadow: 0 0 8px rgba(248,113,113,0.6); }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
}
.pager .pg-info { font-size: 12.5px; color: var(--text-muted); }
.pg-btns { display: flex; gap: 6px; }
.pg-btn {
  min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: all 120ms;
}
.pg-btn:hover:not(:disabled) { border-color: var(--border-2); color: var(--text); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ Mobile ============ */
.mobile-bottom-nav { display: none; }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 56px; }
  .app, .app.collapsed {
    grid-template-columns: 1fr;
    grid-template-areas: "nav" "main";
  }
  .side { display: none; }
  .nav-items { display: none; }
  .nav-search { width: 180px; }
  .nav-search kbd { display: none; }
  .user-chip .name-wrap { display: none; }
  .nav-logo { width: auto; }
  .nav-collapse-btn { display: none; }
  .main { padding: 20px 16px 100px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 22px; }
  .spark { width: 56px; height: 24px; }
  .chart-wrap { height: 220px; }
  .panel, .chart-card { padding: 16px; }
  .table-head-bar { padding: 16px; flex-wrap: wrap; gap: 10px; }
  .orders thead th { padding: 10px 14px; }
  .orders tbody td { padding: 12px 14px; }
  .orders .hide-sm { display: none; }
  .orders thead .hide-sm { display: none; }
  .pager { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .welcome h1 { font-size: 20px; }

  .mobile-bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 64px;
    background: rgba(10,14,26,0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 50;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mb-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-muted);
    border-radius: 10px;
  }
  .mb-item.active { color: var(--accent-2); }
  .mb-item.active .mb-dot {
    position: absolute; bottom: 2px;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent-2);
  }
  .mb-item { position: relative; }
}
