

:root,
[data-admin-theme="light"] {
  color-scheme: light;
  --admin-bg: #eef2f8;
  --admin-surface: #ffffff;
  --admin-surface-elevated: #f8fafc;
  --admin-border: rgba(22, 119, 255, 0.14);
  --admin-border-strong: rgba(22, 119, 255, 0.22);
  --admin-text: #0f172a;
  --admin-muted: #475569;
  --admin-faint: #64748b;
  --admin-accent: #1677ff;
  --admin-accent-hover: #4096ff;
  --admin-accent-glow: rgba(22, 119, 255, 0.14);
  --admin-violet: #7c3aed;
  --admin-violet-dim: rgba(124, 58, 237, 0.08);
  --admin-ok: #059669;
  --admin-danger: #ff1e1e;
  --admin-radius: 12px;
  --admin-radius-sm: 8px;
  --admin-font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --admin-font-display: "Plus Jakarta Sans", var(--admin-font);
  --admin-nav-idle: #64748b;
  --admin-nav-bg: transparent;
  --admin-nav-border: rgba(22, 119, 255, 0.12);
  --admin-nav-icon-color: #94a3b8;
  --admin-nav-hover-bg: rgba(15, 23, 42, 0.06);
  --admin-nav-hover-border: rgba(22, 119, 255, 0.18);
  --admin-nav-hover-text: #0f172a;
  --admin-nav-hover-icon: #475569;
  --admin-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --admin-ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --admin-shadow-lg: 0 20px 40px -24px rgba(15, 23, 42, 0.1);
  --admin-overlay: rgba(15, 23, 42, 0.04);
  --admin-overlay-hover: rgba(15, 23, 42, 0.06);
  --admin-input-bg: #ffffff;
  --admin-sidebar-bg: linear-gradient(
      165deg,
      rgba(22, 119, 255, 0.05) 0%,
      transparent 42%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --admin-login-bg: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  --admin-login-shadow: var(--admin-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --admin-glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  --admin-safe-bottom: env(safe-area-inset-bottom, 0px);
  --admin-safe-left: env(safe-area-inset-left, 0px);
  --admin-safe-right: env(safe-area-inset-right, 0px);
  --admin-space-section: 1.75rem;
  --admin-content-gutter: 18px;
  --admin-sidebar-w: 17.75rem;
  --admin-sidebar-w-collapsed: 5.25rem;
  --admin-sidebar-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --admin-sidebar-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --admin-drawer-ms: 260ms;
  --admin-backdrop-ms: 220ms;
  --admin-nav-ms: 180ms;
  --admin-inset-bg: #f8fafc;
  --admin-modal-scrim: rgba(15, 23, 42, 0.4);
  --admin-warning-bg: rgba(254, 243, 199, 0.7);
  --admin-warning-border: rgba(245, 158, 11, 0.35);
  --admin-warning-text: #92400e;
  --admin-table-stripe: rgba(15, 23, 42, 0.02);
  --admin-table-hover: rgba(22, 119, 255, 0.04);
  --admin-table-head-bg: #f1f5f9;
  --admin-panel-shadow: 0 4px 18px -14px rgba(15, 23, 42, 0.12);
  --admin-coin-text: #b45309;
  --admin-badge-pending-bg: rgba(254, 243, 199, 0.95);
  --admin-badge-pending-text: #92400e;
  --admin-badge-pending-border: rgba(245, 158, 11, 0.35);
  --admin-badge-ok-bg: rgba(209, 250, 229, 0.95);
  --admin-badge-ok-text: #047857;
  --admin-badge-ok-border: rgba(5, 150, 105, 0.28);
  --admin-badge-err-bg: rgba(254, 226, 226, 0.95);
  --admin-badge-err-text: #e01a1a;
  --admin-badge-err-border: rgba(255, 30, 30, 0.22);
  --admin-badge-info-bg: rgba(224, 242, 254, 0.95);
  --admin-badge-info-text: #0369a1;
  --admin-badge-info-border: rgba(14, 165, 233, 0.28);
  --admin-badge-violet-bg: rgba(237, 233, 254, 0.95);
  --admin-badge-violet-text: #6d28d9;
  --admin-badge-violet-border: rgba(124, 58, 237, 0.25);
  --admin-action-approve-bg: #ecfdf5;
  --admin-action-approve-hover: #d1fae5;
  --admin-action-approve-text: #047857;
  --admin-action-approve-border: rgba(5, 150, 105, 0.35);
  --admin-action-reject-bg: #fef2f2;
  --admin-action-reject-hover: #fee2e2;
  --admin-action-reject-text: #e01a1a;
  --admin-action-reject-border: rgba(255, 30, 30, 0.25);
  --admin-glass-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --admin-glass-shadow-hover: 0 16px 40px -18px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(22, 119, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --admin-chat-thead-bg: rgba(241, 245, 249, 0.98);
  --admin-chat-badge-bg: rgba(245, 158, 11, 0.14);
  --admin-chat-badge-text: #92400e;
  --admin-chat-badge-border: rgba(245, 158, 11, 0.28);
  --admin-chat-accent-text: #b45309;
  --admin-boot-glow: rgba(22, 119, 255, 0.06);
  --admin-member-tabbar-bg: rgba(255, 255, 255, 0.92);
  --admin-member-avatar-bg: linear-gradient(145deg, rgba(22, 119, 255, 0.12), rgba(255, 255, 255, 0.95));
  --admin-member-avatar-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.12);
  --admin-member-balance-bg: linear-gradient(160deg, rgba(254, 243, 199, 0.9), rgba(255, 251, 235, 0.95));
  --admin-member-balance-border: rgba(245, 158, 11, 0.35);
  --admin-member-balance-label: #92400e;
  --admin-member-balance-value: #b45309;
  --admin-member-balance-unit: #a16207;
  --admin-member-btn-primary-text: #047857;
  --admin-member-btn-coin-add-text: #047857;
  --admin-member-btn-coin-sub-text: #e01a1a;
  --admin-member-btn-password-text: #6d28d9;
  --admin-member-quick-amt-bg: rgba(15, 23, 42, 0.04);
  --admin-member-surface-shadow: 0 12px 32px -24px rgba(15, 23, 42, 0.08);
}

[data-admin-theme="dark"] {
  color-scheme: dark;
  --admin-bg: #181f2e;
  --admin-surface: #1e2739;
  --admin-surface-elevated: #252f44;
  --admin-border: rgba(22, 119, 255, 0.14);
  --admin-border-strong: rgba(22, 119, 255, 0.24);
  --admin-text: #f1f5f9;
  --admin-muted: #94a3b8;
  --admin-faint: #64748b;
  --admin-accent: #1677ff;
  --admin-accent-hover: #69b1ff;
  --admin-accent-glow: rgba(22, 119, 255, 0.2);
  --admin-violet: #a78bfa;
  --admin-violet-dim: rgba(167, 139, 250, 0.12);
  --admin-ok: #34d399;
  --admin-danger: #ff6b6b;
  --admin-nav-idle: #94a3b8;
  --admin-nav-bg: rgba(255, 255, 255, 0.03);
  --admin-nav-border: rgba(22, 119, 255, 0.1);
  --admin-nav-icon-color: rgba(148, 163, 184, 0.9);
  --admin-nav-hover-bg: rgba(255, 255, 255, 0.08);
  --admin-nav-hover-border: rgba(22, 119, 255, 0.16);
  --admin-nav-hover-text: #e8edf4;
  --admin-nav-hover-icon: #cbd5e1;
  --admin-shadow-lg: 0 22px 48px -28px rgba(0, 0, 0, 0.55);
  --admin-overlay: rgba(255, 255, 255, 0.04);
  --admin-overlay-hover: rgba(255, 255, 255, 0.07);
  --admin-input-bg: rgb(32, 42, 58);
  --admin-sidebar-bg: linear-gradient(
      165deg,
      rgba(22, 119, 255, 0.1) 0%,
      transparent 46%
    ),
    linear-gradient(180deg, #1e2739 0%, #181f2e 100%);
  --admin-login-bg: linear-gradient(
    165deg,
    #252f44 0%,
    #1e2739 48%,
    #181f2e 100%
  );
  --admin-login-shadow: var(--admin-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --admin-glass-bg: linear-gradient(
    155deg,
    rgba(37, 47, 68, 0.98),
    rgba(30, 39, 57, 0.96)
  );
  --admin-inset-bg: #1c2436;
  --admin-modal-scrim: rgba(6, 10, 18, 0.72);
  --admin-warning-bg: rgba(245, 158, 11, 0.12);
  --admin-warning-border: rgba(245, 158, 11, 0.28);
  --admin-warning-text: #fcd34d;
  --admin-table-stripe: rgba(255, 255, 255, 0.02);
  --admin-table-hover: rgba(22, 119, 255, 0.08);
  --admin-table-head-bg: rgb(32, 42, 58);
  --admin-panel-shadow: 0 4px 18px -14px rgba(0, 0, 0, 0.35);
  --admin-coin-text: #fbbf24;
  --admin-badge-pending-bg: rgba(245, 158, 11, 0.14);
  --admin-badge-pending-text: #fcd34d;
  --admin-badge-pending-border: rgba(245, 158, 11, 0.32);
  --admin-badge-ok-bg: rgba(16, 185, 129, 0.14);
  --admin-badge-ok-text: #6ee7b7;
  --admin-badge-ok-border: rgba(52, 211, 153, 0.28);
  --admin-badge-err-bg: rgba(239, 68, 68, 0.12);
  --admin-badge-err-text: #fca5a5;
  --admin-badge-err-border: rgba(255, 69, 69, 0.28);
  --admin-badge-info-bg: rgba(22, 119, 255, 0.14);
  --admin-badge-info-text: #91caff;
  --admin-badge-info-border: rgba(22, 119, 255, 0.28);
  --admin-badge-violet-bg: rgba(167, 139, 250, 0.12);
  --admin-badge-violet-text: #c4b5fd;
  --admin-badge-violet-border: rgba(167, 139, 250, 0.28);
  --admin-action-approve-bg: rgba(16, 185, 129, 0.12);
  --admin-action-approve-hover: rgba(16, 185, 129, 0.2);
  --admin-action-approve-text: #6ee7b7;
  --admin-action-approve-border: rgba(52, 211, 153, 0.32);
  --admin-action-reject-bg: rgba(239, 68, 68, 0.1);
  --admin-action-reject-hover: rgba(239, 68, 68, 0.18);
  --admin-action-reject-text: #fca5a5;
  --admin-action-reject-border: rgba(255, 69, 69, 0.28);
  --admin-glass-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --admin-glass-shadow-hover: 0 16px 40px -18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(22, 119, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --admin-chat-thead-bg: rgba(32, 42, 58, 0.98);
  --admin-chat-badge-bg: rgba(245, 158, 11, 0.16);
  --admin-chat-badge-text: #fcd34d;
  --admin-chat-badge-border: rgba(245, 158, 11, 0.32);
  --admin-chat-accent-text: #fbbf24;
  --admin-boot-glow: rgba(22, 119, 255, 0.12);
  --admin-member-tabbar-bg: rgba(26, 35, 50, 0.94);
  --admin-member-avatar-bg: linear-gradient(145deg, rgba(22, 119, 255, 0.22), rgba(32, 42, 58, 0.98));
  --admin-member-avatar-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.35);
  --admin-member-balance-bg: linear-gradient(160deg, rgba(245, 158, 11, 0.14), rgba(26, 35, 50, 0.96));
  --admin-member-balance-border: rgba(251, 191, 36, 0.32);
  --admin-member-balance-label: #fcd34d;
  --admin-member-balance-value: #fbbf24;
  --admin-member-balance-unit: #f59e0b;
  --admin-member-btn-primary-text: #6ee7b7;
  --admin-member-btn-coin-add-text: #6ee7b7;
  --admin-member-btn-coin-sub-text: #fca5a5;
  --admin-member-btn-password-text: #c4b5fd;
  --admin-member-quick-amt-bg: rgba(255, 255, 255, 0.04);
  --admin-member-surface-shadow: 0 12px 32px -24px rgba(0, 0, 0, 0.35);
}

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

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

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

body.admin-body {
  font-family: var(--admin-font);
  font-feature-settings: "ss01" 1, "cv01" 1;
  background-color: var(--admin-bg);
  margin: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--admin-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


#app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}


.admin-boot {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--admin-boot-glow), transparent 55%);
}

.admin-boot__card {
  text-align: center;
  max-width: 20rem;
}

.admin-boot__mark {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  font-family: var(--admin-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0f172a;
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  box-shadow: 0 12px 40px -8px rgba(14, 165, 233, 0.45);
}

.admin-boot__brand {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-boot__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--admin-muted);
}

.admin-boot__track {
  margin-top: 1.35rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.admin-boot__bar {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), var(--admin-accent), rgba(125, 211, 252, 0.9));
  animation: adminBootShimmer 1.15s ease-in-out infinite;
}

@keyframes adminBootShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-boot__bar {
    animation: none;
    width: 100%;
    opacity: 0.6;
  }
}


.admin-app {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  width: 100%;
}

@media (min-width: 1024px) {
  .admin-app {
    display: flex;
  }
}

.tab-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.tab-panel.tab-panel--wide {
  max-width: none;
}

.tab-panel.tab-panel--full {
  max-width: none;
}


.admin-panel,
.admin-glass {
  background: var(--admin-glass-bg);
  border: 1px solid var(--admin-border);
  border-radius: 1rem;
  box-shadow: var(--admin-glass-shadow);
  transition:
    border-color 0.2s var(--admin-ease-out),
    box-shadow 0.2s var(--admin-ease-out);
}

.admin-panel--padded,
.admin-glass.admin-panel--padded {
  padding: 1.5rem;
}

.admin-panel__head {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-panel__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-panel__lead {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--admin-muted);
}

.admin-section__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-inset {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-inset-bg);
  padding: 1rem 1.15rem;
}

.admin-inset--compact {
  padding: 0.75rem;
}

.admin-notice {
  margin-bottom: 1rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-warning-border);
  background: var(--admin-warning-bg);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--admin-warning-text);
}

.admin-notice--maintenance {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(254, 243, 199, 0.85);
}

.admin-code {
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.12rem 0.4rem;
  font-size: 0.8em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--admin-text);
}

.admin-checkbox {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  border-radius: 4px;
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-input-bg);
  accent-color: var(--admin-accent);
  cursor: pointer;
}

.admin-status-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-status-pill--on {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(254, 243, 199, 0.9);
  color: #b45309;
}

.admin-modal-overlay {
  background: var(--admin-modal-scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--admin-modal-scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-table-head th {
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-table-row {
  border-bottom: 1px solid var(--admin-border);
}

.admin-table-row:hover {
  background: var(--admin-table-hover);
}

.admin-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-muted);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.admin-pager-btn:hover:not(:disabled) {
  border-color: rgba(22, 119, 255, 0.3);
  background: var(--admin-surface-elevated);
  color: var(--admin-text);
}

.admin-pager-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.admin-icon-btn-close {
  border-radius: var(--admin-radius-sm);
  padding: 0.5rem;
  color: var(--admin-muted);
  transition: background 0.15s, color 0.15s;
}

.admin-icon-btn-close:hover {
  background: var(--admin-overlay);
  color: var(--admin-text);
}

.admin-sidebar {
  --admin-sidebar-pad-x: 0.95rem;
  --admin-sidebar-pad-y: 0.55rem;
  width: var(--admin-sidebar-w);
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding: var(--admin-sidebar-pad-y) var(--admin-sidebar-pad-x);
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  position: relative;
  isolation: isolate;
}


@media (min-width: 1024px) {
  .admin-sidebar {
    transition: width 0.26s var(--admin-sidebar-ease-soft);
  }

  body.admin-sidebar-collapsed .admin-sidebar {
    width: var(--admin-sidebar-w-collapsed);
    --admin-sidebar-pad-x: 0.45rem;
  }

  body.admin-sidebar-collapsed .admin-sidebar-head {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding-right: 0;
  }

  body.admin-sidebar-collapsed .admin-sidebar-collapse-toggle {
    position: static;
    transform: none;
  }

  body.admin-sidebar-collapsed .admin-sidebar-brand {
    justify-content: center;
    width: 100%;
  }

  body.admin-sidebar-collapsed .admin-sidebar-brand__logo-img {
    max-height: 2.15rem;
    max-width: 100%;
    object-fit: contain;
  }

  body.admin-sidebar-collapsed .admin-sidebar-brand__logo-fallback {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  body.admin-sidebar-collapsed .admin-nav-group__trigger,
  body.admin-sidebar-collapsed .admin-sidebar-hint {
    display: none;
  }

  body.admin-sidebar-collapsed .admin-nav-group__items {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    border-left: 0;
  }

  body.admin-sidebar-collapsed .admin-nav-tab--child {
    justify-content: center;
    padding: 0.5rem;
  }

  body.admin-sidebar-collapsed .admin-nav-tab--child .admin-nav-tab__mid,
  body.admin-sidebar-collapsed .admin-nav-tab--child .admin-nav-tab__label,
  body.admin-sidebar-collapsed .admin-nav-tab--child .admin-nav-tab__badge {
    display: none !important;
  }

  body.admin-sidebar-collapsed .admin-nav-tab--child .admin-nav-tab__row {
    justify-content: center;
    gap: 0;
  }

  body.admin-sidebar-collapsed .admin-nav-tab--child .admin-nav-tab__icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  body.admin-sidebar-collapsed .admin-sidebar-footer__actions {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body.admin-sidebar-collapsed .admin-sidebar__nav {
    gap: 4px;
  }
}

@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(18.75rem, 91vw);
    max-height: 100dvh;
    transform: translate3d(-100%, 0, 0);
    transition: transform var(--admin-drawer-ms) var(--admin-sidebar-ease);
    border-right: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow:
      1px 0 0 rgba(255, 255, 255, 0.04) inset,
      20px 0 56px -18px rgba(0, 0, 0, 0.65);
  }

  body.admin-drawer-open .admin-sidebar {
    transform: translate3d(0, 0, 0);
  }

  .admin-sidebar > nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.admin-drawer-backdrop {
  display: none;
}

@media (max-width: 1023px) {
  .admin-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(6, 10, 18, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--admin-backdrop-ms) var(--admin-sidebar-ease-soft);
  }

  body.admin-drawer-open .admin-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.admin-drawer-open {
    overflow: hidden;
  }
}

.admin-sidebar__topbar {
  display: none;
}

@media (max-width: 1023px) {
  .admin-sidebar__topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -0.35rem -0.25rem 0.75rem;
    flex-shrink: 0;
  }
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--admin-border-strong);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-input-bg);
  color: var(--admin-text);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 0.2s var(--admin-ease-out),
    border-color 0.2s,
    transform 0.15s;
}

.admin-icon-btn:hover {
  background: var(--admin-surface-elevated);
  border-color: rgba(22, 119, 255, 0.35);
  color: var(--admin-text);
}

.admin-icon-btn:active {
  transform: scale(0.96);
}

.admin-icon-btn:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

.admin-topbar__lead {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 14rem;
}

@media (min-width: 1024px) {
  .admin-topbar__lead {
    gap: 0;
  }
}

.admin-drawer-toggle {
  display: inline-flex;
  flex-shrink: 0;
}

.admin-sidebar-collapse-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  border-color: var(--admin-nav-border);
  background: var(--admin-nav-bg);
}

.admin-sidebar-collapse-toggle svg {
  display: block;
  transition: transform 0.22s var(--admin-sidebar-ease-soft);
}

@media (min-width: 1024px) {
  .admin-drawer-toggle {
    display: none;
  }

  .admin-sidebar-collapse-toggle {
    display: inline-flex;
  }
}

.admin-topbar__lead .admin-topbar__text {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-sidebar-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0 0.85rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .admin-sidebar-head {
    padding-right: 2.35rem;
  }

  .admin-sidebar-collapse-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--admin-sidebar-ease-soft);
}

.admin-sidebar-brand:hover {
  opacity: 0.88;
}

.admin-sidebar-brand:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 3px;
  border-radius: var(--admin-radius-sm);
}

.admin-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--admin-radius-sm);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0c1220;
  background: linear-gradient(145deg, #5ac8fa 0%, var(--admin-accent) 45%, #0284c7 100%);
  box-shadow: 0 4px 14px -4px rgba(14, 165, 233, 0.55);
}

.admin-logo-mark--image {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.admin-sidebar-brand__logo-img {
  width: min(11.5rem, 100%);
  max-height: 3.1rem;
  height: auto;
  object-fit: contain;
  display: block;
}

.admin-sidebar-brand__logo-fallback {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--admin-text);
}

.admin-sidebar-search {
  flex-shrink: 0;
  margin: 0 0 0.65rem;
}

.admin-sidebar-search__field {
  position: relative;
  display: block;
  width: 100%;
}

.admin-sidebar-search__icon {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--admin-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-sidebar-search__icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.admin-sidebar-search__input::-webkit-search-cancel-button {
  display: none;
}

.admin-sidebar-search__clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--admin-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s, color 0.15s;
}

.admin-sidebar-search__clear:hover {
  background: var(--admin-overlay);
  color: var(--admin-text);
}

.admin-sidebar-search__empty {
  margin: -0.35rem 0 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--admin-radius-sm);
  border: 1px dashed var(--admin-border);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  color: var(--admin-muted);
  background: rgba(14, 165, 233, 0.04);
}

.admin-sidebar-search__empty[hidden] {
  display: none;
}

.admin-nav-tab--search-hidden {
  display: none !important;
}

.admin-sidebar__section--search-hidden {
  display: none !important;
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar__section {
  margin: 0;
}

.admin-sidebar__section-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav-group {
  margin: 0;
}

.admin-nav-group__trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.58rem 0.7rem 0.58rem 0.58rem;
  border-radius: 0.75rem;
  border: 1px solid var(--admin-nav-border);
  background: var(--admin-nav-bg);
  color: var(--admin-nav-idle);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    border-color var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    color var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    box-shadow var(--admin-nav-ms) var(--admin-sidebar-ease-soft);
}

.admin-nav-group__trigger .admin-nav-tab__row {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-nav-group__trigger:hover {
  background: var(--admin-nav-hover-bg);
  border-color: var(--admin-nav-hover-border);
  color: var(--admin-nav-hover-text);
}

.admin-nav-group__trigger:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

.admin-nav-group--active-branch > .admin-nav-group__trigger {
  border-color: rgba(22, 119, 255, 0.28);
  color: var(--admin-text);
}

.admin-nav-group__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--admin-faint);
  transition: transform 0.22s var(--admin-sidebar-ease-soft), color 0.2s;
}

.admin-nav-group__chevron svg {
  width: 1rem;
  height: 1rem;
}

.admin-nav-group--open .admin-nav-group__chevron {
  transform: rotate(180deg);
  color: var(--admin-muted);
}

.admin-nav-group__items {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0.32rem 0 0;
  padding: 0.15rem 0 0.15rem 0.65rem;
  border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-nav-group--open > .admin-nav-group__items {
  display: flex;
}

.admin-nav-tab--child {
  padding: 0.48rem 0.58rem 0.48rem 0.52rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.65rem;
}

.admin-nav-tab--child::before {
  display: none;
}

.admin-nav-tab--child .admin-nav-tab__row {
  gap: 0.5rem;
}

.admin-nav-tab--child .admin-nav-tab__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.admin-nav-tab--child .admin-nav-tab__label {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-mobile-dock__groups {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-group--dock {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.admin-nav-group__trigger--dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--admin-text);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-nav-group__trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.admin-nav-group__items--dock {
  display: none;
  padding: 0 0.5rem 0.5rem;
  border-left: 0;
  margin: 0;
  gap: 0.35rem;
}

.admin-nav-group--dock.admin-nav-group--open > .admin-nav-group__items--dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-nav-group--dock .admin-nav-tab--dock {
  width: 100%;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.admin-sidebar-footer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.admin-sidebar-hint {
  margin: 0.15rem 0 0;
  padding: 0 0.15rem;
  font-size: 0.625rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--admin-faint);
}

.admin-sidebar-footer__ico {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-sidebar-footer__link,
.admin-sidebar-footer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: auto;
  min-width: 0;
  padding: 0.6rem;
  border-radius: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--admin-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
  transition:
    background 0.2s var(--admin-ease-out),
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.admin-sidebar-footer__link span,
.admin-sidebar-footer__btn span {
  display: none;
}

.admin-sidebar-footer__ico {
  margin: 0;
  opacity: 0.95;
}

.admin-sidebar-footer__link:hover {
  background: rgba(22, 119, 255, 0.08);
  border-color: rgba(22, 119, 255, 0.22);
  color: var(--admin-accent-hover);
}

.admin-sidebar-footer__btn:hover {
  background: rgba(255, 30, 30, 0.08);
  border-color: rgba(255, 30, 30, 0.2);
  color: #e01a1a;
}

.admin-sidebar-footer__link:focus-visible,
.admin-sidebar-footer__btn:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

.admin-nav-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0 0.15rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c6d86;
}

.admin-nav-section-label::before {
  content: "";
  width: 2px;
  height: 0.65rem;
  border-radius: 1px;
  background: var(--admin-faint);
  flex-shrink: 0;
}

.admin-nav-section-label__text {
  flex: 1 1 auto;
  min-width: 0;
}


.admin-nav-tab {
  display: block;
  width: 100%;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  border-radius: 0.75rem;
  padding: 0.58rem 0.7rem 0.58rem 0.58rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--admin-nav-idle);
  background: var(--admin-nav-bg);
  border: 1px solid var(--admin-nav-border);
  touch-action: manipulation;
  position: relative;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    background var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    border-color var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    color var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    box-shadow var(--admin-nav-ms) var(--admin-sidebar-ease-soft);
}

.admin-nav-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate3d(0, -50%, 0) scaleY(0.45);
  width: 3px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: currentColor;
  opacity: 0;
  transition:
    height var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    opacity var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    transform var(--admin-nav-ms) var(--admin-sidebar-ease-soft),
    background var(--admin-nav-ms) var(--admin-sidebar-ease-soft);
}

.admin-nav-tab__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
}

.admin-nav-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--admin-nav-icon-color);
  transition: color var(--admin-nav-ms) var(--admin-sidebar-ease-soft);
}

.admin-nav-tab__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-nav-tab__mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.admin-nav-tab__label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.admin-nav-tab__badge {
  display: inline-flex;
  min-width: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  flex-shrink: 0;
}

.admin-nav-tab:hover:not(.admin-nav-tab--active) {
  background: var(--admin-nav-hover-bg);
  border-color: var(--admin-nav-hover-border);
  color: var(--admin-nav-hover-text);
}

.admin-nav-tab:hover:not(.admin-nav-tab--active) .admin-nav-tab__icon {
  color: var(--admin-nav-hover-icon);
}

.admin-nav-tab:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

.admin-nav-tab:active:not(:disabled) {
  transform: none;
}

/* Sidebar: kayma yok; seçili sekme hover renginde kalır */
.admin-sidebar .admin-nav-tab:hover:not(.admin-nav-tab--active),
.admin-sidebar .admin-nav-tab--active,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--emerald,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--violet,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--sky,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--amber,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--cyan,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--rose {
  transform: none;
  background: var(--admin-nav-hover-bg);
  border-color: var(--admin-nav-hover-border);
  color: var(--admin-nav-hover-text);
  box-shadow: none;
}

.admin-sidebar .admin-nav-tab:hover:not(.admin-nav-tab--active) .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--emerald .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--violet .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--sky .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--amber .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--cyan .admin-nav-tab__icon,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--rose .admin-nav-tab__icon {
  transform: none;
  color: var(--admin-nav-hover-icon);
  opacity: 1;
}

.admin-sidebar .admin-nav-tab--active::before,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--emerald::before,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--violet::before,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--sky::before,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--amber::before,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--cyan::before,
.admin-sidebar .admin-nav-tab--active.admin-nav-tab--rose::before {
  opacity: 0;
  height: 0;
}

.admin-nav-tab--active::before {
  opacity: 1;
  height: 62%;
  transform: translate3d(0, -50%, 0) scaleY(1);
  background: var(--admin-accent);
}

.admin-nav-tab--active .admin-nav-tab__icon {
  color: var(--admin-accent-hover);
  opacity: 1;
}


.admin-nav-tab--active.admin-nav-tab--emerald {
  border-color: rgba(5, 150, 105, 0.35);
  background: linear-gradient(105deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
  color: #065f46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-nav-tab--active.admin-nav-tab--emerald::before {
  background: #059669;
}
.admin-nav-tab--active.admin-nav-tab--emerald .admin-nav-tab__icon {
  color: #059669;
}

.admin-nav-tab--active.admin-nav-tab--violet {
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(105deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.03) 100%);
  color: #5b21b6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-nav-tab--active.admin-nav-tab--violet::before {
  background: #7c3aed;
}
.admin-nav-tab--active.admin-nav-tab--violet .admin-nav-tab__icon {
  color: #7c3aed;
}

.admin-nav-tab--active.admin-nav-tab--sky {
  border-color: rgba(22, 119, 255, 0.32);
  background: linear-gradient(105deg, rgba(22, 119, 255, 0.1) 0%, rgba(22, 119, 255, 0.03) 100%);
  color: #003eb3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-nav-tab--active.admin-nav-tab--sky::before {
  background: #1677ff;
}
.admin-nav-tab--active.admin-nav-tab--sky .admin-nav-tab__icon {
  color: #1677ff;
}

.admin-nav-tab--active.admin-nav-tab--amber {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(105deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
  color: #92400e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-nav-tab--active.admin-nav-tab--amber::before {
  background: #d97706;
}
.admin-nav-tab--active.admin-nav-tab--amber .admin-nav-tab__icon {
  color: #d97706;
}

.admin-nav-tab--active.admin-nav-tab--cyan {
  border-color: rgba(8, 145, 178, 0.32);
  background: linear-gradient(105deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.03) 100%);
  color: #155e75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-nav-tab--active.admin-nav-tab--cyan::before {
  background: #0891b2;
}
.admin-nav-tab--active.admin-nav-tab--cyan .admin-nav-tab__icon {
  color: #0891b2;
}

.admin-nav-tab--active.admin-nav-tab--rose {
  border-color: rgba(225, 29, 72, 0.28);
  background: linear-gradient(105deg, rgba(244, 63, 94, 0.1) 0%, rgba(244, 63, 94, 0.03) 100%);
  color: #9f1239;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-nav-tab--active.admin-nav-tab--rose::before {
  background: #e11d48;
}
.admin-nav-tab--active.admin-nav-tab--rose .admin-nav-tab__icon {
  color: #e11d48;
}

.admin-nav-tab--dock {
  padding: 0.5rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.25;
}

.admin-nav-tab--dock::before {
  display: none;
}

.admin-sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.admin-main-column {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--admin-bg);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.15rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

@media (min-width: 1024px) {
  .admin-topbar {
    padding: 0.65rem 2rem;
  }
}

@media (max-width: 639px) {
  .admin-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-left: max(0.75rem, var(--admin-safe-left));
    padding-right: max(0.75rem, var(--admin-safe-right));
  }
}

.admin-topbar__text {
  min-width: 0;
  flex: 1 1 16rem;
}

.admin-topbar__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--admin-text);
}

.admin-topbar__title-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.admin-topbar__title-text {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

@media (min-width: 1024px) {
  .admin-topbar__title {
    font-size: 1.5rem;
  }
}

.admin-topbar-search {
  margin-top: 0.3rem;
  max-width: 17.5rem;
}

.admin-topbar-search__field {
  position: relative;
}

.admin-topbar-search__icon {
  position: absolute;
  left: 0.72rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--admin-muted);
  pointer-events: none;
  transform: none;
}

.admin-topbar-search__icon svg {
  width: 1rem;
  height: 1rem;
}

.admin-topbar-search__input.admin-input {
  width: 100%;
  min-height: 2.15rem;
  padding-left: 2.2rem;
  padding-right: 2.15rem;
}

.admin-topbar-search__input::-webkit-search-cancel-button {
  display: none;
}

.admin-topbar-search__clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--admin-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s, color 0.15s;
}

.admin-topbar-search__clear:hover {
  background: var(--admin-overlay);
  color: var(--admin-text);
}

.admin-topbar-search__empty {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--admin-muted);
}

.admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  align-self: center;
}

.admin-alerts {
  position: relative;
  flex-shrink: 0;
}

.admin-alerts__toggle {
  position: relative;
}

.admin-alerts__badge {
  position: absolute;
  top: -0.32rem;
  right: -0.32rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ff4545;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 14px -8px rgba(239, 68, 68, 0.8);
}

.admin-alerts__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(28rem, calc(100vw - 1.5rem));
  max-height: min(72vh, 32rem);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.35);
  z-index: 40;
}

.admin-alerts--open .admin-alerts__panel {
  display: flex;
}

.admin-alerts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-alerts__title {
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

.admin-alerts__sound {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.admin-alerts__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-alerts__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--admin-border-strong);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  color: var(--admin-text);
  background: transparent;
}

.admin-alerts__chip-count {
  font-variant-numeric: tabular-nums;
  color: #1677ff;
  font-weight: 700;
}

.admin-alerts__list {
  overflow: auto;
  padding: 0.35rem;
}

.admin-alerts__item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.55rem 0.6rem;
  text-align: left;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.admin-alerts__item:hover {
  background: var(--admin-surface-elevated);
  border-color: var(--admin-border-strong);
}

.admin-alerts__item-ico {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(22, 119, 255, 0.12);
  color: #1677ff;
  flex-shrink: 0;
}

.admin-alerts__item-main {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-alerts__item-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-alerts__item-msg {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  color: var(--admin-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-alerts__item-time,
.admin-alerts__item-meta {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--admin-faint);
  margin-top: 0.05rem;
}

.admin-alerts__item--sla-warn {
  border-left: 2px solid rgba(245, 158, 11, 0.55);
}

.admin-alerts__item--sla-critical {
  border-left: 2px solid rgba(248, 113, 113, 0.7);
}

.admin-alerts__empty {
  padding: 0.95rem 0.8rem;
  font-size: 0.76rem;
  color: var(--admin-muted);
  text-align: center;
}

/* Yönetici — Profilim (tam genişlik, main ile aynı 18px gutter) */
.admin-my-profile-page {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

#tab-my-profile {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admin-my-profile-notice {
  margin-bottom: var(--admin-content-gutter, 18px);
  padding: 0.75rem 1rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-warning-border);
  background: var(--admin-warning-bg);
  color: var(--admin-warning-text);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.admin-my-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
  gap: var(--admin-content-gutter, 18px);
  align-items: start;
  width: 100%;
}

@media (min-width: 1280px) {
  .admin-my-profile-layout {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  }
}

.admin-my-profile-card {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: var(--admin-panel-shadow);
  overflow: hidden;
}

.admin-my-profile-card--identity {
  position: sticky;
  top: 0.5rem;
}

.admin-my-profile-card__banner {
  height: 4.5rem;
  background: linear-gradient(
    125deg,
    rgba(22, 119, 255, 0.22) 0%,
    rgba(22, 119, 255, 0.06) 55%,
    transparent 100%
  );
  border-bottom: 1px solid var(--admin-border);
}

.admin-my-profile-card__identity-body {
  padding: 0 1rem 1.1rem;
}

.admin-my-profile__avatar {
  width: 3.25rem;
  height: 3.25rem;
  margin-top: -1.75rem;
  margin-bottom: 0.65rem;
  border-radius: var(--admin-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--admin-font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--admin-accent);
  background: var(--admin-member-avatar-bg);
  border: 2px solid var(--admin-surface);
  box-shadow: var(--admin-member-avatar-shadow);
}

.admin-my-profile__name {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
  line-height: 1.25;
  word-break: break-word;
}

.admin-my-profile__username {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--admin-muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.admin-my-profile__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid var(--admin-border);
}

.admin-my-profile__badge--master {
  color: #6d28d9;
  background: var(--admin-badge-violet-bg);
  border-color: var(--admin-badge-violet-border);
}

.admin-my-profile__badge--staff {
  color: #0369a1;
  background: var(--admin-badge-info-bg);
  border-color: var(--admin-badge-info-border);
}

.admin-my-profile__meta {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--admin-border);
  display: grid;
  gap: 0.55rem;
}

.admin-my-profile__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.admin-my-profile__meta-row dt {
  margin: 0;
  font-weight: 500;
  color: var(--admin-muted);
}

.admin-my-profile__meta-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--admin-text);
  text-align: right;
}

.admin-my-profile-main {
  display: grid;
  gap: var(--admin-content-gutter, 18px);
  min-width: 0;
}

.admin-my-profile-card__head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-my-profile-card__kicker {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-my-profile-card__title {
  margin: 0.25rem 0 0;
  font-family: var(--admin-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-my-profile-card__lead {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--admin-muted);
  max-width: 36rem;
}

.admin-my-profile-form {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-my-profile-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .admin-my-profile-form__grid:not(.admin-my-profile-form__grid--stack) {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-my-profile-form__field {
  min-width: 0;
}

.admin-my-profile-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--admin-border);
}

.admin-my-profile-rules {
  padding: 0.85rem 1rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-inset-bg);
}

.admin-my-profile-rules__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-my-profile-rules__list {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--admin-muted);
}

.admin-my-profile-rules__list li + li {
  margin-top: 0.2rem;
}

@media (max-width: 1023px) {
  .admin-my-profile-layout {
    grid-template-columns: 1fr;
  }

  .admin-my-profile-card--identity {
    position: static;
  }
}

@media (max-width: 639px) {
  .admin-topbar__lead {
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-topbar__lead .admin-topbar__text {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-topbar__title {
    font-size: 1rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-topbar__title-inner {
    flex-wrap: nowrap;
    gap: 0.3rem;
    min-width: 0;
  }

  .admin-topbar__title-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-topbar__desc {
    display: none;
  }

  .admin-topbar-search {
    margin-top: 0.3rem;
    max-width: 100%;
  }

  .admin-topbar-search__empty {
    display: none;
  }

  .admin-topbar__actions {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
  }

  .admin-topbar__actions .admin-btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.1;
    justify-content: center;
    white-space: nowrap;
  }

  .admin-topbar__actions .admin-btn-primary {
    flex-basis: auto;
  }

  .admin-topbar__actions .admin-theme-toggle {
    flex: 0 0 auto;
  }
}


.admin-badge {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
  margin-bottom: 0.1rem;
  border-radius: 0.375rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.admin-badge--cms {
  background: rgba(22, 119, 255, 0.1);
  color: #0958d8;
  border: 1px solid rgba(22, 119, 255, 0.22);
}

.admin-badge--players {
  background: var(--admin-violet-dim);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.22);
}

.admin-badge--dash {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.22);
}

.admin-badge--staff {
  background: rgba(225, 29, 72, 0.08);
  color: #be123c;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.admin-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--admin-content-gutter);
  padding-left: max(var(--admin-content-gutter), var(--admin-safe-left));
  padding-right: max(var(--admin-content-gutter), var(--admin-safe-right));
  padding-bottom: calc(var(--admin-content-gutter) + 8.75rem + var(--admin-safe-bottom));
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

@media (min-width: 1024px) {
  .admin-main {
    padding: var(--admin-content-gutter);
    padding-left: max(var(--admin-content-gutter), var(--admin-safe-left));
    padding-right: max(var(--admin-content-gutter), var(--admin-safe-right));
    padding-bottom: var(--admin-content-gutter);
  }
}


.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  touch-action: manipulation;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.admin-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.admin-btn:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}

.admin-btn-ghost {
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-surface);
  color: var(--admin-text);
}
.admin-btn-ghost:hover {
  background: var(--admin-surface-elevated);
  border-color: var(--admin-border-strong);
}

.admin-btn-primary {
  border: 1px solid #0958d8;
  background: var(--admin-accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(22, 119, 255, 0.2);
}
.admin-btn-primary:hover {
  background: var(--admin-accent-hover);
  border-color: #003eb3;
}

.admin-btn-soft {
  border: 1px solid rgba(22, 119, 255, 0.25);
  background: rgba(22, 119, 255, 0.08);
  color: #0958d8;
}
.admin-btn-soft:hover {
  background: rgba(22, 119, 255, 0.12);
}


.admin-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.65rem 0.65rem;
  padding-left: max(0.65rem, var(--admin-safe-left));
  padding-right: max(0.65rem, var(--admin-safe-right));
  padding-bottom: max(0.65rem, calc(env(safe-area-inset-bottom) + 0.35rem));
  border-top: 1px solid var(--admin-border);
  border-radius: var(--admin-radius) var(--admin-radius) 0 0;
  background: var(--admin-surface);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1023px) {
  html,
  body.admin-body,
  #app,
  .admin-app,
  .admin-main-column {
    min-height: 100dvh;
  }

  body.admin-body:not(.admin-drawer-open) {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .admin-main-column,
  .admin-main {
    overflow: visible;
  }

  .admin-mobile-dock {
    display: none;
  }

  .admin-main {
    padding-bottom: calc(1rem + var(--admin-safe-bottom));
  }
}

@media (min-width: 1024px) {
  .admin-mobile-dock {
    display: none;
  }
}

.admin-mobile-dock-label {
  padding-left: 0.25rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
}


.admin-search-panel {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 1rem 1.15rem;
}

.admin-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.admin-empty {
  margin: 0;
  border-radius: var(--admin-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.55;
}

.admin-empty--muted {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
  color: var(--admin-muted);
}

.admin-empty--warn {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.2), rgba(19, 25, 37, 0.85));
  color: #fde68a;
}


.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  -webkit-overflow-scrolling: touch;
}

.admin-table-wrap > table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table-wrap > table > thead {
  background: var(--admin-surface-elevated);
}

.admin-table-wrap > table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--admin-surface-elevated);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
}

.admin-table-wrap > table > tbody > tr {
  transition: background 0.15s var(--admin-ease-out);
}

.admin-table-wrap > table > tbody > tr:hover {
  background: rgba(56, 189, 248, 0.04);
}


.admin-members-page {
  width: 100%;
  max-width: none;
}


.admin-members-toolbar {
  margin-bottom: 0.75rem;
  padding: 0;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: 0 12px 36px -28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.admin-members-toolbar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

@media (min-width: 640px) {
  .admin-members-toolbar__head {
    padding: 0.55rem 0.9rem;
  }
}

.admin-members-toolbar__head-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.admin-members-toolbar__eyebrow {
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-members-toolbar__stats {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--admin-muted);
}

.admin-members-toolbar__stats .admin-members-stats__num {
  font-weight: 700;
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

.admin-members-toolbar__stats .admin-members-stats__filtered {
  color: var(--admin-accent-hover);
}

.admin-members-toolbar__reset {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--admin-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.admin-members-toolbar__reset:hover {
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.07);
}

.admin-members-toolbar__body {
  display: grid;
  gap: 0.6rem 0.75rem;
  padding: 0.6rem 0.75rem 0.65rem;
  align-items: end;
}

@media (min-width: 900px) {
  .admin-members-toolbar__body {
    grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 2.2fr);
    padding: 0.55rem 0.9rem 0.65rem;
    gap: 0.65rem 1rem;
  }
}

.admin-members-field-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-members-toolbar .admin-input {
  min-height: 2.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.8125rem;
}

.admin-members-toolbar__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--admin-faint);
}

.admin-members-toolbar__hint--warn {
  color: #f59e0b;
}

.admin-members-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--admin-border);
}

.admin-members-pagination__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--admin-muted);
}

.admin-members-pagination__actions {
  display: flex;
  gap: 0.5rem;
}

.admin-members-kpi {
  margin: 0 0 1rem;
}

.admin-members-kpi__grid {
  margin: 0;
}

.admin-members-kpi__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-members-kpi--loading,
.admin-members-kpi--error {
  padding: 1rem 1.15rem;
  border-radius: var(--admin-radius, 12px);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

.admin-members-kpi--error {
  border-color: color-mix(in srgb, #ff4545 40%, var(--admin-border));
  background: color-mix(in srgb, #ff4545 6%, var(--admin-surface));
}

.admin-members-kpi__error-text {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: #ff6b6b;
}

.admin-members-kpi__loading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-members-kpi__loading-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-members-kpi__loading-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.admin-members-kpi__spinner {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--admin-accent) 25%, transparent);
  border-top-color: var(--admin-accent, #0ea5e9);
  border-radius: 50%;
  animation: admin-members-kpi-spin 0.7s linear infinite;
}

@keyframes admin-members-kpi-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-members-page .admin-members-kpi .admin-dash-stat-value {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.admin-members-load-stats {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: color-mix(in srgb, var(--admin-surface) 92%, var(--admin-accent) 8%);
}

.admin-members-load-stats--loading {
  padding: 0.75rem 1rem;
}

.admin-members-load-stats--error {
  border-color: color-mix(in srgb, #ff4545 40%, var(--admin-border));
  background: color-mix(in srgb, #ff4545 8%, var(--admin-surface));
}

.admin-members-load-stats--error .admin-members-load-stats__loading {
  color: #ff6b6b;
  margin-bottom: 0.65rem;
}

.admin-members-load-stats__loading {
  margin: 0;
  font-size: 0.875rem;
  color: var(--admin-muted);
}

.admin-members-load-stats__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.admin-members-load-stats__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--admin-muted);
}

.admin-members-load-stats__big {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--admin-accent, #0ea5e9);
  font-variant-numeric: tabular-nums;
}

.admin-members-load-stats__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-size: 0.8125rem;
}

.admin-members-load-stats__details > div {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}

.admin-members-load-stats__details dt {
  margin: 0;
  font-weight: 600;
  color: var(--admin-faint);
}

.admin-members-load-stats__details dd {
  margin: 0;
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

.admin-members-load-stats__note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-faint);
}

.admin-members-load-stats__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-members-search__field {
  position: relative;
}

.admin-members-search__icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  transform: translateY(-50%);
  color: var(--admin-faint);
  pointer-events: none;
}

.admin-members-search__input {
  padding-left: 2.1rem;
  padding-right: 2.1rem;
}

.admin-members-search__clear {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border: none;
  border-radius: var(--admin-radius-sm);
  background: transparent;
  color: var(--admin-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.admin-members-search__clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--admin-text);
}

.admin-members-filters {
  display: grid;
  gap: 0.45rem 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .admin-members-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .admin-members-filters {
    grid-template-columns: minmax(3.5rem, 0.55fr) minmax(3.5rem, 0.55fr) minmax(5rem, 0.9fr) minmax(6rem, 1.35fr);
    gap: 0.45rem 0.55rem;
  }
}

.admin-members-filter-cell {
  min-width: 0;
}

.admin-members-filter-cell--wide {
  grid-column: span 2;
}

@media (min-width: 520px) {
  .admin-members-filter-cell--wide {
    grid-column: span 1;
  }
}

@media (min-width: 900px) {
  .admin-members-filter-cell--grow {
    min-width: 7rem;
  }
}

.admin-members-hint {
  margin: 0 0 0.65rem;
  max-width: 48rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--admin-muted);
}

.admin-members-hint strong {
  color: var(--admin-text);
  font-weight: 600;
}


.admin-members-table-wrap {
  border-radius: var(--admin-radius);
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 119, 255, 0.22) transparent;
}

.admin-members-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-members-table-wrap::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.admin-members-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(22, 119, 255, 0.22);
  border-radius: 999px;
}

.admin-members-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 119, 255, 0.38);
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > thead > tr > th {
  padding: 0.65rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
  background: var(--admin-surface-elevated);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  z-index: 2;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > thead > tr > th:first-child {
  border-radius: var(--admin-radius-sm) 0 0 0;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > thead > tr > th:last-child {
  border-radius: 0 var(--admin-radius-sm) 0 0;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > tbody > tr > td {
  padding: 0.38rem 0.52rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > tbody > tr.admin-members-row:hover {
  background: transparent;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > tbody > tr.admin-members-row:hover > td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > tbody > tr.admin-members-row > td:first-child {
  text-align: center;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > tbody > tr.admin-members-row--sub:hover {
  background: transparent;
}

.admin-table-wrap.admin-members-table-wrap > .admin-members-table > tbody > tr.admin-members-row--sub > td {
  padding: 0;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-bg);
}

.admin-members-mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.75rem;
  color: var(--admin-muted);
}

.admin-members-email {
  color: var(--admin-muted);
  word-break: break-word;
}

.admin-members-ip {
  max-width: 7rem;
  font-size: 0.65rem;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .admin-members-ip {
    max-width: 9rem;
    font-size: 0.7rem;
  }
}

.admin-members-coins {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fcd34d;
}

.admin-members-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-members-tag--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.admin-members-tag--muted {
  color: var(--admin-faint);
  font-weight: 500;
}

.admin-members-tag--vip {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
}

.admin-members-tag--danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.admin-members-tags-cell {
  max-width: 11rem;
  vertical-align: middle;
}

.admin-members-tags-cell .admin-members-tag {
  margin: 0.1rem 0.1rem 0 0;
}

.admin-members-filter-tags-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-top: 0.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-members-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.admin-members-tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--admin-muted, #94a3b8);
  cursor: pointer;
  user-select: none;
}

.admin-members-tag-filter input {
  accent-color: var(--admin-accent, #38bdf8);
}

.admin-members-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 10rem;
}

.admin-members-stack--narrow {
  max-width: 9rem;
}

.admin-members-coin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-members-table .admin-coin-amt {
  width: 3.25rem;
  padding: 0.35rem 0.4rem;
  font-size: 0.75rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-members-level {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.2;
}

.admin-members-level--hero {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.admin-members-level__no {
  font-family: var(--admin-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--admin-accent);
  font-variant-numeric: tabular-nums;
}

.admin-members-level--hero .admin-members-level__no {
  font-size: 0.9375rem;
}

.admin-members-level__xp {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--admin-faint);
  font-variant-numeric: tabular-nums;
}

.admin-members-level--muted {
  font-size: 0.75rem;
  color: var(--admin-faint);
}

.admin-members-level-cell {
  white-space: nowrap;
}

.admin-member-level-card {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-member-level-card--off {
  border-style: dashed;
}

.admin-member-level-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.admin-member-level-card__kicker {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-member-level-card__level {
  margin: 0.2rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-member-level-card__level strong {
  font-family: var(--admin-font-display);
  font-weight: 800;
  color: var(--admin-accent);
}

.admin-member-level-card__xp-total {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--admin-muted);
}

.admin-member-level-card__meter {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--admin-inset-bg);
  border: 1px solid var(--admin-border);
  overflow: hidden;
}

.admin-member-level-card__meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--admin-accent) 0%, #4096ff 100%);
  transition: width 0.2s ease;
}

.admin-member-level-card__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-muted);
  line-height: 1.45;
}

.admin-member-level-card__off {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--admin-muted);
}

.admin-members-table .admin-coin-add,
.admin-members-table .admin-coin-sub {
  min-width: 1.75rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-members-table .admin-coin-add {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

.admin-members-table .admin-coin-add:hover {
  background: rgba(52, 211, 153, 0.18);
}

.admin-members-table .admin-coin-sub {
  background: rgba(255, 69, 69, 0.1);
  border-color: rgba(255, 69, 69, 0.25);
  color: #fca5a5;
}

.admin-members-table .admin-coin-sub:hover {
  background: rgba(255, 69, 69, 0.16);
}

.admin-members-btn-sm {
  width: 100%;
  padding: 0.28rem 0.45rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.64rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--admin-border);
  background: var(--admin-bg);
  color: var(--admin-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-members-btn-sm:hover {
  background: var(--admin-surface-elevated);
  color: var(--admin-text);
}

.admin-members-btn-sm--password {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.08);
  color: #ddd6fe;
}

.admin-members-btn-sm--password:hover {
  background: rgba(167, 139, 250, 0.14);
}

.admin-members-btn-sm--danger {
  border-color: rgba(255, 69, 69, 0.35);
  background: rgba(255, 69, 69, 0.08);
  color: #fecaca;
}

.admin-members-btn-sm--danger:hover {
  background: rgba(255, 69, 69, 0.14);
}

.admin-members-btn-sm--toggle-off {
  border-color: rgba(255, 69, 69, 0.3);
  background: rgba(255, 69, 69, 0.08);
  color: #fecdd3;
}

.admin-members-btn-sm--toggle-off:hover {
  background: rgba(255, 69, 69, 0.14);
}

.admin-members-btn-sm--toggle-on {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #bbf7d0;
}

.admin-members-btn-sm--toggle-on:hover {
  background: rgba(52, 211, 153, 0.14);
}

.admin-members-table .btn-member-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  color: var(--admin-accent-hover);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-members-table .btn-member-profile:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.admin-members-table .btn-member-profile svg {
  width: 0.9rem;
  height: 0.9rem;
}

.admin-members-status {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-members-status--on {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.admin-members-status--off {
  border: 1px solid rgba(255, 69, 69, 0.35);
  background: rgba(255, 69, 69, 0.1);
  color: #fecdd3;
}

.admin-members-expand {
  border: none;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-bg);
}

.admin-members-expand summary {
  cursor: pointer;
  list-style: none;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-accent);
  user-select: none;
}

.admin-members-expand summary::-webkit-details-marker {
  display: none;
}

.admin-members-expand summary:hover {
  color: var(--admin-accent-hover);
}

.admin-members-expand .admin-members-nested-scroll {
  overflow-x: auto;
  padding: 0 0.75rem 0.75rem;
}

.admin-members-nested-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.admin-members-nested-table thead th {
  padding: 0.45rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--admin-faint);
  border-bottom: 1px solid var(--admin-border);
}

.admin-members-nested-table tbody td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--admin-muted);
}

.admin-members-nested-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-members-empty-row {
  padding: 0.3rem 0.85rem;
  font-size: 0.65rem;
  color: var(--admin-faint);
  border-top: 1px solid var(--admin-border);
}

.admin-member-profile__account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.admin-member-profile__account-actions .admin-members-btn-sm {
  width: auto;
  min-width: 7.25rem;
}


.admin-member-profile {
  max-width: 80rem;
}

.admin-member-profile__hero {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), transparent 72%);
}

.admin-member-profile__back:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.admin-member-profile__tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 1rem 0.85rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-member-tabbar-bg);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .admin-member-profile__tabbar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    gap: 0.5rem;
  }
}

.admin-member-profile__tab {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
  color: var(--admin-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

@media (min-width: 640px) {
  .admin-member-profile__tab {
    flex: 0 1 auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
  }
}

.admin-member-profile__tab:hover {
  background: var(--admin-surface-elevated);
  color: var(--admin-text);
  border-color: rgba(148, 163, 184, 0.22);
}

.admin-member-profile__tab.is-active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: var(--admin-accent-hover);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.admin-member-profile__tab:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.5);
  outline-offset: 2px;
}

.admin-member-profile__panels {
  min-height: 12rem;
}

.admin-member-profile__panel-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-member-profile__card {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 1rem 1.1rem;
}

.admin-member-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-member-profile__hint {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--admin-muted);
}

.admin-member-profile__hint strong {
  color: var(--admin-text);
  font-weight: 600;
}

.admin-member-profile__hint--footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
}


.admin-member-profile__hero--premium {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.12), transparent 52%),
    radial-gradient(80% 60% at 0% 100%, rgba(167, 139, 250, 0.08), transparent 45%),
    var(--admin-bg);
}

.admin-member-profile__hero-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.1rem 1.25rem;
}

.admin-member-profile__avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--admin-accent-hover);
  background: var(--admin-member-avatar-bg);
  border: 1px solid rgba(22, 119, 255, 0.22);
  box-shadow: var(--admin-member-avatar-shadow);
}

@media (min-width: 640px) {
  .admin-member-profile__avatar {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.5rem;
    border-radius: 1rem;
  }
}

.admin-member-profile__hero-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-member-profile__balance-card {
  flex: 1 1 auto;
  min-width: 10rem;
  max-width: 14rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-member-balance-border);
  background: var(--admin-member-balance-bg);
  text-align: right;
}

.admin-member-profile__balance-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-member-balance-label);
}

.admin-member-profile__balance-value {
  margin: 0.2rem 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--admin-member-balance-value);
}

.admin-member-profile__balance-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-member-balance-unit);
}

.admin-member-profile__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.admin-member-profile__metric {
  padding: 0.75rem 0.9rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-member-profile__metric-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
  margin-bottom: 0.35rem;
}

.admin-member-profile__metric-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-member-profile__metric-value--sm {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--admin-muted);
}

.admin-member-profile__overview-grid {
  display: grid;
  gap: 1rem;
}

.admin-member-profile-pro {
  display: grid;
  gap: 1rem;
}

.admin-member-profile-pro__stats {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-member-profile-pro__stat {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-surface-elevated);
  padding: 0.65rem 0.8rem;
}

.admin-member-profile-pro__stat-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
  margin-bottom: 0.2rem;
}

.admin-member-profile-pro__stat-value {
  font-size: 0.95rem;
  color: var(--admin-text);
}

.admin-member-profile-pro__grid {
  display: grid;
  gap: 1rem;
}

.admin-member-profile-pro__card {
  padding: 1rem 1.05rem;
}

.admin-member-profile-pro__staff {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
}

.admin-member-profile-pro__divider {
  margin: 0.9rem 0;
  border-top: 1px solid var(--admin-border);
}

@media (min-width: 1024px) {
  .admin-member-profile-pro__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-member-profile-pro__grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.admin-member-profile__surface {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  box-shadow: var(--admin-member-surface-shadow);
}

.admin-member-profile__surface-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-member-profile__surface-desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--admin-muted);
}

.admin-member-profile__field-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .admin-member-profile__field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-member-profile__surface-actions {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
}

.admin-member-profile__btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.admin-member-profile__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.12));
  color: var(--admin-member-btn-primary-text);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.admin-member-profile__btn-primary:hover {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.32), rgba(16, 185, 129, 0.18));
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 8px 24px -12px rgba(16, 185, 129, 0.35);
}

.admin-member-profile__btn-primary:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.5);
  outline-offset: 2px;
}

.admin-member-profile__coin-block {
  margin-top: 0.25rem;
}

.admin-member-profile__coin-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .admin-member-profile__coin-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .admin-member-profile__coin-input {
    max-width: 9rem;
  }
}

.admin-member-profile__coin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-member-profile__btn-coin-add,
.admin-member-profile__btn-coin-sub {
  flex: 1 1 auto;
  min-width: 7.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.admin-member-profile__btn-coin-add {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: var(--admin-member-btn-coin-add-text);
}

.admin-member-profile__btn-coin-add:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
}

.admin-member-profile__btn-coin-sub {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
  color: var(--admin-member-btn-coin-sub-text);
}

.admin-member-profile__btn-coin-sub:hover {
  background: rgba(251, 113, 133, 0.16);
  border-color: rgba(251, 113, 133, 0.5);
}

.admin-member-profile__quick-amt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.admin-member-profile__quick-amt .member-profile-quick-amt {
  padding: 0.35rem 0.65rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-member-quick-amt-bg);
  color: var(--admin-muted);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.admin-member-profile__quick-amt .member-profile-quick-amt:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--admin-accent-hover);
  background: rgba(56, 189, 248, 0.08);
}

.admin-member-profile__surface--security .admin-member-profile__btn-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 20rem;
  padding: 0.7rem 1rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.18), rgba(109, 40, 217, 0.08));
  color: var(--admin-member-btn-password-text);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.admin-member-profile__surface--security .admin-member-profile__btn-password:hover {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.26), rgba(109, 40, 217, 0.12));
  border-color: rgba(167, 139, 250, 0.6);
}

.admin-member-profile__surface--security .admin-member-profile__btn-password:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.45);
  outline-offset: 2px;
}

.admin-member-profile__ip-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .admin-member-profile__ip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-member-profile__ip-card {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
  padding: 1rem 1.1rem;
}

.admin-member-profile__ip-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-member-profile__ip-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-member-profile__ip-value {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-all;
  color: var(--admin-text);
}

.admin-member-profile__ip-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--admin-muted);
}

.admin-member-profile__ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: var(--admin-accent-hover);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.admin-member-profile__ip-copy:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
}

.admin-member-profile__ip-copy:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.admin-member-profile__ip-copy-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.admin-member-profile__ip-copy--off {
  border: none;
  background: transparent;
  color: var(--admin-faint);
  cursor: default;
  font-size: 0.75rem;
}

.admin-member-profile__ip-compare {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.admin-member-profile__ip-warn {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--admin-radius);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.8125rem;
  color: #fde68a;
}

.admin-member-profile__ip-ok {
  margin-top: 1rem;
}

#member-detail-root .admin-member-table-wrap {
  overflow-x: auto;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
}

#member-detail-root .admin-member-table-head {
  background: var(--admin-table-head-bg);
  color: var(--admin-faint);
  font-size: 0.75rem;
}

#member-detail-root .admin-member-table-head th {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

/* Member detail refresh: event-detail style language */
#member-detail-root.admin-member-profile {
  max-width: none;
  width: 100%;
}

#member-detail-root .admin-member-profile__hero--premium {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius) var(--admin-radius) 0 0;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.12), transparent 52%),
    radial-gradient(80% 60% at 0% 100%, rgba(167, 139, 250, 0.08), transparent 45%),
    var(--admin-surface);
}

#member-detail-root .admin-member-profile__tabbar {
  gap: 0;
  padding: 0 0.5rem;
  border: 1px solid var(--admin-border);
  border-top: none;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#member-detail-root .admin-member-profile__tab {
  flex: 0 0 auto;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  background: transparent;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: var(--admin-muted);
}

#member-detail-root .admin-member-profile__tab:hover {
  color: var(--admin-text);
  border-bottom-color: rgba(148, 163, 184, 0.35);
  background: transparent;
}

#member-detail-root .admin-member-profile__tab.is-active {
  border-bottom-color: var(--admin-accent);
  color: var(--admin-accent);
  background: transparent;
  box-shadow: none;
}

#member-detail-root .admin-member-profile__panels {
  border: 1px solid var(--admin-border);
  border-top: none;
  border-radius: 0 0 var(--admin-radius) var(--admin-radius);
  background: var(--admin-surface);
}

#member-detail-root .admin-member-profile__surface,
#member-detail-root .admin-member-profile__card {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-elevated);
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.25);
}


.admin-glass:hover,
.admin-panel:hover {
  border-color: var(--admin-border-strong);
  box-shadow: var(--admin-glass-shadow-hover);
}

.admin-chat-divider {
  border-color: var(--admin-border);
}

.admin-chat-title {
  color: var(--admin-text);
}

.admin-chat-thead {
  background: var(--admin-chat-thead-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-chat-thead th {
  color: var(--admin-faint);
  font-weight: 600;
}

.admin-chat-meta {
  color: var(--admin-muted);
  font-size: 0.75rem;
}

.admin-chat-meta strong {
  color: var(--admin-text);
  font-weight: 600;
}

.admin-chat-scroll {
  background: var(--admin-surface);
}

.admin-chat-tr {
  border-bottom: 1px solid var(--admin-border);
}

.admin-chat-tr:hover {
  background: var(--admin-surface-elevated);
}

.admin-chat-tr td {
  color: var(--admin-text);
}

.admin-chat-sender {
  color: var(--admin-text);
}

.admin-chat-badge {
  background: var(--admin-chat-badge-bg);
  color: var(--admin-chat-badge-text);
  border: 1px solid var(--admin-chat-badge-border);
}

.admin-chat-accent {
  color: var(--admin-chat-accent-text);
}

.admin-chat-mute-active {
  color: var(--admin-chat-accent-text);
}

.admin-chat-mutes-wrap {
  border-color: var(--admin-border);
  background: var(--admin-surface-elevated);
}

.admin-chat-deleted {
  color: var(--admin-faint);
}

.admin-chat-deleted-label {
  color: var(--admin-danger);
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-chat-body {
  color: var(--admin-muted);
  font-size: 0.875rem;
}

.admin-chat-id {
  color: var(--admin-faint);
  font-size: 0.875rem;
}

.admin-input {
  width: 100%;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-input-bg);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: var(--admin-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-input:focus {
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: 0 0 0 3px var(--admin-accent-glow);
}
.admin-input::placeholder {
  color: var(--admin-faint);
}

.admin-sidebar-search .admin-sidebar-search__input.admin-input {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 2.35rem 0.55rem 2.4rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

select.admin-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem 1rem;
  padding-right: 2.25rem;
}

.admin-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.sortable-ghost {
  opacity: 0.45;
}
.drag-handle,
.drag-handle-social {
  cursor: grab;
  color: #475569;
  padding: 0.25rem;
}
.drag-handle:active,
.drag-handle-social:active {
  cursor: grabbing;
}


.admin-login-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.admin-login-card {
  width: 100%;
  max-width: 26rem;
  padding: 2.25rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-login-bg);
  box-shadow: var(--admin-login-shadow);
}

.admin-login-icon {
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.12), rgba(22, 119, 255, 0.04));
  border: 1px solid rgba(22, 119, 255, 0.22);
  color: var(--admin-accent);
}

.admin-login-eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--admin-accent);
}

.admin-login-title {
  margin: 0.5rem 0 0;
  font-family: var(--admin-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--admin-text);
}

.admin-login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--admin-faint);
}

.admin-login-footer a {
  color: var(--admin-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.admin-login-footer a:hover {
  color: var(--admin-accent);
}


.admin-toast-stack {
  position: fixed;
  bottom: max(1rem, calc(0.75rem + var(--admin-safe-bottom)));
  right: max(1rem, var(--admin-safe-right));
  left: auto;
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem - var(--admin-safe-left) - var(--admin-safe-right)));
  pointer-events: none;
}

.admin-toast-stack .admin-toast {
  pointer-events: auto;
}

.admin-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.85rem 0.65rem 0.85rem 1rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  animation: adminToastIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-toast__text {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0.05rem;
}

.admin-toast__dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.15rem -0.1rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    opacity 0.15s ease,
    background 0.15s ease;
}

.admin-toast__dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.admin-toast__dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}

.admin-toast--out {
  animation: adminToastOut 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes adminToastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes adminToastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.admin-toast--ok {
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #065f46;
}

.admin-toast--err {
  background: #fef2f2;
  border: 1px solid rgba(255, 30, 30, 0.2);
  color: #cc1818;
}



#tab-dashboard {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admin-dash-page {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--admin-content-gutter);
}


.admin-dash-hero {
  border-radius: var(--admin-radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

.admin-dash-hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}

.admin-dash-hero__copy {
  min-width: 0;
  flex: 1 1 18rem;
}

.admin-dash-hero__eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-dash-hero__title {
  margin: 0.4rem 0 0;
  font-family: var(--admin-font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--admin-text);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .admin-dash-hero__title {
    font-size: 1.5rem;
  }
}

.admin-dash-hero__lead {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--admin-muted);
  max-width: 38rem;
}

.admin-dash-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.admin-dash-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text);
  background: var(--admin-surface-elevated);
  border: 1px solid var(--admin-border);
}

.admin-dash-chip--muted {
  color: var(--admin-muted);
  font-weight: 500;
}

.admin-dash-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-dash-section-title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-dash-section-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--admin-muted);
  line-height: 1.45;
  max-width: 40rem;
}

.admin-dash-toolbar__strong {
  color: var(--admin-accent-hover);
  font-weight: 600;
}


.admin-dash-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-radius: var(--admin-radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

.admin-dash-toolbar__intro {
  margin-bottom: 0;
}

.admin-dash-toolbar__body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

@media (min-width: 1024px) {
  .admin-dash-toolbar__body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
  }

  .admin-dash-toolbar__body .admin-dash-preset-group {
    flex: 1 1 auto;
    margin-top: 0;
    max-width: 28rem;
  }

  .admin-dash-toolbar__body .admin-dash-toolbar__custom {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    min-width: min(100%, 22rem);
  }
}

.admin-dash-kicker {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-dash-toolbar__title {
  margin: 0.35rem 0 0;
  font-family: var(--admin-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
  line-height: 1.25;
}

.admin-dash-toolbar__desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--admin-muted);
  max-width: 36rem;
}

.admin-dash-preset-group {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-dash-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-bg);
  color: var(--admin-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-dash-preset-btn:hover {
  background: var(--admin-surface-elevated);
  border-color: var(--admin-border-strong);
  color: var(--admin-text);
}

.admin-dash-preset-btn--active {
  border-color: rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.1);
  color: #0958d8;
}

.admin-dash-toolbar__custom {
  margin-top: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1rem;
}

@media (min-width: 1024px) {
  .admin-dash-toolbar__custom {
    padding-top: 0;
    border-top: none;
  }
}

.admin-dash-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.admin-dash-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-dash-field__input {
  min-width: 11rem;
  width: auto;
  border-radius: var(--admin-radius-sm);
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.35);
}

.admin-dash-apply {
  margin-bottom: 0.05rem;
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.admin-dash-range-hint {
  margin: 0;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--admin-muted);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
}

.admin-dash-range-hint__label {
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
}

.admin-dash-range-hint__val {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-dash-range-hint__sep {
  color: #475569;
  font-weight: 600;
}


.admin-dash-kpi-grid {
  display: grid;
  gap: 0.75rem;
}

.admin-dash-kpi-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .admin-dash-kpi-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .admin-dash-kpi-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-dash-kpi-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .admin-dash-kpi-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}


.admin-dash-stat {
  position: relative;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 1rem 1rem 1rem 0.85rem;
  transition: border-color 0.15s ease;
}

.admin-dash-stat:hover {
  border-color: var(--admin-border-strong);
}

.admin-dash-stat__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.admin-dash-kpi-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--admin-radius-sm);
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-muted);
}

.admin-dash-kpi-icon-wrap--on-dark {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
}

.admin-dash-kpi-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.admin-dash-stat__body {
  min-width: 0;
  flex: 1;
}

.admin-dash-stat__body .admin-dash-stat-value {
  margin-top: 0.25rem;
}

.admin-dash-stat__body .admin-dash-stat-hint {
  margin-top: 0.3rem;
}

.admin-dash-stat--accent-line {
  padding-left: 0.85rem;
}

.admin-dash-stat--accent-line .admin-dash-stat__inner {
  padding-left: 0;
}

.admin-dash-stat--accent-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--admin-accent);
  opacity: 0.65;
}

.admin-dash-kpi-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .admin-dash-kpi-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-dash-snapshot {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-bg);
}

.admin-dash-snapshot__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--admin-muted);
}

.admin-dash-snapshot__text strong {
  color: var(--admin-text);
  font-weight: 600;
}

.admin-dash-table-panel {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 1.25rem 1.15rem 1rem;
}

.admin-dash-table-panel__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-dash-table-panel__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-dash-table-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--admin-muted);
  line-height: 1.45;
  max-width: 40rem;
}

.admin-dash-table-panel__head {
  margin-bottom: 1rem;
}

.admin-dash-table-scroll {
  overflow-x: auto;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-bg);
}

.admin-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.admin-dash-table thead th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-faint);
  background: var(--admin-surface-elevated);
  border-bottom: 1px solid var(--admin-border);
}

.admin-dash-table thead th:last-child {
  text-align: right;
}

.admin-dash-table tbody tr:nth-child(even) {
  background: var(--admin-table-stripe);
}

.admin-dash-table tbody tr:hover {
  background: var(--admin-table-hover);
}

.admin-dash-table__k {
  padding: 0.55rem 1rem;
  color: var(--admin-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: top;
}

.admin-dash-table__v {
  padding: 0.55rem 1rem;
  text-align: right;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-dash-stat--highlight {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.06);
  padding-left: 0.85rem;
}

.admin-dash-stat--highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: #34d399;
  opacity: 0.85;
}

.admin-dash-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-dash-stat-value {
  margin-top: 0.35rem;
  font-family: var(--admin-font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.admin-dash-stat-hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--admin-muted);
}

.admin-dash-alert {
  border-radius: var(--admin-radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.25);
  color: #fde68a;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
}

.admin-dash-alert strong {
  color: #fef3c7;
  font-weight: 600;
}


.admin-dash-chart-panel {
  box-sizing: border-box;
  width: 100%;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 1.25rem 1.15rem 1rem;
}

.admin-dash-chart-panel--empty {
  text-align: center;
  padding: 2rem 1.25rem;
  border-style: dashed;
  border-color: var(--admin-border);
  background: var(--admin-bg);
}

.admin-dash-chart-panel__empty-title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #cbd5e1;
}

.admin-dash-chart-panel__empty-sub {
  margin: 0.5rem auto 0;
  max-width: 26rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--admin-muted);
}

.admin-dash-chart-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.1rem;
}

.admin-dash-chart-panel__intro {
  min-width: 0;
  flex: 1 1 14rem;
}

.admin-dash-chart-panel__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-dash-chart-panel__title {
  margin: 0;
  font-family: var(--admin-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.admin-dash-chart-panel__sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-faint);
  max-width: 22rem;
  line-height: 1.45;
}

.admin-dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--admin-muted);
}

.admin-dash-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-dash-legend__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.admin-dash-legend__dot--active {
  background: #34d399;
}

.admin-dash-legend__dot--login {
  background: #38bdf8;
}

.admin-dash-legend__dot--new {
  background: #a78bfa;
}

.admin-dash-legend__dot--pur {
  background: #f59e0b;
}

.admin-dash-chart-surface {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: var(--admin-radius-sm);
  padding: 1rem 0.75rem 0.5rem;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
}

.admin-dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  min-height: 156px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
}

.admin-dash-chart::-webkit-scrollbar {
  height: 6px;
}

.admin-dash-chart::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.22);
  border-radius: 999px;
}

.admin-dash-chart-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 2.85rem;
}

.admin-dash-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 128px;
  width: 100%;
}

.admin-dash-bar {
  flex: 1 1 0;
  min-width: 0;
  max-width: 12px;
  min-height: 2px;
  border-radius: 8px 8px 4px 4px;
  transition: height 0.28s var(--admin-ease-out);
}

.admin-dash-bar--active {
  background: #22c55e;
}

.admin-dash-bar--login {
  background: #0ea5e9;
}

.admin-dash-bar--new {
  background: #8b5cf6;
}

.admin-dash-bar--pur {
  background: #f59e0b;
}

.admin-dash-chart-x {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--admin-faint);
  white-space: nowrap;
}

/* Main içerik: tam genişlik + 18px gutter (sidebar ve header hariç) */
.admin-main :is(
  .max-w-xl,
  .max-w-2xl,
  .max-w-4xl,
  .max-w-5xl,
  .max-w-6xl,
  .max-w-7xl,
  .admin-member-profile
) {
  max-width: none;
  width: 100%;
}

.admin-main .space-y-6 > * + * {
  margin-top: var(--admin-content-gutter);
}

.admin-main .admin-panel--padded {
  padding: var(--admin-content-gutter);
}

.admin-main .admin-cms-toolbar {
  padding: var(--admin-content-gutter);
  gap: var(--admin-content-gutter);
}

.admin-main .admin-dash-hero,
.admin-main .admin-dash-toolbar,
.admin-main .admin-dash-table-panel,
.admin-main .admin-dash-chart-panel {
  padding: var(--admin-content-gutter);
}

.admin-main .admin-dash-toolbar {
  gap: var(--admin-content-gutter);
}

.admin-main .admin-dash-toolbar__body {
  gap: var(--admin-content-gutter);
}

.admin-main .admin-dash-hero__grid,
.admin-main .admin-dash-hero__chips,
.admin-main .admin-dash-kpi-grid,
.admin-main .admin-dash-preset-group,
.admin-main .admin-dash-legend,
.admin-main .admin-dash-chart-panel__head {
  gap: var(--admin-content-gutter);
}

.admin-main .admin-dash-chart-panel__head {
  margin-bottom: var(--admin-content-gutter);
}

.admin-main .admin-dash-section-head {
  padding-bottom: var(--admin-content-gutter);
}

.admin-main .admin-dash-table-panel__head {
  margin-bottom: var(--admin-content-gutter);
}

.admin-main .admin-dash-stat {
  padding: var(--admin-content-gutter);
}

.admin-main .admin-dash-stat__inner {
  gap: var(--admin-content-gutter);
}

.admin-main .admin-dash-snapshot {
  padding: var(--admin-content-gutter);
}

.admin-main .admin-dash-chart-panel--empty {
  padding: calc(var(--admin-content-gutter) * 2) var(--admin-content-gutter);
}

.admin-main .admin-dash-alert {
  padding: var(--admin-content-gutter);
}

.admin-main .admin-dash-kpi-grid {
  gap: var(--admin-content-gutter);
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar {
    transition-duration: 0.01ms !important;
  }

  .admin-drawer-backdrop {
    transition-duration: 0.01ms !important;
  }

  .admin-nav-tab,
  .admin-nav-tab::before,
  .admin-nav-tab__icon {
    transition-duration: 0.01ms !important;
  }

  .admin-sidebar .admin-nav-tab:hover:not(.admin-nav-tab--active) {
    transform: none !important;
  }

  .admin-sidebar .admin-nav-tab:hover:not(.admin-nav-tab--active) .admin-nav-tab__icon {
    transform: none !important;
  }
}


.admin-main,
.admin-sidebar nav,
.admin-table-wrap,
.admin-members-table-wrap,
.admin-ticket-table-wrap,
.admin-cms-modal__body,
.admin-chat-scroll,
.admin-chat-mutes-wrap,
.admin-alerts__list,
.admin-glass,
.admin-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 119, 255, 0.22) transparent;
}

.admin-main::-webkit-scrollbar,
.admin-sidebar nav::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar,
.admin-members-table-wrap::-webkit-scrollbar,
.admin-ticket-table-wrap::-webkit-scrollbar,
.admin-cms-modal__body::-webkit-scrollbar,
.admin-chat-scroll::-webkit-scrollbar,
.admin-chat-mutes-wrap::-webkit-scrollbar,
.admin-alerts__list::-webkit-scrollbar,
.admin-glass::-webkit-scrollbar,
.admin-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.admin-main::-webkit-scrollbar-track,
.admin-sidebar nav::-webkit-scrollbar-track,
.admin-table-wrap::-webkit-scrollbar-track,
.admin-members-table-wrap::-webkit-scrollbar-track,
.admin-ticket-table-wrap::-webkit-scrollbar-track,
.admin-cms-modal__body::-webkit-scrollbar-track,
.admin-chat-scroll::-webkit-scrollbar-track,
.admin-chat-mutes-wrap::-webkit-scrollbar-track,
.admin-alerts__list::-webkit-scrollbar-track,
.admin-glass::-webkit-scrollbar-track,
.admin-panel::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.admin-main::-webkit-scrollbar-thumb,
.admin-sidebar nav::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb,
.admin-members-table-wrap::-webkit-scrollbar-thumb,
.admin-ticket-table-wrap::-webkit-scrollbar-thumb,
.admin-cms-modal__body::-webkit-scrollbar-thumb,
.admin-chat-scroll::-webkit-scrollbar-thumb,
.admin-chat-mutes-wrap::-webkit-scrollbar-thumb,
.admin-alerts__list::-webkit-scrollbar-thumb,
.admin-glass::-webkit-scrollbar-thumb,
.admin-panel::-webkit-scrollbar-thumb {
  background: rgba(22, 119, 255, 0.22);
  border-radius: 999px;
}
.admin-main::-webkit-scrollbar-thumb:hover,
.admin-sidebar nav::-webkit-scrollbar-thumb:hover,
.admin-table-wrap::-webkit-scrollbar-thumb:hover,
.admin-members-table-wrap::-webkit-scrollbar-thumb:hover,
.admin-ticket-table-wrap::-webkit-scrollbar-thumb:hover,
.admin-cms-modal__body::-webkit-scrollbar-thumb:hover,
.admin-chat-scroll::-webkit-scrollbar-thumb:hover,
.admin-chat-mutes-wrap::-webkit-scrollbar-thumb:hover,
.admin-alerts__list::-webkit-scrollbar-thumb:hover,
.admin-glass::-webkit-scrollbar-thumb:hover,
.admin-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 119, 255, 0.38);
}


/* Dashboard — bekleyen işler */
.admin-dash-pending {
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-dash-pending--critical {
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.08);
}

.admin-dash-pending--warn {
  border-color: rgba(245, 158, 11, 0.28);
}

.admin-dash-pending--clear {
  opacity: 0.92;
}

.admin-dash-pending__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.admin-dash-pending__title {
  margin: 0.25rem 0 0;
  font-family: var(--admin-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

.admin-dash-pending__desc {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--admin-muted);
}

.admin-dash-pending__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-dash-pending-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--admin-text);
  background: rgba(22, 119, 255, 0.12);
  border: 1px solid rgba(22, 119, 255, 0.22);
}

.admin-dash-pending--critical .admin-dash-pending-total {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.admin-dash-pending-flag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
}

.admin-dash-pending-flag--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.admin-dash-pending-flag--critical {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.admin-dash-pending__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

.admin-dash-pending-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--admin-border);
  background: var(--admin-inset, rgba(15, 23, 42, 0.35));
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-dash-pending-card:hover:not(:disabled) {
  border-color: rgba(22, 119, 255, 0.35);
  background: rgba(22, 119, 255, 0.06);
}

.admin-dash-pending-card--sla-warn:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.4);
}

.admin-dash-pending-card--sla-critical:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.06);
}

.admin-dash-pending-card--empty,
.admin-dash-pending-card:disabled {
  opacity: 0.45;
  cursor: default;
}

.admin-dash-pending-card__count {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--admin-text);
}

.admin-dash-pending-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-dash-pending-card__sla {
  font-size: 0.625rem;
  color: var(--admin-faint);
  line-height: 1.35;
}

.admin-dash-pending-queue__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-faint);
}

.admin-dash-pending-queue__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 16.5rem;
  overflow-y: auto;
}

.admin-dash-pending-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.25);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-dash-pending-row:hover {
  background: rgba(22, 119, 255, 0.08);
  border-color: rgba(22, 119, 255, 0.2);
}

.admin-dash-pending-row--sla-warn {
  border-left: 3px solid rgba(245, 158, 11, 0.65);
}

.admin-dash-pending-row--sla-critical {
  border-left: 3px solid rgba(248, 113, 113, 0.75);
  background: rgba(248, 113, 113, 0.05);
}

.admin-dash-pending-row__ico {
  flex-shrink: 0;
  display: flex;
  color: var(--admin-muted);
}

.admin-dash-pending-row__main {
  min-width: 0;
  flex: 1;
}

.admin-dash-pending-row__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-dash-pending-row__msg {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--admin-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-pending-age {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.admin-pending-age--ok {
  color: var(--admin-muted);
  background: rgba(148, 163, 184, 0.12);
}

.admin-pending-age--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
}

.admin-pending-age--critical {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.18);
}

.admin-dash-pending-queue__empty {
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--admin-muted);
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: var(--admin-text);
}
