/* Xten Bazar Admin — CRM-style dashboard (sidebar + topbar) */
:root {
  --admin-accent: #e53935;
  --admin-accent-hover: #c62828;
  --admin-accent-soft: color-mix(in srgb, var(--admin-accent) 12%, transparent);
  --admin-bg: #f8f9fa;
  --admin-surface: #ffffff;
  --admin-drop-surface: #ffffff;
  --admin-border: #e8eaed;
  --admin-text: #1f2937;
  --admin-text-muted: #6b7280;
  --admin-sidebar-w: 260px;
  --admin-top-h: 60px;
  --admin-radius: 10px;
  --admin-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --admin-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  /* Card / table strip (card-header, admin-card__head, thead) */
  --admin-card-cap-bg: #f3f4f6;
  --status-won: #22c55e;
  --status-lost: #ef4444;
  --status-open: #3b82f6;
  --status-warn: #eab308;
}

/* Platform admin (admin/) — indigo/slate identity; distinct from seller merchant UI */
/* Surfaces (--admin-bg, card strip) must not override html.admin-theme-dark; only in light: */
body.admin-app--platform {
  --admin-accent: #F44336;
  --admin-accent-hover: #e23124;
  --admin-accent-soft: color-mix(in srgb, var(--admin-accent) 14%, transparent);
}

html:not(.admin-theme-dark) body.admin-app--platform {
  --admin-bg: #ffffff;
  --admin-card-cap-bg: #f0f0f0;
}

body.admin-app--platform .admin-sidebar {
  border-right: 0;
  box-shadow: inset 3px 0 0 0 var(--admin-accent), 1px 0 0 var(--admin-border);
}

body.admin-app--platform .admin-sidebar__logo-bit--a {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}

body.admin-app--platform .admin-sidebar__logo-bit--b {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

body.admin-app--platform .admin-sidebar__logo-bit--c {
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

body.admin-app--platform .admin-sidebar__user-avatar {
  background: linear-gradient(135deg, #312e81, #6366f1);
}

/* Seller panel — warm light surfaces only (dark uses tokens from html.admin-theme-dark) */
html:not(.admin-theme-dark) body.admin-app--merchant {
  --admin-bg: #ffffff;
  /* --admin-card-cap-bg: #f1ede9; */
}

body.admin-app--merchant .admin-sidebar__user-avatar {
  background: linear-gradient(135deg, #dc2626, #ea580c);
}

html:not(.admin-theme-dark) {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 5px;
}

/* Track (background) */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

/* Thumb (scroll handle) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #33333342, #0000005e);
  border-radius: 3px;
  transition: 0.3s;
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #555, #222);
}

html.admin-theme-dark ::-webkit-scrollbar-track {
  background: #1c1c1c;
}

html.admin-theme-dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #454545, #2f2f2f);
}

html.admin-theme-dark ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5c5c5c, #383838);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: 15px;
}

body.admin-app {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----- Layout ----- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--admin-sidebar-w);
  flex-shrink: 0;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 200;
  transition: transform 0.25s ease;
  overflow: hidden;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--admin-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: var(--admin-shadow);
}

.admin-sidebar__logo-bit {
  display: block;
  border-radius: 3px;
}

.admin-sidebar__logo-bit--a {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.admin-sidebar__logo-bit--b {
  background: linear-gradient(135deg, var(--admin-accent), #f97316);
}

.admin-sidebar__logo-bit--c {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 10px;
  background: linear-gradient(90deg, #22c55e, #eab308);
}

.admin-sidebar__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-sidebar__subtitle {
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Mobile drawer: account strip (hidden on desktop — duplicate of topbar pill) */
.admin-sidebar__user {
  display: none;
}

.admin-sidebar__user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar__user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-sidebar__user-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.admin-sidebar__user-email {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.admin-sidebar__signout {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--admin-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--admin-accent);
  transition: background 0.15s, border-color 0.15s;
}

.admin-sidebar__signout:hover {
  background: var(--admin-accent-hover);
  border-color: var(--admin-accent-hover);
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.admin-nav__label {
  padding: 14px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
}

.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 2px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--admin-text);
  transition: background 0.15s, color 0.15s;
}

.admin-nav__link svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-nav__link:hover {
  background: #f3f4f6;
}

.admin-nav__link--active {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  font-weight: 600;
}

.admin-nav__link--active svg {
  opacity: 1;
  stroke: var(--admin-accent);
}

.admin-nav__link--active:hover {
  background: color-mix(in srgb, var(--admin-accent) 18%, transparent);
  color: var(--admin-accent-hover);
}

.admin-nav__link--active:hover svg {
  stroke: var(--admin-accent-hover);
}

.admin-nav__group {
  margin: 4px 10px;
}

.admin-nav__parent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--admin-text);
  font-weight: 500;
}

.admin-nav__parent svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-nav__group--active .admin-nav__parent {
  color: var(--admin-accent);
}

.admin-nav__group--active .admin-nav__parent svg {
  opacity: 1;
  stroke: var(--admin-accent);
}

.admin-nav__sublink {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0 30px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--admin-text-muted);
  transition: background 0.15s, color 0.15s;
}

.admin-nav__sublink svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-nav__sublink:hover {
  background: #f3f4f6;
  color: var(--admin-text);
}

.admin-nav__sublink--active {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  font-weight: 600;
}

.admin-nav__sublink--active svg {
  opacity: 1;
}

.admin-nav__sublink--active:hover {
  background: color-mix(in srgb, var(--admin-accent) 18%, transparent);
  color: var(--admin-accent-hover);
}

.admin-main-wrap {
  flex: 1;
  margin-left: var(--admin-sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: var(--admin-top-h);
  background: var(--admin-drop-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.admin-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0 14px;
  max-width: 360px;
  width: 100%;
  height: 40px;
  border: 1px solid transparent;
  margin: 0;
}

.admin-search:focus-within {
  border-color: var(--admin-border);
  background: #fff;
}

.admin-search input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  outline: none;
  color: var(--admin-text);
}

.admin-search input::placeholder {
  color: #9ca3af;
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Apps menu: opens on hover or keyboard focus-within */
.admin-apps-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-apps-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 80;
  padding-top: 8px;
  min-width: 420px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.admin-apps-wrap:hover .admin-apps-dropdown,
.admin-apps-wrap:focus-within .admin-apps-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-apps-dropdown__inner {
  background: var(--admin-drop-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: var(--admin-shadow-card);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-apps-dropdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 80px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--admin-text);
  background: var(--admin-bg-surface, #fff);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-apps-dropdown__item span {
  text-align: center;
}

.admin-apps-dropdown__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(17, 24, 39, 0.04);
  color: var(--admin-text-muted);
}

@media (max-width: 640px) {
  .admin-apps-dropdown {
    min-width: min(360px, calc(100vw - 24px));
    right: 0;
  }

  .admin-apps-dropdown__inner {
    grid-template-columns: 1fr;
  }
}

.admin-apps-dropdown__item:hover {
  background: #f8fafc;
  border-color: #d4d7dd;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.admin-apps-dropdown__item:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.admin-apps-wrap:hover .admin-apps-wrap__btn,
.admin-apps-wrap:focus-within .admin-apps-wrap__btn {
  background: #f3f4f6;
  color: var(--admin-text);
}

html.admin-theme-dark .admin-apps-dropdown__item:hover {
  background: #222222;
  border-color: #2f2f2f;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

html.admin-theme-dark .admin-apps-dropdown__item {
  background: #181818;
  border-color: #2a2a2a;
}

html.admin-theme-dark .admin-apps-dropdown__icon {
  background: #202020;
  border-color: #2f2f2f;
}

html.admin-theme-dark .admin-apps-wrap:hover .admin-apps-wrap__btn,
html.admin-theme-dark .admin-apps-wrap:focus-within .admin-apps-wrap__btn {
  background: #222222;
  color: var(--admin-text);
}

/* Notifications panel: hover / focus-within (same behaviour as Apps) */
.admin-notify-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-notify-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 80;
  padding-top: 8px;
  width: min(340px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.admin-notify-wrap:hover .admin-notify-dropdown,
.admin-notify-wrap:focus-within .admin-notify-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-notify-dropdown__inner {
  background: var(--admin-drop-surface);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  box-shadow: var(--admin-shadow-card);
  overflow: hidden;
}

.admin-notify-dropdown__head {
  padding: 12px 14px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
}

.admin-notify-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.admin-notify-list>li {
  margin: 0;
}

.admin-notify-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.admin-notify-row:hover {
  background: #f3f4f6;
}

.admin-notify-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--admin-accent);
}

.admin-notify-row__dot--muted {
  background: #94a3b8;
}

.admin-notify-row__dot--warn {
  background: #f59e0b;
}

.admin-notify-row__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-notify-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.admin-notify-row__title {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.35;
}

.admin-notify-row__when {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  color: var(--admin-text-muted);
  white-space: nowrap;
}

.admin-notify-row__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.admin-notify-dropdown__foot {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-accent);
  border-top: 1px solid var(--admin-border);
  text-decoration: none;
}

.admin-notify-dropdown__foot:hover {
  background: var(--admin-accent-soft);
}

.admin-notify-wrap:hover .admin-notify-wrap__btn,
.admin-notify-wrap:focus-within .admin-notify-wrap__btn {
  background: #f3f4f6;
  color: var(--admin-text);
}

html.admin-theme-dark .admin-notify-row:hover {
  background: #222222;
}

html.admin-theme-dark .admin-notify-wrap:hover .admin-notify-wrap__btn,
html.admin-theme-dark .admin-notify-wrap:focus-within .admin-notify-wrap__btn {
  background: #222222;
  color: var(--admin-text);
}

.admin-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--admin-text-muted);
  transition: background 0.15s, color 0.15s;
}

.admin-icon-btn:hover {
  background: #f3f4f6;
  color: var(--admin-text);
}

.admin-icon-btn--notify {
  position: relative;
}

.admin-icon-btn--notify::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--admin-accent);
  border: 2px solid #fff;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #f3f4f6;
  margin-left: 4px;
}

.admin-user-pill__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.admin-user-pill__meta {
  display: none;
}

@media (min-width: 900px) {
  .admin-user-pill__meta {
    display: flex;
    line-height: 1.2;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-pill__name {
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-user-pill__role {
    font-size: 11px;
    color: var(--admin-text-muted);
  }
}

/* User pill: account dropdown on hover / focus-within */
.admin-user-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.admin-user-wrap__btn.admin-user-pill {
  border: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.admin-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 80;
  padding-top: 8px;
  min-width: 260px;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.admin-user-wrap:hover .admin-user-dropdown,
.admin-user-wrap:focus-within .admin-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-user-wrap:hover .admin-user-wrap__btn,
.admin-user-wrap:focus-within .admin-user-wrap__btn {
  background: #e8eaed;
}

.admin-user-dropdown__inner {
  background: var(--admin-drop-surface);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  box-shadow: var(--admin-shadow-card);
  overflow: hidden;
}

.admin-user-dropdown__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-user-dropdown__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.3;
}

.admin-user-dropdown__email {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  word-break: break-all;
}

.admin-user-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.admin-user-dropdown__list>li {
  margin: 0;
}

.admin-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: background 0.12s;
  box-sizing: border-box;
}

a.admin-user-dropdown__item:hover {
  background: #f3f4f6;
}

.admin-user-dropdown__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--admin-text-muted);
}

.admin-user-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-user-dropdown__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-user-dropdown__hint {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
}

.admin-user-dropdown__item--disabled {
  cursor: default;
  opacity: 0.65;
}

.admin-user-dropdown__item--logout .admin-user-dropdown__icon,
.admin-user-dropdown__item--logout .admin-user-dropdown__label {
  color: var(--admin-accent);
}

.admin-user-dropdown__item--logout:hover {
  background: var(--admin-accent-soft);
}

.admin-content {
  flex: 1;
  padding: 22px 24px 28px;
}

/* ----- Page header (Dashboard title row) ----- */
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-page-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page-head__intro {
  min-width: 0;
}

.admin-page-head__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-accent);
  margin-bottom: 6px;
}

.admin-page-head__lede {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--admin-text-muted);
  line-height: 1.45;
  /* max-width: 42ch; */
}

/* ----- Settings page ----- */
/* .admin-settings-page {
  max-width: 1120px;
} */

.admin-settings-cols {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}

@media (min-width: 960px) {
  .admin-settings-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.admin-settings-cols>.admin-settings-card {
  min-width: 0;
  height: 100%;
}

.admin-settings-card>.card-header.admin-settings-card-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-settings-card-head {
  width: 100%;
}

.admin-settings-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-settings-card-title-row .admin-card__title-icon {
  flex-shrink: 0;
}

.admin-settings-card-head-text .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-settings-card-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
  line-height: 1.45;
}

.admin-settings-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-settings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 1.35rem;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
}

.admin-settings-summary__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.admin-settings-summary__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.35;
}

.admin-settings-summary__value--id {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-settings-summary__value--date {
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}

.admin-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-field__hint {
  margin-top: -2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  line-height: 1.35;
}

.admin-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  color: var(--admin-text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input:hover {
  border-color: #d1d5db;
}

.admin-input:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.admin-form-actions--spaced {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border);
}

.admin-form-grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .admin-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-inline-code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82em;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--admin-text);
}

.admin-settings-store {
  margin-bottom: 0;
}

.admin-settings-store>.card-header.admin-settings-card-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-settings-store .card-subtitle {
  max-width: none;
}

/* ----- Settings page — CRMS-style (profile-settings layout) ----- */
.admin-settings-page--crms {
  max-width: none;
  width: 100%;
}

.admin-settings-crms-head {
  margin-bottom: 20px;
}

.admin-settings-crms-head__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-accent);
}

.admin-settings-crms-head__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-settings-crms-head__lede {
  margin: 0;
  max-width: 48ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--admin-text-muted);
}

.admin-settings-crms-card {
  overflow: visible;
}

.admin-settings-crms-card>.admin-settings-crms-tabs {
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-card-cap-bg);
}

.admin-settings-crms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
}

.admin-settings-crms-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px 12px;
  margin-bottom: -1px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.admin-settings-crms-tab:hover {
  color: var(--admin-text);
  background: color-mix(in srgb, var(--admin-surface) 65%, transparent);
}

#admin-tab-profile:checked~.admin-settings-crms-tabs label[for="admin-tab-profile"],
#admin-tab-security:checked~.admin-settings-crms-tabs label[for="admin-tab-security"],
#admin-tab-store:checked~.admin-settings-crms-tabs label[for="admin-tab-store"],
#admin-tab-email:checked~.admin-settings-crms-tabs label[for="admin-tab-email"],
#admin-tab-payments:checked~.admin-settings-crms-tabs label[for="admin-tab-payments"] {
  color: var(--admin-accent);
  background: var(--admin-surface);
  border-color: var(--admin-border);
  border-bottom-color: var(--admin-surface);
  box-shadow: 0 -1px 0 var(--admin-surface);
}

.admin-settings-crms-panels {
  padding: 22px 22px 26px;
  background: var(--admin-surface);
}

.admin-settings-crms-panel {
  display: none;
  animation: admin-settings-crms-fade 0.2s ease;
}

@keyframes admin-settings-crms-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-settings-crms-panel {
    animation: none;
  }
}

#admin-tab-profile:checked~.admin-settings-crms-panels .admin-settings-crms-panel--profile,
#admin-tab-security:checked~.admin-settings-crms-panels .admin-settings-crms-panel--security,
#admin-tab-store:checked~.admin-settings-crms-panels .admin-settings-crms-panel--store,
#admin-tab-email:checked~.admin-settings-crms-panels .admin-settings-crms-panel--email,
#admin-tab-payments:checked~.admin-settings-crms-panels .admin-settings-crms-panel--payments {
  display: block;
}

.admin-settings-crms-section__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-settings-crms-section__hint {
  margin: 0 0 20px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--admin-text-muted);
}

.admin-settings-crms-avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-settings-crms-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #312e81, #6366f1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.admin-settings-crms-avatar-meta {
  flex: 1;
  min-width: 0;
}

.admin-settings-crms-avatar-meta__title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.admin-settings-crms-avatar-meta__hint {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--admin-text-muted);
}

.admin-settings-summary--crms {
  margin-bottom: 22px;
}

.admin-settings-crms-form-grid {
  display: grid;
  gap: 16px 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .admin-settings-crms-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-settings-crms-field-span2 {
    grid-column: 1 / -1;
  }
}

.admin-settings-crms-req {
  color: #ef4444;
  font-weight: 700;
}

.admin-settings-crms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
}

.admin-settings-crms-panel--security .admin-form-stack--narrow {
  max-width: 480px;
}

html.admin-theme-dark .admin-settings-crms-card>.admin-settings-crms-tabs {
  background: rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark #admin-tab-profile:checked~.admin-settings-crms-tabs label[for="admin-tab-profile"],
html.admin-theme-dark #admin-tab-security:checked~.admin-settings-crms-tabs label[for="admin-tab-security"],
html.admin-theme-dark #admin-tab-store:checked~.admin-settings-crms-tabs label[for="admin-tab-store"],
html.admin-theme-dark #admin-tab-email:checked~.admin-settings-crms-tabs label[for="admin-tab-email"],
html.admin-theme-dark #admin-tab-payments:checked~.admin-settings-crms-tabs label[for="admin-tab-payments"] {
  color: var(--admin-accent);
  background: var(--admin-surface);
  border-color: var(--admin-border);
  border-bottom-color: var(--admin-surface);
}

/* —— Email / SMTP settings panel —— */
.admin-mail-section .admin-settings-crms-section__title {
  margin-bottom: 4px;
}

.admin-mail-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 18px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--admin-accent) 8%, transparent), transparent 55%),
    var(--admin-card-cap-bg);
}

@media (min-width: 860px) {
  .admin-mail-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
    align-items: stretch;
  }
}

.admin-mail-hero__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-accent);
}

.admin-mail-hero__hint {
  margin-bottom: 0;
  max-width: 46rem;
}

.admin-mail-status {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.admin-mail-status__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-mail-status__pill--ok {
  color: #166534;
  background: color-mix(in srgb, #22c55e 16%, transparent);
}

.admin-mail-status__pill--warn {
  color: #92400e;
  background: color-mix(in srgb, #eab308 20%, transparent);
}

.admin-mail-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.admin-mail-status__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.admin-mail-status__meta dt {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
}

.admin-mail-status__meta dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--admin-text);
  word-break: break-word;
}

.admin-mail-layout {
  display: grid;
  gap: 16px;
}

.admin-mail-card {
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface);
  overflow: hidden;
  box-shadow: var(--admin-shadow);
}

.admin-mail-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  background: color-mix(in srgb, var(--admin-card-cap-bg) 88%, var(--admin-surface));
}

.admin-mail-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--admin-accent);
  background: var(--admin-accent-soft);
}

.admin-mail-card__title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--admin-text);
}

.admin-mail-card__lede {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--admin-text-muted);
}

.admin-mail-card__body {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.admin-mail-field-full {
  display: block;
}

.admin-mail-secure__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .admin-mail-secure__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-mail-secure__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 11px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--admin-card-cap-bg) 55%, var(--admin-surface));
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-mail-secure__tile:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 45%, var(--admin-border));
}

.admin-mail-secure__tile.is-selected {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--admin-accent) 35%, transparent);
}

.admin-mail-secure__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-mail-secure__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-mail-secure__hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--admin-text-muted);
}

.admin-mail-toggles {
  gap: 10px;
}

.admin-mail-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--admin-card-cap-bg) 40%, var(--admin-surface));
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-mail-toggle:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 40%, var(--admin-border));
}

.admin-mail-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--admin-accent) 55%, var(--admin-border));
  background: var(--admin-accent-soft);
}

.admin-mail-toggle>input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-mail-toggle__ui {
  position: relative;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--admin-text-muted) 28%, transparent);
  transition: background 0.15s ease;
}

.admin-mail-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.admin-mail-toggle:has(input:checked) .admin-mail-toggle__ui {
  background: var(--admin-accent);
}

.admin-mail-toggle:has(input:checked) .admin-mail-toggle__ui::after {
  transform: translateX(18px);
}

.admin-mail-toggle__title {
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-mail-toggle__hint {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--admin-text-muted);
}

.admin-mail-actions {
  margin-top: 18px;
}

html.admin-theme-dark .admin-mail-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--admin-accent) 14%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.03);
}

html.admin-theme-dark .admin-mail-status,
html.admin-theme-dark .admin-mail-card {
  background: var(--admin-surface);
}

html.admin-theme-dark .admin-mail-status__pill--ok {
  color: #86efac;
}

html.admin-theme-dark .admin-mail-status__pill--warn {
  color: #fde68a;
}

html.admin-theme-dark .admin-mail-secure__tile,
html.admin-theme-dark .admin-mail-toggle {
  background: rgba(255, 255, 255, 0.03);
}

/* background: var(--admin-surface);
  border-bottom-color: var(--admin-surface);
  box-shadow: 0 -1px 0 var(--admin-surface);
} */

html.admin-theme-dark .admin-settings-crms-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ----- Admin payment gateways (Settings → Payments) ----- */
.admin-pgw-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.admin-pgw-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.admin-pgw-step--active .admin-pgw-step__n {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}

.admin-pgw-step__n {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.06);
  color: var(--admin-text-muted);
}

.admin-pgw-fieldset {
  border: none;
  margin: 0 0 26px;
  padding: 0;
}

.admin-pgw-fieldset:last-of-type {
  margin-bottom: 0;
}

.admin-pgw-legend {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--admin-text);
  padding: 0;
  margin: 0 0 10px;
}

.admin-pgw-hint {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--admin-text-muted);
}

.admin-pgw-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.admin-pgw-gateway-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--admin-radius, 10px);
  border: 2px solid var(--admin-border);
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-pgw-gateway-tile:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 35%, var(--admin-border));
}

.admin-pgw-gateway-tile.is-selected {
  border-color: color-mix(in srgb, var(--admin-accent) 55%, var(--admin-border));
  background: var(--admin-accent-soft);
}

.admin-pgw-gateway-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.admin-pgw-gateway-tile__title {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--admin-text);
}

.admin-pgw-gateway-tile__hint {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--admin-text-muted);
}

.admin-pgw-form-row {
  margin-bottom: 14px;
}

.admin-pgw-form-row--stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-pgw-form-row label,
.admin-pgw-form-row--stack label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--admin-text);
}

.admin-pgw-label-hint {
  font-weight: 500;
  color: var(--admin-text-muted);
  font-size: 0.85em;
}

.admin-pgw-webhook-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.admin-pgw-webhook-input {
  flex: 1;
  min-width: 200px;
  font-size: 0.82rem;
}

.admin-pgw-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.admin-pgw-summary__label {
  color: var(--admin-text-muted);
  font-weight: 600;
}

.admin-pgw-summary__val {
  color: var(--admin-text);
}

html.admin-theme-dark .admin-pgw-gateway-tile {
  background: rgba(30, 41, 59, 0.25);
  border-color: rgba(243, 243, 243, 0.1);
}

html.admin-theme-dark .admin-pgw-step__n {
  background: rgba(255, 255, 255, 0.06);
}

/* ----- Users & Orders list pages (card-header + search — seller-style) ----- */
.admin-users-page,
.admin-orders-page {
  max-width: 1280px;
}

.admin-orders-kpi-grid,
.admin-users-kpi-grid,
.admin-earnings-kpi-grid,
.admin-pa-kpi-grid,
.admin-sellers-kpi-grid,
.admin-kyc-kpi-grid,
.admin-wd-kpi-grid,
.admin-deletions-kpi-grid,
.admin-seller-view-kpi-grid {
  margin-bottom: 20px;
}

.admin-orders-kpi .admin-orders-kpi__label,
.admin-users-kpi .admin-users-kpi__label,
.admin-earnings-kpi .admin-earnings-kpi__label,
.admin-pa-kpi .admin-pa-kpi__label,
.admin-sellers-kpi .admin-sellers-kpi__label,
.admin-kyc-kpi .admin-kyc-kpi__label,
.admin-wd-kpi .admin-wd-kpi__label,
.admin-deletions-kpi .admin-deletions-kpi__label,
.admin-seller-view-kpi .admin-seller-view-kpi__label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--admin-text-muted);
}

/* ----- Product approvals ----- */
.admin-product-approvals-page {
  max-width: 1280px;
}

.admin-pa-flash {
  margin-bottom: 18px;
}

.admin-pa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-pa-tab {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-pa-tab:hover {
  border-color: #d1d5db;
  background: #fafbfc;
}

.admin-pa-tab--active {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--admin-accent) 15%, transparent);
}

.admin-pa-tab__label {
  line-height: 1.2;
}

.admin-pa-tab__meta {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--admin-text-muted);
  font-variant-numeric: tabular-nums;
}

.admin-pa-tab--active .admin-pa-tab__meta {
  background: color-mix(in srgb, var(--admin-accent) 18%, transparent);
  color: var(--admin-accent);
}

.admin-pa-table-card {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-pa-table-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-pa-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-pa-table-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-pa-table-head .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-pa-table-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
  line-height: 1.45;
}

.admin-pa-search-wrap {
  max-width: 380px;
}

.admin-pa-product {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.admin-pa-product__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  flex-shrink: 0;
  background: var(--admin-bg);
}

.admin-pa-product__thumb--placeholder {
  display: grid;
  place-items: center;
  color: var(--admin-text-muted);
  background: linear-gradient(145deg, #f3f4f6 0%, #e8eaed 100%);
}

.admin-pa-product__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-pa-product__name {
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.35;
}

.admin-pa-product__meta,
.admin-pa-product__sku {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  line-height: 1.35;
}

.admin-pa-seller {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  max-width: 18rem;
}

.admin-pa-seller__name {
  font-weight: 500;
  color: var(--admin-text);
}

.admin-pa-seller__email {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  word-break: break-word;
}

.admin-pa-seller__biz {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.admin-pa-seller__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-accent);
  margin-top: 2px;
}

.admin-pa-seller__link:hover {
  text-decoration: underline;
}

.admin-pa-price {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-pa-mrp {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.admin-pa-inactive-flag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}

.admin-pa-actions {
  display: flex;
  /* flex-direction: column; */
  align-items: stretch;
  gap: 8px;
  min-width: 112px;
}

.admin-pa-actions__form {
  margin: 0;
}

.admin-pa-actions__btn {
  width: 100%;
  justify-content: center;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

.admin-pa-actions__btn--icon {
  min-height: 34px;
  padding: 8px !important;
}

.admin-pa-actions__btn--icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.admin-pa-actions__btn--reject {
  border: 1px solid #fca5a5 !important;
  background: #fff !important;
  color: #b91c1c !important;
}

.admin-pa-actions__btn--reject:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.admin-pa-no-match-row {
  display: none;
}

.admin-pa-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-pa-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-pa-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-pa-footnote {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed var(--admin-border);
  background: rgba(243, 244, 246, 0.65);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--admin-text-muted);
  max-width: 48rem;
}

.admin-pa-footnote strong {
  color: var(--admin-text);
}

/* ----- Sellers list ----- */
.admin-sellers-page {
  max-width: 1280px;
}

.admin-seller-view-page {
  max-width: 1280px;
}

.admin-seller-view-page .admin-page-head {
  margin-bottom: 20px;
}

.admin-seller-view-kpi__lead {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
}

.admin-seller-view-kpi__status {
  font-size: 1rem;
  line-height: 1.35;
}

.admin-sellers-flash {
  margin-bottom: 18px;
}

.admin-sellers-table-card {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-sellers-table-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-sellers-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-sellers-table-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-sellers-table-head .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-sellers-table-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
  line-height: 1.45;
}

.admin-sellers-search-wrap {
  max-width: 380px;
}

.admin-sellers-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-sellers-name {
  font-weight: 600;
  color: var(--admin-text);
}

.admin-sellers-id {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  font-variant-numeric: tabular-nums;
}

.admin-sellers-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}

.admin-sellers-cats {
  display: block;
  max-width: 220px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--admin-text);
  word-break: break-word;
}

.admin-sellers-actions {
  display: flex;
  /* flex-direction: column; */
  align-items: stretch;
  gap: 8px;
  min-width: 112px;
}

.admin-sellers-actions__form {
  margin: 0;
}

.admin-sellers-toggle-form {
  margin: 0;
}

.admin-sellers-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.admin-sellers-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.admin-sellers-switch__slider {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.2s ease;
}

.admin-sellers-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.admin-sellers-switch input:checked+.admin-sellers-switch__slider {
  background: #22c55e;
}

.admin-sellers-switch input:checked+.admin-sellers-switch__slider::after {
  transform: translateX(18px);
}

.admin-sellers-switch input:focus-visible+.admin-sellers-switch__slider {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.admin-sellers-switch__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-sellers-toggle-note {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.admin-sellers-actions__btn {
  width: 100%;
  justify-content: center;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

.admin-sellers-actions__btn:hover {
  border-color: #94a3b8 !important;
  background: #f1f5f9 !important;
}

.admin-sellers-actions__btn--icon {
  width: 40px;
  height: 34px;
  min-width: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-sellers-actions__btn--delete {
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #be123c !important;
}

.admin-sellers-actions__btn--delete:hover {
  border-color: #fda4af !important;
  background: #ffe4e6 !important;
}

.admin-sellers-no-match-row {
  display: none;
}

.admin-sellers-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-sellers-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-sellers-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-sellers-page .admin-avatar-sm {
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ===== Sellers — view toggle (table / grid tabs) ===== */
.admin-sellers-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  flex-direction: row-reverse;
}

.admin-sellers-view-tabs {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  flex: 0 0 auto;
}

.admin-sellers-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--admin-text-muted);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-sellers-view-tab:hover {
  color: var(--admin-text);
  background: rgba(0, 0, 0, 0.04);
}

.admin-sellers-view-tab.is-active {
  background: #fff;
  color: var(--admin-accent, #f97316);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.admin-sellers-view-tab:focus-visible {
  outline: 2px solid var(--admin-accent, #f97316);
  outline-offset: 2px;
}

.admin-sellers-view[hidden] {
  display: none !important;
}

/* ===== Sellers — card grid (replaces table layout) ===== */
.admin-sellers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
  padding: 18px 20px 20px;
}

.admin-sellers-card {
  display: flex;
  flex-direction: column;
  background: var(--admin-surface, #fff);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-sellers-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #d8dde5;
}

.admin-sellers-card--muted {
  opacity: 0.78;
}

.admin-sellers-card__head {
  position: relative;
  height: 104px;
  padding: 12px;
  background-color: #eef1f6;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 88%, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 48%),
    linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.admin-sellers-card__head--has-banner {
  background-color: #1f2937;
}

.admin-sellers-card__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

.admin-sellers-card__logo {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.18),
    0 1px 2px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.admin-sellers-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-sellers-card__logo-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.admin-sellers-card__status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.admin-sellers-card__status--active {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.admin-sellers-card__status--inactive {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.admin-sellers-card__status--pending {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.admin-sellers-card__status--deleted {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.admin-sellers-card__body {
  padding: 40px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.admin-sellers-card__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--admin-text);
  line-height: 1.3;
  word-break: break-word;
  text-align: center;
}

.admin-sellers-card__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 5px;
  margin-top: -4px;
}

.admin-sellers-card__cat-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.admin-sellers-card__link {
  display: block;
  font-size: 0.8rem;
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
  margin-top: -4px;
  word-break: break-all;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.admin-sellers-card__link:hover {
  text-decoration: underline;
}

.admin-sellers-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -2px;
}

.admin-sellers-card__star-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff7ed;
  color: #d97706;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-sellers-card__rating-count {
  font-size: 0.74rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.admin-sellers-card__meta {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-sellers-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--admin-text);
  line-height: 1.35;
}

.admin-sellers-card__meta-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-top: 1px;
}

.admin-sellers-card__meta-icon--pin {
  color: #f97316;
}

.admin-sellers-card__meta-icon--mail {
  color: #6b7280;
}

.admin-sellers-card__meta-icon--phone {
  color: #6b7280;
}

.admin-sellers-card__meta-text {
  word-break: break-word;
  min-width: 0;
}

.admin-sellers-card__meta-text--ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sellers-card__revenue {
  margin-top: 6px;
  border-top: 1px solid var(--admin-border);
  padding-top: 10px;
}

.admin-sellers-card__revenue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-sellers-card__revenue-label {
  font-size: 0.78rem;
  color: var(--admin-text);
  font-weight: 500;
}

.admin-sellers-card__revenue-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: -0.01em;
}

.admin-sellers-card__progress {
  position: relative;
  height: 5px;
  width: 100%;
  background: #fee2e2;
  border-radius: 999px;
  overflow: hidden;
}

.admin-sellers-card__progress>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fda4af, #f97316);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.admin-sellers-card__stats {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  text-align: center;
}

.admin-sellers-card__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sellers-card__stat-num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.admin-sellers-card__stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.admin-sellers-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-surface, #fff);
}

.admin-sellers-card__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  padding: 0 10px;
}

.admin-sellers-card__btn--primary {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
}

.admin-sellers-card__btn--primary:hover {
  background: #ea580c;
  border-color: #ea580c;
}

.admin-sellers-card__btn--ghost {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}

.admin-sellers-card__btn--ghost:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.admin-sellers-card__icon-form {
  margin: 0;
  flex: 0 0 auto;
}

.admin-sellers-card__icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  color: #f43f5e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  padding: 0;
}

.admin-sellers-card__icon-btn:hover {
  transform: scale(1.05);
}

.admin-sellers-card__icon-btn--power.is-active {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.admin-sellers-card__icon-btn--power.is-active:hover {
  background: #bbf7d0;
}

.admin-sellers-card__icon-btn--power:not(.is-active) {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.admin-sellers-card__icon-btn--power:not(.is-active):hover {
  background: #e2e8f0;
  color: #475569;
}

.admin-sellers-card__icon-btn--delete {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-sellers-card__icon-btn--delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.admin-sellers-card__icon-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  font-style: normal;
  white-space: nowrap;
  cursor: not-allowed;
}

.admin-sellers-card__icon-note svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* search empty-state when no card matches */
.admin-sellers-no-match-row {
  display: none;
  padding: 28px 20px;
  text-align: center;
}

/* ----- Seller withdrawals ----- */
.admin-withdrawals-page {
  max-width: 1280px;
}

.admin-wd-flash {
  margin-bottom: 18px;
}

.admin-wd-table-card {
  margin-top: 0;
}

.card-header.admin-wd-table-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-wd-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-wd-table-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-wd-table-head .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-wd-table-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
  line-height: 1.45;
}

.admin-wd-search-wrap {
  max-width: 380px;
}

/* Seller detail — products & orders search */
.card-header.admin-seller-view-table-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-seller-view-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-seller-view-table-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-seller-view-table-head .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-seller-view-table-sub {
  margin-top: 0.4rem;
  max-width: 44rem;
  line-height: 1.45;
}

.admin-seller-view-table-head .admin-seller-view-search-wrap {
  flex: 0 1 auto;
  align-self: center;
}

.admin-seller-view-search-wrap {
  max-width: 320px;
  min-width: 200px;
}

.admin-seller-view-no-match-row {
  display: none;
}

.admin-seller-view-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-seller-view-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-seller-view-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-wd-seller {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}

.admin-wd-seller__name {
  font-weight: 600;
  color: var(--admin-text);
}

.admin-wd-seller__biz,
.admin-wd-seller__email {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  word-break: break-word;
}

.admin-wd-seller__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-accent);
  margin-top: 2px;
}

.admin-wd-seller__link:hover {
  text-decoration: underline;
}

.admin-wd-account {
  max-width: 220px;
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
  color: var(--admin-text);
}

.admin-wd-note-cell {
  max-width: 200px;
  font-size: 0.86rem;
  vertical-align: top;
}

.admin-wd-note {
  display: block;
  color: var(--admin-text);
  line-height: 1.45;
}

.admin-wd-reject-reason {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #b91c1c;
}

.admin-wd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
  max-width: 200px;
}

.admin-wd-actions__form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-wd-actions__btn {
  width: 100%;
  justify-content: center;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

.admin-wd-actions__input {
  width: 100%;
  font-size: 0.82rem !important;
  padding: 8px 10px !important;
}

.admin-wd-actions__btn--reject {
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

.admin-wd-actions__btn--reject:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.admin-wd-muted {
  font-size: 0.86rem;
  color: var(--admin-text-muted);
}

.admin-wd-no-match-row {
  display: none;
}

.admin-wd-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-wd-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-wd-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-withdrawals-page .admin-avatar-sm {
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ----- Account deletions ----- */
.admin-deletions-page {
  max-width: 1280px;
}

.admin-deletions-flash {
  margin-bottom: 18px;
}

.admin-deletions-purge-card {
  margin-bottom: 22px;
}

.admin-deletions-purge-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-deletions-purge-header .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-deletions-purge-sub {
  margin-top: 0.4rem;
  max-width: 42rem;
  line-height: 1.45;
}

.admin-deletions-purge-form {
  margin: 0;
  flex-shrink: 0;
}

.admin-deletions-section-card--spaced {
  margin-top: 22px;
}

.card-header.admin-deletions-table-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-deletions-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-deletions-table-head-text .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-deletions-table-sub {
  margin-top: 0.4rem;
  max-width: 44rem;
  line-height: 1.45;
}

.admin-deletions-search-wrap {
  max-width: 380px;
}

.admin-deletions-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-deletions-user__name {
  font-weight: 600;
  color: var(--admin-text);
}

.admin-deletions-user__meta {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  word-break: break-word;
}

.admin-deletions-note {
  font-size: 0.86rem;
  color: var(--admin-text-muted);
}

.admin-deletions-action-form {
  margin: 0;
}

.admin-deletions-cancel-btn {
  font-size: 0.82rem !important;
  padding: 8px 12px !important;
}

.admin-deletions-dash {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
}

.admin-deletions-seller-note {
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 240px;
  word-break: break-word;
}

.admin-deletions-seller-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
  max-width: 220px;
}

.admin-deletions-seller-actions__form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-deletions-seller-actions__btn {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem !important;
  padding: 8px 12px !important;
}

.admin-deletions-seller-actions__input {
  width: 100%;
  font-size: 0.82rem !important;
  padding: 8px 10px !important;
}

.admin-deletions-seller-actions__btn--reject {
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

.admin-deletions-seller-actions__btn--reject:hover {
  background: #fef2f2 !important;
}

.admin-deletions-no-match-row {
  display: none;
}

.admin-deletions-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-deletions-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-deletions-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-deletions-page .admin-avatar-sm {
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ----- Seller KYC ----- */
.admin-kyc-page {
  max-width: 1280px;
}

.admin-kyc-flash {
  margin-bottom: 18px;
}

.admin-kyc-section-card--spaced {
  margin-top: 22px;
}

/* Must beat later `.card-header { display: flex }` so title row + tabs stack (not side-by-side). */
.admin-kyc-section-card>.card-header.admin-kyc-section-header {
  display: block;
  align-items: stretch;
  padding: 14px 20px 16px;
}

.admin-kyc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-kyc-section-head-text .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-kyc-section-sub {
  margin-top: 0.4rem;
  max-width: 44rem;
  line-height: 1.45;
}

.admin-kyc-search-wrap {
  max-width: 380px;
}

.admin-kyc-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-kyc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 5.75rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--admin-text);
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-kyc-tab:hover {
  border-color: #d1d5db;
  background: #fafbfc;
}

.admin-kyc-tab--active {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}

.admin-kyc-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
  max-width: 22rem;
}

.admin-kyc-strong {
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.35;
}

.admin-kyc-meta {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--admin-text-muted);
  word-break: break-word;
}

.admin-kyc-note {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--admin-text-muted);
  font-style: italic;
}

.admin-kyc-reason {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b45309;
  margin-top: 4px;
}

.admin-kyc-inline-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-accent);
  margin-top: 4px;
}

.admin-kyc-inline-link:hover {
  text-decoration: underline;
}

.admin-kyc-doc-link {
  font-weight: 600;
  color: var(--admin-accent);
}

.admin-kyc-muted {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.admin-kyc-action-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 168px;
  max-width: 220px;
}

.admin-kyc-action-form__btn {
  width: 100%;
  justify-content: center;
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

.admin-kyc-action-form__input {
  width: 100%;
  font-size: 0.82rem !important;
  padding: 8px 10px !important;
}

.admin-kyc-action-form__btn--reject {
  border: 1px solid #fca5a5 !important;
  background: #fff !important;
  color: #b91c1c !important;
}

.admin-kyc-action-form__btn--reject:hover {
  background: #fef2f2 !important;
}

.admin-kyc-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-kyc-inline-form__btn {
  padding: 8px 12px !important;
  font-size: 0.82rem !important;
}

.admin-kyc-inline-form__input {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
  font-size: 0.82rem !important;
  padding: 8px 10px !important;
}

.admin-kyc-inline-form__btn--reject {
  border: 1px solid #fca5a5 !important;
  color: #b91c1c !important;
  background: #fff !important;
}

.admin-kyc-no-match-row {
  display: none;
}

.admin-kyc-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-kyc-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-kyc-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-kyc-empty-p {
  margin: 0;
}

.admin-kyc-page .admin-avatar-sm {
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-kyc-table .admin-cell-user {
  align-items: flex-start;
}

/* ----- Platform earnings ----- */
.admin-earnings-page {
  max-width: 1280px;
}

.admin-earnings-flash {
  margin-bottom: 18px;
}

.admin-earnings-fee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--admin-text);
}

.admin-earnings-fee-pill svg {
  flex-shrink: 0;
  color: var(--admin-text-muted);
}

.admin-earnings-backfill-card {
  margin-top: 0;
}

.admin-earnings-backfill-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-earnings-backfill-sub {
  margin-top: 0.35rem;
  max-width: 42rem;
  line-height: 1.45;
}

.admin-earnings-backfill-detail {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--admin-text);
  max-width: 52rem;
}

.admin-earnings-backfill-form {
  margin: 0;
}

.admin-earnings-table-card {
  margin-top: 22px;
}

.admin-earnings-table-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-earnings-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.admin-earnings-table-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-earnings-table-head .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-earnings-table-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
  line-height: 1.45;
}

.admin-earnings-no-match-row {
  display: none;
}

.admin-earnings-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-earnings-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-earnings-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-earnings-cust-name {
  font-weight: 500;
}

.admin-earnings-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.admin-earnings-page .admin-avatar-sm {
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-users-card,
.admin-orders-card {
  min-width: 0;
  margin-bottom: 0;
}

.admin-users-card>.card-header.admin-users-card-header,
.admin-orders-card>.card-header.admin-orders-card-header {
  display: block;
  padding: 14px 20px 16px;
}

.admin-users-card-head,
.admin-orders-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-users-card-head-text,
.admin-orders-card-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.admin-users-card-head .card-title,
.admin-orders-card-head .card-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-users-card-sub,
.admin-orders-card-sub {
  margin-top: 0.4rem;
  max-width: 40rem;
  line-height: 1.45;
}

.admin-users-search-wrap,
.admin-orders-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: min(280px, 100%);
  max-width: 420px;
  padding: 6px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-surface);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-users-search-wrap:focus-within,
.admin-orders-search-wrap:focus-within {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}

.admin-users-search-icon,
.admin-orders-search-icon {
  display: flex;
  color: var(--admin-text-muted);
  flex-shrink: 0;
}

.admin-users-search-input,
.admin-orders-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--admin-text);
  outline: none;
  font-family: inherit;
}

.admin-users-search-input::placeholder,
.admin-orders-search-input::placeholder {
  color: var(--admin-text-muted);
}

.admin-users-no-match-row,
.admin-orders-no-match-row {
  display: none;
}

.admin-users-no-match-row td,
.admin-orders-no-match-row td {
  text-align: center;
  padding: 28px 20px !important;
  border-bottom: 0 !important;
}

.admin-users-no-match__title,
.admin-orders-no-match__title {
  display: block;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--admin-text);
}

.admin-users-no-match__text,
.admin-orders-no-match__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-users-page .admin-avatar-sm,
.admin-orders-page .admin-avatar-sm {
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-users-name,
.admin-orders-cust-name {
  font-weight: 500;
}

.admin-orders-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table__th-money,
.admin-table__td-money {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-table__td-money {
  font-weight: 600;
  color: var(--admin-text);
}

.admin-table__cell-shipping {
  max-width: 220px;
}

.admin-orders-ship {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  font-size: 0.86rem;
  color: var(--admin-text);
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-surface);
  font-size: 0.86rem;
}

.admin-pagination__info {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-pagination__range {
  color: var(--admin-text-muted);
}

.admin-pagination__range strong {
  color: var(--admin-text);
  font-weight: 600;
}

.admin-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.admin-pagination__per-page {
  display: flex;
  align-items: center;
  margin: 0;
}

.admin-pagination__per-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  cursor: pointer;
}

.admin-pagination__select {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-pagination__arrows {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-pagination__btn:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.admin-pagination__btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-pagination__status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-pagination__status--solo {
  margin-left: auto;
}

@media (max-width: 640px) {
  .admin-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-pagination__controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-pagination__status--solo {
    margin-left: 0;
  }
}

.admin-empty-hint--boxed {
  margin: 0;
  padding: 28px 24px;
  text-align: center;
}

.admin-table__th-narrow {
  width: 72px;
}

.admin-table__td-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--admin-text-muted);
  font-size: 0.86rem;
}

.admin-table__cell-email {
  max-width: 260px;
}

.admin-users-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table__td-muted {
  font-size: 0.86rem;
  color: var(--admin-text-muted);
}

.admin-table__dash {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
}

.admin-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.admin-ghost-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--admin-text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.admin-ghost-btn:hover {
  border-color: #d1d5db;
  color: var(--admin-text);
}

/* ----- Grid & cards ----- */
.admin-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-grid--charts {
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 1100px) {
  .admin-grid--charts {
    grid-template-columns: 1fr;
  }
}

.admin-grid--stats {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .admin-grid--stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .admin-grid--stats {
    grid-template-columns: 1fr;
  }
}

.admin-grid--stats--flow {
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 520px) {
  .admin-grid--stats--flow {
    grid-template-columns: 1fr;
  }
}

.admin-grid--triple {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .admin-grid--triple {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--admin-surface);
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-card);
  overflow: hidden;
}

.admin-card--interactive {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-card--interactive:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 22%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.admin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background-color: var(--admin-card-cap-bg);
  border-bottom: 1px solid var(--admin-border);
}

.admin-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-card__subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  line-height: 1.35;
}

.admin-card__subtitle--inline {
  margin-top: 3px;
}

.admin-card__head--rich {
  align-items: flex-start;
}

.admin-card__head--rich .admin-card-filter {
  flex-shrink: 0;
  margin-top: 2px;
}

.admin-card__head--split-head {
  align-items: flex-start;
}

.admin-card__head--split-head .admin-view-all {
  margin-top: 2px;
}

.admin-card__title-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.admin-card__title-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.admin-card__title-icon--amber {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
}

.admin-card__title-icon--accent {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}

.admin-card__title-icon--violet {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.admin-card__body {
  padding: 16px 18px;
}

.admin-card__body--flush {
  padding: 12px 14px 16px;
}

/* ----- Bootstrap-style cards (use admin theme tokens; works in light / dark) ----- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--admin-surface);
  background-clip: border-box;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-card);
  overflow: hidden;
}

.card>hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--admin-border);
  opacity: 1;
  color: inherit;
}

.card-header {
  padding: 14px 20px;
  margin-bottom: 0;
  color: var(--admin-text);
  background-color: var(--admin-card-cap-bg);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header:first-child {
  border-radius: calc(var(--admin-radius) - 1px) calc(var(--admin-radius) - 1px) 0 0;
}

.card-header .card-title,
.card-header .admin-page-title {
  margin: 0;
}

.card-body {
  flex: 1 1 auto;
  padding: 16px 18px;
  color: var(--admin-text);
}

.card-body--flush {
  padding: 0;
}

.card-footer {
  padding: 14px 18px;
  color: var(--admin-text-muted);
  background-color: var(--admin-card-cap-bg);
  border-top: 1px solid var(--admin-border);
}

.card-footer:last-child {
  border-radius: 0 0 calc(var(--admin-radius) - 1px) calc(var(--admin-radius) - 1px);
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--admin-text);
}

.card-header .card-title {
  margin-bottom: 0;
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: capitalize;
}

.card-header .admin-page-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.card-subtitle {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--admin-text-muted);
}

.card-text:last-child {
  margin-bottom: 0;
}

.card-text {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--admin-text);
}

.card-link {
  font-weight: 600;
  color: var(--admin-accent);
  text-decoration: none;
}

.card-link:hover {
  color: var(--admin-accent-hover);
  text-decoration: underline;
}

/* Toggle pills (Weekly / Monthly) */
.admin-toggle {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.admin-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  border-radius: 6px;
  cursor: pointer;
}

.admin-toggle button.is-active {
  background: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: var(--admin-shadow);
}

.admin-chart-wrap {
  position: relative;
  height: 280px;
}

.admin-chart-wrap--sm {
  height: 220px;
}

.admin-metric-line {
  padding: 0 18px 14px;
  font-size: 0.9rem;
  color: var(--admin-text-muted);
}

.admin-metric-line strong {
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

/* Stat mini cards */
.admin-stat {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-stat__label {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.admin-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.admin-stat__delta {
  font-size: 0.75rem;
  margin-top: 8px;
}

.admin-stat__delta--up {
  color: #16a34a;
}

.admin-stat__delta--down {
  color: #dc2626;
}

.admin-stat__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-stat__icon--red {
  background: color-mix(in srgb, var(--admin-accent) 12%, transparent);
  color: var(--admin-accent);
}

.admin-stat__icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.admin-stat__icon--purple {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.admin-stat__icon--pink {
  background: rgba(236, 72, 153, 0.12);
  color: #db2777;
}

.admin-stat--stripe-blue {
  border-top: 3px solid #2563eb;
}

.admin-stat--stripe-red {
  border-top: 3px solid var(--admin-accent);
}

.admin-stat--stripe-amber {
  border-top: 3px solid #d97706;
}

.admin-stat--stripe-pink {
  border-top: 3px solid #db2777;
}

.admin-stat--stripe-teal {
  border-top: 3px solid #0d9488;
}

.admin-stat--stripe-green {
  border-top: 3px solid #16a34a;
}

.admin-stat--stripe-violet {
  border-top: 3px solid #7c3aed;
}

.admin-stat--stripe-indigo {
  border-top: 3px solid #4f46e5;
}

.admin-stat__icon--green {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.admin-stat__icon--indigo {
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
}

/* Donut legend */
.admin-legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
}

.admin-legend li:last-child {
  border-bottom: 0;
}

.admin-legend__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Pipeline bars */
.admin-pipeline-row {
  margin-bottom: 14px;
}

.admin-pipeline-row__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.admin-pipeline-bar {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.admin-pipeline-bar>span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

/* Deals overview list */
.admin-overview-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-overview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.88rem;
}

.admin-overview-list li:last-child {
  border-bottom: 0;
}

/* Table section */
.admin-table-card .admin-card__head {
  border-bottom: 1px solid var(--admin-border);
}

.admin-table-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-accent);
}

.admin-table-card__link:hover {
  text-decoration: underline;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-text-muted);
  font-weight: 600;
  background: var(--admin-card-cap-bg);
}

.admin-table tbody tr {
  transition: background 0.12s;
}

.admin-table tbody tr:hover {
  background: #fafafa;
}

.admin-cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e5e7eb;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
}

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-badge--muted {
  background: #f3f4f6;
  color: #4b5563;
}

.admin-badge--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.admin-badge--purple {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.admin-badge--amber {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.admin-status--delivered,
.admin-status--won {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.admin-status--shipped,
.admin-status--open {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.admin-status--processing,
.admin-status--pending {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}

.admin-status--cancelled,
.admin-status--lost {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* Footer */
.admin-footer {
  margin-top: auto;
  padding: 14px 24px;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.admin-footer__links {
  display: none;
  gap: 16px;
}

.admin-footer__links a:hover {
  color: var(--admin-accent);
}

/* ----- CRMS-style dashboard: hero, 3-col charts, list feeds ----- */
.admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  margin-bottom: 22px;
  border-radius: var(--admin-radius);
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, color-mix(in srgb, var(--admin-accent) 18%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    linear-gradient(135deg, #1a1d24 0%, #12151c 45%, #0d0f14 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.admin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
}

.admin-hero__main {
  position: relative;
  z-index: 1;
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-hero__text h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-hero__text p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  line-height: 1.5;
}

.admin-hero__kpis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hero__kpi {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 96px;
}

.admin-hero__kpi--warn {
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
}

.admin-hero__kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.admin-hero__kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.admin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-btn--primary {
  background: var(--admin-accent);
  color: #fff;
  border-color: var(--admin-accent);
}

.admin-btn--primary:hover {
  background: var(--admin-accent-hover);
  border-color: var(--admin-accent-hover);
  color: #fff;
}

.admin-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.admin-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Outline / secondary — cards & tables (light background). Not for dark hero — use --ghost-light there. */
.admin-btn--outline {
  background: #fff;
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-btn--outline:hover {
  background: #f8fafc;
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

html.admin-theme-dark .admin-btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-text);
  border-color: var(--admin-border);
}

html.admin-theme-dark .admin-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--admin-accent);
  color: #fff;
}

.admin-btn--danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.admin-btn--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.admin-btn--sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.admin-dash-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
}

.admin-dash-shortcuts__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text);
  background: #f9fafb;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-dash-shortcuts__link:hover {
  background: var(--admin-accent-soft);
  border-color: color-mix(in srgb, var(--admin-accent) 22%, transparent);
  color: var(--admin-accent);
}

.admin-dash-shortcuts__icon {
  display: grid;
  place-items: center;
  color: var(--admin-text-muted);
  transition: color 0.15s ease;
}

.admin-dash-shortcuts__link:hover .admin-dash-shortcuts__icon {
  color: var(--admin-accent);
}

.admin-dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .admin-dash-grid-3 {
    grid-template-columns: 1fr;
  }
}

.admin-dash-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.admin-dash-lists>.admin-card {
  min-width: 0;
}

@media (max-width: 1100px) {
  .admin-dash-lists {
    grid-template-columns: 1fr;
  }
}

.admin-card-filter {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--admin-text);
  background: #fafafa;
  cursor: default;
}

.admin-card-filter select {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: inherit;
  outline: none;
}

.admin-view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-accent);
  padding: 4px 8px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.admin-view-all:hover {
  text-decoration: underline;
  color: var(--admin-accent-hover);
}

.admin-list-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}



.admin-list-feed__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 2px;
  margin: 0;
  border-radius: 10px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}

.admin-list-feed__row:last-child {
  border-bottom: 0;
}

.admin-list-feed__row:hover {
  background: rgba(0, 0, 0, 0.025);
}

.admin-dash-lists .admin-avatar-sm {
  margin-top: 1px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f4 0%, #e5e7eb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-empty-hint {
  margin: 4px 0 0;
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-list-feed__body {
  flex: 1;
  min-width: 0;
}

.admin-list-feed__body>.admin-status {
  margin-top: 6px;
}

.admin-list-feed__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-feed__meta {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 3px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-list-feed__side {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--admin-text);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

.admin-list-feed__action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--admin-accent);
  margin-top: 4px;
  display: inline-block;
}

.admin-list-feed__action:hover {
  text-decoration: underline;
}

.admin-stat__delta--muted {
  color: var(--admin-text-muted);
}

/* Simple page (users / orders full width) */
.admin-page-title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Login page */
body.admin-login {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(145deg, #f8f9fa 0%, #eef0f4 50%, #e8eaed 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--admin-text);
}

.admin-login-shell {
  width: 100%;
  max-width: 440px;
}

body.admin-login.admin-app--platform {
  background: linear-gradient(145deg, #f3f4fa 0%, #e8eaf5 50%, #e0e7ff 100%);
}

html.admin-theme-dark body.admin-login {
  background: linear-gradient(160deg, #0a0a0c 0%, #12121a 40%, #181420 100%);
}

html.admin-theme-dark body.admin-login.admin-app--platform {
  background: linear-gradient(160deg, #090b12 0%, #12172a 45%, #1a1d32 100%);
}

html.admin-theme-dark .admin-login-card {
  background: #161618;
  border-color: var(--admin-border);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}

html.admin-theme-dark .admin-login-card h1 {
  color: var(--admin-text);
}

html.admin-theme-dark .admin-login-card p,
html.admin-theme-dark .admin-login-card .hint {
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-login-card label,
html.admin-theme-dark .admin-login-field label {
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-login-card input,
html.admin-theme-dark .admin-login-input {
  background: #121212;
  border-color: var(--admin-border);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-login-card input:focus,
html.admin-theme-dark .admin-login-input:focus {
  background: #171717;
}

html.admin-theme-dark .admin-login-card .err {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.admin-login-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--admin-accent), #6366f1);
}

body.admin-app--platform .admin-login-card::before {
  background: linear-gradient(90deg, #6366f1, #4f46e5, var(--admin-accent));
}

.admin-login-card__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-login-card__logo {
  width: 44px;
  height: 44px;
}

.admin-login-card__intro {
  margin-bottom: 22px;
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.admin-login-card p {
  margin: 0;
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-login-field {
  display: flex;
  flex-direction: column;
}

.admin-login-card label,
.admin-login-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--admin-text);
}

.admin-login-card input,
.admin-login-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--admin-text);
  box-sizing: border-box;
  transition: border-color 0.15s ease, outline-color 0.15s ease, background 0.15s ease;
}

.admin-login-card input::placeholder,
.admin-login-input::placeholder {
  color: #9ca3af;
}

.admin-login-card input:focus,
.admin-login-input:focus {
  outline: 2px solid var(--admin-accent-soft);
  border-color: var(--admin-accent);
}

/* Password show/hide — admin login + admin app (see admin/js/password-toggle.js) */
.admin-password-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.admin-password-wrap>.admin-input,
.admin-password-wrap>input[type="password"],
.admin-password-wrap>input[type="text"] {
  padding-right: 2.75rem;
}

.admin-login-card .admin-password-wrap>input,
.admin-login-card .admin-password-wrap>.admin-login-input {
  padding-right: 2.75rem;
}

.admin-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--admin-text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.admin-password-toggle:hover {
  color: var(--admin-text);
  background: rgba(15, 23, 42, 0.06);
}

.admin-password-toggle:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 1px;
}

.admin-password-toggle__icons {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-password-toggle__eye {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}

.admin-password-toggle__eye--closed {
  display: none;
}

.admin-password-toggle--on .admin-password-toggle__eye--open {
  display: none;
}

.admin-password-toggle--on .admin-password-toggle__eye--closed {
  display: block;
}

html.admin-theme-dark .admin-password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-login-card button[type="submit"],
.admin-login-submit {
  margin-top: 20px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--admin-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.admin-login-card button[type="submit"]:hover,
.admin-login-submit:hover {
  background: var(--admin-accent-hover);
}

.admin-login-card button[type="submit"]:active,
.admin-login-submit:active {
  transform: translateY(1px);
}

.admin-login-card .luxe-captcha-wrap {
  margin: 8px 0 4px;
  min-height: 78px;
  overflow: visible;
}

.admin-login-card .luxe-captcha-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--admin-text);
}

.admin-login-card .luxe-captcha-input {
  width: auto;
  padding: 11px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--admin-text);
}

.admin-login-card .luxe-captcha-input:focus {
  outline: 2px solid var(--admin-accent-soft);
  border-color: var(--admin-accent);
}

.admin-login-card .luxe-captcha-q {
  border-radius: 8px;
  border: 1px dashed var(--admin-border);
  background: #f8fafc;
  color: var(--admin-text);
  font-size: 0.95rem;
}

.admin-login-card .luxe-captcha-refresh {
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--admin-text-muted);
}

.admin-login-card .luxe-captcha-refresh:hover {
  color: var(--admin-text);
  background: rgba(15, 23, 42, 0.04);
}

html.admin-theme-dark .admin-login-card .luxe-captcha-label {
  color: var(--admin-text);
}

html.admin-theme-dark .admin-login-card .luxe-captcha-input,
html.admin-theme-dark .admin-login-card .luxe-captcha-refresh {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

html.admin-theme-dark .admin-login-card .luxe-captcha-input:focus {
  outline-color: rgba(248, 113, 113, 0.25);
  border-color: #f87171;
}

html.admin-theme-dark .admin-login-card .luxe-captcha-q {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

html.admin-theme-dark .admin-login-card .luxe-captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-login-card .luxe-captcha-mount {
  transform-origin: left top;
}

@media (max-width: 480px) {
  body.admin-login {
    padding: 16px;
  }

  .admin-login-card {
    padding: 24px 20px 20px;
    border-radius: 14px;
  }

  .admin-login-card .luxe-captcha-wrap {
    transform: scale(0.92);
    transform-origin: left top;
  }
}

.admin-login-card .err {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
}

.admin-login-card .hint {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

/* ----- Delete account request page (CRMS-style) ----- */
.admin-del-requests {
  max-width: 1400px;
}

.admin-del-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-del-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-del-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
  text-transform: capitalize;
}

.admin-del-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  border: 1px solid color-mix(in srgb, var(--admin-accent) 25%, transparent);
}

.admin-del-breadcrumb {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.admin-del-breadcrumb a {
  color: var(--admin-text-muted);
  text-decoration: none;
}

.admin-del-breadcrumb a:hover {
  color: var(--admin-accent);
}

.admin-del-breadcrumb__sep {
  margin: 0 6px;
  opacity: 0.6;
}

.admin-del-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  list-style: none;
}

.admin-del-btn::-webkit-details-marker {
  display: none;
}

.admin-del-btn--outline {
  background: var(--admin-surface);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.admin-del-btn--outline:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.admin-del-export {
  position: relative;
}

.admin-del-export[open]>summary {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.admin-del-export__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 40;
}

.admin-del-export__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  cursor: not-allowed;
}

.admin-del-flash {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.admin-del-flash--ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
}

.admin-del-flash--err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.admin-del-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
}

.admin-del-toolbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  height: 38px;
  padding: 0 12px;
  background: #f8f9fa;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
}

.admin-del-toolbar__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  outline: none;
  min-width: 0;
}

.admin-del-select {
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #fafafa;
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  cursor: not-allowed;
}

.admin-del-date {
  margin: 0;
}

.admin-del-btn-columns {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  font-size: 0.78rem;
  font-weight: 600;
  background: #7c3aed;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}

.admin-del-process {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
}

.admin-del-process__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--admin-text-muted);
  max-width: 640px;
  line-height: 1.5;
}

.admin-del-process__form {
  flex-shrink: 0;
}

.admin-del-btn--primary {
  background: var(--admin-accent);
  color: #fff;
  border-color: var(--admin-accent);
}

.admin-del-btn--primary:hover {
  background: var(--admin-accent-hover);
  border-color: var(--admin-accent-hover);
}

.admin-del-card {
  overflow: visible;
}

.admin-del-table-wrap {
  border-radius: var(--admin-radius) var(--admin-radius) 0 0;
}

.admin-del-table th,
.admin-del-table td {
  vertical-align: middle;
}

.admin-del-th-check,
.admin-del-td-check {
  width: 44px;
  text-align: center;
}

.admin-del-th-star,
.admin-del-td-star {
  width: 40px;
  text-align: center;
  color: #d1d5db;
}

.admin-del-th-action {
  width: 56px;
  text-align: center;
}

.admin-del-star {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: not-allowed;
  font-size: 1rem;
  color: #e5e7eb;
}

.admin-del-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-del-avatar {
  border-radius: 10px;
}

.admin-del-user__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--admin-text);
}

.admin-del-user__meta {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.admin-del-reason {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
}

.admin-del-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.admin-del-pill--pending {
  background: #f59e0b;
  color: #fff;
}

.admin-del-pill--rejected {
  background: #ef4444;
  color: #fff;
}

.admin-del-pill--done {
  background: #22c55e;
  color: #fff;
}

.admin-del-pill--muted {
  background: #e5e7eb;
  color: #4b5563;
}

.admin-del-menu {
  position: relative;
}

.admin-del-menu summary {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--admin-text-muted);
  user-select: none;
}

.admin-del-menu summary::-webkit-details-marker {
  display: none;
}

.admin-del-menu summary:hover {
  background: #f3f4f6;
  color: var(--admin-text);
}

.admin-del-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  padding: 6px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 30;
}

.admin-del-menu__action {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-accent);
  cursor: pointer;
}

.admin-del-menu__action:hover {
  background: var(--admin-accent-soft);
}

.admin-del-menu__dash {
  color: #d1d5db;
  font-size: 1.1rem;
}

.admin-del-empty {
  text-align: center;
  padding: 28px 16px !important;
  color: var(--admin-text-muted);
}

.admin-del-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--admin-border);
  background: #fafafa;
  border-radius: 0 0 var(--admin-radius) var(--admin-radius);
}

.admin-del-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.admin-del-page-size select {
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  padding: 0 8px;
  font-size: 0.78rem;
  background: #fff;
  cursor: not-allowed;
}

.admin-del-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-del-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  cursor: not-allowed;
}

.admin-del-page-btn--active {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
  cursor: default;
}

.admin-del-fab {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 0;
  background: var(--admin-accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--admin-accent) 35%, transparent);
  z-index: 60;
  transition: transform 0.15s, background 0.15s;
}

.admin-del-fab:hover {
  background: var(--admin-accent-hover);
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .admin-del-fab {
    right: 16px;
    bottom: 72px;
  }
}

/* ----- Dark theme (toggle from topbar) ----- */
html.admin-theme-dark {
  color-scheme: dark;
  --admin-bg: #121212;
  --admin-drop-surface: #121212;
  --admin-surface: rgba(243, 243, 243, 0.02);
  --admin-border: rgba(243, 243, 243, 0.08);
  --admin-text: #e8eaef;
  --admin-text-muted: #9098ae;
  --admin-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --admin-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --admin-accent-soft: color-mix(in srgb, var(--admin-accent) 22%, transparent);
  --admin-card-cap-bg: #222222;
}

/* Dark + platform admin: indigo accent */
html.admin-theme-dark body.admin-app--platform {
  --admin-accent: #F44336;
  --admin-accent-hover: #e23124;
  --admin-accent-soft: color-mix(in srgb, var(--admin-accent) 22%, transparent);
}

/* Dark + seller: readable coral on dark surfaces */
html.admin-theme-dark body.admin-app--merchant {
  --admin-accent: #f87171;
  --admin-accent-hover: #fca5a5;
  --admin-accent-soft: color-mix(in srgb, var(--admin-accent) 22%, transparent);
}

html.admin-theme-dark .admin-sidebar__logo {
  background: #1e222c;
  border-color: var(--admin-border);
}

html.admin-theme-dark .admin-nav__link:hover {
  background: #222222;
}

html.admin-theme-dark .admin-nav__link--active:hover {
  background: color-mix(in srgb, var(--admin-accent) 28%, transparent);
}

html.admin-theme-dark .admin-nav__sublink:hover {
  background: #222222;
  color: var(--admin-text);
}

html.admin-theme-dark .admin-nav__sublink--active:hover {
  background: color-mix(in srgb, var(--admin-accent) 28%, transparent);
}

html.admin-theme-dark .admin-menu-btn {
  background: #222222;
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-search {
  background: #222222;
}

html.admin-theme-dark .admin-search:focus-within {
  background: #1e222c;
  border-color: var(--admin-border);
}

html.admin-theme-dark .admin-search input::placeholder {
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-icon-btn:hover {
  background: #222222;
  color: var(--admin-text);
}

html.admin-theme-dark .admin-icon-btn--notify::after {
  border-color: var(--admin-surface);
}

html.admin-theme-dark .admin-user-pill {
  background: #222222;
}

html.admin-theme-dark .admin-user-wrap:hover .admin-user-wrap__btn,
html.admin-theme-dark .admin-user-wrap:focus-within .admin-user-wrap__btn {
  background: #222222;
}

html.admin-theme-dark a.admin-user-dropdown__item:hover {
  background: #222222;
}

html.admin-theme-dark .admin-user-dropdown__item--logout:hover {
  background: var(--admin-accent-soft);
}

html.admin-theme-dark .admin-ghost-btn:hover {
  border-color: #4b5563;
  background: #1e222c;
}

html.admin-theme-dark .admin-toggle {
  background: #222222;
}

html.admin-theme-dark .admin-toggle button.is-active {
  background: #1e222c;
  box-shadow: var(--admin-shadow);
}

html.admin-theme-dark .admin-legend li {
  border-bottom-color: #222222;
}

html.admin-theme-dark .admin-pipeline-bar {
  background: #222222;
}

html.admin-theme-dark .admin-overview-list li {
  border-bottom-color: #222222;
}

html.admin-theme-dark .admin-table th {
  background: var(--admin-card-cap-bg);
}

html.admin-theme-dark .admin-table tbody tr:hover {
  background: #222222;
}

html.admin-theme-dark .admin-avatar-sm {
  background: #222222;
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-dash-lists .admin-avatar-sm {
  background: linear-gradient(145deg, #2c313c 0%, #1e222c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c4c9d4;
  box-shadow: none;
}

html.admin-theme-dark .admin-badge--muted {
  background: #222222;
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-card-filter {
  background: #1c1f28;
}

html.admin-theme-dark .admin-list-feed__row {
  border-bottom-color: #222222;
}

html.admin-theme-dark .admin-list-feed {
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}



html.admin-theme-dark .admin-list-feed__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark .admin-card--interactive:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 35%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html.admin-theme-dark .admin-dash-shortcuts__link {
  background: rgba(255, 255, 255, 0.04);
}

html.admin-theme-dark .admin-dash-shortcuts__link:hover {
  background: var(--admin-accent-soft);
}

html.admin-theme-dark .admin-card__title-icon--amber {
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
}

html.admin-theme-dark .admin-card__title-icon--violet {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

html.admin-theme-dark .admin-settings-summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

html.admin-theme-dark .admin-input:hover {
  border-color: #4b5563;
}

html.admin-theme-dark .admin-inline-code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-users-search-wrap,
html.admin-theme-dark .admin-orders-search-wrap,
html.admin-theme-dark .admin-pa-search-wrap,
html.admin-theme-dark .admin-sellers-search-wrap,
html.admin-theme-dark .admin-kyc-search-wrap,
html.admin-theme-dark .admin-wd-search-wrap,
html.admin-theme-dark .admin-deletions-search-wrap,
html.admin-theme-dark .admin-seller-view-search-wrap {
  background: #121212;
  border-color: var(--admin-border);
}

html.admin-theme-dark .admin-users-search-wrap:focus-within,
html.admin-theme-dark .admin-orders-search-wrap:focus-within,
html.admin-theme-dark .admin-pa-search-wrap:focus-within,
html.admin-theme-dark .admin-sellers-search-wrap:focus-within,
html.admin-theme-dark .admin-kyc-search-wrap:focus-within,
html.admin-theme-dark .admin-wd-search-wrap:focus-within,
html.admin-theme-dark .admin-deletions-search-wrap:focus-within,
html.admin-theme-dark .admin-seller-view-search-wrap:focus-within {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-accent) 22%, transparent);
}

html.admin-theme-dark .admin-users-search-icon,
html.admin-theme-dark .admin-orders-search-icon,
html.admin-theme-dark .admin-pa-search-icon,
html.admin-theme-dark .admin-sellers-search-icon,
html.admin-theme-dark .admin-kyc-search-icon,
html.admin-theme-dark .admin-wd-search-icon,
html.admin-theme-dark .admin-deletions-search-icon,
html.admin-theme-dark .admin-seller-view-search-icon {
  color: #94a3b8;
}

html.admin-theme-dark .admin-users-search-input,
html.admin-theme-dark .admin-orders-search-input,
html.admin-theme-dark .admin-pa-search-input,
html.admin-theme-dark .admin-sellers-search-input,
html.admin-theme-dark .admin-kyc-search-input,
html.admin-theme-dark .admin-wd-search-input,
html.admin-theme-dark .admin-deletions-search-input,
html.admin-theme-dark .admin-seller-view-search-input {
  color: #f3f4f6;
}

html.admin-theme-dark .admin-users-search-input::placeholder,
html.admin-theme-dark .admin-orders-search-input::placeholder,
html.admin-theme-dark .admin-pa-search-input::placeholder,
html.admin-theme-dark .admin-sellers-search-input::placeholder,
html.admin-theme-dark .admin-kyc-search-input::placeholder,
html.admin-theme-dark .admin-wd-search-input::placeholder,
html.admin-theme-dark .admin-seller-view-search-input::placeholder {
  color: #94a3b8;
}

html.admin-theme-dark .admin-pa-tab {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-pa-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #4b5563;
}

html.admin-theme-dark .admin-pa-tab__meta {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

html.admin-theme-dark .admin-pa-tab--active .admin-pa-tab__meta {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}

html.admin-theme-dark .admin-pa-footnote {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--admin-border);
  color: #94a3b8;
}

html.admin-theme-dark .admin-pa-footnote strong {
  color: var(--admin-text);
}

html.admin-theme-dark .admin-pa-product__thumb--placeholder {
  background: linear-gradient(145deg, #2c313c 0%, #1e222c 100%);
  color: #94a3b8;
}

html.admin-theme-dark .admin-pa-actions__btn--reject {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}

html.admin-theme-dark .admin-pa-actions__btn--reject:hover {
  background: rgba(220, 38, 38, 0.2) !important;
}

html.admin-theme-dark .admin-users-page .admin-avatar-sm,
html.admin-theme-dark .admin-orders-page .admin-avatar-sm,
html.admin-theme-dark .admin-earnings-page .admin-avatar-sm,
html.admin-theme-dark .admin-sellers-page .admin-avatar-sm,
html.admin-theme-dark .admin-kyc-page .admin-avatar-sm,
html.admin-theme-dark .admin-withdrawals-page .admin-avatar-sm,
html.admin-theme-dark .admin-deletions-page .admin-avatar-sm {
  background: linear-gradient(145deg, #2c313c 0%, #1e222c 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #c4c9d4;
  box-shadow: none;
}

html.admin-theme-dark .admin-wd-reject-reason {
  color: #fca5a5;
}

html.admin-theme-dark .admin-wd-actions__btn--reject {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}

html.admin-theme-dark .admin-wd-actions__btn--reject:hover {
  background: rgba(220, 38, 38, 0.2) !important;
}

html.admin-theme-dark .admin-deletions-seller-actions__btn--reject {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}

html.admin-theme-dark .admin-deletions-seller-actions__btn--reject:hover {
  background: rgba(220, 38, 38, 0.2) !important;
}

html.admin-theme-dark .admin-sellers-actions__btn {
  background: #0b1220 !important;
  border-color: rgba(243, 243, 243, 0.08) !important;
  color: #e2e8f0 !important;
}

html.admin-theme-dark .admin-sellers-actions__btn:hover {
  background: #111b2c !important;
  border-color: rgba(243, 243, 243, 0.16) !important;
}

html.admin-theme-dark .admin-sellers-actions__btn--delete {
  background: rgba(190, 24, 93, 0.18) !important;
  border-color: rgba(244, 114, 182, 0.5) !important;
  color: #fecdd3 !important;
}

html.admin-theme-dark .admin-sellers-actions__btn--delete:hover {
  background: rgba(190, 24, 93, 0.24) !important;
}

html.admin-theme-dark .admin-sellers-switch__slider {
  background: #334155;
}

html.admin-theme-dark .admin-sellers-switch input:checked+.admin-sellers-switch__slider {
  background: #16a34a;
}

html.admin-theme-dark .admin-sellers-switch__slider::after {
  background: #f8fafc;
}

html.admin-theme-dark .admin-sellers-toggle-note {
  color: #94a3b8;
}

/* ===== Dark theme — seller view toggle ===== */
html.admin-theme-dark .admin-sellers-view-tabs {
  background: #0b1220;
  border-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-sellers-view-tab {
  color: #94a3b8;
}

html.admin-theme-dark .admin-sellers-view-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

html.admin-theme-dark .admin-sellers-view-tab.is-active {
  background: #1e293b;
  color: #fb923c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ===== Dark theme — seller cards ===== */
html.admin-theme-dark .admin-sellers-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

html.admin-theme-dark .admin-sellers-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html.admin-theme-dark .admin-sellers-card__head {
  background-color: #1e293b;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 88%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 48%),
    linear-gradient(135deg, #f44336 0%, #6d28d9 45%, #be185d 100%);
}

html.admin-theme-dark .admin-sellers-card__head--has-banner {
  background-color: #0b1220;
}

html.admin-theme-dark .admin-sellers-card__logo {
  background: #1e293b;
  border-color: #1e293b;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

html.admin-theme-dark .admin-sellers-card__logo-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff;
}

html.admin-theme-dark .admin-sellers-card__status {
  background: rgba(11, 18, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

html.admin-theme-dark .admin-sellers-card__status--active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.4);
  color: #86efac;
}

html.admin-theme-dark .admin-sellers-card__status--inactive {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

html.admin-theme-dark .admin-sellers-card__status--pending {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(250, 204, 21, 0.4);
  color: #fde68a;
}

html.admin-theme-dark .admin-sellers-card__status--deleted {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

html.admin-theme-dark .admin-sellers-card__name {
  color: #f1f5f9;
}

html.admin-theme-dark .admin-sellers-card__cat-chip {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

html.admin-theme-dark .admin-sellers-card__link {
  color: #fb923c;
}

html.admin-theme-dark .admin-sellers-card__star-pill {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

html.admin-theme-dark .admin-sellers-card__rating-count {
  color: #94a3b8;
}

html.admin-theme-dark .admin-sellers-card__meta li {
  color: #cbd5e1;
}

html.admin-theme-dark .admin-sellers-card__meta-icon--mail,
html.admin-theme-dark .admin-sellers-card__meta-icon--phone {
  color: #94a3b8;
}

html.admin-theme-dark .admin-sellers-card__revenue {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-sellers-card__revenue-label {
  color: #cbd5e1;
}

html.admin-theme-dark .admin-sellers-card__revenue-value {
  color: #4ade80;
}

html.admin-theme-dark .admin-sellers-card__progress {
  background: rgba(244, 114, 182, 0.18);
}

html.admin-theme-dark .admin-sellers-card__stat-num {
  color: #f1f5f9;
}

html.admin-theme-dark .admin-sellers-card__stat-label {
  color: #94a3b8;
}

html.admin-theme-dark .admin-sellers-card__foot {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-sellers-card__btn--ghost {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

html.admin-theme-dark .admin-sellers-card__btn--ghost:hover {
  background: #273449;
  border-color: rgba(255, 255, 255, 0.18);
}

html.admin-theme-dark .admin-sellers-card__icon-btn--power:not(.is-active) {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

html.admin-theme-dark .admin-sellers-card__icon-btn--power:not(.is-active):hover {
  background: #273449;
  color: #cbd5e1;
}

html.admin-theme-dark .admin-sellers-card__icon-btn--power.is-active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
}

html.admin-theme-dark .admin-sellers-card__icon-btn--power.is-active:hover {
  background: rgba(34, 197, 94, 0.28);
}

html.admin-theme-dark .admin-sellers-card__icon-btn--delete {
  background: rgba(190, 24, 93, 0.16);
  border-color: rgba(244, 114, 182, 0.45);
  color: #fecdd3;
}

html.admin-theme-dark .admin-sellers-card__icon-btn--delete:hover {
  background: rgba(190, 24, 93, 0.24);
}

html.admin-theme-dark .admin-sellers-card__icon-note {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(248, 113, 113, 0.35);
}

html.admin-theme-dark .admin-kyc-page .admin-avatar-sm {
  background: linear-gradient(145deg, #2c313c 0%, #1e222c 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #c4c9d4;
  box-shadow: none;
}

html.admin-theme-dark .admin-kyc-tab {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-kyc-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #4b5563;
}

html.admin-theme-dark .admin-kyc-tabs {
  border-top-color: var(--admin-border);
}

html.admin-theme-dark .admin-kyc-reason {
  color: #fbbf24;
}

html.admin-theme-dark .admin-kyc-action-form__btn--reject,
html.admin-theme-dark .admin-kyc-inline-form__btn--reject {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}

html.admin-theme-dark .admin-kyc-action-form__btn--reject:hover {
  background: rgba(220, 38, 38, 0.2) !important;
}

html.admin-theme-dark .admin-earnings-fee-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-earnings-fee-pill svg {
  color: #94a3b8;
}

html.admin-theme-dark .admin-pagination {
  border-top-color: var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
}

html.admin-theme-dark .admin-pagination__select {
  background: #121212;
  border-color: var(--admin-border);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-pagination__btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--admin-border);
  color: var(--admin-text);
}

html.admin-theme-dark .admin-pagination__btn:hover {
  border-color: var(--admin-accent);
  color: #fff;
}

html.admin-theme-dark .admin-layout.sidebar-open .admin-sidebar {
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.55);
}

html.admin-theme-dark .admin-del-toolbar__search {
  background: #121212;
  border-color: var(--admin-border);
}

html.admin-theme-dark .admin-del-select {
  background: #121212;
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-del-process {
  background: linear-gradient(135deg, #121212 0%, #222222 100%);
}

html.admin-theme-dark .admin-del-table-footer {
  background: #222222;
}

html.admin-theme-dark .admin-del-btn--outline:hover {
  background: #1e222c;
  border-color: #3d4558;
}

html.admin-theme-dark .admin-del-export__menu,
html.admin-theme-dark .admin-del-menu__panel {
  background: var(--admin-surface);
}

html.admin-theme-dark .admin-del-menu summary:hover {
  background: #222222;
}

html.admin-theme-dark .admin-del-flash--ok {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

html.admin-theme-dark .admin-del-flash--err {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

html.admin-theme-dark .admin-del-page-btn {
  background: #1c1f28;
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-del-page-size select {
  background: #1c1f28;
  border-color: var(--admin-border);
}

html.admin-theme-dark .admin-del-menu__dash {
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-del-star {
  color: #3d4558;
}

html.admin-theme-dark .admin-del-pill--muted {
  background: #222222;
  color: var(--admin-text-muted);
}

/* Theme / fullscreen: stack two icons in one button cell */
#adminThemeBtn,
#adminFullscreenBtn {
  grid-template-areas: "admin-icon-stack";
}

#adminThemeBtn>.admin-theme-icon,
#adminFullscreenBtn>.admin-fs-icon {
  grid-area: admin-icon-stack;
}

/* Mobile sidebar */
@media (max-width: 900px) {
  .admin-menu-btn {
    display: grid;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-layout.sidebar-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
  }

  .admin-main-wrap {
    margin-left: 0;
  }

  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 90;
  }

  .admin-layout.sidebar-open .admin-sidebar-overlay {
    display: block;
  }

  /* Topbar clutter: hide on small screens */
  .admin-topbar__left .admin-search {
    display: none;
  }

  #adminFullscreenBtn,
  #adminLanguageBtn {
    display: none;
  }

  /* Notification panel: absolute + wide width overflows left of viewport when
     the bell sits right of center — anchor to viewport on small screens. */
  .admin-notify-dropdown {
    position: fixed;
    top: calc(var(--admin-top-h) + 8px);
    right: max(12px, env(safe-area-inset-right, 0px));
    left: auto;
    width: min(340px, calc(100vw - 24px));
    padding-top: 0;
    z-index: 85;
  }
}

/* Global admin search (search.php) */
.admin-search-page__block {
  margin-bottom: 1.25rem;
}

.admin-search-page-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.admin-search-page-form__input {
  flex: 1;
  min-width: 200px;
}

/* Confirmation modal — used by seller delete (and reusable across admin pages) */
.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.admin-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.admin-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.admin-confirm-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  background: var(--admin-surface);
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 24px 22px 20px;
  text-align: center;
  transform: translateY(8px) scale(0.97);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.admin-confirm-modal.is-open .admin-confirm-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-confirm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.admin-confirm-modal__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-confirm-modal__text {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--admin-text-muted);
}

.admin-confirm-modal__text strong {
  color: var(--admin-text);
  font-weight: 600;
  word-break: break-word;
}

.admin-confirm-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-confirm-modal__btn {
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-confirm-modal__btn--danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.admin-confirm-modal__btn--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.admin-confirm-modal__btn--danger:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 2px;
}

body.admin-modal-open {
  overflow: hidden;
}

html.admin-theme-dark .admin-confirm-modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
}

html.admin-theme-dark .admin-confirm-modal__dialog {
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.4);
}

html.admin-theme-dark .admin-confirm-modal__icon {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

@media (max-width: 480px) {
  .admin-confirm-modal__dialog {
    padding: 20px 18px 16px;
  }

  .admin-confirm-modal__btn {
    min-width: 0;
    flex: 1;
  }
}

/* ============================================================
   CRM / CMS — admin/crm.php + sidebar dropdown
   ============================================================ */

/* Sidebar dropdown for CRM (uses native <details>/<summary>). */
.admin-nav__group--dropdown {
  margin: 2px 10px;
  padding: 0;
  background: transparent;
  border-radius: 8px;
}

.admin-nav__group--dropdown>.admin-nav__parent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--admin-text);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.admin-nav__group--dropdown>.admin-nav__parent::-webkit-details-marker {
  display: none;
}

.admin-nav__group--dropdown>.admin-nav__parent svg:first-of-type {
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-nav__group--dropdown>.admin-nav__parent .admin-nav__chevron {
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.admin-nav__group--dropdown[open]>.admin-nav__parent .admin-nav__chevron {
  transform: rotate(180deg);
}

.admin-nav__group--dropdown>.admin-nav__parent:hover {
  background: #f3f4f6;
}

.admin-nav__group--dropdown.admin-nav__group--active>.admin-nav__parent {
  color: var(--admin-accent);
}

.admin-nav__group--dropdown.admin-nav__group--active>.admin-nav__parent svg:first-of-type {
  opacity: 1;
  fill: var(--admin-accent);
}

.admin-nav__group--dropdown .admin-nav__sublink {
  margin: 2px 0 0 30px;
}

html.admin-theme-dark .admin-nav__group--dropdown>.admin-nav__parent:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* CRM page layout */
.admin-crm-page {
  /* padding: 24px clamp(16px, 4vw, 32px) 64px; */
  /* max-width: 1200px;
  margin: 0 auto; */
}

.admin-crm-card {
  margin-top: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--admin-shadow-card);
}

.admin-crm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-card-cap-bg);
}

.admin-crm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-crm-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--admin-text);
}

.admin-crm-tab--active {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  border-color: color-mix(in srgb, var(--admin-accent) 28%, transparent);
}

.admin-crm-body {
  padding: 22px clamp(16px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-crm-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-crm-section+.admin-crm-section {
  padding-top: 22px;
  border-top: 1px solid var(--admin-border);
}

.admin-crm-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-crm-section__subtitle {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-crm-section__hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
}

.admin-crm-form .admin-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-crm-form .admin-crm-span-3 {
  grid-column: 1 / -1;
}

.admin-crm-textarea {
  width: 100%;
  font-family: inherit;
  resize: vertical;
}

.admin-crm-textarea--sm {
  min-height: 80px;
}

.admin-crm-textarea {
  min-height: 140px;
}

.admin-crm-textarea--lg {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-crm-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--admin-text);
  cursor: pointer;
}

.admin-crm-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-accent);
}

.admin-crm-checkbox-field {
  align-self: end;
}

.admin-crm-meta {
  margin: 6px 0 0;
  font-size: 0.78rem;
}

/* --- Premium CRM Design System --- */
.admin-crm-page {
  --crm-glass-bg: rgba(255, 255, 255, 0.7);
  --crm-glass-border: rgba(255, 255, 255, 0.5);
  --crm-accent: #f44336;
  --crm-accent-glow: rgb(241 99 99 / 15%);
  /* max-width: 1400px;
  margin: 0 auto;
  padding: 20px; */
}

.admin-crm-card.card {
  background: var(--crm-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 20px;
}

.admin-crm-tabs {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  gap: 6px;
  margin: 0 20px;
}

.admin-crm-tab {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.admin-crm-tab:hover {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.4);
}

.admin-crm-tab--active {
  background: #ffffff;
  color: var(--crm-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-crm-body {
  padding: 20px;
}

.admin-crm-section {
  margin-bottom: 5px;
}

.admin-crm-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827;
  letter-spacing: -0.01em;
}

.admin-crm-section__hint {
  font-size: 0.95rem;
  color: var(--admin-text-muted);
  margin-bottom: 0;

}

/* Grid & Layout Utilities */
.admin-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.admin-settings-crms-field-span2 {
  grid-column: span 2;
}

.admin-crm-span-3 {
  grid-column: span 3;
}

.admin-settings-crms-req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 700;
}

.admin-field__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Premium Forms */
.admin-crm-form .admin-field {
  margin-bottom: 24px;
}

.admin-crm-form .admin-field__label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.admin-crm-form .admin-input {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.admin-crm-form .admin-input:focus {
  background: #ffffff;
  border-color: var(--crm-accent);
  box-shadow: 0 0 0 4px var(--crm-accent-glow);
  outline: none;
}

.admin-crm-textarea--sm {
  min-height: 100px;
}

.admin-crm-textarea--lg {
  min-height: 280px;
}

.admin-settings-crms-actions {
  margin-top: 0px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-btn--primary {
  background: linear-gradient(135deg, #ef4444 0%, #d70e0e 100%);
  border: 0;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.admin-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0px 5px 10px rgb(0 0 0 / 23%);
}

/* FAQ redesign */
.admin-crm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-crm-faq-row {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-crm-faq-row:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.admin-crm-faq-row>summary {
  padding: 20px 24px;
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-crm-faq-row[open] {
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.admin-crm-faq-row[open]>summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo Preview */
.admin-crm-logo-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* —— Site Info redesign —— */
.admin-crm-site {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-crm-site-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(244, 67, 54, 0.07) 0%, rgba(255, 255, 255, 0.85) 42%, rgba(14, 165, 233, 0.06) 100%),
    var(--admin-surface, #fff);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.admin-crm-site-hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.admin-crm-site-hero__mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--admin-accent, #f44336);
  letter-spacing: -0.03em;
}

.admin-crm-site-hero__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.admin-crm-site-hero__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-accent, #f44336);
}

.admin-crm-site-hero__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--admin-text, #111827);
  line-height: 1.2;
}

.admin-crm-site-hero__lede {
  margin: 0;
  max-width: 38rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-site-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 320px;
}

.admin-crm-site-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--admin-text, #1f2937);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-crm-site-chip svg {
  flex-shrink: 0;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-site-chip--wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
  color: #128c7e;
}

.admin-crm-site-chip--wa svg {
  color: #25d366;
}

.admin-crm-site-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-crm-site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-crm-site-panel {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.admin-crm-site-panel--address {
  grid-column: 1 / -1;
}

.admin-crm-site-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-crm-site-panel__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(244, 67, 54, 0.12), rgba(244, 67, 54, 0.04));
  color: var(--admin-accent, #f44336);
  border: 1px solid rgba(244, 67, 54, 0.12);
}

.admin-crm-site-panel__title {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text, #111827);
}

.admin-crm-site-panel__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-logo-row--site {
  margin-bottom: 18px;
  padding: 16px;
  gap: 20px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(15, 23, 42, 0.1);
  box-shadow: none;
  backdrop-filter: none;
}

.admin-crm-logo-row--site .admin-crm-logo-preview {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.admin-crm-logo-upload {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.admin-crm-logo-upload__preview {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.admin-crm-logo-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.admin-crm-logo-upload__fallback {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--admin-accent, #f44336);
}

.admin-crm-logo-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 18px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border: 1.5px dashed rgba(15, 23, 42, 0.16);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-crm-logo-drop:hover,
.admin-crm-logo-drop:focus-within {
  border-color: color-mix(in srgb, var(--admin-accent, #f44336) 55%, transparent);
  background: color-mix(in srgb, var(--admin-accent, #f44336) 5%, #fff);
  box-shadow: 0 8px 22px rgba(244, 67, 54, 0.08);
}

.admin-crm-logo-drop.is-dragover {
  border-color: var(--admin-accent, #f44336);
  border-style: solid;
  background: color-mix(in srgb, var(--admin-accent, #f44336) 8%, #fff);
  transform: translateY(-1px);
}

.admin-crm-logo-drop__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  color: var(--admin-accent, #f44336);
  background: color-mix(in srgb, var(--admin-accent, #f44336) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--admin-accent, #f44336) 14%, transparent);
}

.admin-crm-logo-drop__title {
  font-size: 0.92rem;
  color: var(--admin-text, #1f2937);
  line-height: 1.35;
}

.admin-crm-logo-drop__title strong {
  font-weight: 700;
  color: var(--admin-accent, #f44336);
}

.admin-crm-logo-drop__meta {
  font-size: 0.78rem;
  color: var(--admin-text-muted, #6b7280);
  line-height: 1.4;
}

.admin-crm-logo-drop__file {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--admin-text, #1f2937);
  font-size: 0.75rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-crm-logo-drop__btn {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--admin-accent, #f44336);
  box-shadow: 0 6px 14px rgba(244, 67, 54, 0.22);
}

.admin-crm-logo-drop:hover .admin-crm-logo-drop__btn {
  background: var(--admin-accent-hover, #e23124);
}

.admin-crm-logo-upload__remove {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-crm-logo-upload.is-picked .admin-crm-logo-drop {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
}

.admin-crm-logo-upload.is-picked .admin-crm-logo-drop__icon {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
}

.admin-crm-logo-upload.is-picked .admin-crm-logo-drop__title strong {
  color: #059669;
}

.admin-crm-site-fields {
  display: grid;
  gap: 14px;
}

.admin-crm-site-field--wa .admin-input {
  border-color: rgba(37, 211, 102, 0.28);
}

.admin-crm-site-field--wa .admin-input:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.admin-crm-site-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-crm-site-actions__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-site-actions__btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .admin-crm-site-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-crm-site-hero__chips {
    justify-content: flex-start;
    max-width: none;
  }

  .admin-crm-site-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-crm-site-hero {
    padding: 20px;
  }

  .admin-crm-site-hero__brand {
    align-items: flex-start;
  }

  .admin-crm-logo-row--site {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-crm-logo-upload {
    grid-template-columns: 1fr;
  }

  .admin-crm-logo-upload__preview {
    width: 96px;
    height: 96px;
  }

  .admin-crm-site-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-crm-site-actions__btns {
    width: 100%;
  }

  .admin-crm-site-actions__btns .admin-btn {
    flex: 1;
    justify-content: center;
  }
}

html.admin-theme-dark .admin-crm-site-hero {
  background:
    linear-gradient(135deg, rgba(244, 67, 54, 0.12) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(14, 165, 233, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.admin-theme-dark .admin-crm-site-hero__title {
  color: #f8fafc;
}

html.admin-theme-dark .admin-crm-site-hero__mark,
html.admin-theme-dark .admin-crm-site-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

html.admin-theme-dark .admin-crm-site-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.admin-theme-dark .admin-crm-site-panel__title {
  color: #f1f5f9;
}

html.admin-theme-dark .admin-crm-logo-row--site {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

html.admin-theme-dark .admin-crm-logo-upload__preview {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

html.admin-theme-dark .admin-crm-logo-drop {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

html.admin-theme-dark .admin-crm-logo-drop:hover,
html.admin-theme-dark .admin-crm-logo-drop:focus-within,
html.admin-theme-dark .admin-crm-logo-drop.is-dragover {
  background: rgba(244, 67, 54, 0.1);
  border-color: rgba(244, 67, 54, 0.45);
}

html.admin-theme-dark .admin-crm-logo-drop__title,
html.admin-theme-dark .admin-crm-logo-drop__file {
  color: #e2e8f0;
}

html.admin-theme-dark .admin-crm-logo-upload__remove {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-site-actions {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-crm-logo-preview {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  flex-shrink: 0;
}

.admin-crm-logo-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.admin-crm-logo-fallback {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crm-accent);
  letter-spacing: -0.02em;
}

.admin-crm-logo-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-crm-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  cursor: pointer;
  margin-top: 4px;
}

.admin-crm-checkbox input {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  accent-color: var(--crm-accent);
}

/* Theme Cards */
.admin-crm-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.admin-crm-theme-card {
  position: relative;
  border-radius: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgb(233 233 233);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.admin-crm-theme-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.admin-crm-theme-card--active {
  background: #ffffff;
  border-color: var(--crm-accent);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.12);
}

.admin-crm-theme-card__preview {
  height: 160px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  transition: transform 0.6s ease;
}

.admin-crm-theme-card:hover .admin-crm-theme-card__preview {
  transform: scale(1.02);
}

.admin-crm-theme-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-crm-theme-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin: 0;
}

.admin-crm-theme-card__desc {
  font-size: 0.80rem;
  color: var(--admin-text-muted);
  margin: 0;
  flex: 1;
}

.admin-crm-theme-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.admin-crm-theme-chip {
  padding: 6px 14px;
  background: rgb(241 99 99 / 6%);
  color: var(--crm-accent);
  border-radius: 12px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.admin-crm-theme-card:hover .admin-crm-theme-chip {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.admin-crm-theme-card__note {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
  padding: 10px 20px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.admin-crm-theme-card__form {
  margin-top: auto;
}

.admin-crm-theme-card__form .admin-btn--primary {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* Theme Hero Section */
.admin-crm-theme-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 24px;
  margin-bottom: 10px;
  gap: 32px;
}

.admin-crm-theme-hero__left {
  flex: 1;
}

.admin-crm-theme-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crm-accent);
  margin-bottom: 12px;
  display: block;
}

.admin-crm-theme-hero__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

.admin-crm-theme-hero__lede {
  font-size: 0.95rem;
  color: var(--admin-text-muted);
  line-height: 1.6;
  margin: 0;
}

.admin-crm-theme-hero__right {
  display: flex;
  align-items: center;
}

.admin-crm-theme-hero__routes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.admin-crm-theme-hero__routes span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
}

.admin-crm-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  color: #f44336;
}

html.admin-theme-dark .admin-crm-theme-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

html.admin-theme-dark .admin-crm-theme-hero__title {
  color: #f1f5f9;
}

html.admin-theme-dark .admin-crm-code {
  background: rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
}

/* Dark mode overrides */
html.admin-theme-dark .admin-crm-page {
  --crm-glass-bg: rgba(24, 24, 27, 0.7);
  --crm-glass-border: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-card.card {
  background: var(--crm-glass-bg);
  border-color: var(--crm-glass-border);
}

html.admin-theme-dark .admin-page-head h1 {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
}

html.admin-theme-dark .admin-crm-tabs {
  background: rgba(255, 255, 255, 0.05);
}

html.admin-theme-dark .admin-crm-tab--active {
  background: rgba(255, 255, 255, 0.1);
  color: #818cf8;
}

html.admin-theme-dark .admin-crm-section__title {
  color: #f8fafc;
}

html.admin-theme-dark .admin-crm-form .admin-field__label {
  color: #e2e8f0;
}

html.admin-theme-dark .admin-crm-form .admin-input {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

html.admin-theme-dark .admin-crm-form .admin-input:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--crm-accent);
}

html.admin-theme-dark .admin-crm-faq-row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-faq-row[open] {
  background: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-logo-row,
html.admin-theme-dark .admin-crm-theme-card,
html.admin-theme-dark .admin-crm-site-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-theme-card--active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--crm-accent);
}

/* Premium Status Badges */
.admin-crm-page .admin-status {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-crm-page .admin-status--delivered {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-crm-page .admin-status--cancelled {
  background: rgba(244, 63, 94, 0.1);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Micro-interactions */
.admin-crm-tab,
.admin-btn,
.admin-crm-theme-card,
.admin-crm-faq-row {
  cursor: pointer;
  user-select: none;
}

.admin-crm-meta {
  display: flex;
  align-items: center;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

html.admin-theme-dark .admin-crm-meta {
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   CRM Legal & Compliance Manager Redesign
   ========================================================================== */
.admin-crm-legal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-crm-legal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(99, 102, 241, 0.06) 100%),
    var(--admin-surface, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.admin-crm-legal-hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.admin-crm-legal-hero__mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.28);
}

.admin-crm-legal-hero__eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dc2626;
}

.admin-crm-legal-hero__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--admin-text, #111827);
  line-height: 1.25;
}

.admin-crm-legal-hero__lede {
  margin: 0;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-legal-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.admin-crm-legal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-crm-legal-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--admin-text, #1f2937);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-crm-legal-stat-chip .dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.admin-crm-legal-stat-chip .dot-warn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

/* Upload Card & Dropzone */
.admin-crm-legal-upload-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.admin-crm-legal-upload-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-crm-legal-upload-card__title {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--admin-text, #111827);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-crm-legal-upload-card__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-legal-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  border: 2px dashed rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
  text-align: center;
}

.admin-crm-legal-dropzone:hover,
.admin-crm-legal-dropzone:focus-within {
  border-color: #dc2626;
  background: rgba(254, 242, 242, 0.6);
  box-shadow: 0 8px 26px rgba(220, 38, 38, 0.08);
  transform: translateY(-1px);
}

.admin-crm-legal-dropzone.is-dragover {
  border-color: #dc2626;
  border-style: solid;
  background: rgba(254, 242, 242, 0.95);
  transform: scale(1.01);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
}

.admin-crm-legal-dropzone__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-crm-legal-dropzone__text {
  font-size: 0.95rem;
  color: var(--admin-text, #1f2937);
  line-height: 1.4;
}

.admin-crm-legal-dropzone__text strong {
  color: #dc2626;
  text-decoration: underline;
}

.admin-crm-legal-dropzone__meta {
  font-size: 0.78rem;
  color: var(--admin-text-muted, #6b7280);
}

/* Staged / newly selected files list */
.admin-crm-legal-staged-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-crm-legal-staged-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.82rem;
  color: #166534;
}

.admin-crm-legal-staged-item svg {
  flex-shrink: 0;
  color: #15803d;
}

.admin-crm-legal-staged-item__info {
  flex: 1;
  min-width: 0;
}

.admin-crm-legal-staged-item__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-crm-legal-staged-item__size {
  font-size: 0.74rem;
  opacity: 0.85;
}

/* Active Documents Section */
.admin-crm-legal-docs-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-crm-legal-docs-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-crm-legal-docs-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--admin-text, #111827);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-crm-legal-doc-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--admin-surface, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.admin-crm-legal-doc-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-crm-legal-doc-card.is-marked-delete {
  background: rgba(254, 242, 242, 0.5);
  border-color: #fca5a5;
  opacity: 0.7;
}

.admin-crm-legal-doc-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.admin-crm-legal-doc-card__meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-crm-legal-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.06));
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-crm-legal-doc-badge svg {
  color: #dc2626;
}

.admin-crm-legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.admin-crm-legal-pill--ok {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-crm-legal-pill--ok .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.admin-crm-legal-pill--err {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-crm-legal-pill--err .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.admin-crm-legal-doc-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Replace File Box */
.admin-crm-legal-replace-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-crm-legal-replace-box__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-crm-legal-current-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-crm-legal-current-file__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-crm-legal-current-file__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-crm-legal-current-file__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--admin-text, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.admin-crm-legal-current-file__size {
  font-size: 0.74rem;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-legal-replace-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.admin-crm-legal-replace-status {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #15803d;
  animation: fadeIn 0.2s ease-in;
}

.admin-crm-legal-replace-status strong {
  color: #166534;
}

.admin-crm-legal-replace-status__cancel {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.admin-crm-legal-replace-status__cancel:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Accordion for Page SEO Settings */
.admin-crm-legal-page-details {
  border-radius: 18px;
  background: var(--admin-surface, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.admin-crm-legal-page-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: rgba(248, 250, 252, 0.5);
  transition: background 0.15s ease;
}

.admin-crm-legal-page-summary::-webkit-details-marker {
  display: none;
}

.admin-crm-legal-page-summary:hover {
  background: rgba(248, 250, 252, 0.95);
}

.admin-crm-legal-page-summary__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-crm-legal-page-summary__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-crm-legal-page-summary__title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--admin-text, #111827);
}

.admin-crm-legal-page-summary__hint {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-legal-page-summary__chevron {
  transition: transform 0.2s ease;
  color: var(--admin-text-muted, #6b7280);
}

.admin-crm-legal-page-details[open] .admin-crm-legal-page-summary__chevron {
  transform: rotate(180deg);
}

.admin-crm-legal-page-details__body {
  padding: 22px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* Empty State */
.admin-crm-legal-empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px dashed rgba(15, 23, 42, 0.12);
}

.admin-crm-legal-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin: 0 auto 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  display: grid;
  place-items: center;
}

.admin-crm-legal-empty__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--admin-text, #111827);
}

.admin-crm-legal-empty__text {
  margin: 0 auto 20px;
  max-width: 28rem;
  font-size: 0.86rem;
  color: var(--admin-text-muted, #6b7280);
  line-height: 1.5;
}

/* Dark Mode Overrides */
html.admin-theme-dark .admin-crm-legal-hero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(30, 27, 75, 0.4) 100%), var(--admin-surface, #1e1b4b);
  border-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-legal-stat-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

html.admin-theme-dark .admin-crm-legal-upload-card,
html.admin-theme-dark .admin-crm-legal-doc-card,
html.admin-theme-dark .admin-crm-legal-page-details {
  background: var(--admin-surface, #1f2937);
  border-color: rgba(255, 255, 255, 0.08);
}

html.admin-theme-dark .admin-crm-legal-dropzone {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(239, 68, 68, 0.4);
}

html.admin-theme-dark .admin-crm-legal-dropzone:hover {
  background: rgba(239, 68, 68, 0.08);
}

html.admin-theme-dark .admin-crm-legal-replace-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

html.admin-theme-dark .admin-crm-legal-page-summary {
  background: rgba(255, 255, 255, 0.02);
}

html.admin-theme-dark .admin-crm-legal-current-file__name {
  color: #f8fafc;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .admin-crm-legal-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-crm-legal-hero__actions {
    align-items: flex-start;
    width: 100%;
  }

  .admin-crm-legal-stats {
    justify-content: flex-start;
  }

  .admin-crm-legal-doc-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-crm-legal-doc-card__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-crm-legal-replace-box__main {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Admin categories & catalog */
.admin-categories-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-cat-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-cat-header-bar__title-group h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--admin-text);
}
.admin-cat-header-bar__title-group p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
}
.admin-cat-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-cat-kpi-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--admin-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-cat-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-card);
}
.admin-cat-kpi-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  flex-shrink: 0;
}
.admin-cat-kpi-card__info {
  display: flex;
  flex-direction: column;
}
.admin-cat-kpi-card__val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text);
  line-height: 1.2;
}
.admin-cat-kpi-card__label {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  font-weight: 500;
  margin-top: 2px;
}
.admin-cat-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 980px) {
  .admin-cat-workspace {
    grid-template-columns: 1fr;
  }
}
.admin-cat-sidebar {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-cat-sidebar__head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-cat-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-cat-sidebar__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-cat-sidebar__count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  border-radius: 999px;
}
.admin-cat-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.admin-cat-search-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--admin-text-muted);
  pointer-events: none;
}
.admin-cat-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 0.85rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-bg);
  color: var(--admin-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-cat-search-input:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}
.admin-cat-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 580px;
  overflow-y: auto;
}
.admin-cat-item-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--admin-text);
  text-decoration: none;
  box-sizing: border-box;
}
.admin-cat-item-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}
html.admin-theme-dark .admin-cat-item-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
.admin-cat-item-btn.is-selected {
  background: var(--admin-accent-soft);
  border-color: var(--admin-accent);
}
.admin-cat-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.admin-cat-item-btn.is-selected .admin-cat-item__icon {
  background: #ffffff;
  border-color: var(--admin-accent);
}
html.admin-theme-dark .admin-cat-item-btn.is-selected .admin-cat-item__icon {
  background: #1e293b;
}
.admin-cat-item__body {
  flex: 1;
  min-width: 0;
}
.admin-cat-item__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}
.admin-cat-item__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--admin-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-cat-item__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-cat-item__status-dot--active {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.admin-cat-item__status-dot--inactive {
  background: #9ca3af;
}
.admin-cat-item__meta {
  font-size: 0.74rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-cat-item__arrow {
  color: var(--admin-text-muted);
  opacity: 0.4;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}
.admin-cat-item-btn.is-selected .admin-cat-item__arrow {
  color: var(--admin-accent);
  opacity: 1;
  transform: translateX(2px);
}
.admin-cat-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-cat-hero-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-cat-hero-card__profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-cat-hero-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--admin-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.admin-cat-hero-card__title {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-cat-hero-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.admin-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  font-weight: 500;
}
.admin-cat-tag--code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.admin-cat-tag--success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
  font-weight: 600;
}
.admin-cat-tag--muted {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border-color: rgba(156, 163, 175, 0.25);
}
.admin-cat-hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.admin-cat-sub-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  overflow: hidden;
}
.admin-cat-sub-card__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-cat-sub-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-cat-sub-card__filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}
.admin-cat-sub-card__filter-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--admin-text-muted);
  pointer-events: none;
}
.admin-cat-sub-card__filter-input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  font-size: 0.82rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-bg);
  color: var(--admin-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-cat-sub-card__filter-input:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-accent-soft);
}
.admin-cat-table-wrap {
  overflow-x: auto;
}
.admin-cat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
.admin-cat-table th {
  padding: 12px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-text-muted);
  background: var(--admin-bg);
  border-bottom: 1px solid var(--admin-border);
}
.admin-cat-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
  color: var(--admin-text);
}
.admin-cat-table tr:last-child td {
  border-bottom: none;
}
.admin-cat-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}
html.admin-theme-dark .admin-cat-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.admin-cat-table__name {
  font-weight: 700;
  color: var(--admin-text);
}
.admin-cat-table__slug {
  font-size: 0.74rem;
  color: var(--admin-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-top: 2px;
}
.admin-cat-sizes-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  max-width: 380px;
}
.admin-cat-size-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--admin-text);
}
.admin-cat-size-pill--more {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  border-color: transparent;
  cursor: help;
}
.admin-cat-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-cat-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.admin-cat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.admin-cat-modal__dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: var(--admin-surface);
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.admin-cat-modal.is-open .admin-cat-modal__dialog {
  transform: translateY(0) scale(1);
}
.admin-cat-modal__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-cat-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-cat-modal__close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-cat-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--admin-text);
}
html.admin-theme-dark .admin-cat-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-cat-modal__body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-cat-modal__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-bg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.admin-cat-emoji-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  max-height: 104px;
  overflow-y: auto;
}
.admin-cat-emoji-btn {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}
.admin-cat-emoji-btn:hover {
  transform: scale(1.15);
  border-color: var(--admin-accent);
}
.admin-cat-emoji-btn.is-active {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
}
.admin-cat-presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.admin-cat-preset-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: var(--admin-bg);
  color: var(--admin-text);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-cat-preset-btn:hover {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}
.admin-cat-sizes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-cat-sizes__group-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
}
.admin-cat-sizes__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-cat-size-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.admin-cat-size-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.admin-cat-size-chip span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--admin-surface);
  color: var(--admin-text);
  transition: all 0.12s ease;
}
.admin-cat-size-chip input:checked+span {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
  color: #991b1b;
}
html.admin-theme-dark .admin-cat-size-chip span {
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}
html.admin-theme-dark .admin-cat-size-chip input:checked+span {
  background: rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  border-color: #ef4444;
}
.admin-cat-empty-state {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.admin-cat-empty-state__icon {
  font-size: 2.5rem;
}
.admin-cat-empty-state__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text);
}
.admin-cat-empty-state__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  max-width: 360px;
}
