@charset "UTF-8";
/* ==========================================================================
   سیتکا آپدیت — شیوه‌نامهٔ پنل
   همان زبان طراحی پنل مدیریت سیتکا: سطح سفید، قرص آبی، گوشهٔ ۱۴ پیکسل.
   ========================================================================== */

:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #0f1e35;
  --ink-2: #334155;
  --muted: #64748b;
  --soft: #94a3b8;
  --border: #edf1f7;
  --line-2: #e3e9f2;
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --teal: #0891b2;
  --teal-soft: #ecfeff;
  --radius: 14px;
  --radius-sm: 10px;
  --side-w: 268px;
  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --shadow: 0 1px 2px rgba(15, 30, 53, .04);
  --shadow-lg: 0 18px 40px -24px rgba(15, 30, 53, .28);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }

button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dbe3ef; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #c4cfe1; }

/* ============================ صفحهٔ ورود ============================ */

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 460px at 100% -10%, #e8f0ff 0%, rgba(232, 240, 255, 0) 62%),
    radial-gradient(760px 420px at 0% 100%, #eef4ff 0%, rgba(238, 244, 255, 0) 58%),
    var(--bg);
}

.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 26px 60px -34px rgba(15, 30, 53, .30);
  text-align: center;
}

.auth__card--plain { max-width: 400px; }

.auth__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .65);
}

.auth__mark svg { width: 27px; height: 27px; }

.auth__head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.auth__head p { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.auth__form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; text-align: start; }
.auth__foot { margin-top: 20px; font-size: 11px; color: var(--soft); line-height: 1.8; }

.auth__error {
  padding: 10px 12px;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  text-align: start;
}

/* ============================ فیلدها ============================ */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

.field input,
.field textarea,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text);
  outline: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.field textarea { height: auto; min-height: 84px; padding: 11px 13px; resize: vertical; line-height: 1.7; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: #fff;
  border-color: #bcd4f7;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.field__wrap { position: relative; display: block; }
.field__wrap input { padding-inline-end: 44px; }

.field__eye {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--soft);
}

.field__eye svg { width: 16px; height: 16px; }
.field__eye:hover { background: #eef2f8; color: var(--ink-2); }

/* ============================ دکمه‌ها ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12.8px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .62; pointer-events: none; }

/* ============================ چیدمان پنل ============================ */

.adm { display: flex; min-height: 100vh; min-height: 100dvh; }

.adm-side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  height: 100vh;
  height: 100dvh;
  position: sticky;
  inset-block-start: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  background: var(--card);
  border-inline-end: 1px solid var(--border);
  overflow-y: auto;
  z-index: 80;
}

.adm-side::-webkit-scrollbar { width: 4px; }
.adm-side::-webkit-scrollbar-thumb { background: #e6ecf5; }

.adm-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; margin-block-end: 4px; }

.adm-brand__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6);
}

.adm-brand__mark svg { width: 21px; height: 21px; }
.adm-brand__text { display: flex; flex-direction: column; min-width: 0; }
.adm-brand__text strong { font-size: 16px; font-weight: 800; line-height: 1.5; letter-spacing: -.2px; }
.adm-brand__text span { font-size: 11px; color: var(--soft); line-height: 1.5; }

.adm-brand__close {
  display: none;
  margin-inline-start: auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafc;
}

.adm-brand__close svg { width: 17px; height: 17px; }
.adm-nav { display: flex; flex-direction: column; }

.adm-nav__label {
  padding: 14px 12px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #a3b1c6;
  letter-spacing: .4px;
}

.adm-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  margin-block-end: 1px;
  border-radius: var(--radius-sm);
  color: #5b6b84;
  font-size: 12.8px;
  font-weight: 500;
  text-align: start;
  transition: background .16s ease, color .16s ease;
}

.adm-nav__icon { display: grid; place-items: center; flex-shrink: 0; opacity: .72; }
.adm-nav__icon svg { width: 17px; height: 17px; }
.adm-nav__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-nav__item:hover { background: #f8fafc; color: var(--text); }
.adm-nav__item:hover .adm-nav__icon { opacity: 1; }
.adm-nav__item.is-active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.adm-nav__item.is-active .adm-nav__icon { opacity: 1; }

.adm-nav__item.is-active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--blue-600);
}

.adm-nav__badge {
  margin-inline-start: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  background: #f1f5fb;
  color: var(--muted);
}

.adm-nav__item.is-active .adm-nav__badge { background: #dbeafe; color: var(--blue-700); }
.adm-side__foot { margin-top: auto; padding-top: 18px; }

.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  background: #f8fafc;
}

.adm-user__avatar,
.adm-profile__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.adm-user__text { min-width: 0; }
.adm-user__text strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.adm-user__text span { display: block; font-size: 10.5px; color: var(--soft); line-height: 1.2; }

.adm-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #5b6b84;
  font-size: 12.4px;
  font-weight: 500;
  transition: background .16s ease, color .16s ease;
}

.adm-back svg { width: 16px; height: 16px; flex-shrink: 0; }
.adm-back:hover { background: #fef2f2; color: var(--red); }

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

/* ============================ سربرگ ============================ */

.adm-top {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border);
}

.adm-top__menu { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--muted); }
.adm-top__menu svg { width: 19px; height: 19px; }
.adm-top__search { position: relative; flex: 1; max-width: 400px; }

.adm-top__search > svg {
  position: absolute;
  inset-inline-start: 13px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #9aabc4;
  pointer-events: none;
}

.adm-top__search input {
  width: 100%;
  height: 42px;
  padding-inline: 40px 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f8fafc;
  font-size: 13px;
  outline: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.adm-top__search input::placeholder { color: var(--soft); }

.adm-top__search input:focus {
  background: #fff;
  border-color: #bcd4f7;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.adm-top__search input::-webkit-search-cancel-button { display: none; }

.adm-top__clear {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--soft);
}

.adm-top__clear svg { width: 14px; height: 14px; }
.adm-top__clear:hover { background: #eef2f8; color: var(--ink-2); }

.adm-searchdrop {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + 8px);
  z-index: 70;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.adm-searchdrop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  text-align: start;
  transition: background .14s ease;
}

.adm-searchdrop__item:hover { background: #f8fafc; }
.adm-searchdrop__item .adm-avatar { width: 32px; height: 32px; font-size: 11.5px; }
.adm-searchdrop__text { min-width: 0; flex: 1; }
.adm-searchdrop__text strong { display: block; font-size: 12.6px; font-weight: 600; }
.adm-searchdrop__text span { display: block; font-size: 11px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-searchdrop__empty { padding: 18px 12px; text-align: center; font-size: 12px; color: var(--soft); }

.adm-top__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.adm-clock { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.adm-iconbtn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.adm-iconbtn svg { width: 18px; height: 18px; }
.adm-iconbtn:hover { background: #f8fafc; color: var(--blue-600); border-color: #dbe7fb; }
.adm-iconbtn.is-spinning svg { animation: admSpin .9s linear infinite; }

.adm-iconbtn--sm {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.adm-iconbtn--sm svg { width: 15px; height: 15px; }
.adm-iconbtn--sm:hover { background: #f8fafc; color: var(--blue-600); border-color: #dbe7fb; }
.adm-iconbtn--sm.is-danger:hover { background: var(--red-soft); color: var(--red); border-color: #fee2e2; }

.adm-profile { display: flex; align-items: center; gap: 9px; padding: 4px 5px 4px 10px; border-radius: 11px; }
.adm-profile__meta strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.adm-profile__meta span { display: block; font-size: 10.5px; color: var(--soft); line-height: 1.2; }

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

/* ============================ تب‌های موبایل ============================ */

.adm-tabs {
  display: none;
  gap: 4px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #fafbfd;
  border-block-end: 1px solid var(--border);
}

.adm-tabs::-webkit-scrollbar { height: 3px; }

.adm-tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .16s ease, color .16s ease;
}

.adm-tab:hover { background: #f1f5fb; color: var(--ink-2); }
.adm-tab.is-active { background: var(--blue-50); color: var(--blue-700); }

/* ============================ بدنه ============================ */

.adm-body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 24px 28px 48px; }
.adm-section { display: none; }

.adm-section.is-active { display: flex; flex-direction: column; gap: 20px; animation: admFade .28s ease; }

@keyframes admFade { from { opacity: 0; transform: translateY(6px); } }

.adm-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-section__head h2 { font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -.3px; }
.adm-section__head p { margin-block-start: 2px; font-size: 12.5px; color: var(--muted); }
.adm-section__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.adm-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.adm-btn:hover { background: var(--blue-700); }
.adm-btn[disabled], .adm-btn.is-busy { opacity: .6; pointer-events: none; }
.adm-btn--ghost { background: #fff; border-color: var(--border); color: #475569; }
.adm-btn--ghost:hover { background: #f8fafc; border-color: #dbe7fb; color: var(--blue-600); }
.adm-btn--soft { background: var(--blue-50); color: var(--blue-700); }
.adm-btn--soft:hover { background: #dbeafe; }
.adm-btn--danger { background: var(--red-soft); color: var(--red); border-color: #fee2e2; }
.adm-btn--danger:hover { background: #fee2e2; }

.adm-link { font-size: 12px; font-weight: 600; color: var(--blue-600); }
.adm-link:hover { color: var(--blue-700); text-decoration: underline; }

/* ============================ کارت‌های آماری ============================ */

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

.adm-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.adm-stat:hover { border-color: #dbe7fb; box-shadow: var(--shadow); }

.adm-stat__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.adm-stat__icon svg { width: 20px; height: 20px; }
.tone-blue { background: var(--blue-50); color: #2563eb; }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-teal { background: var(--teal-soft); color: var(--teal); }
.tone-rose { background: var(--red-soft); color: var(--red); }
.tone-slate { background: #f1f5f9; color: var(--muted); }

.adm-stat__body { display: flex; flex-direction: column; min-width: 0; }
.adm-stat__body b { font-size: 22px; font-weight: 800; line-height: 1.5; letter-spacing: -.3px; color: var(--text); }
.adm-stat__body span { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ============================ کارت و شبکه ============================ */

.adm-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.adm-card--pad { padding: 18px; }
.adm-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 14px; }
.adm-card--pad > .adm-card__head { margin-block-end: 16px; }
.adm-card__head > div { display: flex; flex-direction: column; min-width: 0; }
.adm-card__head strong { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.adm-card__head span { font-size: 11.5px; color: var(--soft); line-height: 1.6; }

.adm-grid { display: grid; gap: 16px; }
.adm-grid--chart { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.adm-grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.adm-stack { display: flex; flex-direction: column; gap: 16px; }

.adm-note {
  padding: 12px 14px;
  border: 1px solid #e3eefc;
  border-radius: var(--radius-sm);
  background: #f4f8ff;
  font-size: 11.8px;
  color: var(--ink-2);
  line-height: 1.9;
}

.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 16px; }

.adm-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 12px;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.adm-copy code { flex: 1; min-width: 0; overflow-x: auto; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ============================ جدول ============================ */

.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.adm-table thead th { padding: 11px 14px; font-size: 11px; font-weight: 600; color: var(--soft); text-align: start; white-space: nowrap; background: #fafbfd; border-block-end: 1px solid var(--border); }
.adm-table tbody td { padding: 12px 14px; font-size: 12.5px; border-block-end: 1px solid #f3f6fb; vertical-align: middle; }
.adm-table tbody tr { transition: background .15s ease; }
.adm-table tbody tr:hover { background: #fafcff; }
.adm-table tbody tr:last-child td { border-block-end: 0; }
.adm-table .is-end { text-align: end; }

.adm-cell-user { display: flex; align-items: center; gap: 10px; }

.adm-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.adm-avatar.is-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.adm-avatar.is-green { background: linear-gradient(135deg, #10b981, #047857); }
.adm-avatar.is-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.adm-avatar.is-rose { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.adm-avatar.is-teal { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.adm-avatar.is-slate { background: linear-gradient(135deg, #94a3b8, #64748b); }
.adm-cell-user__text { min-width: 0; }
.adm-cell-user__text strong { display: block; font-size: 12.8px; font-weight: 600; }
.adm-cell-user__text span { display: block; font-size: 10.8px; color: var(--soft); }
.adm-cell-actions { display: flex; gap: 4px; justify-content: flex-end; }

.adm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.adm-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.adm-chip.is-green { color: var(--green); background: var(--green-soft); }
.adm-chip.is-blue { color: var(--blue-600); background: var(--blue-50); }
.adm-chip.is-amber { color: var(--amber); background: var(--amber-soft); }
.adm-chip.is-rose { color: var(--red); background: var(--red-soft); }
.adm-chip.is-violet { color: var(--violet); background: var(--violet-soft); }
.adm-chip.is-slate { color: var(--muted); background: #f1f5f9; }
.adm-chip.is-plain::before { display: none; }

.adm-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: #f1f5f9; font-size: 11px; font-weight: 600; color: var(--muted); }
.adm-mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 11.8px; }
.adm-file-size { color: var(--soft); font-size: 11.5px; }
.adm-key { display: inline-flex; align-items: center; gap: 6px; }

/* ============================ نوار ابزار ============================ */

.adm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.adm-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 210px;
  max-width: 380px;
}

.adm-search svg { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; color: #9aabc4; pointer-events: none; }

.adm-search input {
  width: 100%;
  height: 40px;
  padding-inline: 36px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 12.5px;
  outline: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.adm-search input:focus { background: #fff; border-color: #bcd4f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.adm-search input::-webkit-search-cancel-button { display: none; }

.adm-select { display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.adm-select > span { font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.adm-select select { border: 0; background: transparent; font-size: 12.5px; font-weight: 500; outline: none; padding-inline-end: 2px; }
.adm-toolbar__count { margin-inline-start: auto; font-size: 11.5px; color: var(--soft); white-space: nowrap; }

/* ============================ فهرست رویداد ============================ */

.adm-feed { display: flex; flex-direction: column; }
.adm-feed--tall { max-height: 620px; overflow-y: auto; }

.adm-feed__item { display: flex; gap: 11px; position: relative; padding-block-end: 16px; }
.adm-feed__item:last-child { padding-block-end: 0; }

.adm-feed__item::before { content: ''; position: absolute; inset-inline-start: 15px; top: 30px; bottom: 0; width: 1px; background: #eef2f8; }
.adm-feed__item:last-child::before { display: none; }

.adm-feed__dot { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; z-index: 1; }
.adm-feed__dot svg { width: 15px; height: 15px; }
.adm-feed__dot.tone-blue { background: var(--blue-50); color: #2563eb; }
.adm-feed__dot.tone-green { background: var(--green-soft); color: var(--green); }
.adm-feed__dot.tone-amber { background: var(--amber-soft); color: var(--amber); }
.adm-feed__dot.tone-violet { background: var(--violet-soft); color: var(--violet); }
.adm-feed__dot.tone-rose { background: var(--red-soft); color: var(--red); }
.adm-feed__dot.tone-slate { background: #f1f5f9; color: var(--muted); }
.adm-feed__body { min-width: 0; }
.adm-feed__body p { font-size: 12px; font-weight: 500; line-height: 1.8; color: var(--ink-2); }
.adm-feed__body p b { font-weight: 700; color: var(--text); }
.adm-feed__body span { font-size: 10.5px; color: var(--soft); }

/* ============================ فهرست رتبه‌بندی ============================ */

.adm-toplist { display: flex; flex-direction: column; gap: 10px; }

.adm-toplist__row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.adm-toplist__row .adm-avatar { width: 32px; height: 32px; font-size: 11px; }
.adm-toplist__body { flex: 1; min-width: 0; }
.adm-toplist__body strong { display: block; font-size: 12.6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-toplist__body span { display: block; font-size: 10.8px; color: var(--soft); }
.adm-toplist__value { font-size: 14px; font-weight: 800; color: var(--blue-700); flex-shrink: 0; }
.adm-toplist__value small { font-size: 10.5px; font-weight: 600; color: var(--soft); }

/* ============================ خالی و اسکلت ============================ */

.adm-empty { display: grid; place-items: center; gap: 6px; padding: 42px 20px; text-align: center; }
.adm-empty svg { width: 40px; height: 40px; color: #cbd5e1; }
.adm-empty strong { font-size: 13.5px; font-weight: 700; }
.adm-empty span { font-size: 11.5px; color: var(--soft); max-width: 340px; line-height: 1.8; }
.adm-skeleton-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.adm-skeleton-list span { display: block; height: 44px; border-radius: var(--radius-sm); background: linear-gradient(90deg, #f2f6fb, #e9eff8, #f2f6fb); background-size: 220% 100%; animation: admShimmer 1.3s linear infinite; }
@keyframes admShimmer { to { background-position: -220% 0; } }

/* ============================ سوییچ، محیط، پاصفحه ============================ */

.adm-switch { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.adm-switch__text { flex: 1; min-width: 0; }
.adm-switch__text strong { display: block; font-size: 12.5px; font-weight: 600; }
.adm-switch__text span { display: block; font-size: 11px; color: var(--soft); }
.adm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-switch__track { position: relative; flex-shrink: 0; width: 40px; height: 22px; border-radius: 22px; background: #cbd5e1; transition: background .2s ease; cursor: pointer; }
.adm-switch__track::before { content: ''; position: absolute; inset-inline-start: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.adm-switch input:checked + .adm-switch__track { background: var(--blue-600); }
.adm-switch input:checked + .adm-switch__track::before { transform: translateX(-18px); }
[dir='ltr'] .adm-switch input:checked + .adm-switch__track::before { transform: translateX(18px); }

.adm-field { display: flex; flex-direction: column; gap: 6px; margin-block-end: 12px; }
.adm-field > span { font-size: 11.5px; font-weight: 600; color: #475569; }

.adm-field input,
.adm-field textarea,
.adm-field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 12.5px;
  outline: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.adm-field textarea { height: auto; min-height: 82px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.adm-field input:focus, .adm-field textarea:focus, .adm-field select:focus { background: #fff; border-color: #bcd4f7; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }

.adm-env { display: flex; flex-direction: column; gap: 8px; }
.adm-env li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); }
.adm-env li svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--soft); }
.adm-env li.is-ok svg { color: var(--green); }
.adm-env li.is-bad svg { color: var(--red); }
.adm-env li b { margin-inline-start: auto; font-size: 11.5px; font-weight: 600; color: var(--soft); }

.adm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 28px 26px; border-block-start: 1px solid var(--border); font-size: 11px; color: var(--soft); }

/* ============================ مودال و توست ============================ */

.adm-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.adm-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 30, 53, .42); backdrop-filter: blur(3px); }

.adm-modal__card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px -34px rgba(15, 30, 53, .45);
  animation: admModal .22s ease;
}

@keyframes admModal { from { opacity: 0; transform: translateY(10px); } }

.adm-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-block-end: 1px solid var(--border); }
.adm-modal__head strong { font-size: 14.5px; font-weight: 700; }
.adm-modal__form { display: flex; flex-direction: column; min-height: 0; }
.adm-modal__body { padding: 18px; overflow-y: auto; }
.adm-modal__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-block-start: 1px solid var(--border); }
.adm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.adm-secret { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px dashed #bcd4f7; border-radius: var(--radius-sm); background: #f4f8ff; }
.adm-secret code { flex: 1; min-width: 0; overflow-x: auto; font-size: 12.5px; white-space: nowrap; color: var(--blue-700); }
.adm-warn { padding: 11px 13px; border: 1px solid #fde68a; border-radius: var(--radius-sm); background: var(--amber-soft); color: #92400e; font-size: 12px; line-height: 1.8; }

.adm-drop { display: grid; place-items: center; gap: 8px; padding: 26px 16px; border: 1.5px dashed #cbd5e1; border-radius: var(--radius); background: #fafcff; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.adm-drop:hover, .adm-drop.is-over { border-color: var(--blue-500); background: var(--blue-50); }
.adm-drop svg { width: 32px; height: 32px; color: var(--blue-500); }
.adm-drop strong { font-size: 13px; font-weight: 700; }
.adm-drop span { font-size: 11.5px; color: var(--soft); }
.adm-drop input[type='file'] { display: none; }

.adm-toasts { position: fixed; inset-block-end: 20px; inset-inline-start: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.adm-toast { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: var(--radius-sm); background: #0f1e35; color: #fff; font-size: 12.4px; font-weight: 500; box-shadow: var(--shadow-lg); animation: admToast .24s ease; }
.adm-toast.is-success { background: #065f46; }
.adm-toast.is-error { background: #991b1b; }
.adm-toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes admToast { from { opacity: 0; transform: translateY(10px); } }

.adm-copy.is-done { border-color: #a7f3d0; background: var(--green-soft); }

[hidden] { display: none !important; }

/* ============================ واکنش‌گرا ============================ */

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

@media (max-width: 1100px) {
  .adm-grid--chart,
  .adm-grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .adm-side {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    height: 100vh;
    height: 100dvh;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -20px 0 50px -20px rgba(15, 30, 53, .25);
  }
  .adm.is-drawer-open .adm-side { transform: translateX(0); }
  .adm-top__menu { display: grid; }
  .adm-brand__close { display: grid; }
  .adm-tabs { display: flex; }
  .adm-top { padding: 11px 18px; }
  .adm-body { padding: 20px 18px 44px; }
  .adm-foot { padding: 16px 18px 22px; }
  .adm-backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(15, 30, 53, .35); backdrop-filter: blur(2px); }
}

@media (max-width: 720px) {
  .adm-profile__meta { display: none; }
  .adm-clock { display: none; }
  .adm-top__search { max-width: none; }
  .adm-form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .adm-stats { grid-template-columns: minmax(0, 1fr); }
  .adm-body { padding: 16px 14px 40px; gap: 14px; }
  .adm-section { gap: 14px; }
  .adm-top { padding: 10px 14px; gap: 9px; }
  .adm-section__head h2 { font-size: 19px; }
  .adm-section__head { align-items: flex-start; }
  .adm-section__actions { width: 100%; }
  .adm-section__actions .adm-btn { flex: 1; justify-content: center; }
  .adm-card--pad { padding: 15px; }
  .adm-card__head { margin-block-end: 12px; }
  .adm-search { max-width: none; }
  .adm-toolbar__count { margin-inline-start: 0; width: 100%; }
  .adm-profile { padding-inline-end: 2px; }
  .adm-toasts { inset-inline: 14px; inset-block-end: 14px; }
  .adm-modal { padding: 12px; }
  .adm-modal__card { max-height: 92vh; }
  .adm-secret code, .adm-copy code { font-size: 11.5px; }
}

/* جدول در موبایل به کارت تبدیل می‌شود. */
@media (max-width: 860px) {
  .adm-table { min-width: 0; }
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tbody tr { margin-block-end: 12px; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
  .adm-table tbody tr:last-child { margin-block-end: 0; }
  .adm-table tbody td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; font-size: 12.4px; }
  .adm-table tbody td::before { content: attr(data-label); font-size: 11.3px; font-weight: 600; color: var(--soft); flex-shrink: 0; }
  .adm-table tbody td.adm-cell-user { justify-content: flex-start; }
  .adm-table tbody td.adm-cell-user::before { display: none; }
  .adm-table tbody td.adm-cell-actions { justify-content: flex-end; padding-block-start: 9px; margin-block-start: 5px; border-block-start: 1px solid #f3f6fb; }
  .adm-table tbody td.adm-cell-actions::before { display: none; }
  .adm-table-wrap { overflow: visible; }
}

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