/* ===== СКЛАДПРО — INDUSTRIAL DARK THEME ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Core palette — deep industrial */
  --void:        #060709;
  --base:        #0c0e12;
  --surface-1:   #111419;
  --surface-2:   #181c23;
  --surface-3:   #1e232c;
  --surface-4:   #252b36;
  --border-dim:  #1f2530;
  --border:      #262d3a;
  --border-lit:  #313b4c;

  /* Text */
  --text-1:  #f0f4fc;
  --text-2:  #8d99ae;
  --text-3:  #4e5a6e;
  --text-4:  #2e3749;

  /* Accent — electric amber/gold for industrial feel */
  --amber:       #f5a623;
  --amber-dim:   rgba(245,166,35,.12);
  --amber-glow:  rgba(245,166,35,.25);

  /* Status colors */
  --cyan:    #22d3ee;
  --cyan-dim:rgba(34,211,238,.1);
  --green:   #34d399;
  --green-dim:rgba(52,211,153,.1);
  --red:     #f87171;
  --red-dim: rgba(248,113,113,.1);
  --violet:  #a78bfa;
  --violet-dim:rgba(167,139,250,.1);

  --sidebar-w: 256px;
  --header-h:  58px;
  --r:   8px;
  --r-lg:12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--void);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--amber); text-decoration: none; transition: color .15s; }
a:hover { color: #ffc158; }

/* ─── SCROLLBAR ──────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-lit); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── LOGIN PAGE ─────────────────────────── */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: var(--void);
}

/* Grid pattern background */
.auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glow orbs */
.auth-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245,166,35,.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

/* Logo above card */
.auth-logo-area {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeDown .5s ease both;
}
.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.auth-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2a1f06 0%, #4a3510 100%);
  border: 1px solid var(--amber);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 24px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,.05);
  flex-shrink: 0;
}
.auth-logo-text {
  text-align: left;
}
.auth-logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #f0f4fc 0%, #8d99ae 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.auth-logo-sub {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-top: 3px;
}

/* Card */
.auth-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 24px 64px rgba(0,0,0,.6),
    0 0 40px rgba(245,166,35,.05);
  animation: fadeUp .5s ease .1s both;
}

.auth-card-top {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border-dim);
}
.auth-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-card-sub {
  font-size: 13px;
  color: var(--text-2);
}
.auth-card-body {
  padding: 24px 32px 28px;
}

/* Test accounts strip */
.auth-demo {
  background: var(--surface-2);
  border-top: 1px solid var(--border-dim);
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.auth-demo-title {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 2px;
}
.auth-demo-item {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  display: flex;
  gap: 6px;
}
.auth-demo-item .role { color: var(--amber); }

/* ─── FORM ELEMENTS ──────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 14px;
  color: var(--text-1);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:hover { border-color: var(--border-lit); }
.form-control:focus {
  border-color: var(--amber);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
.form-control::placeholder { color: var(--text-4); }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--surface-3); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }

/* Primary — amber */
.btn-primary {
  background: var(--amber);
  color: #0c0e12;
  border-color: var(--amber);
  box-shadow: 0 0 20px var(--amber-dim);
}
.btn-primary:hover {
  background: #ffc158;
  color: #0c0e12;
  box-shadow: 0 0 28px var(--amber-glow);
}

/* Ghost */
.btn-secondary {
  background: var(--surface-3);
  color: var(--text-2);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-4);
  color: var(--text-1);
  border-color: var(--border-lit);
}

/* Success */
.btn-success {
  background: var(--green);
  color: #0c0e12;
}
.btn-success:hover { background: #4ade80; color: #0c0e12; }

/* Danger ghost */
.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(248,113,113,.25);
}
.btn-danger:hover { background: var(--red-dim); border-color: var(--red); }

/* Sizes */
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; }

/* ─── LAYOUT ─────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface-1);
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 11px;
}
.sidebar-brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2a1f06, #4a3510);
  border: 1px solid rgba(245,166,35,.4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 12px rgba(245,166,35,.15);
  flex-shrink: 0;
}
.sidebar-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.1;
}
.sidebar-brand-sub {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}

.sidebar-user {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #e06c00);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #0c0e12;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245,166,35,.25);
}
.s-uname {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.s-urole { font-size: 11px; color: var(--text-3); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.nav-section {
  padding: 10px 18px 5px;
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  position: relative;
}
.nav-link:hover {
  background: var(--surface-3);
  color: var(--text-1);
}
.nav-link.active {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(245,166,35,.18);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--amber);
  border-radius: 0 3px 3px 0;
}
.nav-link .n-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-foot {
  padding: 10px;
  border-top: 1px solid var(--border-dim);
}

/* ─── MAIN ───────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--header-h);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

.content {
  flex: 1;
  padding: 24px 28px;
}

/* ─── PAGE HEADER ────────────────────────── */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.page-head-left {}
.page-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.page-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ─── CARDS ──────────────────────────────── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 20px 22px; }

/* ─── STAT CARDS ─────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; margin-bottom: 22px; }

.stat {
  background: var(--surface-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.stat:hover { border-color: var(--border-lit); transform: translateY(-1px); }
.stat::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: .04;
  transform: translate(20px, -20px);
}
.stat.amber::after { background: var(--amber); }
.stat.cyan::after  { background: var(--cyan); }
.stat.green::after { background: var(--green); }
.stat.violet::after{ background: var(--violet); }
.stat.red::after   { background: var(--red); }

.stat-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.stat-ico.amber  { background: var(--amber-dim); border: 1px solid rgba(245,166,35,.2); }
.stat-ico.cyan   { background: var(--cyan-dim);  border: 1px solid rgba(34,211,238,.15); }
.stat-ico.green  { background: var(--green-dim); border: 1px solid rgba(52,211,153,.15); }
.stat-ico.violet { background: var(--violet-dim);border: 1px solid rgba(167,139,250,.15); }
.stat-ico.red    { background: var(--red-dim);   border: 1px solid rgba(248,113,113,.15); }

.stat-val {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-2); }

/* ─── TABLE ──────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--surface-2);
  padding: 11px 16px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  border-bottom: 1px solid var(--border-dim);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border-dim);
  transition: background .12s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td { padding: 12px 16px; vertical-align: middle; }
.td-primary { font-weight: 600; color: var(--text-1); }
.td-mono { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-2); }
.td-muted { color: var(--text-2); font-size: 12px; }

/* ─── BADGES ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-admin     { background: var(--violet-dim); color: var(--violet); border-color: rgba(167,139,250,.2); }
.badge-worker    { background: var(--cyan-dim);   color: var(--cyan);   border-color: rgba(34,211,238,.15); }
.badge-storekeeper{background: var(--green-dim);  color: var(--green);  border-color: rgba(52,211,153,.15); }
.badge-inspector { background: var(--amber-dim);  color: var(--amber);  border-color: rgba(245,166,35,.2); }

/* Status badges */
.s-pending    { background: var(--amber-dim);  color: var(--amber);  border-color: rgba(245,166,35,.2); }
.s-approved   { background: var(--cyan-dim);   color: var(--cyan);   border-color: rgba(34,211,238,.15);}
.s-in_progress{ background: var(--violet-dim); color: var(--violet); border-color: rgba(167,139,250,.2);}
.s-delivered  { background: var(--green-dim);  color: var(--green);  border-color: rgba(52,211,153,.15);}
.s-rejected   { background: var(--red-dim);    color: var(--red);    border-color: rgba(248,113,113,.2);}
.s-active     { background: var(--green-dim);  color: var(--green);  border-color: rgba(52,211,153,.15);}
.s-ended      { background: var(--surface-3);  color: var(--text-3); border-color: var(--border); }

/* qty tags */
.qty {
  display: inline-flex;
  align-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 9px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
}
.qty.hi  { border-color: rgba(52,211,153,.25); color: var(--green); }
.qty.lo  { border-color: rgba(248,113,113,.25); color: var(--red); }
.qty.mid { border-color: rgba(245,166,35,.25); color: var(--amber); }

/* priority */
.pr-urgent { color: var(--red); font-weight: 700; }
.pr-high   { color: var(--amber); font-weight: 600; }
.pr-normal { color: var(--cyan); }
.pr-low    { color: var(--text-3); }

/* ─── ALERTS ─────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  line-height: 1.5;
}
.alert-success { background: var(--green-dim);  color: var(--green);  border-color: rgba(52,211,153,.2);}
.alert-error   { background: var(--red-dim);    color: var(--red);    border-color: rgba(248,113,113,.2);}
.alert-info    { background: var(--cyan-dim);   color: var(--cyan);   border-color: rgba(34,211,238,.15);}
.alert-warning { background: var(--amber-dim);  color: var(--amber);  border-color: rgba(245,166,35,.2);}

/* ─── MODAL ──────────────────────────────── */
.modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(6,7,9,.85);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-ov.open { display: flex; }
.modal {
  background: var(--surface-1);
  border: 1px solid var(--border-lit);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.8), 0 0 1px rgba(255,255,255,.05) inset;
  animation: modalPop .22s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes modalPop { from { transform: scale(.93) translateY(10px); opacity:0; } to { transform: scale(1); opacity:1; } }
.modal-head {
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.modal-x {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  border-radius: 7px;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.modal-x:hover { background: var(--red-dim); color: var(--red); border-color: rgba(248,113,113,.3); }
.modal-body { padding: 20px 22px; }
.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border-dim);
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

/* ─── WAREHOUSE CARDS ────────────────────── */
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wh-card {
  background: var(--surface-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.wh-card:hover {
  border-color: rgba(245,166,35,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 20px rgba(245,166,35,.05);
  transform: translateY(-2px);
}
.wh-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wh-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wh-body { padding: 14px 18px; }
.wh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 12.5px;
}
.wh-row:last-child { border-bottom: none; }
.wh-row-label { color: var(--text-2); }

/* ─── WIDGET GRID ────────────────────────── */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.widget {
  background: var(--surface-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
  padding: 18px;
}
.add-widget-btn {
  background: var(--surface-1);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-3);
  font-size: 13px;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}
.add-widget-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* ─── UTILS ──────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flex    { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2   { gap: 16px; }
.gap-1   { gap: 8px; }
.mt-2    { margin-top: 16px; }
.mt-3    { margin-top: 22px; }
.mb-2    { margin-bottom: 16px; }
.mb-3    { margin-bottom: 22px; }
.text-2  { color: var(--text-2); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }
.font-mono { font-family: 'DM Mono', monospace; }
.divider { height: 1px; background: var(--border-dim); margin: 16px 0; }
.w-full  { width: 100%; }

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
}
.empty-ico { font-size: 36px; margin-bottom: 10px; }
.empty p   { font-size: 13px; }

.admin-chip {
  background: linear-gradient(135deg, var(--amber), #e06c00);
  color: #0c0e12;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── SCROLL MODAL LIST ──────────────────── */
.scroll-list { max-height: 380px; overflow-y: auto; }

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: none; } }
@keyframes fadeDown { from { opacity:0; transform: translateY(-10px);} to { opacity:1; transform: none; } }

/* ─── TABS ───────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-dim);
  margin-bottom: 20px;
}
.tab-btn {
  padding: 9px 16px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { color: var(--amber); border-bottom-color: var(--amber); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-256px); width: 256px; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.6); }
  .main { margin-left: 0; }
  .content { padding: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .wh-grid { grid-template-columns: 1fr; }
  .auth-card-top, .auth-card-body, .auth-demo { padding-left: 22px; padding-right: 22px; }
}
