:root {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-2: #fafaff;
  --surface: #ffffff;
  --surface-2: #fafaff;
  --surface-3: #f5f2fe;
  --glass: rgba(255, 255, 255, .74);
  --glass-2: rgba(255, 255, 255, .56);
  --line: #edeef5;
  --line-2: #e3e5ef;
  --line-3: #d2d6e6;
  --ink: #191d31;
  --ink-2: #4a5068;
  --muted: #858ba1;
  --faint: #a5abbd;
  --ghost: #c2c7d6;
  --brand: #8d43f5;
  --brand-2: #6f2df5;
  --brand-3: #5c1fe0;
  --brand-4: #ab72ff;
  --brand-soft: #f6f0ff;
  --brand-tint: #faf7ff;
  --brand-line: #e4d7fd;
  --gold: #f79009;
  --gold-2: #fcbf49;
  --gold-soft: #fff8ec;
  --gold-line: #fbe0b6;
  --coral: #f04463;
  --coral-2: #d92d4d;
  --coral-soft: #fff0f3;
  --coral-line: #ffd2dc;
  --green: #12b76a;
  --green-soft: #e8faf1;
  --sky: #3487f8;
  --sky-soft: #eaf2ff;
  --amber: #f79009;
  --white-fixed: #ffffff;
  --ring: 0 0 0 4px rgba(141, 67, 245, .14);
  --ring-bad: 0 0 0 4px rgba(240, 68, 99, .14);
  --sh-1: 0 1px 2px rgba(25, 29, 49, .04), 0 1px 1px rgba(25, 29, 49, .03);
  --sh-2: 0 6px 18px rgba(25, 29, 49, .06), 0 2px 6px rgba(25, 29, 49, .04);
  --sh-3: 0 18px 46px rgba(25, 29, 49, .1), 0 6px 16px rgba(25, 29, 49, .05);
  --sh-4: 0 28px 70px rgba(25, 29, 49, .18);
  --sh-brand: 0 10px 26px rgba(111, 45, 245, .3);
  --sh-brand-sm: 0 6px 16px rgba(111, 45, 245, .22);
  --sh-gold: 0 10px 26px rgba(247, 144, 9, .28);
  --sh-coral: 0 10px 24px rgba(240, 68, 99, .24);
  --r-1: 10px;
  --r-2: 14px;
  --r-3: 18px;
  --r-4: 24px;
  --r-5: 30px;
  --pill: 999px;
  --e: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t: .22s var(--e);
  --t-2: .34s var(--e);
  --aurora-1: rgba(141, 67, 245, .28);
  --aurora-2: rgba(171, 114, 255, .26);
  --aurora-3: rgba(52, 135, 248, .18);
  --grain: .03;
  --scrim: rgba(18, 14, 38, .5);
  --toast-bg: #191d31;
  --toast-ink: #f4f2fb;
  --dock-h: 0px;
  --sidebar-w: 244px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0a18;
  --bg-2: #141027;
  --surface: #171232;
  --surface-2: #1f1940;
  --surface-3: #282052;
  --glass: rgba(23, 18, 50, .74);
  --glass-2: rgba(23, 18, 50, .54);
  --line: rgba(167, 139, 250, .12);
  --line-2: rgba(167, 139, 250, .2);
  --line-3: rgba(167, 139, 250, .32);
  --ink: #f2eefb;
  --ink-2: #c9c0e6;
  --muted: #9a8fc0;
  --faint: #6f6399;
  --ghost: #524779;
  --brand: #a78bfa;
  --brand-2: #c4b5fd;
  --brand-3: #8b5cf6;
  --brand-4: #ddcfff;
  --brand-soft: rgba(167, 139, 250, .16);
  --brand-tint: rgba(167, 139, 250, .08);
  --brand-line: rgba(167, 139, 250, .3);
  --gold: #fbbf24;
  --gold-2: #fde68a;
  --gold-soft: rgba(251, 191, 36, .12);
  --gold-line: rgba(251, 191, 36, .28);
  --coral: #fb7185;
  --coral-2: #fda4af;
  --coral-soft: rgba(251, 113, 133, .12);
  --coral-line: rgba(251, 113, 133, .28);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, .12);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, .12);
  --ring: 0 0 0 4px rgba(167, 139, 250, .24);
  --ring-bad: 0 0 0 4px rgba(251, 113, 133, .2);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(167, 139, 250, .05);
  --sh-2: 0 8px 22px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(167, 139, 250, .05);
  --sh-3: 0 20px 52px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(167, 139, 250, .05);
  --sh-4: 0 30px 80px rgba(0, 0, 0, .7);
  --sh-brand: 0 10px 30px rgba(139, 92, 246, .42);
  --sh-brand-sm: 0 6px 18px rgba(139, 92, 246, .32);
  --sh-gold: 0 10px 26px rgba(251, 191, 36, .18);
  --sh-coral: 0 10px 24px rgba(251, 113, 133, .2);
  --aurora-1: rgba(124, 58, 237, .4);
  --aurora-2: rgba(192, 132, 252, .24);
  --aurora-3: rgba(139, 92, 246, .22);
  --grain: .05;
  --scrim: rgba(5, 3, 12, .64);
  --toast-bg: #282052;
  --toast-ink: #f2eefb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Vazirmatn', 'Vazir', 'IRANSansX', 'IRANSans', Tahoma, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s var(--e), color .4s var(--e);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  outline: none;
  border-radius: 0;
}

button,
.pay-opt {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--brand);
  color: var(--white-fixed);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line-3);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: var(--pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ghost);
  background-clip: content-box;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .9;
  will-change: transform;
}

.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  top: -14vw;
  inset-inline-end: -8vw;
  background: var(--aurora-1);
  animation: drift1 22s ease-in-out infinite;
}

.aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  min-width: 260px;
  min-height: 260px;
  top: 26vh;
  inset-inline-start: -12vw;
  background: var(--aurora-2);
  animation: drift2 26s ease-in-out infinite;
}

.aurora span:nth-child(3) {
  width: 32vw;
  height: 32vw;
  min-width: 220px;
  min-height: 220px;
  bottom: -12vw;
  inset-inline-end: 18vw;
  background: var(--aurora-3);
  animation: drift3 30s ease-in-out infinite;
}

.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.btn {
  position: relative;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t), filter var(--t);
}

.btn i {
  font-size: 12.5px;
}

.btn:active {
  transform: scale(.96);
}

.btn-solid {
  background: linear-gradient(135deg, var(--brand-3), var(--brand) 55%, var(--brand-4));
  color: var(--white-fixed);
  box-shadow: var(--sh-brand-sm);
}

.btn-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(255, 255, 255, .38), transparent 52%);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
  filter: saturate(115%);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--line-3);
  box-shadow: var(--sh-1);
}

.btn-soft {
  height: 40px;
  background: var(--brand-soft);
  color: var(--brand-2);
  border: 1px solid var(--brand-line);
}

.btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-brand-sm);
}

.btn-lg {
  height: 50px;
  padding: 0 28px;
  font-size: 13.5px;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 11.5px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-tint);
  transform: translateY(-2px);
  box-shadow: var(--sh-brand-sm);
}

.icon-btn:active {
  transform: translateY(0) scale(.94);
}

.theme-btn i {
  transition: transform .5s var(--spring), opacity .3s var(--e);
}

.theme-btn .i-sun {
  display: none;
}

[data-theme="dark"] .theme-btn .i-sun {
  display: block;
}

[data-theme="dark"] .theme-btn .i-moon {
  display: none;
}

.theme-btn:hover i {
  transform: rotate(45deg) scale(1.08);
}

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  transform: scale(0);
  background: currentColor;
  opacity: .22;
  pointer-events: none;
  animation: ripple .6s var(--e) forwards;
}

.btn-solid .ripple,
.btn-gold .ripple {
  background: #ffffff;
  opacity: .35;
}

[data-theme="dark"] .panel {
  background: linear-gradient(180deg, rgba(167, 139, 250, .04), transparent 55%), var(--surface);
}

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--sh-1);
  overflow: hidden;
  animation: rise .5s var(--e) both;
  transition: box-shadow var(--t-2), border-color var(--t-2);
}

.panel:hover {
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dot-icon {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-2);
  display: grid;
  place-items: center;
  font-size: 14.5px;
  transition: transform .4s var(--spring), background var(--t), color var(--t);
}

.dot-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.dot-icon.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.dot-icon.sky {
  background: var(--sky-soft);
  color: var(--sky);
}

.dot-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.panel:hover .dot-icon {
  transform: translateY(-2px) rotate(-6deg);
}

.panel-title h2 {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -.25px;
  line-height: 1.45;
}

.panel-title p {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.panel-body {
  padding: 18px 16px;
}

.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.sidebar {
  position: relative;
  z-index: 50;
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 14px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-inline-end: 1px solid var(--line);
  box-shadow: var(--sh-2);
  transition: transform .38s var(--e), background .4s var(--e);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar .brand img {
  height: 38px;
  width: auto;
}

.sidebar-close {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  display: none;
  place-items: center;
  font-size: 13px;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: background var(--t), color var(--t), transform var(--t);
}

.nav-item i {
  width: 20px;
  flex: none;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
  transition: color var(--t), transform .4s var(--spring);
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--ink);
  transform: translateX(-2px);
}

.nav-item:hover i {
  color: var(--brand);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint));
  color: var(--brand-2);
  box-shadow: inset 0 0 0 1px var(--brand-line);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  inset-inline-start: -14px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: var(--pill);
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-4);
}

.nav-item.active i {
  color: var(--brand);
  transform: scale(1.08);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-2);
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--sh-2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  display: none;
  place-items: center;
  font-size: 14px;
  transition: color var(--t), border-color var(--t), transform var(--t);
}

.menu-toggle:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  transform: translateY(-1px);
}

.icon-btn.notification i:first-child {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 16px;
  height: 16px;
  border-radius: var(--pill);
  background: var(--coral);
  color: var(--white-fixed);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

.brand-logo {
  display: inline-flex;
  border-radius: var(--r-2);
  transition: transform var(--t), opacity var(--t);
}

.brand-logo:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--surface-2);
  transition: border-color var(--t), box-shadow var(--t);
}

.user-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-1);
}

.user-avatar {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
}

.user-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--brand-line);
  background: var(--brand-tint);
}

.avatar-status {
  position: absolute;
  bottom: -2px;
  inset-inline-start: -2px;
  width: 11px;
  height: 11px;
  border-radius: var(--pill);
  background: var(--green);
  border: 2px solid var(--surface-2);
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.4;
}

.user-meta strong {
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta small {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-area {
  flex: 1;
  min-height: 0;
  position: relative;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.page {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--sh-2);
  animation: rise .5s var(--e) both;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-badge {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-2);
  background: linear-gradient(135deg, var(--brand-3), var(--brand), var(--brand-4));
  color: var(--white-fixed);
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: var(--sh-brand);
  overflow: hidden;
}

.topbar-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, .45), transparent 55%);
}

.topbar-badge i {
  position: relative;
  z-index: 1;
}

.topbar-text {
  min-width: 0;
}

.topbar-text h1 {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -.35px;
  line-height: 1.35;
  white-space: nowrap;
}

.topbar-text p {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.topbar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-side .btn {
  height: 40px;
}

.pill {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pill i {
  color: var(--brand);
  font-size: 12px;
}

.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.tools-left,
.tools-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 260px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--faint);
  transition: border-color var(--t), box-shadow var(--t);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  text-align: right;
}

.search-box input::placeholder {
  color: var(--ghost);
  font-weight: 400;
}

.tool-button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}

.tool-button i {
  color: var(--brand);
  font-size: 13px;
}

.tool-button:hover {
  border-color: var(--brand-line);
  background: var(--brand-tint);
  color: var(--brand-2);
  transform: translateY(-1px);
}

.table-wrap {
  padding: 0 16px 4px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

thead th {
  height: 40px;
  padding: 0 14px;
  background: var(--brand-tint);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  border-bottom: 1px solid var(--brand-line);
  white-space: nowrap;
}

thead th:first-child {
  border-start-start-radius: var(--r-1);
  border-end-start-radius: var(--r-1);
}

thead th:last-child {
  border-start-end-radius: var(--r-1);
  border-end-end-radius: var(--r-1);
}

thead th .sort-ico {
  color: var(--brand);
  font-size: 9px;
  margin-inline-start: 4px;
}

tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}

tbody tr:last-child {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-2);
}

tbody td {
  height: 52px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

tbody td .muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--pill);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tag i {
  font-size: 11px;
}

.tag.clothes {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.tag.shoes {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag.bag {
  background: var(--green-soft);
  color: var(--green);
}

.tag.accessory {
  background: var(--sky-soft);
  color: var(--sky);
}

.tag.sell {
  background: var(--green-soft);
  color: var(--green);
}

.tag.buy {
  background: var(--sky-soft);
  color: var(--sky);
}

.tag.online {
  background: var(--sky-soft);
  color: var(--sky);
}

.tag.offline {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.tag.stock {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.tag.warn {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag.alert {
  background: var(--coral-soft);
  color: var(--coral);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-1);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--sh-1);
}

.action-view {
  background: var(--brand-soft);
  color: var(--brand-2);
}

.action-edit {
  background: var(--sky-soft);
  color: var(--sky);
}

.action-delete {
  background: var(--coral-soft);
  color: var(--coral);
}

.customer-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.customer-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--pill);
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint));
  border: 1px solid var(--brand-line);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px 16px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-number,
.page-arrow {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}

.page-number:hover,
.page-arrow:hover {
  border-color: var(--brand-line);
  color: var(--brand-2);
  transform: translateY(-2px);
}

.page-number.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-3), var(--brand) 60%, var(--brand-4));
  color: var(--white-fixed);
  box-shadow: var(--sh-brand-sm);
}

.page-number.plain {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.page-number.plain:hover {
  transform: none;
  color: var(--ink-2);
}

.footer-center {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.per-page {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 600;
  transition: border-color var(--t), color var(--t);
}

.per-page:hover {
  border-color: var(--brand-line);
  color: var(--brand-2);
}

.per-page strong {
  font-size: 12px;
  font-weight: 800;
}

.per-page i {
  font-size: 10px;
  color: var(--faint);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  position: relative;
  padding: 16px;
  border-radius: var(--r-3);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  animation: rise .5s var(--e) both;
  transition: box-shadow var(--t-2), border-color var(--t-2), transform var(--t-2);
}

.stat-box:hover {
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: -34px;
  inset-inline-end: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  pointer-events: none;
}

.stat-box .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.stat-box .value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--ink);
}

.stat-box .change {
  font-size: 10.5px;
  font-weight: 700;
}

.stat-box .change.up {
  color: var(--green);
}

.stat-box .change.down {
  color: var(--coral);
}

.charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chart-box {
  padding: 16px;
  border-radius: var(--r-3);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  animation: rise .5s var(--e) both;
  transition: box-shadow var(--t-2), border-color var(--t-2);
}

.chart-box:hover {
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

.chart-title .badge {
  height: 22px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.chart-wrap {
  height: 190px;
  position: relative;
}

.empty-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.empty-art {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--pill);
  background: radial-gradient(circle at 50% 32%, var(--brand-soft), var(--brand-tint));
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 34px;
  margin-bottom: 8px;
  animation: float 3.6s ease-in-out infinite;
}

.empty-art::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: var(--pill);
  border: 1.5px dashed var(--brand-line);
  animation: spin 18s linear infinite;
}

.empty-panel strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.empty-panel p {
  font-size: 12px;
  color: var(--muted);
  max-width: 320px;
  margin-bottom: 10px;
}

.toast-wrap {
  position: fixed;
  z-index: 95;
  bottom: calc(20px + var(--dock-h));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 28px));
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--pill);
  box-shadow: var(--sh-4);
  animation: toastIn .4s var(--spring) both;
}

.toast.out {
  animation: toastOut .3s var(--e) both;
}

.toast i {
  font-size: 14px;
  color: var(--green);
}

.toast.bad i {
  color: #ff9a83;
}

.toast.warn i {
  color: #fbbf24;
}

.sel {
  position: relative;
  width: 100%;
  display: block;
}

.sel-btn {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: var(--surface);
  color: var(--ink);
  padding-inline: 11px 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: start;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.sel-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sel-btn > i {
  flex: none;
  font-size: 9px;
  color: var(--faint);
  transition: transform .32s var(--spring), color var(--t);
}

.sel-btn:hover {
  border-color: var(--line-3);
  background: var(--surface-2);
}

.sel.open .sel-btn {
  border-color: var(--brand);
  box-shadow: var(--ring);
  background: var(--surface);
}

.sel.open .sel-btn > i {
  transform: rotate(180deg);
  color: var(--brand);
}

.sel-menu {
  position: fixed;
  z-index: 88;
  min-width: 168px;
  max-width: calc(100vw - 16px);
  max-height: min(264px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .2s var(--e), transform .28s var(--spring);
}

.sel-menu.up {
  transform-origin: bottom center;
  transform: translateY(8px) scale(.97);
}

.sel-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sel-opt {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--r-1);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: start;
  transition: background var(--t), color var(--t);
}

.sel-opt > i {
  flex: none;
  width: 13px;
  font-size: 10px;
  color: var(--brand);
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--t), transform .3s var(--spring);
}

.sel-opt > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sel-opt:hover,
.sel-opt.cursor {
  background: var(--brand-tint);
  color: var(--brand-2);
}

.sel-opt.is-on {
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 700;
}

.sel-opt.is-on > i {
  opacity: 1;
  transform: scale(1);
}

.tip {
  position: fixed;
  z-index: 92;
  padding: 7px 12px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: var(--pill);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .18s var(--e), transform .18s var(--e);
}

.tip.show {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .tip {
  background: var(--surface-3);
  border: 1px solid var(--line-2);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--scrim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-2);
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  width: min(400px, calc(100vw - 32px));
  transform: translate(-50%, -46%) scale(.96);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-4);
  box-shadow: var(--sh-4);
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-2), transform .38s var(--spring);
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal h3 i {
  color: var(--brand);
  font-size: 13px;
}

.modal p {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-acts {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.modal-acts .btn {
  flex: 1;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(14px) scale(.96); }
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, 5vh) scale(1.12); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(7vw, -6vh) scale(1.16); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -7vh) scale(1.1); }
}

[data-theme="dark"] .sel-menu {
  border-color: var(--line-2);
  box-shadow: var(--sh-3), 0 0 40px rgba(0, 0, 0, .35);
}

@media (max-width: 1280px) {
  .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    transform: translateX(105%);
    width: min(280px, 84vw);
    border-radius: 0 var(--r-4) var(--r-4) 0;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
  }

  .nav-item.active::before {
    inset-inline-start: -14px;
  }

  .content-area {
    padding: 12px;
  }

  .page {
    gap: 13px;
  }

  .topbar {
    top: 6px;
    padding: 11px 12px;
    border-radius: var(--r-3);
  }

  .menu-toggle {
    display: grid;
  }

  .topbar-text p {
    display: none;
  }

  .topbar-badge {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .panel {
    border-radius: var(--r-3);
  }

  .panel-head {
    padding: 13px 12px;
  }

  .panel-body {
    padding: 14px 12px;
  }

  .tools {
    padding: 12px;
  }

  .search-box {
    width: 100%;
  }

  .table-wrap {
    padding: 0 12px 4px;
  }

  thead {
    display: none;
  }

  table {
    min-width: 0;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    background: var(--surface);
    box-shadow: var(--sh-1);
    margin-bottom: 10px;
    padding: 4px 12px;
  }

  tbody tr:hover {
    background: var(--surface);
    box-shadow: var(--sh-2);
  }

  tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: auto;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    white-space: normal;
    text-align: start;
  }

  tbody td:last-child {
    border-bottom: 0;
  }

  tbody td::before {
    content: attr(data-label);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
  }

  .actions {
    justify-content: flex-start;
  }

  .table-footer {
    padding: 12px;
  }

  .charts {
    grid-template-columns: 1fr;
  }

  .chart-wrap {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-box .value {
    font-size: 18px;
  }

  .pill {
    display: none;
  }

  .topbar-side .btn span {
    display: none;
  }

  .topbar-side .btn {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .pagination {
    order: 2;
  }

  .footer-center {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .per-page {
    order: 3;
  }

  .table-footer {
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .page {
    gap: 12px;
  }

  .topbar-text h1 {
    font-size: 15.5px;
  }

  .topbar-badge {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .content-area {
    padding: 10px;
  }
}

@media (hover: none) {
  .btn:hover,
  .icon-btn:hover,
  .tool-button:hover,
  .action-btn:hover,
  .page-number:hover,
  .page-arrow:hover,
  .stat-box:hover,
  .chart-box:hover,
  .panel:hover {
    transform: none;
  }
}

@media print {
  .aurora,
  .toast-wrap,
  .sidebar,
  .menu-toggle {
    display: none !important;
  }

  .app-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  .main {
    display: block;
  }

  .content-area {
    padding: 0;
    overflow: visible;
  }

  body {
    background: #fff;
  }

  .panel,
  .stat-box,
  .chart-box {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* app shell */

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--faint);
  transition: border-color var(--t), box-shadow var(--t);
}

.sidebar-search:focus-within {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.sidebar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
}

.sidebar-search input::placeholder {
  color: var(--ghost);
  font-weight: 400;
}

.sidebar-foot {
  margin-top: auto;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.foot-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 2px;
}

.foot-credit {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
}

.foot-credit b {
  font-weight: 800;
  color: var(--ink-2);
}

.foot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.foot-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  transition: color var(--t), border-color var(--t), background var(--t), transform var(--t);
}

.foot-icon:hover {
  color: var(--brand-2);
  border-color: var(--brand-line);
  background: var(--surface);
  transform: translateY(-1px);
}

.sidebar .main-nav {
  flex: 1 1 auto;
}

/* ripple needs a positioned, clipping stacking context */
.ripple-host {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* topbar keeps a fixed height inside .page */
.page > .topbar {
  flex: none;
}

@media (max-width: 900px) {
  .sidebar .main-nav {
    flex: 0 1 auto;
  }
}

/* reports + empty state */

.table-note {
  padding: 28px 16px 34px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.stat-box .value small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin-inline-start: 4px;
}

.stat-box .change i {
  font-size: 9px;
  margin-inline-end: 2px;
}

.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .empty-actions {
    width: 100%;
    flex-direction: column;
  }

  .empty-actions .btn {
    width: 100%;
  }
}
