/*
 * admin.css — Consolidated admin panel styles
 * Extracted from inline <style> blocks across all admin PHP files.
 * Loaded via _page.php <head> for all admin pages.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Background Layer — 壁纸 + 高斯模糊
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-bg-layer {
  position: fixed;
  top: 0; left: var(--side-w); right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .6s ease;
  opacity: 0;
}
.admin-bg-layer.bg-active { opacity: 1; }
.admin-bg-layer.bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

/* 让 main-area 内容浮在背景层之上 */
body.admin-body .main-area {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* ── 全局毛玻璃底层 — 覆盖整个内容区 ── */
body.admin-body {
  --admin-blur: 40px;
  --admin-glass-opacity: 0.42;
}
body.admin-body .page-content {
  position: relative;
  z-index: 2;
}
body.admin-body .main-area::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255,255,255, var(--admin-glass-opacity));
  backdrop-filter: blur(var(--admin-blur)) saturate(1.8);
  -webkit-backdrop-filter: blur(var(--admin-blur)) saturate(1.8);
  pointer-events: none;
}

/* 顶栏 */
body.admin-body .admin-top-bar {
  position: sticky; top: 0;
  z-index: 31;
}

@media (max-width: 960px) {
}

@media (max-width: 960px) {
  .admin-bg-layer { left: 0; }
}

/* ── 背景切换按钮（已移至侧边栏，保留作为备用样式） ── */
.admin-bg-toggle-btn {
  display: none;
}

/* ── 背景切换面板 ── */
.bg-panel-overlay {
  display: none; position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.bg-panel-overlay.open { display: block; }

.bg-panel {
  position: fixed; top: 0; right: -420px; bottom: 0; z-index: 9991;
  width: 400px; max-width: 95vw;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-left: 1px solid rgba(255,255,255,.5);
  box-shadow: -8px 0 40px rgba(0,0,0,.1);
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.bg-panel.open { right: 0; }

.bg-panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.bg-panel-title { font-size: 15px; font-weight: 700; }
.bg-panel-close {
  width: 30px; height: 30px; border-radius: 8px;
  border: none; background: rgba(0,0,0,.04);
  cursor: pointer; font-size: 18px; color: var(--c-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.bg-panel-close:hover { background: rgba(0,0,0,.1); color: var(--c-text); }

.bg-panel-body { flex: 1; overflow-y: auto; padding: 16px 20px; }

/* 模式标签 */
.bg-mode-tabs {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 16px;
}
.bg-mode-tab {
  flex: 1; min-width: 0;
  padding: 8px 6px; font-size: 12px; font-weight: 600;
  border: none; background: var(--c-surface-2); color: var(--c-muted);
  cursor: pointer; transition: all .15s; white-space: nowrap;
  border-right: 1px solid var(--c-border);
}
.bg-mode-tab:last-child { border-right: none; }
.bg-mode-tab:hover { background: var(--c-surface); color: var(--c-text); }
.bg-mode-tab.active {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.25);
}

.bg-section { margin-bottom: 16px; }
.bg-label {
  font-size: 12px; font-weight: 600; color: var(--c-muted);
  margin-bottom: 6px; display: block;
}

/* 渐变色块网格 */
.bg-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bg-grid-large { grid-template-columns: repeat(3, 1fr); }

.bg-swatch {
  aspect-ratio: 16/10; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s; position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.bg-swatch:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  border-color: var(--c-primary);
}
.bg-swatch-lg { aspect-ratio: 16/9; border-radius: 14px; }

/* 上传区 */
.bg-upload-zone {
  border: 2px dashed var(--c-border-2); border-radius: 16px;
  padding: 30px 20px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.3);
  transition: all .2s;
}
.bg-upload-zone:hover, .bg-upload-zone.drag {
  border-color: var(--c-primary);
  background: rgba(79,70,229,.04);
}
.bg-upload-icon { font-size: 28px; margin-bottom: 8px; }
.bg-upload-text { font-size: 13px; font-weight: 600; color: var(--c-text); }
.bg-upload-hint { font-size: 11px; color: var(--c-muted); margin-top: 4px; }

/* API 选择列表 */
.bg-api-list { display: grid; gap: 8px; }
.bg-api-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--c-border);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5);
  cursor: pointer; text-align: left; font: inherit;
  transition: all .2s;
}
.bg-api-btn:hover {
  border-color: var(--c-primary-m);
  background: rgba(255,255,255,.7);
  box-shadow: 0 4px 16px rgba(79,70,229,.08);
}
.bg-api-btn.active {
  border-color: var(--c-primary);
  background: rgba(79,70,229,.06);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.bg-api-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gradient-brand-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.bg-api-btn strong { font-size: 13px; display: block; margin-bottom: 2px; }
.bg-api-desc { font-size: 11px; color: var(--c-muted); }

/* 自定义 URL 输入 */
.bg-url-input {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--c-border); font-size: 13px;
  background: rgba(255,255,255,.5);
  transition: border-color .15s, box-shadow .15s;
}
.bg-url-input:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Glass Forms — 输入框/选择框/文本框毛玻璃
   ═══════════════════════════════════════════════════════════════════════════ */

/* 所有表单控件 — 半透明背景 */
body.admin-body input,
body.admin-body select,
body.admin-body textarea {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: var(--r);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.4);
}
body.admin-body input:hover,
body.admin-body select:hover,
body.admin-body textarea:hover {
  background: rgba(255,255,255,.6);
  border-color: rgba(79,70,229,.2);
}
body.admin-body input:focus,
body.admin-body select:focus,
body.admin-body textarea:focus {
  background: rgba(255,255,255,.7);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12),
              0 2px 8px rgba(79,70,229,.08),
              inset 0 1px 0 rgba(255,255,255,.5);
}

/* 只读输入框 */
body.admin-body input[readonly] {
  background: rgba(255,255,255,.25);
  border-color: rgba(0,0,0,.06);
}

/* select 下拉箭头在半透明背景下保持清晰 */
body.admin-body select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

/* checkbox / radio 保持默认样式 */
body.admin-body input[type="checkbox"],
body.admin-body input[type="radio"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--c-surface);
  box-shadow: none;
  border: 1px solid var(--c-border);
}

/* 隐藏的 input 不受影响 */
body.admin-body input[type="hidden"],
body.admin-body input[style*="display:none"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 按钮组（.btn）— 主色按钮加光晕 */
body.admin-body .btn {
  box-shadow: 0 2px 8px rgba(79,70,229,.12);
}
body.admin-body .btn:hover {
  box-shadow: 0 4px 16px rgba(79,70,229,.2);
}
body.admin-body .btn-ghost {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
body.admin-body .btn-ghost:hover {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* 筛选栏控件 */
body.admin-body .filter-select,
body.admin-body .filter-search input {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1.5px solid rgba(255,255,255,.5);
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
body.admin-body .filter-select:hover,
body.admin-body .filter-search input:hover {
  background: rgba(255,255,255,.6);
}
body.admin-body .filter-select:focus,
body.admin-body .filter-search input:focus {
  background: rgba(255,255,255,.7);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── 侧边栏主题切换按钮 ── */
.sidebar-theme-btn {
  margin: 4px 0 !important;
  background: rgba(79,70,229,.12) !important;
  border: 1px solid rgba(79,70,229,.2) !important;
  border-radius: var(--r) !important;
  color: #a5b4fc !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all .2s !important;
}
.sidebar-theme-btn:hover {
  background: rgba(79,70,229,.22) !important;
  border-color: rgba(79,70,229,.35) !important;
  color: #c7d2fe !important;
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Page Header — 粘性顶栏（替代原 .top-bar）
   ═══════════════════════════════════════════════════════════════════════════ */

/* .pg-header 作为新顶栏 — 粘性 + 毛玻璃 */
body.admin-body .pg-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: -24px -24px 20px;
  padding: 18px 24px 14px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 1px 8px rgba(0,0,0,.03);
  border-radius: 0;
  flex-wrap: wrap;
}
body.admin-body .pg-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.04);
}
body.admin-body .pg-desc {
  font-size: 12px;
  margin-top: 2px;
  opacity: .7;
}

@media (max-width: 960px) {
  body.admin-body .pg-header {
    margin: -16px -16px 16px;
    padding: 14px 16px 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Auto Text Color — 文字自动识别背景颜色 + 阴影突出
   ═══════════════════════════════════════════════════════════════════════════ */

/*
 * 文字颜色自适应方案：
 * 使用 CSS 变量由 JS 控制 --admin-text / --admin-text-muted / --admin-text-shadow
 * 默认暗色文字（亮背景），深色背景时切换亮色文字
 */
body.admin-body {
  --admin-text: var(--c-text);
  --admin-text-2: var(--c-text-2);
  --admin-text-muted: var(--c-muted);
  --admin-text-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* 深色背景模式 — 由 JS 添加 .dark-bg class */
body.admin-body.dark-bg {
  --admin-text: #f1f5f9;
  --admin-text-2: #e2e8f0;
  --admin-text-muted: #94a3b8;
  --admin-text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* 顶栏/页头文字适应 */
body.admin-body .pg-title {
  color: var(--admin-text);
  text-shadow: var(--admin-text-shadow);
}
body.admin-body .pg-desc {
  color: var(--admin-text-muted);
  text-shadow: var(--admin-text-shadow);
}
body.admin-body .pg-header {
  color: var(--admin-text);
}

/* 卡片内文字不受影响 — 卡片已有半透明白色背景，文字保持暗色 */

/* 卡片标题 — 保持暗色 */
body.admin-body .card-title {
  color: var(--c-text);
}

/* 深色背景下的透明元素文字适应 */
body.admin-body.dark-bg .pg-header {
  background: rgba(0,0,0,.25);
  border-bottom-color: rgba(255,255,255,.1);
}
body.admin-body.dark-bg .pg-header .btn-ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.15);
  color: #e2e8f0;
}
body.admin-body.dark-bg .pg-header .btn-ghost:hover {
  background: rgba(255,255,255,.2);
}
body.admin-body.dark-bg .pg-header .btn {
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* 深色背景下统计条/筛选栏文字 */
body.admin-body.dark-bg .filter-bar,
body.admin-body.dark-bg .job-stats {
  color: var(--admin-text-muted);
}
body.admin-body.dark-bg .job-stat-chip {
  color: var(--admin-text-2);
}
body.admin-body.dark-bg .list-hint,
body.admin-body.dark-bg .filter-hint {
  color: var(--admin-text-muted);
}

/* 深色背景下侧边栏状态卡片的标题等 */
body.admin-body.dark-bg .dash-stat-label {
  color: var(--admin-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Liquid Glass Dialogs — 弹窗/对话框/Toast 液态玻璃效果
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── AJAX 对话框遮罩 — 深度模糊背景 ── */
body.admin-body .ajax-dialog-overlay {
  background: rgba(15,23,42,.2);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
}

/* ── AJAX 对话框主体 — 液态玻璃 ── */
body.admin-body .ajax-dialog {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 80px rgba(0,0,0,.1),
    0 8px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(255,255,255,.2);
  padding: 24px;
  animation: glass-dialog-in .3s cubic-bezier(.175,.885,.32,1.275);
  position: relative;
  overflow: hidden;
}
/* 液态玻璃光泽条 */
body.admin-body .ajax-dialog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(99,102,241,.5) 0%,
    rgba(168,85,247,.4) 30%,
    rgba(236,72,153,.3) 60%,
    rgba(99,102,241,.5) 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
/* 液态玻璃光斑 */
body.admin-body .ajax-dialog::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes glass-dialog-in {
  0%   { opacity: 0; transform: translateY(12px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 对话框标题 */
body.admin-body .ajax-dialog-head {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  text-shadow: 0 1px 2px rgba(0,0,0,.03);
}

/* 对话框内容 */
body.admin-body .ajax-dialog-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-2);
}

/* 对话框底部按钮 */
body.admin-body .ajax-dialog-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.05);
  gap: 10px;
}
body.admin-body .ajax-dialog-foot .btn {
  min-width: 80px;
  height: 38px;
  border-radius: var(--r-lg);
  font-weight: 700;
}
body.admin-body .ajax-dialog-foot .btn-ghost {
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(0,0,0,.08);
}
body.admin-body .ajax-dialog-foot .btn-ghost:hover {
  background: rgba(255,255,255,.35);
}

/* ── 通用 modal-mask 弹窗 — 液态玻璃 ── */
body.admin-body .modal-mask {
  background: rgba(15,23,42,.18) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
}
body.admin-body .modal-mask .modal-box {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,.1),
    0 8px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
  animation: glass-dialog-in .3s cubic-bezier(.175,.885,.32,1.275);
  overflow: hidden;
}
body.admin-body .modal-mask .modal-header {
  background: rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: 16px 20px;
}
body.admin-body .modal-mask .modal-header-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}
body.admin-body .modal-mask .modal-footer {
  background: rgba(255,255,255,.15);
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 14px 20px;
}

/* ── modal-overlay 弹窗（订单详情等）— 液态玻璃 ── */
body.admin-body .modal-overlay {
  background: rgba(15,23,42,.18) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  align-items: center !important;
  justify-content: center !important;
}
body.admin-body .modal-overlay .modal-box,
body.admin-body .modal-overlay .modal-card,
body.admin-body .modal-overlay .admin-modal-card {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: var(--r-xl) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(255,255,255,.2) !important;
  animation: glass-dialog-in .3s cubic-bezier(.175,.885,.32,1.275);
  max-height: 85vh;
  overflow-y: auto;
}
/* Fix mobile: ensure centered, not bottom-aligned */
@media (max-width: 640px) {
  body.admin-body .modal-overlay {
    padding: 16px !important;
    align-items: center !important;
  }
  body.admin-body .modal-overlay .modal-box,
  body.admin-body .modal-overlay .modal-card {
    border-radius: var(--r-xl) !important;
    max-height: 90vh;
    width: calc(100vw - 32px) !important;
    animation: glass-dialog-in .3s cubic-bezier(.175,.885,.32,1.275) !important;
  }
}
body.admin-body .modal-overlay .modal-head {
  background: rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: 16px 20px;
}
body.admin-body .modal-overlay .modal-foot {
  background: rgba(255,255,255,.15);
  border-top: 1px solid rgba(0,0,0,.05);
}

/* ── Toast 通知 — 玻璃效果 ── */
body.admin-body .ajax-toast {
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--r-lg);
  box-shadow:
    0 8px 32px rgba(0,0,0,.08),
    0 2px 8px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.7);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  animation: glass-toast-in .35s cubic-bezier(.175,.885,.32,1.275);
}
body.admin-body .ajax-toast.success {
  background: rgba(240,253,244,.7);
  border-color: rgba(134,239,172,.5);
  color: #166534;
  box-shadow:
    0 8px 32px rgba(22,101,52,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-body .ajax-toast.error {
  background: rgba(254,242,242,.7);
  border-color: rgba(252,165,165,.5);
  color: #991b1b;
  box-shadow:
    0 8px 32px rgba(153,27,27,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-body .ajax-toast.info {
  background: rgba(239,246,255,.7);
  border-color: rgba(147,197,253,.5);
  color: #1e3a8a;
  box-shadow:
    0 8px 32px rgba(30,58,138,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
}
@keyframes glass-toast-in {
  0%   { opacity: 0; transform: translateX(20px) scale(.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── 设置组 (节点/默认配置弹窗内) — 玻璃效果 ── */
body.admin-body .setting-group {
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}
body.admin-body .setting-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(79,70,229,.1);
}
body.admin-body .setting-row {
  background: rgba(255,255,255,.2);
  border-radius: var(--r);
  padding: 10px 12px;
  margin-bottom: 4px;
  transition: background .15s;
}
body.admin-body .setting-row:hover {
  background: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Glass Theme — 高斯模糊 + 圆角矩形卡片
   ═══════════════════════════════════════════════════════════════════════════ */

/* 管理后台主区域 — 渐变背景 */
.layout:has(.admin-sidebar) .main-area {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99,102,241,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 10%, rgba(124,58,237,.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(168,85,247,.04) 0%, transparent 45%),
    linear-gradient(180deg, #f0f2f8 0%, #eef0f5 40%, #f5f3ff 100%);
}

/* :has() 降级：不支持的浏览器使用 body class（可由 _page.php 添加） */
body.admin-body .main-area {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99,102,241,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 10%, rgba(124,58,237,.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(168,85,247,.04) 0%, transparent 45%),
    linear-gradient(180deg, #f0f2f8 0%, #eef0f5 40%, #f5f3ff 100%);
}

/* 管理后台顶栏 — 毛玻璃 */
.admin-top-bar {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(255,255,255,.5) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.03);
}

/* 所有 .card 在管理后台下 — 毛玻璃卡片 */
.layout:has(.admin-sidebar) .card,
body.admin-body .card {
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--r-xl);
  box-shadow:
    0 4px 24px rgba(0,0,0,.04),
    0 1px 3px rgba(0,0,0,.03),
    inset 0 1px 0 rgba(255,255,255,.6);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
  overflow: visible !important;
}
.layout:has(.admin-sidebar) .card:hover,
body.admin-body .card:hover {
  box-shadow:
    0 8px 32px rgba(0,0,0,.06),
    0 2px 6px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.6);
}

/* .card-title 在玻璃卡片下 — 更轻的分割线 */
.layout:has(.admin-sidebar) .card-title,
body.admin-body .card-title {
  border-bottom-color: rgba(0,0,0,.06);
}

/* 所有管理后台表格 — 玻璃化表头和行 */
body.admin-body table thead th {
  background: rgba(255,255,255,.2) !important;
  border-bottom-color: rgba(0,0,0,.04) !important;
}
body.admin-body table tbody td {
  border-bottom-color: rgba(0,0,0,.03) !important;
}
body.admin-body table tbody tr:hover td {
  background: rgba(79,70,229,.04) !important;
}

/* ── 搜索框/筛选栏 — 玻璃效果 ── */
body.admin-body .filter-bar,
body.admin-body .filter-row {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ── 分页器 — 玻璃效果 ── */
body.admin-body .pager {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-lg);
  padding: 10px 14px;
}
body.admin-body .pager a,
body.admin-body .pager span,
body.admin-body .pager button {
  background: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
body.admin-body .pager a:hover,
body.admin-body .pager button:hover:not(:disabled) {
  background: rgba(255,255,255,.55);
  border-color: rgba(79,70,229,.2);
}
body.admin-body .pager .current {
  background: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
  color: #fff !important;
}

/* ── 移动端汉堡按钮（注入到 pg-header 内） ── */
.mobile-drawer-btn {
  display: none;
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  color: var(--c-text); font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.mobile-drawer-btn:hover {
  background: rgba(255,255,255,.45);
}
@media (max-width: 960px) {
  .mobile-drawer-btn { display: flex; }
  /* 移动端隐藏原始顶栏 */
  body.admin-body .mobile-topbar { display: none !important; }
}

/* ── 调色管理 预设键截断 ── */
body.admin-body td code,
body.admin-body .preset-key-cell {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
}

/* Dashboard 统计卡片 — 玻璃效果 */
.dash-stat {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.dash-stat:hover {
  background: rgba(255,255,255,.7) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,.06),
    0 0 0 1px rgba(79,70,229,.1),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* 快捷入口 — 玻璃效果 */
.dash-shortcut {
  background: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 2px 12px rgba(0,0,0,.03),
    inset 0 1px 0 rgba(255,255,255,.5);
}
.dash-shortcut:hover {
  background: rgba(255,255,255,.75) !important;
  border-color: rgba(79,70,229,.2) !important;
  box-shadow:
    0 8px 28px rgba(79,70,229,.08),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* 配置状态项 — 玻璃效果 */
.dash-config-item {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: var(--r-lg) !important;
}

/* 表格容器 — 玻璃效果 */
.layout:has(.admin-sidebar) .table-wrap,
body.admin-body .table-wrap,
.job-table-wrap,
.ord-table-wrap {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.5);
  overflow-x: auto !important;
  overflow-y: visible !important;
}
.job-table-wrap thead th,
.ord-table-wrap thead th {
  background: rgba(255,255,255,.2) !important;
  border-bottom-color: rgba(0,0,0,.04) !important;
}
.job-table-wrap tbody td,
.ord-table-wrap tbody td {
  border-bottom-color: rgba(0,0,0,.04) !important;
}

/* 设置卡片 — 玻璃效果 */
.s-card {
  background: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 2px 16px rgba(0,0,0,.03),
    inset 0 1px 0 rgba(255,255,255,.5);
}
.s-head {
  background: rgba(255,255,255,.3) !important;
}
.s-head:hover {
  background: rgba(255,255,255,.5) !important;
}

/* 统计卡片 — 玻璃效果 */
.stat-card,
.u-stat-card {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 4px 20px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.stat-card:hover,
.u-stat-card:hover {
  background: rgba(255,255,255,.7) !important;
  box-shadow:
    0 8px 28px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* 任务卡片（移动端） — 玻璃效果 */
.job-card,
.ord-card {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 2px 12px rgba(0,0,0,.03),
    inset 0 1px 0 rgba(255,255,255,.5);
}
.job-card:hover,
.ord-card:hover {
  background: rgba(255,255,255,.7) !important;
  border-color: rgba(79,70,229,.15) !important;
  box-shadow:
    0 8px 24px rgba(79,70,229,.08),
    inset 0 1px 0 rgba(255,255,255,.7) !important;
}

/* 保存栏 — 毛玻璃 */
.save-bar {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-top: 1px solid rgba(255,255,255,.5) !important;
  box-shadow: 0 -4px 16px rgba(0,0,0,.04) !important;
}

/* 筛选条/状态筹码 — 玻璃效果 */
.job-stat-chip {
  background: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.5) !important;
}
.job-stat-chip:hover {
  background: rgba(255,255,255,.7) !important;
}
.job-stat-chip.active {
  background: rgba(79,70,229,.08) !important;
  border-color: rgba(79,70,229,.25) !important;
}

/* 弹窗 — 毛玻璃背景 */
.profile-modal-mask,
.modal-overlay,
.modal-backdrop {
  background: rgba(0,0,0,.25) !important;
  backdrop-filter: blur(28px) saturate(1.5) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) saturate(1.2) !important;
}
.profile-modal-box,
.modal-card,
.admin-modal-card {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 24px 64px rgba(0,0,0,.12),
    0 8px 24px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

/* 套餐表格 — 玻璃效果 */
.plans-table-wrap {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: var(--r-xl) !important;
}

/* 更新页面卡片 */
.upd-card {
  background: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: var(--r-xl) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Layout & Shared (_page.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 管理员信息卡 ── */
.admin-profile-card {
    margin: 0 8px 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px;
}
.admin-profile-card-inner {
    display: flex; align-items: center; gap: 10px;
}
.admin-avatar {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.4);
    letter-spacing: -.02em; user-select: none;
    overflow: hidden;
}
.admin-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
    display: block;
}
/* ── 授权状态条 ── */
.auth-status-bar {
    margin: 0 8px 10px;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.4;
    display: none;
}
.auth-status-bar.licensed {
    background: rgba(74,222,128,.12);
    border: 1px solid rgba(74,222,128,.25);
    color: #4ade80;
    display: block;
}
.auth-status-bar.unlicensed {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
    color: #f87171;
    display: block;
}
.auth-status-bar-title {
    font-weight: 700; display: flex; align-items: center; gap: 5px;
}
.auth-status-bar-sub {
    margin-top: 2px; opacity: .8; font-size: 10px;
}
.admin-info { flex: 1; min-width: 0; }
.admin-info-name {
    font-size: 13px; font-weight: 700; color: #e2e8f0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-info-role {
    font-size: 10px; color: #94a3b8; margin-top: 1px;
    display: inline-flex; align-items: center; gap: 4px;
}
.admin-info-role::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: #4ade80; flex-shrink: 0;
}
.admin-edit-btn {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    color: #94a3b8; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth);
}
.admin-edit-btn:hover { background: rgba(99,102,241,.3); color: #a5b4fc; border-color: rgba(99,102,241,.4); }

/* ── 侧边栏分组标题 ── */
.sidebar-group-label {
    font-size: 10px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 16px 4px;
    user-select: none;
}
/* ── 编辑弹窗 ── */
.profile-modal-mask {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.55); align-items: center; justify-content: center;
}
.profile-modal-mask.open { display: flex; }
.profile-modal-box {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 16px; width: 420px; max-width: 95vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex; flex-direction: column; overflow: hidden;
}
.profile-modal-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; gap: 12px;
}
.profile-modal-header-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: linear-gradient(135deg,#6366f1,#8b5cf6);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.profile-modal-header-title { font-weight: 700; font-size: 15px; flex: 1; }
.profile-modal-close {
    width: 28px; height: 28px; border-radius: 8px; border: none;
    background: transparent; cursor: pointer; font-size: 16px;
    color: var(--c-muted); display: flex; align-items: center; justify-content: center;
}
.profile-modal-close:hover { background: var(--c-surface-2); color: var(--c-text); }
.profile-modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.profile-field { display: flex; flex-direction: column; gap: 5px; }
.profile-field label { font-size: 11px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.profile-field input {
    padding: 9px 12px; border: 1.5px solid var(--c-border); border-radius: 9px;
    font-size: 14px; background: var(--c-surface); color: var(--c-text);
    transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box;
}
.profile-field input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.profile-field-hint { font-size: 11px; color: var(--c-muted); margin-top: 1px; }
.profile-divider { height: 1px; background: var(--c-border); margin: 2px 0; }
.profile-modal-footer {
    padding: 14px 20px; border-top: 1px solid var(--c-border);
    display: flex; gap: 8px; justify-content: flex-end; align-items: center;
}
.profile-save-msg { font-size: 12px; color: #16a34a; margin-right: auto; display: none; }
.profile-save-err { font-size: 12px; color: #dc2626; margin-right: auto; }


/* ═══════════════════════════════════════════════════════════════════════════
   Dashboard (index.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Dashboard 专属 ── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.dash-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.dash-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary-m);
}
.dash-stat:hover::before { opacity: 1; }
.dash-stat-left { display: flex; flex-direction: column; gap: 4px; }
.dash-stat-label {
  font-size: 11px; font-weight: 600; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.dash-stat-value {
  font-size: 32px; font-weight: 800; line-height: 1; color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.fx-num-prefix {
  font-size: 18px; font-weight: 600; color: var(--c-sub, #94a3b8); margin-right: 2px;
}
.dash-stat-icon {
  width: 40px; height: 40px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* 状态色 */
.icon-pending-pay { background: #fef3c7; }
.icon-pending     { background: #e0f2fe; }
.icon-preparing   { background: #ede9fe; }
.icon-rendering   { background: #dbeafe; }
.icon-balance     { background: #f3e8ff; }
.icon-done        { background: #d1fae5; }
.icon-failed      { background: #fee2e2; }

/* 快捷入口 */
.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.dash-shortcut {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 16px;
  text-decoration: none; color: var(--c-text);
  transition: border-color var(--transition-smooth),
              box-shadow var(--transition-smooth),
              transform var(--transition-smooth);
}
.dash-shortcut:hover {
  border-color: var(--c-primary-m); box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.02); text-decoration: none; color: var(--c-text);
}
.dash-shortcut-icon {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--gradient-brand-subtle); display: flex; align-items: center;
  justify-content: center; font-size: 18px;
  transition: box-shadow var(--transition-smooth);
}
.dash-shortcut:hover .dash-shortcut-icon {
  box-shadow: var(--shadow-glow);
}
.dash-shortcut-name { font-weight: 700; font-size: 13px; }
.dash-shortcut-desc { font-size: 12px; color: var(--c-muted); line-height: 1.4; }

/* 配置状态 */
.dash-config {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.dash-config-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r); padding: 10px 14px;
}
.config-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.config-dot.ok   { background: var(--c-success); }
.config-dot.warn { background: var(--c-warn); }
.config-label { font-size: 12px; color: var(--c-muted); flex: 1; }
.config-val   { font-size: 12px; font-weight: 600; color: var(--c-text); }

@media (max-width: 960px) {
  .dash-grid      { grid-template-columns: repeat(3, 1fr); }
  .dash-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .dash-config    { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-grid      { grid-template-columns: repeat(2, 1fr); }
  .dash-shortcuts { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Settings (settings.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.s-card{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-lg);overflow:hidden;margin-bottom:10px;transition:box-shadow var(--transition-smooth)}.s-card:hover{box-shadow:var(--shadow-sm)}.s-head{display:flex;align-items:center;gap:10px;padding:13px 18px;cursor:pointer;background:var(--c-surface-2);border-bottom:1px solid transparent;user-select:none;transition:background var(--transition-smooth),padding-left var(--transition-smooth)}.s-head:hover{background:var(--c-primary-l);padding-left:22px}.s-card.open>.s-head{border-bottom-color:var(--c-border)}.s-icon{width:30px;height:30px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}.s-title{font-weight:700;font-size:13px;flex:1}.s-desc{font-size:12px;color:var(--c-muted);margin-top:1px}.s-chevron{font-size:11px;color:var(--c-muted);transition:transform var(--transition-smooth);flex-shrink:0}.s-card.open .s-chevron{transform:rotate(180deg)}.s-body{display:none;padding:18px 20px;gap:14px;flex-direction:column}.s-card.open .s-body{display:flex}.s-row{display:grid;grid-template-columns:200px 1fr;gap:20px;align-items:start}.s-label{padding-top:8px}.s-label strong{font-size:13px;font-weight:600;display:block;margin-bottom:2px}.s-label span{font-size:12px;color:var(--c-muted);line-height:1.4}.s-input{display:flex;flex-direction:column;gap:5px}.s-divider{border:0;border-top:1px solid var(--c-border);margin:4px 0}.s-sub{font-size:11px;font-weight:700;color:var(--c-muted);letter-spacing:.06em;text-transform:uppercase;padding:6px 0 2px}.fps-tier-head,.fps-tier-row{display:grid;grid-template-columns:70px 90px 1fr 100px 28px;gap:4px;align-items:center}.fps-tier-head span{font-size:11px;color:var(--c-muted);padding-bottom:2px}.fps-tier-row input{padding:4px 6px;border:1px solid var(--c-border);border-radius:var(--r);background:var(--c-bg);color:var(--c-text);font-size:12px;width:100%}.fps-tier-row .del-btn{background:none;border:none;cursor:pointer;color:var(--c-danger);font-size:16px;padding:0;line-height:1}.save-bar{position:sticky;bottom:0;z-index:20;background:var(--glass-bg);backdrop-filter:var(--glass-blur);-webkit-backdrop-filter:var(--glass-blur);border-top:1px solid var(--glass-border);border-radius:var(--r-lg) var(--r-lg) 0 0;padding:11px 20px;display:flex;align-items:center;gap:10px;margin:12px -24px -24px;box-shadow:0 -4px 20px rgba(0,0,0,.06)}.save-bar-msg{font-size:13px;color:var(--c-success);display:none}.save-bar-err{font-size:13px;color:var(--c-danger);display:none}@media (max-width:700px){.s-row{grid-template-columns:1fr;gap:4px}.s-label{padding-top:0}}
/* ── Tab 导航 ── */
.settings-tabs{display:flex;gap:0;border-bottom:1px solid var(--c-border);margin-bottom:16px;overflow-x:auto;flex-shrink:0}
.tab-btn{padding:9px 18px;font-size:13px;font-weight:600;border:none;border-bottom:2px solid transparent;background:transparent;cursor:pointer;color:var(--c-muted);transition:color var(--transition-smooth),border-color var(--transition-smooth);white-space:nowrap;outline:none;position:relative}
.tab-btn:hover{color:var(--c-text)}
.tab-btn.active{color:var(--c-primary);border-bottom-color:transparent}
.tab-btn.active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--gradient-brand);border-radius:2px}
.tab-panel{display:none}
.tab-panel.active{display:block}


/* ═══════════════════════════════════════════════════════════════════════════
   Users (users.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.u-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;display:block;border:1px solid var(--c-border);flex-shrink:0;min-width:32px;min-height:32px;}
.u-avatar-ph{width:32px;height:32px;border-radius:50%;background:var(--c-surface-2);border:1px solid var(--c-border);display:inline-flex;align-items:center;justify-content:center;font-size:11px;color:var(--c-subtle);flex-shrink:0;min-width:32px;min-height:32px;}
.u-name{font-weight:600;color:var(--c-text);font-size:13px;}
.u-id{font-size:11px;color:var(--c-subtle);font-family:monospace;}
.u-qq{font-size:12px;color:var(--c-muted);}
.u-bal{font-weight:700;font-size:13px;color:var(--c-text);font-variant-numeric:tabular-nums;}
.u-date{font-size:11px;color:var(--c-subtle);white-space:nowrap;}
/* tier badges */
.tb{display:inline-block;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:600;white-space:nowrap;}
.tb-ordinary {background:#f1f5f9;color:#475569;}
.tb-monthly  {background:#dbeafe;color:#1d4ed8;}
.tb-quarterly{background:#ede9fe;color:#6d28d9;}
.tb-yearly   {background:#fef3c7;color:#92400e;}
.tb-lifetime {background:#fce7f3;color:#9d174d;}
/* status dot */
.us{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;}
.us::before{content:'';width:6px;height:6px;border-radius:50%;flex-shrink:0;}
.us-ok{color:var(--c-success);}.us-ok::before{background:var(--c-success);}
.us-ban{color:var(--c-danger);}.us-ban::before{background:var(--c-danger);}
/* action btns */
.ua-wrap{display:flex;gap:4px;align-items:center;}
.ua{height:26px;padding:0 10px;font-size:12px;border-radius:8px;border:1px solid var(--c-border);background:var(--c-surface);color:var(--c-text-2);cursor:pointer;font-weight:500;transition:background var(--transition-smooth),border-color var(--transition-smooth),color var(--transition-smooth),box-shadow var(--transition-smooth);white-space:nowrap;}
.ua:hover{background:var(--c-surface-2);border-color:var(--c-border-2);box-shadow:var(--shadow-xs);}
.ua-green{color:#15803d;border-color:#bbf7d0;}.ua-green:hover{background:#f0fdf4;}
.ua-warn{color:#92400e;border-color:#fde68a;}.ua-warn:hover{background:#fefce8;}
.ua-ok{color:#1d4ed8;border-color:#bfdbfe;}.ua-ok:hover{background:#eff6ff;}
.ua-del{color:var(--c-danger);border-color:#fecaca;background:var(--c-danger-l);border-width:0;}.ua-del:hover{background:#fca5a5;}
/* table rows */
#usersTable tbody tr{transition:background var(--transition-smooth)}
#usersTable tbody tr:hover td{background:rgba(79,70,229,.04);}
/* ── 统计卡片 ── */
.u-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px;}
@media(max-width:900px){.u-stat-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.u-stat-grid{grid-template-columns:1fr 1fr;}}
.u-stat-card{background:var(--c-surface);border:1px solid var(--c-border);border-left:3px solid var(--c-primary-m);border-radius:var(--r);padding:18px 20px;display:flex;flex-direction:column;gap:4px;transition:box-shadow var(--transition-smooth),transform var(--transition-smooth),border-color var(--transition-smooth);}
.u-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);}
.u-stat-filter-card{user-select:none;}
.u-stat-main-filter{appearance:none;border:0;background:transparent;padding:0;text-align:left;display:flex;flex-direction:column;gap:4px;width:100%;font-family:inherit;cursor:pointer;color:inherit;}
.u-stat-main-filter:focus-visible{outline:2px solid var(--c-primary);outline-offset:3px;border-radius:8px;}
.u-stat-filter-card.active{border-color:var(--c-primary)!important;border-left-color:var(--c-primary)!important;background:var(--c-primary-l,#eef2ff)!important;box-shadow:0 0 0 2px rgba(79,70,229,.12);}
.u-stat-card.accent-blue{border-left-color:#3b82f6;}
.u-stat-card.accent-green{border-left-color:#059669;}
.u-stat-card.accent-amber{border-left-color:#d97706;}
.u-stat-card.accent-red{border-left-color:var(--c-danger);}
.u-stat-icon{font-size:20px;line-height:1;margin-bottom:2px;}
.u-stat-val{font-size:26px;font-weight:700;color:var(--c-text);font-variant-numeric:tabular-nums;line-height:1.1;}
.u-stat-val.loading{color:var(--c-muted);font-size:18px;}
.u-stat-label{font-size:12px;color:var(--c-subtle);font-weight:500;}
.u-stat-sub{font-size:11px;color:var(--c-muted);margin-top:2px;}
.u-stat-sub-filter{appearance:none;border:0;background:transparent;padding:0;text-align:left;font-family:inherit;font-size:11px;font-weight:500;line-height:inherit;cursor:pointer;transition:color var(--transition-smooth);}
.u-stat-sub-filter:hover,.u-stat-sub-filter.active{color:var(--c-primary);text-decoration:underline;text-underline-offset:2px;}
.u-stat-sub-filter:focus-visible{outline:2px solid var(--c-primary);outline-offset:2px;border-radius:4px;}
.u-stat-card.accent-blue .u-stat-val{color:#1d4ed8;}
.u-stat-card.accent-green .u-stat-val{color:#15803d;}
.u-stat-card.accent-amber .u-stat-val{color:#b45309;}
.u-stat-card.accent-red .u-stat-val{color:var(--c-danger);}


/* ═══════════════════════════════════════════════════════════════════════════
   Orders (orders.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 统计卡片 ── */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-bottom:20px}
.stat-card{background:var(--c-surface);border:1px solid var(--c-border);border-left:3px solid var(--c-primary-m);border-radius:var(--r-lg);padding:18px 20px;display:flex;flex-direction:column;gap:3px;transition:box-shadow var(--transition-smooth),border-color var(--transition-smooth),background var(--transition-smooth),transform var(--transition-smooth);cursor:pointer;user-select:none}
.stat-card:hover{box-shadow:var(--shadow-md);border-color:var(--c-primary);transform:translateY(-2px)}
.stat-card.active{border-color:var(--c-primary);border-left-color:var(--c-primary);background:var(--c-primary-l,#eef2ff);box-shadow:0 0 0 2px rgba(79,70,229,.12)}
.stat-label{font-size:11px;font-weight:600;color:var(--c-muted);text-transform:uppercase;letter-spacing:.05em}
.stat-value{font-size:22px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat-sub{font-size:11px;color:var(--c-muted)}
.sv-green{color:#059669}.sv-blue{color:#4f46e5}.sv-amber{color:#d97706}.sv-purple{color:#7c3aed}

/* ── 徽章 ── */
.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}
.badge::before{content:'';width:5px;height:5px;border-radius:50%;flex-shrink:0}
.b-paid{background:#d1fae5;color:#065f46}.b-paid::before{background:#059669}
.b-pending{background:#fef3c7;color:#92400e}.b-pending::before{background:#d97706}
.b-failed{background:#fee2e2;color:#991b1b}.b-failed::before{background:#dc2626}
.b-closed{background:var(--c-surface-2);color:var(--c-muted)}.b-closed::before{background:var(--c-muted)}
.b-refunded{background:#ede9fe;color:#6d28d9}.b-refunded::before{background:#7c3aed}
.type-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:600}
.tb-membership{background:#ede9fe;color:#6d28d9}
.tb-render{background:#dbeafe;color:#1d4ed8}
.tb-recharge{background:#d1fae5;color:#065f46}
.tb-default{background:var(--c-surface-2);color:var(--c-muted)}

/* ── 卡片列表（移动端） ── */
.ord-list{display:flex;flex-direction:column;gap:8px}
.ord-card{background:var(--c-surface);border:1px solid var(--c-border);border-radius:12px;padding:14px 16px;cursor:pointer;transition:all .15s;display:flex;flex-direction:column;gap:10px}
.ord-card:hover{border-color:var(--c-primary);box-shadow:0 2px 12px rgba(79,70,229,.1)}
.ord-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.ord-card-left{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.ord-card-user{font-size:14px;font-weight:700;color:var(--c-text)}
.ord-card-no{font-size:11px;font-family:monospace;color:var(--c-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ord-card-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.ord-amt{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.ord-amt-paid{color:#059669}
.ord-card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ord-card-actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:6px;border-top:1px solid var(--c-border)}

/* ── 桌面端表格 ── */
.ord-table-wrap{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-lg);overflow:hidden}
.ord-table-wrap table{width:100%;border-collapse:collapse;min-width:860px}
.ord-table-wrap thead th{background:var(--c-surface-2);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--c-muted);padding:10px 12px;text-align:left;border-bottom:1px solid var(--c-border);white-space:nowrap}
.ord-table-wrap tbody td{padding:11px 12px;font-size:13px;border-bottom:1px solid var(--c-border);vertical-align:middle}
.ord-table-wrap tbody tr:last-child td{border-bottom:0}
.ord-table-wrap tbody tr{cursor:pointer;transition:background var(--transition-smooth)}
.ord-table-wrap tbody tr:hover td{background:rgba(79,70,229,.04)}
.ord-no-cell{font-family:monospace;font-size:11px;color:var(--c-muted);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.ord-no-cell:hover{color:var(--c-text)}

/* ── 弹窗 ── */
.modal-overlay{display:none;position:fixed;inset:0;z-index:400;background:rgba(0,0,0,.45);align-items:center;justify-content:center}
@media(max-width:639px){.modal-overlay{align-items:center}}
@media(min-width:640px){.modal-overlay{align-items:center}}
.modal-overlay.open{display:flex}
.modal-box{background:var(--c-surface);width:100%;max-width:560px;border-radius:16px;max-height:85vh;display:flex;flex-direction:column;animation:fadeScale .18s ease}
@media(max-width:639px){.modal-box{max-width:calc(100vw - 32px);max-height:90vh}}
@media(min-width:640px){.modal-box{border-radius:16px;max-height:85vh;animation:fadeScale .18s ease}}
@keyframes slideUp{from{transform:translateY(60px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes fadeScale{from{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 14px;border-bottom:1px solid var(--c-border);flex-shrink:0}
.modal-title{font-size:16px;font-weight:700}
.modal-close{background:none;border:none;font-size:20px;cursor:pointer;color:var(--c-muted);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background .12s}
.modal-close:hover{background:var(--c-surface-2)}
.modal-body{overflow-y:auto;padding:18px 20px;display:flex;flex-direction:column;gap:14px;flex:1}
.modal-foot{padding:14px 20px;border-top:1px solid var(--c-border);display:flex;gap:8px;justify-content:flex-end;flex-shrink:0;flex-wrap:wrap}
.detail-section{display:flex;flex-direction:column;gap:6px}
.detail-section-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--c-muted)}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:400px){.detail-grid{grid-template-columns:1fr}}
.detail-item{background:rgba(255,255,255,.2);border-radius:8px;padding:10px 12px}
.detail-item-label{font-size:11px;color:var(--c-muted);margin-bottom:2px}
.detail-item-val{font-size:13px;font-weight:600;color:var(--c-text);word-break:break-all}
.detail-item-val.mono{font-family:monospace;font-size:12px;font-weight:400}
.detail-item.full{grid-column:1/-1}

/* ── 空状态 ── */
.empty-box{text-align:center;padding:60px 20px;color:var(--c-muted)}
.empty-box-icon{font-size:42px;margin-bottom:10px;opacity:.5}
.empty-box-text{font-size:14px}

/* ── 响应式显隐 ── */
.desktop-only{display:none}
.mobile-only{display:block}
@media(min-width:768px){.desktop-only{display:block}.mobile-only{display:none}}

/* ── 筛选栏 ── */
.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.filter-row select,.filter-row input[type=text]{height:34px;padding:0 10px;border:1px solid var(--c-border);border-radius:8px;font-size:13px;background:var(--c-surface);color:var(--c-text);outline:none;transition:border-color .15s}
.filter-row select:focus,.filter-row input[type=text]:focus{border-color:var(--c-primary)}
.filter-row input[type=text]{flex:1;min-width:140px;max-width:260px}
.filter-hint{font-size:12px;color:var(--c-muted);margin-left:auto}


/* ═══════════════════════════════════════════════════════════════════════════
   Jobs (jobs.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 状态徽章 ── */
.s-pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:3px 9px;border-radius:20px;white-space:nowrap}
.s-pill .dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.s-done  {background:#d1fae5;color:#065f46}.s-done .dot{background:#059669}
.s-fail  {background:#fee2e2;color:#991b1b}.s-fail .dot{background:#dc2626}
.s-cancel{background:#f3f4f6;color:#374151}.s-cancel .dot{background:#9ca3af}
.s-queue {background:#fef3c7;color:#92400e}.s-queue .dot{background:#d97706}
.s-run   {background:#dbeafe;color:#1e40af}.s-run .dot{background:#3b82f6;animation:pdot 1.2s ease-in-out infinite}
.s-pay   {background:#ede9fe;color:#5b21b6}.s-pay .dot{background:#7c3aed}
@keyframes pdot{0%,100%{opacity:1}50%{opacity:.25}}

/* ── 进度条 ── */
.prog-wrap{display:flex;align-items:center;gap:6px}
.prog-bar{width:52px;height:5px;border-radius:3px;background:var(--c-border);overflow:hidden;flex-shrink:0}
.prog-fill{height:100%;border-radius:3px;transition:width .3s}
.prog-pct{font-size:12px;color:var(--c-muted);min-width:28px}

/* ── 统计条 ── */
.job-stats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.job-stat-chip{display:flex;align-items:center;gap:6px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-full);padding:5px 12px;font-size:12px;font-weight:600;cursor:pointer;transition:all var(--transition-smooth)}
.job-stat-chip:hover{border-color:var(--c-primary);color:var(--c-primary);box-shadow:var(--shadow-xs)}
.job-stat-chip.active{background:var(--c-primary-l,#eef2ff);border-color:var(--c-primary);color:var(--c-primary);box-shadow:0 0 0 3px rgba(79,70,229,.08)}
.job-stat-num{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}

/* ── 卡片列表（移动端）── */
.job-card{background:var(--c-surface);border:1px solid var(--c-border);border-radius:12px;padding:14px 16px;transition:all .15s;margin-bottom:8px}
.job-card:hover{border-color:var(--c-primary);box-shadow:0 2px 10px rgba(79,70,229,.1)}
.jc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.jc-id{font-size:12px;font-family:monospace;font-weight:700;color:var(--c-muted)}
.jc-user{font-size:14px;font-weight:700}
.jc-file{font-size:12px;color:var(--c-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.jc-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.jc-actions{display:flex;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--c-border);flex-wrap:wrap}

/* ── 桌面端表格 ── */
.job-table-wrap{background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--r-lg);overflow:hidden}
.job-table-wrap table{width:100%;border-collapse:collapse;min-width:860px}
.job-table-wrap thead th{background:var(--c-surface-2);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--c-muted);padding:10px 14px;text-align:left;border-bottom:1px solid var(--c-border);white-space:nowrap}
.job-table-wrap tbody td{padding:11px 14px;font-size:13px;color:var(--c-text-2);border-bottom:1px solid var(--c-border);vertical-align:middle}
.job-table-wrap tbody tr:last-child td,.job-table-wrap .detail-row:last-child td{border-bottom:0}
.job-row{cursor:pointer;transition:background var(--transition-smooth)}
.job-row:hover td{background:rgba(79,70,229,.04)}
.job-row.expanded td{background:var(--c-primary-l)}
.expand-chevron{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:4px;background:var(--c-border);color:var(--c-muted);font-size:10px;margin-left:5px;transition:transform .18s,background .12s;flex-shrink:0;vertical-align:middle}
.job-row.expanded .expand-chevron{transform:rotate(90deg);background:var(--c-primary-l);color:var(--c-primary)}
.job-row:hover .expand-chevron{background:var(--c-primary-l);color:var(--c-primary)}
.act-btn{display:inline-flex;align-items:center;height:26px;padding:0 9px;font-size:12px;border-radius:8px;border:1px solid var(--c-border);background:var(--c-surface);color:var(--c-text-2);cursor:pointer;transition:all var(--transition-smooth);white-space:nowrap;font-weight:500}
.act-btn:hover{border-color:var(--c-border-2);background:var(--c-surface-2);box-shadow:var(--shadow-xs)}
.act-btn.danger{background:var(--c-danger-l);border-color:var(--c-danger-l);color:var(--c-danger)}
.act-btn.danger:hover{background:#fca5a5;border-color:var(--c-danger)}
.act-btn.primary{background:var(--c-primary-l,#eef2ff);border-color:var(--c-primary-m,#c7d2fe);color:var(--c-primary)}
.act-btn.primary:hover{background:var(--c-primary-m,#c7d2fe)}

/* ── 展开详情 ── */
.detail-row td{padding:0!important;background:rgba(255,255,255,.15)!important;border-bottom:2px solid rgba(0,0,0,.04)!important}
.detail-inner{padding:14px 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.dc{background:var(--c-surface);border:1px solid var(--c-border);border-radius:8px;padding:11px 13px}
.dc-head{display:flex;align-items:center;gap:5px;margin-bottom:6px}
.dc-icon{font-size:14px;line-height:1}
.dc-title{font-size:11px;font-weight:700;color:var(--c-muted);text-transform:uppercase;letter-spacing:.04em}
.dc-body{font-size:13px;color:var(--c-text-2);line-height:1.65}
.dc-kv{display:flex;gap:6px;font-size:13px;line-height:1.7}
.dc-kl{color:var(--c-subtle);font-size:11px;min-width:54px;flex-shrink:0}
.dc-vl{color:var(--c-text-2);font-weight:500}
.dc-full{grid-column:1/-1}
.dc-error{background:#fff5f5;border-color:#fca5a5}
.dc-error .dc-title{color:var(--c-danger)}
.dc-error .dc-body{font-size:12px;font-family:monospace;color:#7f1d1d;word-break:break-all;line-height:1.5}
.dc-tag{display:inline-block;font-size:11px;background:var(--c-primary-l);color:var(--c-primary);border-radius:4px;padding:2px 7px;margin:2px 2px 2px 0;font-weight:500}

/* ── 自动刷新指示 ── */
.auto-refresh-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--c-muted);padding:3px 8px;border-radius:20px;border:1px solid var(--c-border);cursor:pointer;user-select:none;transition:all .15s}
.auto-refresh-badge.on{color:#059669;border-color:#6ee7b7;background:#f0fdf4}
.ar-dot{width:6px;height:6px;border-radius:50%;background:var(--c-muted);flex-shrink:0}
.auto-refresh-badge.on .ar-dot{background:#059669;animation:pdot 1.2s ease-in-out infinite}


/* ═══════════════════════════════════════════════════════════════════════════
   Nodes (nodes.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── modal ── */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.5); align-items: center; justify-content: center;
}
.modal-mask.open { display: flex; }
.modal-mask .modal-box {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); width: 560px; max-width: 95vw; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
}
.modal-header {
  padding: 18px 20px 14px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header-title { font-weight: 700; font-size: 14px; }
.modal-mask .modal-close {
  width: 28px; height: 28px; border-radius: var(--r); border: none;
  background: transparent; cursor: pointer; font-size: 18px; line-height: 1;
  color: var(--c-muted); display: flex; align-items: center; justify-content: center;
}
.modal-mask .modal-close:hover { background: var(--c-surface-2); color: var(--c-text); }
.modal-mask .modal-body { padding: 18px 20px; display: grid; gap: 6px; }
.modal-footer {
  padding: 14px 20px; border-top: 1px solid var(--c-border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ── setting group ── */
.setting-group { display: grid; gap: 2px; margin-bottom: 8px; }
.setting-group-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--c-muted); margin-bottom: 4px;
}
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--c-surface-2); gap: 12px;
}
.setting-row + .setting-row { margin-top: 2px; }
.setting-row-label { font-size: 13px; flex: 1; }
.setting-row-sub { font-size: 11px; color: var(--c-muted); margin-top: 1px; }
.setting-row-control { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.setting-row-control input[type=number] {
  width: 80px; text-align: right; padding: 4px 8px; font-size: 13px;
}
.setting-row-control input[type=text] {
  width: 160px; padding: 4px 8px; font-size: 13px;
}
.setting-select {
  font-size: 13px; padding: 4px 8px; border: 1px solid var(--c-border);
  border-radius: var(--r); background: var(--c-bg); color: var(--c-text);
}
.setting-unit { font-size: 12px; color: var(--c-muted); }

/* ── toggle switch ── */
.toggle-sw { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 11px; cursor: pointer;
  background: var(--c-border); transition: background .2s;
}
.toggle-track::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-sw input:checked + .toggle-track { background: var(--c-primary, #6366f1); }
.toggle-sw input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── node badge ── */
.node-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 2px 12px; border-radius: var(--r-full); font-weight: 500;
  transition: box-shadow var(--transition-smooth);
}
.node-badge.on  { background: #dcfce7; color: #15803d; }
.node-badge.off { background: #fee2e2; color: #b91c1c; }
.node-badge.on:hover { box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.node-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── form field (create modal) ── */
.form-field { display: grid; gap: 5px; }
.form-field label { font-size: 12px; color: var(--c-muted); font-weight: 500; }
.form-field input[type=text] { width: 100%; }


/* ═══════════════════════════════════════════════════════════════════════════
   Plans (plans.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.plans-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-border); }
.plans-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plans-table th {
  background: var(--c-surface-2); padding: 10px 14px; text-align: left;
  font-weight: 600; font-size: 12px; color: var(--c-muted);
  border-bottom: 1px solid var(--c-border); white-space: nowrap;
}
.plans-table td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.plans-table tr:last-child td { border-bottom: 0; }
.plans-table tbody tr { transition: background var(--transition-smooth); }
.plans-table tbody tr:hover td { background: rgba(79,70,229,.04); }
.badge-active   { display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;background:#dcfce7;color:#15803d; }
.badge-inactive { display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;background:#f1f5f9;color:#64748b; }
/* Modal */
.modal-backdrop {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.45);
  z-index:1000; align-items:center; justify-content:center; backdrop-filter:blur(20px) saturate(1.3);
}
.modal-backdrop.open { display:flex; }
.modal-backdrop .modal-box {
  background:var(--c-surface); border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg); width:100%; max-width:500px;
  max-height:90vh; overflow-y:auto; padding:28px;
  animation:modal-in .15s ease;
}
@keyframes modal-in { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
.modal-title { font-size:16px; font-weight:700; margin-bottom:20px; }
.modal-backdrop .modal-close { float:right; font-size:20px; line-height:1; cursor:pointer; color:var(--c-muted); background:none; border:none; }
.form-grid { display:grid; gap:14px; }
.form-row { display:grid; gap:5px; }
.form-row label { font-size:12px; font-weight:600; color:var(--c-muted); }
.form-row input, .form-row select {
  padding:8px 12px; border:1px solid var(--c-border); border-radius:var(--r);
  font-size:13px; width:100%; box-sizing:border-box;
  background:var(--c-surface); color:var(--c-text);
}
.form-row input:focus, .form-row select:focus {
  outline:none; border-color:var(--c-primary); box-shadow:0 0 0 3px rgba(79,70,229,.15);
}
.form-row input[readonly] { background:var(--c-surface-2); color:var(--c-muted); cursor:default; }
.form-2col { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-hint { font-size:11px; color:var(--c-muted); margin-top:2px; }
.modal-footer { margin-top:20px; display:flex; justify-content:flex-end; gap:10px; align-items:center; }
.modal-err { font-size:13px; color:var(--c-danger); display:none; }


/* ═══════════════════════════════════════════════════════════════════════════
   Effects (effects.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* batch price checkbox */
#bpEffectList .bp-chk {
  width:16px;height:16px;flex-shrink:0;cursor:pointer;
  appearance:auto;-webkit-appearance:checkbox;
  border:1px solid var(--c-border);border-radius:3px;
}

/* effects page table & UI */
.pg-header-right { flex-wrap: wrap; }
td.col-name { font-weight: 600; color: var(--c-text); white-space: nowrap; }
td.col-key  { font-family: Consolas, 'Courier New', monospace; font-size: 12px; color: var(--c-muted); white-space: nowrap; }
td.col-cat  { font-size: 12px; max-width: 140px; }
.req { color: var(--c-danger); }
.field-hint { font-size: 12px; color: var(--c-muted); margin-top: 5px; }
.fee-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 600; }
.fee-yes { background: var(--c-warn-l); color: var(--c-warn); }
.fee-no  { background: var(--c-surface-2); color: var(--c-subtle); }
.cat-sort-list {
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  min-height: 240px;
  max-height: 380px;
  overflow: auto;
  background: var(--c-bg);
}
.cat-sort-item {
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-border);
  cursor: grab;
  user-select: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-sort-item:last-child { border-bottom: 0; }
.cat-sort-item .drag-handle { color: var(--c-muted); font-size: 12px; }
.cat-sort-item.active {
  background: var(--c-primary-l, #eef2ff);
  color: var(--c-primary);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Update (update.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 更新页专用样式 ──────────────────────────── */
.upd-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.upd-ver-block { display: flex; flex-direction: column; gap: 4px; }
.upd-ver-label { font-size: 11px; color: #818cf8; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.upd-ver-val   { font-size: 28px; font-weight: 900; color: #fff; font-family: monospace; line-height: 1.1; }
.upd-ver-sub   { font-size: 12px; color: #a5b4fc; }
.upd-divider   { width: 1px; height: 48px; background: rgba(255,255,255,.15); flex-shrink: 0; }
.upd-status-wrap { display: flex; align-items: center; gap: 10px; }
.upd-status-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.upd-status-dot.checking { background: #facc15; animation: pulse 1.2s infinite; }
.upd-status-dot.ok       { background: #4ade80; }
.upd-status-dot.avail    { background: #fb923c; animation: pulse 1.2s infinite; }
.upd-status-dot.err      { background: #f87171; }
.upd-status-dot.idle     { background: #475569; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.upd-status-text { font-size: 13px; color: #e2e8f0; }
.upd-check-btn {
    padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer;
    background: rgba(255,255,255,.12); color: #e2e8f0; font-size: 13px; font-weight: 600;
    transition: background .2s;
}
.upd-check-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.upd-check-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 新版本卡 */
.upd-newver-card {
    border: 2px solid #6366f1;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    margin-bottom: 16px;
    display: none;
}
.upd-newver-card.visible { display: block; }
.upd-newver-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.upd-newver-ver   { font-size: 22px; font-weight: 900; color: #4338ca; font-family: monospace; }
.upd-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.upd-badge-stable { background: #dcfce7; color: #166534; }
.upd-badge-beta   { background: #fef9c3; color: #854d0e; }
.upd-badge-forced { background: #fee2e2; color: #991b1b; }

.upd-changelog {
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    margin: 12px 0;
    color: #374151;
    line-height: 1.6;
}
.upd-apply-btn {
    background: #6366f1; color: #fff; border: none; border-radius: 8px;
    padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background .2s;
}
.upd-apply-btn:hover:not(:disabled) { background: #4f46e5; }
.upd-apply-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 已是最新 */
.upd-latest-card {
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
}

/* 错误提示 */
.upd-err-card {
    border: 2px solid #f87171;
    border-radius: 12px;
    padding: 16px 20px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

/* 进度区 */
.upd-progress-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    background: #fff;
    margin-bottom: 16px;
    display: none;
}
.upd-progress-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 10px; }
.upd-bar-track { height: 6px; background: #e5e7eb; border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.upd-bar-fill  { height: 100%; width: 0%; background: linear-gradient(90deg,#6366f1,#8b5cf6); transition: width .5s; border-radius: 3px; }
.upd-log { background: #0f172a; color: #94a3b8; border-radius: 8px; padding: 14px; font-size: 12px; font-family: monospace; white-space: pre-wrap; max-height: 320px; overflow-y: auto; }

/* 历史版本 */
.upd-hist-card { border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; background: #fff; }
.upd-hist-head-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: #f9fafb; border-bottom: 1px solid #e5e7eb;
}
.upd-hist-head-bar .title { font-size: 14px; font-weight: 700; color: #111827; }
.upd-hist-btn { background: none; border: 1px solid #d1d5db; border-radius: 6px; padding: 5px 12px; font-size: 12px; color: #6b7280; cursor: pointer; }
.upd-hist-btn:hover { background: #f3f4f6; }

.hist-item { border-bottom: 1px solid #f3f4f6; }
.hist-item:last-child { border-bottom: none; }
.hist-row { display: flex; align-items: center; padding: 12px 18px; cursor: pointer; gap: 10px; user-select: none; transition: background .15s; }
.hist-row:hover { background: #f9fafb; }
.hist-row.is-latest { background: #f5f3ff; }
.hist-row.is-latest:hover { background: #ede9fe; }
.hist-ver-tag { font-family: monospace; font-weight: 700; font-size: 14px; color: #111827; }
.hist-pills { display: flex; gap: 4px; }
.hist-pill { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; }
.pill-stable { background: #dcfce7; color: #166534; }
.pill-beta   { background: #fef9c3; color: #854d0e; }
.pill-forced { background: #fee2e2; color: #991b1b; }
.pill-latest { background: #ede9fe; color: #5b21b6; }
.hist-date { font-size: 11px; color: #9ca3af; margin-left: auto; }
.hist-arrow { font-size: 10px; color: #9ca3af; margin-left: 6px; }
.hist-body { padding: 12px 18px 14px; border-top: 1px solid #f3f4f6; background: #fafafa; display: none; }
.hist-body.open { display: block; }
.hist-changelog { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px 12px; font-size: 12px; white-space: pre-wrap; margin: 0; color: #374151; line-height: 1.6; max-height: 260px; overflow-y: auto; }


/* ═══════════════════════════════════════════════════════════════════════════
   Login (login.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.remember-wrap input[type="checkbox"] {
  appearance: auto;
  width: 14px;
  height: 14px;
  min-width: 14px;
  padding: 0;
  margin: 0;
}

/* ── Admin Login Enhancement ── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.admin-login-wrap::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.06) 0%, transparent 70%);
  pointer-events: none;
}
.admin-login-wrap::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.05) 0%, transparent 70%);
  pointer-events: none;
}
.admin-login-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.admin-login-logo {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}
.admin-login-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 4px;
}
.admin-login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.admin-login-box .form-field input,
.admin-login-box .profile-field input {
  border-radius: var(--r);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.admin-login-box .form-field input:focus,
.admin-login-box .profile-field input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.admin-login-btn {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: var(--r);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}
.admin-login-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.admin-login-btn:active {
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════════
   Color Grades (color_grades.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* shared with effects.php — .pg-header-right, td.col-name, etc. already above */
.preview-upload-row { display: flex; gap: 8px; align-items: center; }


/* ═══════════════════════════════════════════════════════════════════════════
   Auth (auth.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.info-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.info-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .9rem;
}
.alert-info    { background: #eff6ff; color: #1e40af; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-danger  { background: #fef2f2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════════════════════════
   移动端适配 — 调色 / 特效管理页（≤640px）
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* 顶部操作区竖向堆叠 */
  .pg-header-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .pg-header-right > * {
    width: 100%;
    box-sizing: border-box;
  }
  .pg-header-right > div {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    display: flex;
  }
  .pg-header-right select,
  .pg-header-right .filter-select {
    width: 100% !important;
    min-width: unset !important;
  }
  /* 筛选栏纵向排列 */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-bar .filter-left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }
  .filter-bar .filter-search {
    width: 100%;
  }
  .filter-bar .filter-search input {
    width: 100% !important;
    box-sizing: border-box;
  }
  .filter-bar .filter-right {
    flex-wrap: wrap;
    gap: 4px;
  }
  /* 表格横向滚动 */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ══════════════════════════════════════════
   NAV ICONS — SVG mask line icons
   18×18 内联块，线宽 1.5px，颜色继承父元素 (currentColor)
   全部使用 mask 方案，统一视觉风格（细线、圆角、24x24 viewBox）
══════════════════════════════════════════ */
.nav-icon {
  display: inline-block;
  width: 18px; height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.nav-icon::before,
.nav-icon::after { content: none; display: none; }

/* 概览 — 2x2 仪表盘 */
.nav-icon-overview {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='3.5' width='7' height='7' rx='1.5'/><rect x='13.5' y='3.5' width='7' height='7' rx='1.5'/><rect x='3.5' y='13.5' width='7' height='7' rx='1.5'/><rect x='13.5' y='13.5' width='7' height='7' rx='1.5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='3.5' width='7' height='7' rx='1.5'/><rect x='13.5' y='3.5' width='7' height='7' rx='1.5'/><rect x='3.5' y='13.5' width='7' height='7' rx='1.5'/><rect x='13.5' y='13.5' width='7' height='7' rx='1.5'/></svg>");
}

/* 订单 — 收据 */
.nav-icon-orders {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 3h11l3 3v15l-2.5-1.5L14 21l-2.5-1.5L9 21l-2.5-1.5L5 21V3z'/><path d='M9 9h7M9 13h7M9 17h4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 3h11l3 3v15l-2.5-1.5L14 21l-2.5-1.5L9 21l-2.5-1.5L5 21V3z'/><path d='M9 9h7M9 13h7M9 17h4'/></svg>");
}

/* 任务 — 清单 + 勾选 */
.nav-icon-jobs {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3.5' width='16' height='17' rx='2'/><path d='M8 8.5l1.6 1.6L13 7M8 14.5l1.6 1.6L13 13'/><path d='M16 9.5h0M16 15.5h0'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3.5' width='16' height='17' rx='2'/><path d='M8 8.5l1.6 1.6L13 7M8 14.5l1.6 1.6L13 13'/><path d='M16 9.5h0M16 15.5h0'/></svg>");
}

/* 预览 — 眼睛 */
.nav-icon-preview {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 12s3.5-7 9.5-7 9.5 7 9.5 7-3.5 7-9.5 7S2.5 12 2.5 12z'/><circle cx='12' cy='12' r='3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 12s3.5-7 9.5-7 9.5 7 9.5 7-3.5 7-9.5 7S2.5 12 2.5 12z'/><circle cx='12' cy='12' r='3'/></svg>");
}

/* 用户 — 单人 */
.nav-icon-users {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-7 8-7s8 3 8 7'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-7 8-7s8 3 8 7'/></svg>");
}

/* 云黑管理 — 盾牌 */
.nav-icon-shield {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2L4 6v6c0 5.5 3.8 10.7 8 12 4.2-1.3 8-6.5 8-12V6l-8-4z'/><path d='M9 12l2 2 4-4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2L4 6v6c0 5.5 3.8 10.7 8 12 4.2-1.3 8-6.5 8-12V6l-8-4z'/><path d='M9 12l2 2 4-4'/></svg>");
}

/* 预存机 — 钱包 */
.nav-icon-prepay {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 7.5C3.5 5.5 5 4.5 6.5 4.5h11c1.5 0 2 1 2 2.5v11c0 1.5-.5 2.5-2 2.5h-11c-1.5 0-3-1-3-3v-10z'/><path d='M3.5 8.5h16'/><circle cx='16.5' cy='13.5' r='1.4' fill='%23000'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 7.5C3.5 5.5 5 4.5 6.5 4.5h11c1.5 0 2 1 2 2.5v11c0 1.5-.5 2.5-2 2.5h-11c-1.5 0-3-1-3-3v-10z'/><path d='M3.5 8.5h16'/><circle cx='16.5' cy='13.5' r='1.4' fill='%23000'/></svg>");
}

/* 调色 — 调色盘 */
.nav-icon-color {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.5C7 3.5 3 7.5 3 12.2c0 3.5 2.6 5.8 5.5 5.8 1.6 0 1.8-1.3 1.5-2.2-.3-1 .3-2 1.5-2H14c3.5 0 6.5-2.5 6.5-5.5S16.5 3.5 12 3.5z'/><circle cx='8' cy='10' r='1.2' fill='%23000'/><circle cx='12' cy='7.5' r='1.2' fill='%23000'/><circle cx='16.5' cy='10' r='1.2' fill='%23000'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.5C7 3.5 3 7.5 3 12.2c0 3.5 2.6 5.8 5.5 5.8 1.6 0 1.8-1.3 1.5-2.2-.3-1 .3-2 1.5-2H14c3.5 0 6.5-2.5 6.5-5.5S16.5 3.5 12 3.5z'/><circle cx='8' cy='10' r='1.2' fill='%23000'/><circle cx='12' cy='7.5' r='1.2' fill='%23000'/><circle cx='16.5' cy='10' r='1.2' fill='%23000'/></svg>");
}

/* 特效 — 闪光（魔法星） */
.nav-icon-effects {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M11 3l1.6 4.4L17 9l-4.4 1.6L11 15l-1.6-4.4L5 9l4.4-1.6L11 3z'/><path d='M18 14l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M11 3l1.6 4.4L17 9l-4.4 1.6L11 15l-1.6-4.4L5 9l4.4-1.6L11 3z'/><path d='M18 14l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z'/></svg>");
}

/* 公告 — 喇叭 */
.nav-icon-notices {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10v4a1 1 0 001 1h3l7 5V4l-7 5H4a1 1 0 00-1 1z'/><path d='M17.5 8.5a4 4 0 010 7'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10v4a1 1 0 001 1h3l7 5V4l-7 5H4a1 1 0 00-1 1z'/><path d='M17.5 8.5a4 4 0 010 7'/></svg>");
}

/* 抽奖 — 骰子 */
.nav-icon-lottery {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='2' width='20' height='20' rx='4'/><circle cx='8' cy='8' r='1.5' fill='%23000' stroke='none'/><circle cx='16' cy='8' r='1.5' fill='%23000' stroke='none'/><circle cx='12' cy='12' r='1.5' fill='%23000' stroke='none'/><circle cx='8' cy='16' r='1.5' fill='%23000' stroke='none'/><circle cx='16' cy='16' r='1.5' fill='%23000' stroke='none'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='2' width='20' height='20' rx='4'/><circle cx='8' cy='8' r='1.5' fill='%23000' stroke='none'/><circle cx='16' cy='8' r='1.5' fill='%23000' stroke='none'/><circle cx='12' cy='12' r='1.5' fill='%23000' stroke='none'/><circle cx='8' cy='16' r='1.5' fill='%23000' stroke='none'/><circle cx='16' cy='16' r='1.5' fill='%23000' stroke='none'/></svg>");
}

/* 设置 — 齿轮 */
.nav-icon-settings {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M19.4 14.5a1.7 1.7 0 00.4 1.9l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.9-.4 1.7 1.7 0 00-1 1.5V20a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1.1-1.5 1.7 1.7 0 00-1.9.4l-.1.1A2 2 0 113.2 16l.1-.1a1.7 1.7 0 00.4-1.9 1.7 1.7 0 00-1.5-1H2a2 2 0 110-4h.1a1.7 1.7 0 001.5-1.1 1.7 1.7 0 00-.4-1.9l-.1-.1A2 2 0 116 3.2l.1.1a1.7 1.7 0 001.9.4H8a1.7 1.7 0 001-1.5V2a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.9-.4l.1-.1A2 2 0 1118.8 6l-.1.1a1.7 1.7 0 00-.4 1.9V8a1.7 1.7 0 001.5 1H20a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z'/><circle cx='12' cy='12' r='3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M19.4 14.5a1.7 1.7 0 00.4 1.9l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.9-.4 1.7 1.7 0 00-1 1.5V20a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1.1-1.5 1.7 1.7 0 00-1.9.4l-.1.1A2 2 0 113.2 16l.1-.1a1.7 1.7 0 00.4-1.9 1.7 1.7 0 00-1.5-1H2a2 2 0 110-4h.1a1.7 1.7 0 001.5-1.1 1.7 1.7 0 00-.4-1.9l-.1-.1A2 2 0 116 3.2l.1.1a1.7 1.7 0 001.9.4H8a1.7 1.7 0 001-1.5V2a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.9-.4l.1-.1A2 2 0 1118.8 6l-.1.1a1.7 1.7 0 00-.4 1.9V8a1.7 1.7 0 001.5 1H20a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z'/><circle cx='12' cy='12' r='3'/></svg>");
}

/* 会员套餐 — 会员卡 */
.nav-icon-plans {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='5' width='19' height='14' rx='2'/><path d='M2.5 9.5h19'/><path d='M6 14h4M14 14h4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='5' width='19' height='14' rx='2'/><path d='M2.5 9.5h19'/><path d='M6 14h4M14 14h4'/></svg>");
}

/* 邀请返利 — 礼物盒 */
.nav-icon-referral {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='4' rx='1'/><path d='M5 12v8a1 1 0 001 1h12a1 1 0 001-1v-8'/><path d='M12 8v13'/><path d='M12 8c-2 0-4-1-4-3a2 2 0 014 0c0 2-2 3-4 3M12 8c2 0 4-1 4-3a2 2 0 00-4 0c0 2 2 3 4 3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='4' rx='1'/><path d='M5 12v8a1 1 0 001 1h12a1 1 0 001-1v-8'/><path d='M12 8v13'/><path d='M12 8c-2 0-4-1-4-3a2 2 0 014 0c0 2-2 3-4 3M12 8c2 0 4-1 4-3a2 2 0 00-4 0c0 2 2 3 4 3'/></svg>");
}

/* 节点管理 — 服务器 */
.nav-icon-nodes {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3.5' width='18' height='7' rx='1.5'/><rect x='3' y='13.5' width='18' height='7' rx='1.5'/><circle cx='7' cy='7' r='1' fill='%23000'/><circle cx='7' cy='17' r='1' fill='%23000'/><path d='M11 7h6M11 17h6'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3.5' width='18' height='7' rx='1.5'/><rect x='3' y='13.5' width='18' height='7' rx='1.5'/><circle cx='7' cy='7' r='1' fill='%23000'/><circle cx='7' cy='17' r='1' fill='%23000'/><path d='M11 7h6M11 17h6'/></svg>");
}

/* 系统更新 — 旋转刷新箭头 */
.nav-icon-update {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 11-3-6.7'/><path d='M21 4v5h-5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 11-3-6.7'/><path d='M21 4v5h-5'/></svg>");
}

/* 主题背景 — 半月（明暗切换） */
.nav-icon-theme {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z'/></svg>");
}

/* 编辑 — 铅笔 */
.nav-icon-edit {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4l11-11-4-4L4 16v4z'/><path d='M14.5 5.5l4 4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4l11-11-4-4L4 16v4z'/><path d='M14.5 5.5l4 4'/></svg>");
}

/* ══════════════════════════════════════════
   ADMIN SKIN — MINIMAL（参考授权站）
   隐藏背景、毛玻璃、装饰；保留扁平卡片与表格
══════════════════════════════════════════ */
body.admin-body.skin-minimal {
  background: #f9fafb !important;
  color: #111827;
}
/* 关掉所有自定义背景（壁纸 / 渐变） */
body.admin-body.skin-minimal .admin-bg-layer,
body.admin-body.skin-minimal .admin-bg-layer.bg-active,
body.admin-body.skin-minimal .admin-bg-layer.bg-image,
body.admin-body.skin-minimal #_adminBgPreload { display: none !important; }
body.admin-body.skin-minimal .admin-bg-layer::after { content: none !important; }

/* 强制亮色字（避免 dark-bg 状态残留） */
body.admin-body.skin-minimal,
body.admin-body.skin-minimal .pg-title,
body.admin-body.skin-minimal .pg-desc,
body.admin-body.skin-minimal .sidebar-link,
body.admin-body.skin-minimal table th,
body.admin-body.skin-minimal table td { color: inherit; text-shadow: none !important; }

/* 卡片：纯白 + 1px 边 + 极小阴影，不再玻璃 */
body.admin-body.skin-minimal .card,
body.admin-body.skin-minimal .stat-card,
body.admin-body.skin-minimal .modal-card,
body.admin-body.skin-minimal .filter-row {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}
body.admin-body.skin-minimal .table-wrap {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.admin-body.skin-minimal table { background: transparent; }
body.admin-body.skin-minimal table th {
  background: #f3f4f6 !important;
  color: #374151 !important;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}
body.admin-body.skin-minimal table td {
  border-bottom: 1px solid #f3f4f6;
}

/* 按钮：去渐变去阴影 */
body.admin-body.skin-minimal .btn,
body.admin-body.skin-minimal .btn-primary,
body.admin-body.skin-minimal .btn-ghost {
  box-shadow: none !important;
  text-shadow: none !important;
}
body.admin-body.skin-minimal .btn-primary {
  background: #4f46e5 !important;
  color: #fff !important;
  border: 1px solid #4f46e5 !important;
}
body.admin-body.skin-minimal .btn-primary:hover { background: #4338ca !important; }
body.admin-body.skin-minimal .btn-ghost {
  background: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}
body.admin-body.skin-minimal .btn-ghost:hover { background: #f3f4f6 !important; border-color: #d1d5db !important; }
body.admin-body.skin-minimal .btn-danger {
  background: #dc2626 !important;
  color: #fff !important;
  border: 1px solid #dc2626 !important;
}

/* 输入框 */
body.admin-body.skin-minimal input,
body.admin-body.skin-minimal select,
body.admin-body.skin-minimal textarea {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #111827 !important;
  box-shadow: none !important;
}
body.admin-body.skin-minimal input:focus,
body.admin-body.skin-minimal select:focus,
body.admin-body.skin-minimal textarea:focus {
  border-color: #4f46e5 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(79,70,229,.15) !important;
}

/* 侧边栏：白底深字 */
body.admin-body.skin-minimal .admin-sidebar,
body.admin-body.skin-minimal .sidebar.admin-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #374151 !important;
}
body.admin-body.skin-minimal .sidebar-brand {
  color: #111827 !important;
  text-shadow: none !important;
}
body.admin-body.skin-minimal .sidebar-group-label {
  color: #9ca3af !important;
  font-weight: 600;
}
body.admin-body.skin-minimal .sidebar-link {
  color: #4b5563 !important;
  background: transparent !important;
  border-radius: 6px !important;
  text-shadow: none !important;
}
body.admin-body.skin-minimal .sidebar-link:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}
body.admin-body.skin-minimal .sidebar-link.active {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  font-weight: 600;
}
body.admin-body.skin-minimal .sidebar-link.active .nav-icon { color: #4f46e5 !important; }

/* pill / 徽章 不动，但去阴影 */
body.admin-body.skin-minimal .pill { box-shadow: none !important; text-shadow: none !important; }

/* 移动端底部导航 */
body.admin-body.skin-minimal .mobile-nav {
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 头部 / 标题 */
body.admin-body.skin-minimal .pg-header { border: none !important; box-shadow: none !important; background: transparent !important; }
body.admin-body.skin-minimal .pg-title { color: #111827 !important; }
body.admin-body.skin-minimal .pg-desc  { color: #6b7280 !important; }

/* Admin motion polish */
.admin-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10050;
  width: 100%;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(.08);
  transform-origin: left center;
  background: linear-gradient(90deg, #22d3ee 0%, #6366f1 48%, #f59e0b 100%);
  box-shadow: 0 0 18px rgba(99,102,241,.34);
  transition:
    transform .42s cubic-bezier(.22,1,.36,1),
    opacity .18s ease;
}
.admin-loading-bar.is-active {
  opacity: 1;
  transform: scaleX(.74);
}
.admin-loading-bar.is-done {
  opacity: 0;
  transform: scaleX(1);
  transition:
    transform .24s ease,
    opacity .34s ease .06s;
}

body.admin-body .page-content {
  animation: admin-content-in .28s cubic-bezier(.22,1,.36,1) both;
}
body.admin-body.admin-page-leaving .page-content {
  opacity: .72;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

body.admin-body .pg-header {
  animation: admin-header-in .3s cubic-bezier(.22,1,.36,1) both;
}
body.admin-body .card,
body.admin-body .stat-card,
body.admin-body .u-stat-card,
body.admin-body .dash-stat,
body.admin-body .dash-shortcut,
body.admin-body .dash-config-item,
body.admin-body .job-card,
body.admin-body .ord-card,
body.admin-body .s-card,
body.admin-body .upd-card {
  transform: translateZ(0);
  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .24s cubic-bezier(.22,1,.36,1),
    transform .24s cubic-bezier(.22,1,.36,1);
}
body.admin-body .card:hover,
body.admin-body .stat-card:hover,
body.admin-body .u-stat-card:hover,
body.admin-body .dash-stat:hover,
body.admin-body .dash-shortcut:hover,
body.admin-body .job-card:hover,
body.admin-body .ord-card:hover,
body.admin-body .s-card:hover,
body.admin-body .upd-card:hover {
  transform: translateY(-2px) translateZ(0);
}

body.admin-body .table-wrap,
body.admin-body .job-table-wrap,
body.admin-body .ord-table-wrap,
body.admin-body .plans-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,.35) transparent;
}
body.admin-body .table-wrap::-webkit-scrollbar,
body.admin-body .job-table-wrap::-webkit-scrollbar,
body.admin-body .ord-table-wrap::-webkit-scrollbar,
body.admin-body .plans-table-wrap::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
body.admin-body .table-wrap::-webkit-scrollbar-thumb,
body.admin-body .job-table-wrap::-webkit-scrollbar-thumb,
body.admin-body .ord-table-wrap::-webkit-scrollbar-thumb,
body.admin-body .plans-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,.28);
  border-radius: 999px;
}
body.admin-body tbody tr {
  transition: background-color .16s ease, box-shadow .16s ease;
}
body.admin-body tbody tr:hover {
  box-shadow: inset 3px 0 0 rgba(99,102,241,.5);
}

body.admin-body .drawer-overlay {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
body.admin-body .drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
body.admin-body .drawer {
  left: 0;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
body.admin-body .drawer.open {
  transform: translateX(0);
}

body.admin-body .sidebar-link {
  position: relative;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}
body.admin-body .sidebar-link:hover {
  transform: translateX(2px);
}
body.admin-body .sidebar-link.active::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #93c5fd;
  box-shadow: 0 0 12px rgba(147,197,253,.68);
  transform: translateY(-50%);
}

body.admin-body input,
body.admin-body select,
body.admin-body textarea,
body.admin-body button,
body.admin-body a {
  -webkit-tap-highlight-color: transparent;
}
body.admin-body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(99,102,241,.72);
  outline-offset: 2px;
}

body.admin-body .btn,
.auth-wrap .btn {
  position: relative;
  overflow: hidden;
}
body.admin-body .btn::after,
.auth-wrap .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.34) 48%, transparent 78%);
  transform: translateX(-115%);
}
body.admin-body .btn:hover::after,
.auth-wrap .btn:hover::after {
  opacity: 1;
  animation: admin-btn-sheen .72s ease;
}
body.admin-body button.btn.is-busy,
.auth-wrap button.btn:disabled {
  cursor: wait;
}
body.admin-body button.btn.is-busy::before,
.auth-wrap button.btn:disabled::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  flex: 0 0 auto;
  animation: admin-spin .72s linear infinite;
}

body.admin-body .u-stat-val.loading,
body.admin-body .skeleton,
body.admin-body .dash-stat[style*="opacity"] .dash-stat-label,
body.admin-body .dash-stat[style*="opacity"] .dash-stat-icon {
  position: relative;
  overflow: hidden;
}
body.admin-body .u-stat-val.loading::after,
body.admin-body .skeleton::after,
body.admin-body .dash-stat[style*="opacity"] .dash-stat-label::after,
body.admin-body .dash-stat[style*="opacity"] .dash-stat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transform: translateX(-110%);
  animation: admin-shimmer 1.35s ease-in-out infinite;
}

.profile-modal-mask.open .profile-modal-box,
.modal-overlay.open .modal-card,
body.admin-body .modal-box {
  animation: admin-modal-in .22s cubic-bezier(.22,1,.36,1) both;
}

@keyframes admin-content-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes admin-header-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes admin-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes admin-btn-sheen {
  from { transform: translateX(-115%); }
  to { transform: translateX(115%); }
}
@keyframes admin-spin {
  to { transform: rotate(360deg); }
}
@keyframes admin-shimmer {
  100% { transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-loading-bar,
  body.admin-body *,
  .auth-wrap * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  body.admin-body .page-content,
  body.admin-body .pg-header {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FX Pack — 骨架屏 / 错落入场 / count-up / halo / ripple / 空状态
   ═══════════════════════════════════════════════════════════════════════════ */

/* —— 骨架屏 —— */
.skel-line {
  position: relative;
  display: block;
  height: 12px;
  width: 100%;
  border-radius: 6px;
  background: var(--c-surface-2, #f3f4f6);
  overflow: hidden;
}
.skel-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-110%);
  animation: admin-shimmer 1.35s ease-in-out infinite;
}
.skel-line.w-30 { width: 30%; }
.skel-line.w-40 { width: 40%; }
.skel-line.w-50 { width: 50%; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-70 { width: 70%; }
.skel-line.w-80 { width: 80%; }

.skel-row > td {
  padding: 14px 12px !important;
}
.skel-card {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: var(--r-lg, 16px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

/* —— 列表错落入场 —— */
.fx-stagger > * {
  animation: admin-content-in .32s cubic-bezier(.22,1,.36,1) both;
}
.fx-stagger > *:nth-child(1)  { animation-delay: 0ms; }
.fx-stagger > *:nth-child(2)  { animation-delay: 40ms; }
.fx-stagger > *:nth-child(3)  { animation-delay: 80ms; }
.fx-stagger > *:nth-child(4)  { animation-delay: 120ms; }
.fx-stagger > *:nth-child(5)  { animation-delay: 160ms; }
.fx-stagger > *:nth-child(6)  { animation-delay: 200ms; }
.fx-stagger > *:nth-child(7)  { animation-delay: 240ms; }
.fx-stagger > *:nth-child(8)  { animation-delay: 280ms; }
.fx-stagger > *:nth-child(n+9) { animation-delay: 320ms; }

/* —— 数字 count-up —— */
.fx-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color .2s ease;
}
.fx-num.is-bumping {
  animation: admin-num-bump .42s cubic-bezier(.34,1.56,.64,1);
}
@keyframes admin-num-bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); color: var(--c-primary, #4f46e5); }
  100% { transform: scale(1); }
}

/* —— 状态点 halo（在线节点 / 运行中） —— */
.fx-halo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fx-halo.online::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(34,197,94,.55);
  animation: admin-halo 1.7s ease-out infinite;
}
@keyframes admin-halo {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 11px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0); }
}

/* —— 按钮 ripple（不与 .btn::after sheen 冲突） —— */
.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: scale(0);
  pointer-events: none;
  animation: admin-ripple .55s ease-out;
  mix-blend-mode: screen;
}
body.admin-body .btn-ghost .fx-ripple,
.auth-wrap .btn-ghost .fx-ripple {
  background: rgba(99,102,241,.22);
  mix-blend-mode: normal;
}
@keyframes admin-ripple {
  to { transform: scale(4); opacity: 0; }
}

/* —— 空状态 —— */
.fx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 44px 16px;
  color: var(--c-muted, #6b7280);
  text-align: center;
}
.fx-empty-icon {
  font-size: 38px;
  line-height: 1;
  opacity: .55;
  animation: admin-float 3.2s ease-in-out infinite;
}
.fx-empty-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2, #374151);
}
.fx-empty-hint {
  font-size: 12px;
  color: var(--c-muted, #6b7280);
}
@keyframes admin-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* —— 行内 spinner（用于 listHint 等） —— */
.fx-inline-spin {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  vertical-align: -1px;
  margin-right: 4px;
  animation: admin-spin .72s linear infinite;
}

/* —— 登录页入场动画 —— */
.auth-wrap .auth-left > div {
  animation: admin-content-in .55s cubic-bezier(.22,1,.36,1) both;
}
.auth-wrap .auth-card {
  animation: admin-modal-in .45s cubic-bezier(.22,1,.36,1) both;
  animation-delay: 60ms;
}
.auth-wrap .auth-form .field,
.auth-wrap .auth-form .remember-wrap,
.auth-wrap .auth-form .btn,
.auth-wrap .auth-links {
  animation: admin-content-in .4s cubic-bezier(.22,1,.36,1) both;
}
.auth-wrap .auth-form .field:nth-child(1)        { animation-delay: 140ms; }
.auth-wrap .auth-form .field:nth-child(2)        { animation-delay: 200ms; }
.auth-wrap .auth-form .remember-wrap             { animation-delay: 260ms; }
.auth-wrap .auth-form .btn                       { animation-delay: 320ms; }
.auth-wrap .auth-links                           { animation-delay: 380ms; }


/* =============================================================================
   液态玻璃补全 — 参考 build_5.2.3 风格
   ============================================================================= */

/* 表单控件 */
body.admin-body:not(.skin-minimal) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.admin-body:not(.skin-minimal) textarea,
body.admin-body:not(.skin-minimal) .filter-search input,
body.admin-body:not(.skin-minimal) .filter-row select,
body.admin-body:not(.skin-minimal) .filter-row input[type="text"],
body.admin-body:not(.skin-minimal) .profile-field input,
body.admin-body:not(.skin-minimal) .form-row input,
body.admin-body:not(.skin-minimal) .form-row select,
body.admin-body:not(.skin-minimal) .form-field input,
body.admin-body:not(.skin-minimal) .setting-row-control input,
body.admin-body:not(.skin-minimal) .setting-select,
body.admin-body:not(.skin-minimal) .fps-tier-row input {
  background: rgba(255,255,255,.45) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(255,255,255,.5) !important;
  background-clip: padding-box !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.4) !important;
}

body.admin-body:not(.skin-minimal) select,
body.admin-body:not(.skin-minimal) .filter-select {
  background-color: rgba(255,255,255,.45) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(255,255,255,.5) !important;
  background-clip: padding-box !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.4) !important;
}

body.admin-body:not(.skin-minimal) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):hover,
body.admin-body:not(.skin-minimal) textarea:hover,
body.admin-body:not(.skin-minimal) .filter-search input:hover,
body.admin-body:not(.skin-minimal) .filter-row select:hover,
body.admin-body:not(.skin-minimal) .filter-row input[type="text"]:hover {
  background: rgba(255,255,255,.6) !important;
  border-color: rgba(79,70,229,.2) !important;
}

body.admin-body:not(.skin-minimal) select:hover,
body.admin-body:not(.skin-minimal) .filter-select:hover {
  background-color: rgba(255,255,255,.6) !important;
  border-color: rgba(79,70,229,.2) !important;
}

body.admin-body:not(.skin-minimal) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
body.admin-body:not(.skin-minimal) textarea:focus,
body.admin-body:not(.skin-minimal) .filter-search input:focus,
body.admin-body:not(.skin-minimal) .filter-row select:focus,
body.admin-body:not(.skin-minimal) .filter-row input[type="text"]:focus {
  background: rgba(255,255,255,.7) !important;
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12), 0 2px 8px rgba(79,70,229,.08), inset 0 1px 0 rgba(255,255,255,.5) !important;
}

body.admin-body:not(.skin-minimal) select:focus,
body.admin-body:not(.skin-minimal) .filter-select:focus {
  background-color: rgba(255,255,255,.7) !important;
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12), 0 2px 8px rgba(79,70,229,.08), inset 0 1px 0 rgba(255,255,255,.5) !important;
}

body.admin-body:not(.skin-minimal) input[readonly],
body.admin-body:not(.skin-minimal) textarea[readonly] {
  background: rgba(255,255,255,.25) !important;
  border-color: rgba(0,0,0,.06) !important;
}

/* 设置行 */
body.admin-body:not(.skin-minimal) .setting-row,
body.admin-body:not(.skin-minimal) .cat-sort-list {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* 弹窗遮罩定位修复 */
body.admin-body .modal-overlay,
body.admin-body .modal-mask,
body.admin-body .modal-backdrop,
body.admin-body .profile-modal-mask,
body.admin-body .notice-modal-overlay,
body.admin-body .ajax-dialog-overlay,
body.admin-body [data-admin-modal-inline="1"] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  box-sizing: border-box !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 24px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: rgba(0,0,0,.25) !important;
  backdrop-filter: blur(28px) saturate(1.5) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) saturate(1.2) !important;
}

body.admin-body .modal-overlay.open,
body.admin-body .modal-mask.open,
body.admin-body .modal-backdrop.open,
body.admin-body .profile-modal-mask.open,
body.admin-body .notice-modal-overlay.open,
body.admin-body .ajax-dialog-overlay.open,
body.admin-body [data-admin-modal-inline="1"].open {
  display: flex !important;
}

body.admin-body .modal-overlay > .modal-box,
body.admin-body .modal-overlay > .modal-card,
body.admin-body .modal-overlay > .admin-modal-card,
body.admin-body .modal-mask > .modal-box,
body.admin-body .modal-backdrop > .modal-box,
body.admin-body .profile-modal-box,
body.admin-body .notice-modal-box,
body.admin-body .ajax-dialog,
body.admin-body [data-admin-modal-inline="1"] > div {
  margin: auto;
  max-height: min(90vh, calc(100dvh - 48px));
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 24px 64px rgba(0,0,0,.12),
    0 8px 24px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
}

@media (max-width: 640px) {
  body.admin-body .modal-overlay,
  body.admin-body .modal-mask,
  body.admin-body .modal-backdrop,
  body.admin-body .profile-modal-mask,
  body.admin-body .notice-modal-overlay,
  body.admin-body .ajax-dialog-overlay,
  body.admin-body [data-admin-modal-inline="1"] {
    padding: 16px !important;
  }
}

/* 顶栏 */
body.admin-body:not(.skin-minimal) .pg-header,
body.admin-body:not(.skin-minimal) .admin-top-bar {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.4) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.03) !important;
}

/* 卡片 / 表格容器 */
body.admin-body:not(.skin-minimal) .card,
body.admin-body:not(.skin-minimal) .table-wrap,
body.admin-body:not(.skin-minimal) .job-table-wrap,
body.admin-body:not(.skin-minimal) .ord-table-wrap,
body.admin-body:not(.skin-minimal) .plans-table-wrap,
body.admin-body:not(.skin-minimal) .s-card,
body.admin-body:not(.skin-minimal) .stat-card,
body.admin-body:not(.skin-minimal) .u-stat-card,
body.admin-body:not(.skin-minimal) .job-card,
body.admin-body:not(.skin-minimal) .ord-card,
body.admin-body:not(.skin-minimal) .upd-card,
body.admin-body:not(.skin-minimal) .dash-stat,
body.admin-body:not(.skin-minimal) .dash-shortcut,
body.admin-body:not(.skin-minimal) .dash-config-item {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(36px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.7) !important;
  border-color: rgba(255,255,255,.45) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,.04),
    0 1px 3px rgba(0,0,0,.03),
    inset 0 1px 0 rgba(255,255,255,.6) !important;
}

body.admin-body:not(.skin-minimal) .card:hover,
body.admin-body:not(.skin-minimal) .stat-card:hover,
body.admin-body:not(.skin-minimal) .u-stat-card:hover,
body.admin-body:not(.skin-minimal) .job-card:hover,
body.admin-body:not(.skin-minimal) .ord-card:hover,
body.admin-body:not(.skin-minimal) .upd-card:hover,
body.admin-body:not(.skin-minimal) .dash-stat:hover,
body.admin-body:not(.skin-minimal) .dash-shortcut:hover {
  background: rgba(255,255,255,.7) !important;
  border-color: rgba(79,70,229,.15) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,.06),
    0 2px 8px rgba(0,0,0,.04),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

body.admin-body:not(.skin-minimal) .u-stat-filter-card.active {
  background: rgba(238,242,255,.82) !important;
  border-color: rgba(79,70,229,.48) !important;
  box-shadow:
    0 0 0 2px rgba(79,70,229,.13),
    0 8px 30px rgba(79,70,229,.08),
    inset 0 1px 0 rgba(255,255,255,.78) !important;
}

/* 设置卡片头部 */
body.admin-body:not(.skin-minimal) .s-head {
  background: rgba(255,255,255,.3) !important;
}
body.admin-body:not(.skin-minimal) .s-head:hover {
  background: rgba(255,255,255,.5) !important;
}

/* 筛选栏 / 分页 / 保存栏 */
body.admin-body:not(.skin-minimal) .filter-bar,
body.admin-body:not(.skin-minimal) .filter-row,
body.admin-body:not(.skin-minimal) .pager,
body.admin-body:not(.skin-minimal) .job-stats,
body.admin-body:not(.skin-minimal) .save-bar {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.5) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.5) !important;
}

/* 表头 */
body.admin-body:not(.skin-minimal) table thead th,
body.admin-body:not(.skin-minimal) .job-table-wrap thead th,
body.admin-body:not(.skin-minimal) .ord-table-wrap thead th,
body.admin-body:not(.skin-minimal) .plans-table thead th {
  background: rgba(255,255,255,.2) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-bottom-color: rgba(0,0,0,.04) !important;
}

/* 表格行 */
body.admin-body:not(.skin-minimal) table tbody td,
body.admin-body:not(.skin-minimal) .job-table-wrap tbody td,
body.admin-body:not(.skin-minimal) .ord-table-wrap tbody td {
  border-bottom-color: rgba(0,0,0,.04) !important;
}

body.admin-body:not(.skin-minimal) table tbody tr:hover td,
body.admin-body:not(.skin-minimal) .job-row:hover td,
body.admin-body:not(.skin-minimal) .ord-table-wrap tbody tr:hover td {
  background: rgba(79,70,229,.04) !important;
}

/* 弹窗头尾 */
body.admin-body:not(.skin-minimal) .notice-card-header,
body.admin-body:not(.skin-minimal) .notice-card-meta,
body.admin-body:not(.skin-minimal) .notice-card-footer,
body.admin-body:not(.skin-minimal) .modal-head,
body.admin-body:not(.skin-minimal) .modal-header,
body.admin-body:not(.skin-minimal) .modal-foot,
body.admin-body:not(.skin-minimal) .modal-footer {
  background: rgba(255,255,255,.2) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-color: rgba(0,0,0,.05) !important;
}

/* 按钮 / 分页 / 操作按钮 */
body.admin-body:not(.skin-minimal) .btn-ghost,
body.admin-body:not(.skin-minimal) .pager a,
body.admin-body:not(.skin-minimal) .pager span,
body.admin-body:not(.skin-minimal) .pager button,
body.admin-body:not(.skin-minimal) .job-stat-chip,
body.admin-body:not(.skin-minimal) .auto-refresh-badge,
body.admin-body:not(.skin-minimal) .act-btn,
body.admin-body:not(.skin-minimal) .ua {
  background: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.5) !important;
}

body.admin-body:not(.skin-minimal) .btn-ghost:hover,
body.admin-body:not(.skin-minimal) .pager a:hover,
body.admin-body:not(.skin-minimal) .pager button:hover:not(:disabled),
body.admin-body:not(.skin-minimal) .job-stat-chip:hover,
body.admin-body:not(.skin-minimal) .auto-refresh-badge:hover,
body.admin-body:not(.skin-minimal) .act-btn:hover,
body.admin-body:not(.skin-minimal) .ua:hover {
  background: rgba(255,255,255,.7) !important;
  border-color: rgba(79,70,229,.2) !important;
}

/* 详情卡 / 公告卡 */
body.admin-body:not(.skin-minimal) .notice-card,
body.admin-body:not(.skin-minimal) .dc,
body.admin-body:not(.skin-minimal) .detail-item,
body.admin-body:not(.skin-minimal) .setting-row,
body.admin-body:not(.skin-minimal) .cat-sort-list {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* 移动端导航 */
body.admin-body:not(.skin-minimal) .mobile-nav,
body.admin-body:not(.skin-minimal) .mobile-drawer-btn,
body.admin-body:not(.skin-minimal) .drawer-overlay {
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
}

/* 弹窗遮罩颜色（:not 版） */
body.admin-body:not(.skin-minimal) .modal-overlay,
body.admin-body:not(.skin-minimal) .modal-mask,
body.admin-body:not(.skin-minimal) .modal-backdrop,
body.admin-body:not(.skin-minimal) .profile-modal-mask,
body.admin-body:not(.skin-minimal) .notice-modal-overlay,
body.admin-body:not(.skin-minimal) .ajax-dialog-overlay,
body.admin-body:not(.skin-minimal) [data-admin-modal-inline="1"] {
  background: rgba(0,0,0,.25) !important;
  backdrop-filter: blur(28px) saturate(1.5) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) saturate(1.2) !important;
}

/* 弹窗主体 */
body.admin-body:not(.skin-minimal) .modal-box,
body.admin-body:not(.skin-minimal) .modal-card,
body.admin-body:not(.skin-minimal) .admin-modal-card,
body.admin-body:not(.skin-minimal) .profile-modal-box,
body.admin-body:not(.skin-minimal) .notice-modal-box,
body.admin-body:not(.skin-minimal) .ajax-dialog,
body.admin-body:not(.skin-minimal) [data-admin-modal-inline="1"] > div {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.7) !important;
  box-shadow:
    0 24px 64px rgba(0,0,0,.12),
    0 8px 24px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
}

/* 背景图层 */
body.admin-body:not(.skin-minimal) .admin-bg-layer.bg-image::after {
  background: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(20px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
}

/* 侧边栏 */
body.admin-body:not(.skin-minimal) .admin-sidebar,
body.admin-body:not(.skin-minimal) .sidebar.admin-sidebar,
body.admin-body:not(.skin-minimal) .drawer {
  background: rgba(15,23,42,.82) !important;
  backdrop-filter: blur(24px) saturate(1.45) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.45) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 8px 0 34px rgba(15,23,42,.18), inset -1px 0 0 rgba(255,255,255,.08) !important;
}

/* 侧边栏内卡片 */
body.admin-body:not(.skin-minimal) .admin-profile-card,
body.admin-body:not(.skin-minimal) .auth-status-bar,
body.admin-body:not(.skin-minimal) .sidebar-theme-btn,
body.admin-body:not(.skin-minimal) .sidebar > div[style*="background:rgba(255,255,255,.06)"],
body.admin-body:not(.skin-minimal) .drawer > div[style*="background:rgba(255,255,255,.06)"] {
  background: rgba(255,255,255,.07) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

body.admin-body:not(.skin-minimal) .auth-status-bar.licensed {
  background: rgba(34,197,94,.14) !important;
  border-color: rgba(74,222,128,.25) !important;
}

body.admin-body:not(.skin-minimal) .auth-status-bar.unlicensed {
  background: rgba(239,68,68,.12) !important;
  border-color: rgba(239,68,68,.25) !important;
}

/* 侧边栏导航链接 */
body.admin-body:not(.skin-minimal) .sidebar-link:hover,
body.admin-body:not(.skin-minimal) .sidebar-link.active {
  background: rgba(255,255,255,.08) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* 背景面板遮罩 */
body.admin-body:not(.skin-minimal) .bg-panel-overlay,
body.admin-body:not(.skin-minimal) .drawer-overlay.open {
  background: rgba(0,0,0,.2) !important;
  backdrop-filter: blur(20px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
}

/* 背景切换面板 */
body.admin-body:not(.skin-minimal) .bg-panel {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.5) !important;
  box-shadow: -8px 0 40px rgba(0,0,0,.1), inset 1px 0 0 rgba(255,255,255,.5) !important;
}

body.admin-body:not(.skin-minimal) .bg-panel-header,
body.admin-body:not(.skin-minimal) .bg-mode-tabs,
body.admin-body:not(.skin-minimal) .bg-mode-tab,
body.admin-body:not(.skin-minimal) .bg-preset,
body.admin-body:not(.skin-minimal) .grad-preset {
  background: rgba(255,255,255,.3) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.4) !important;
}

/* 徽章 / 标签 */
body.admin-body:not(.skin-minimal) .badge,
body.admin-body:not(.skin-minimal) .type-badge,
body.admin-body:not(.skin-minimal) .status-pill,
body.admin-body:not(.skin-minimal) .s-pill,
body.admin-body:not(.skin-minimal) .fee-badge,
body.admin-body:not(.skin-minimal) .node-badge,
body.admin-body:not(.skin-minimal) .badge-active,
body.admin-body:not(.skin-minimal) .badge-inactive,
body.admin-body:not(.skin-minimal) .upd-badge,
body.admin-body:not(.skin-minimal) .hist-pill,
body.admin-body:not(.skin-minimal) .migrate-badge,
body.admin-body:not(.skin-minimal) .cat-chip,
body.admin-body:not(.skin-minimal) .preset-key-cell {
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-color: rgba(255,255,255,.4) !important;
}

body.admin-body:not(.skin-minimal) .cat-chip,
body.admin-body:not(.skin-minimal) .preset-key-cell {
  background: rgba(255,255,255,.3) !important;
}

/* 表单面板 / 详情网格 */
body.admin-body:not(.skin-minimal) .import-cat-item,
body.admin-body:not(.skin-minimal) .form-panel,
body.admin-body:not(.skin-minimal) .form-card,
body.admin-body:not(.skin-minimal) .detail-grid,
body.admin-body:not(.skin-minimal) .detail-card,
body.admin-body:not(.skin-minimal) .empty-state {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  border-color: rgba(255,255,255,.5) !important;
}

body.admin-body:not(.skin-minimal) .import-cat-item.selected,
body.admin-body:not(.skin-minimal) .bg-mode-tab.active,
body.admin-body:not(.skin-minimal) .bg-preset.active,
body.admin-body:not(.skin-minimal) .grad-preset.active {
  background: rgba(79,70,229,.12) !important;
  border-color: rgba(79,70,229,.2) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   全局液态玻璃增强 — 覆盖所有后台页面剩余实色组件
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 登录页 — 液态玻璃登录框 ── */
body.admin-body .admin-login-box,
.admin-login-box {
  background: rgba(255,255,255,.5) !important;
  backdrop-filter: blur(28px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.6) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,.08),
    0 8px 24px rgba(0,0,0,.05),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
}

/* ── 授权页 — info-box / alert 玻璃化 ── */
body.admin-body .info-box {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.5);
}
body.admin-body .alert {
  backdrop-filter: blur(28px) saturate(1.5) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.5) saturate(1.2);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
body.admin-body .alert-info {
  background: rgba(239,246,255,.6);
  border-color: rgba(147,197,253,.4);
}
body.admin-body .alert-success {
  background: rgba(240,253,244,.6);
  border-color: rgba(134,239,172,.4);
}
body.admin-body .alert-danger {
  background: rgba(254,242,242,.6);
  border-color: rgba(252,165,165,.4);
}

/* ── 任务展开详情卡 .dc — 玻璃化 ── */
body.admin-body .dc {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.5) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.5);
}
body.admin-body .dc-error {
  background: rgba(255,245,245,.5) !important;
  border-color: rgba(252,165,165,.4) !important;
}
body.admin-body .detail-row td {
  background: rgba(255,255,255,.1) !important;
}
body.admin-body .detail-item {
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* ── 更新页所有卡片 — 液态玻璃 ── */
body.admin-body .upd-newver-card {
  background: rgba(237,233,254,.5) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 2px solid rgba(99,102,241,.3) !important;
  box-shadow: 0 8px 32px rgba(99,102,241,.08), inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-body .upd-latest-card {
  background: rgba(240,253,244,.5) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 2px solid rgba(34,197,94,.3) !important;
  box-shadow: 0 8px 32px rgba(34,197,94,.06), inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-body .upd-err-card {
  background: rgba(254,242,242,.5) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 2px solid rgba(248,113,113,.3) !important;
  box-shadow: 0 8px 32px rgba(248,113,113,.06), inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-body .upd-progress-card {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.5);
}
body.admin-body .upd-changelog {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(221,214,254,.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
body.admin-body .upd-log {
  background: rgba(15,23,42,.75) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* ── 历史版本 — 玻璃化 ── */
body.admin-body .upd-hist-card {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
}
body.admin-body .upd-hist-head-bar {
  background: rgba(255,255,255,.25) !important;
  border-bottom-color: rgba(0,0,0,.05) !important;
}
body.admin-body .hist-row {
  transition: background .15s;
}
body.admin-body .hist-row:hover {
  background: rgba(255,255,255,.3) !important;
}
body.admin-body .hist-row.is-latest {
  background: rgba(245,243,255,.4) !important;
}
body.admin-body .hist-row.is-latest:hover {
  background: rgba(237,233,254,.5) !important;
}
body.admin-body .hist-body {
  background: rgba(255,255,255,.2) !important;
  border-top-color: rgba(0,0,0,.04) !important;
}
body.admin-body .hist-changelog {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(255,255,255,.4) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* ── 设置 Tab 导航 — 玻璃化 ── */
body.admin-body .settings-tabs {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0 4px;
}
body.admin-body .tab-btn {
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
body.admin-body .tab-btn:hover {
  background: rgba(255,255,255,.3);
}
body.admin-body .tab-btn.active {
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

/* ── 分类排序列表 — 玻璃化 ── */
body.admin-body .cat-sort-list {
  background: rgba(255,255,255,.25) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.4) !important;
  border-radius: var(--r);
}
body.admin-body .cat-sort-item {
  border-bottom-color: rgba(0,0,0,.04);
  transition: background .15s;
}
body.admin-body .cat-sort-item:hover {
  background: rgba(255,255,255,.3);
}
body.admin-body .cat-sort-item.active {
  background: rgba(79,70,229,.08) !important;
}

/* ── 选择器 picker — 玻璃化 ── */
body.admin-body .picker-wrap {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.5);
}
body.admin-body .picker-head {
  background: rgba(255,255,255,.2);
  border-bottom-color: rgba(0,0,0,.05);
}
body.admin-body .picker-card {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1.5px solid rgba(255,255,255,.4);
  transition: all .2s;
}
body.admin-body .picker-card:hover {
  background: rgba(255,255,255,.55) !important;
  border-color: rgba(165,180,252,.5);
  box-shadow: 0 4px 16px rgba(79,70,229,.06);
}
body.admin-body .picker-card.selected {
  background: rgba(79,70,229,.06) !important;
  border-color: var(--c-primary);
}
body.admin-body .picker-preview {
  background: rgba(255,255,255,.2);
}

/* ── 上传区 dropzone — 玻璃化 ── */
body.admin-body .dropzone {
  background: rgba(255,255,255,.25) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1.5px dashed rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
body.admin-body .dropzone:hover,
body.admin-body .dropzone.drag {
  background: rgba(79,70,229,.06) !important;
  border-color: var(--c-primary);
  box-shadow: 0 4px 20px rgba(79,70,229,.1), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ── 操作按钮 — 玻璃化 ── */
body.admin-body .act-btn {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 1px 4px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.5);
}
body.admin-body .act-btn:hover {
  background: rgba(255,255,255,.6) !important;
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.6);
}
body.admin-body .act-btn.danger {
  background: rgba(254,226,226,.5) !important;
  border-color: rgba(252,165,165,.4);
}
body.admin-body .act-btn.danger:hover {
  background: rgba(252,165,165,.5) !important;
}
body.admin-body .act-btn.primary {
  background: rgba(238,242,255,.5) !important;
  border-color: rgba(199,210,254,.4);
}
body.admin-body .act-btn.primary:hover {
  background: rgba(199,210,254,.5) !important;
}

body.admin-body .ua {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 1px 4px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.5);
}
body.admin-body .ua:hover {
  background: rgba(255,255,255,.6) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.admin-body .ua-green {
  background: rgba(240,253,244,.5) !important;
  border-color: rgba(187,247,208,.4);
}
body.admin-body .ua-warn {
  background: rgba(254,252,232,.5) !important;
  border-color: rgba(253,230,138,.4);
}
body.admin-body .ua-ok {
  background: rgba(239,246,255,.5) !important;
  border-color: rgba(191,219,254,.4);
}
body.admin-body .ua-del {
  background: rgba(254,226,226,.5) !important;
  border-color: rgba(252,165,165,.3);
}

/* ── 空状态 — 玻璃化 ── */
body.admin-body .empty-box {
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* ── Plans 弹窗 .modal-backdrop — 液态玻璃 ── */
body.admin-body .modal-backdrop {
  background: rgba(15,23,42,.2) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
}
body.admin-body .modal-backdrop .modal-box {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,.1),
    0 8px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
  animation: glass-dialog-in .3s cubic-bezier(.175,.885,.32,1.275);
}

/* ── 个人信息项 — 玻璃化 ── */
body.admin-body .profile-info-item {
  background: rgba(255,255,255,.35) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.4) !important;
  border-radius: var(--r);
  box-shadow: 0 1px 6px rgba(0,0,0,.03), inset 0 1px 0 rgba(255,255,255,.4);
}

/* ── 个人编辑弹窗 — 液态玻璃 ── */
body.admin-body .profile-modal-mask {
  background: rgba(15,23,42,.2) !important;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
}
body.admin-body .profile-modal-box {
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: var(--r-xl) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,.1),
    0 8px 24px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
  animation: glass-dialog-in .3s cubic-bezier(.175,.885,.32,1.275);
}
body.admin-body .profile-modal-header {
  background: rgba(255,255,255,.2);
  border-bottom-color: rgba(0,0,0,.05);
}
body.admin-body .profile-modal-footer {
  background: rgba(255,255,255,.15);
  border-top-color: rgba(0,0,0,.05);
}

/* ── Plans 表格 — 玻璃化增强 ── */
body.admin-body .plans-table th {
  background: rgba(255,255,255,.2) !important;
  border-bottom-color: rgba(0,0,0,.04) !important;
}
body.admin-body .plans-table td {
  border-bottom-color: rgba(0,0,0,.03) !important;
}
body.admin-body .plans-table tbody tr:hover td {
  background: rgba(79,70,229,.04) !important;
}

/* ── 节点徽章 — 玻璃化 ── */
body.admin-body .node-badge {
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
body.admin-body .node-badge.on {
  background: rgba(220,252,231,.5);
  border-color: rgba(134,239,172,.4);
}
body.admin-body .node-badge.off {
  background: rgba(254,226,226,.5);
  border-color: rgba(252,165,165,.4);
}

/* ── 状态徽章 s-pill — 玻璃化 ── */
body.admin-body .s-pill {
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
body.admin-body .s-done  { background: rgba(209,250,229,.5); border-color: rgba(134,239,172,.3); }
body.admin-body .s-fail  { background: rgba(254,226,226,.5); border-color: rgba(252,165,165,.3); }
body.admin-body .s-cancel{ background: rgba(243,244,246,.5); border-color: rgba(209,213,219,.3); }
body.admin-body .s-queue { background: rgba(254,243,199,.5); border-color: rgba(253,230,138,.3); }
body.admin-body .s-run   { background: rgba(219,234,254,.5); border-color: rgba(147,197,253,.3); }
body.admin-body .s-pay   { background: rgba(237,233,254,.5); border-color: rgba(196,181,253,.3); }

/* ── 会员等级徽章 tb — 玻璃化 ── */
body.admin-body .tb {
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.2);
}
body.admin-body .tb-ordinary  { background: rgba(241,245,249,.5); }
body.admin-body .tb-monthly   { background: rgba(219,234,254,.5); }
body.admin-body .tb-quarterly { background: rgba(237,233,254,.5); }
body.admin-body .tb-yearly    { background: rgba(254,243,199,.5); }
body.admin-body .tb-lifetime  { background: rgba(252,231,243,.5); }

/* ── 订单/支付徽章 — 玻璃化 ── */
body.admin-body .b-paid    { background: rgba(209,250,229,.5); border: 1px solid rgba(134,239,172,.3); }
body.admin-body .b-pending { background: rgba(254,243,199,.5); border: 1px solid rgba(253,230,138,.3); }
body.admin-body .b-failed  { background: rgba(254,226,226,.5); border: 1px solid rgba(252,165,165,.3); }
body.admin-body .b-closed  { background: rgba(243,244,246,.5); border: 1px solid rgba(209,213,219,.3); }
body.admin-body .b-refunded{ background: rgba(237,233,254,.5); border: 1px solid rgba(196,181,253,.3); }

/* ── 费用/类型徽章 — 玻璃化 ── */
body.admin-body .fee-badge {
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.2);
}
body.admin-body .fee-yes { background: rgba(254,243,199,.5); }
body.admin-body .fee-no  { background: rgba(243,244,246,.5); }
body.admin-body .type-badge {
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.2);
}

/* ── 状态色图标背景 — 玻璃化 ── */
body.admin-body .dash-stat-icon {
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
body.admin-body .icon-pending-pay { background: rgba(254,243,199,.5); }
body.admin-body .icon-pending     { background: rgba(224,242,254,.5); }
body.admin-body .icon-preparing   { background: rgba(237,233,254,.5); }
body.admin-body .icon-rendering   { background: rgba(219,234,254,.5); }
body.admin-body .icon-balance     { background: rgba(243,232,255,.5); }
body.admin-body .icon-done        { background: rgba(209,250,229,.5); }
body.admin-body .icon-failed      { background: rgba(254,226,226,.5); }

/* ── 快捷入口图标 — 玻璃化 ── */
body.admin-body .dash-shortcut-icon {
  background: rgba(255,255,255,.3) !important;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 2px 8px rgba(79,70,229,.06);
}

/* ── 自动刷新徽章 — 玻璃化 ── */
body.admin-body .auto-refresh-badge {
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(255,255,255,.4);
}
body.admin-body .auto-refresh-badge.on {
  background: rgba(240,253,244,.5);
  border-color: rgba(110,231,183,.4);
}

/* ── 授权状态条 — 玻璃化 ── */
body.admin-body .auth-status-bar.licensed {
  background: rgba(74,222,128,.1);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(74,222,128,.2);
}
body.admin-body .auth-status-bar.unlicensed {
  background: rgba(239,68,68,.1);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border-color: rgba(239,68,68,.2);
}

/* ── 更新页 hero — 玻璃化 ── */
body.admin-body .upd-hero {
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
body.admin-body .upd-check-btn {
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
}

/* ── 更新历史按钮 — 玻璃化 ── */
body.admin-body .upd-hist-btn {
  background: rgba(255,255,255,.3);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: rgba(255,255,255,.3);
}
body.admin-body .upd-hist-btn:hover {
  background: rgba(255,255,255,.5);
}

/* ── 进度条轨道 — 玻璃化 ── */
body.admin-body .upd-bar-track {
  background: rgba(255,255,255,.3) !important;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
body.admin-body .prog-bar {
  background: rgba(255,255,255,.3);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

/* ── 深色背景适配 — 玻璃组件在深色壁纸下的调整 ── */
body.admin-body.dark-bg .admin-login-box {
  background: rgba(0,0,0,.3) !important;
  border-color: rgba(255,255,255,.1) !important;
}
body.admin-body.dark-bg .info-box {
  background: rgba(0,0,0,.2) !important;
  border-color: rgba(255,255,255,.1);
}
body.admin-body.dark-bg .empty-box {
  background: rgba(0,0,0,.15);
  border-color: rgba(255,255,255,.08);
  color: var(--admin-text-muted);
}
body.admin-body.dark-bg .dc {
  background: rgba(0,0,0,.2) !important;
  border-color: rgba(255,255,255,.1) !important;
}
body.admin-body.dark-bg .act-btn,
body.admin-body.dark-bg .ua {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.12);
  color: var(--admin-text-2);
}
body.admin-body.dark-bg .act-btn:hover,
body.admin-body.dark-bg .ua:hover {
  background: rgba(255,255,255,.18) !important;
}
body.admin-body.dark-bg .picker-wrap {
  background: rgba(0,0,0,.2) !important;
  border-color: rgba(255,255,255,.1) !important;
}
body.admin-body.dark-bg .picker-card {
  background: rgba(0,0,0,.15) !important;
  border-color: rgba(255,255,255,.1);
}
body.admin-body.dark-bg .cat-sort-list {
  background: rgba(0,0,0,.2) !important;
  border-color: rgba(255,255,255,.1) !important;
}
body.admin-body.dark-bg .settings-tabs {
  background: rgba(0,0,0,.15);
  border-color: rgba(255,255,255,.08);
}
body.admin-body.dark-bg .dropzone {
  background: rgba(0,0,0,.15) !important;
  border-color: rgba(255,255,255,.12);
}
body.admin-body.dark-bg .profile-info-item {
  background: rgba(0,0,0,.2) !important;
  border-color: rgba(255,255,255,.1) !important;
}
body.admin-body.dark-bg .detail-item {
  background: rgba(0,0,0,.15);
  border-color: rgba(255,255,255,.08);
}
body.admin-body.dark-bg .auto-refresh-badge {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
body.admin-body.dark-bg .node-badge.on {
  background: rgba(220,252,231,.15);
}
body.admin-body.dark-bg .node-badge.off {
  background: rgba(254,226,226,.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   主题滑块控件 — 模糊度 / 透明度调节
   ═══════════════════════════════════════════════════════════════════════════ */
.glass-slider-group {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 0;
}
.glass-slider-item {
  display: flex; flex-direction: column; gap: 6px;
}
.glass-slider-head {
  display: flex; align-items: center; justify-content: space-between;
}
.glass-slider-label {
  font-size: 12px; font-weight: 600; color: var(--c-text);
}
.glass-slider-val {
  font-size: 11px; font-weight: 700; color: var(--c-primary);
  background: rgba(79,70,229,.08); padding: 1px 8px;
  border-radius: var(--r-full); min-width: 36px; text-align: center;
}
.glass-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: rgba(0,0,0,.08);
  outline: none;
  transition: background .2s;
}
.glass-slider:hover {
  background: rgba(0,0,0,.12);
}
.glass-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.glass-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(79,70,229,.4);
}
.glass-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
  cursor: pointer;
}
.glass-slider-reset {
  margin-top: 4px; align-self: flex-end;
  font-size: 11px; color: var(--c-muted);
  background: none; border: none; cursor: pointer;
  padding: 2px 8px; border-radius: var(--r-full);
  transition: all .15s;
}
.glass-slider-reset:hover {
  background: rgba(0,0,0,.06); color: var(--c-text);
}

/* 深色壁纸下全局毛玻璃层调整 */
body.admin-body.dark-bg .main-area::after {
  background: rgba(0,0,0, var(--admin-glass-opacity));
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Overview v2 — data-dense dashboard, Heroicons, lightweight charts
   ═══════════════════════════════════════════════════════════════════════════ */
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.dash-heroicon,
.btn-heroicon,
.card-title-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
.btn-heroicon {
  width: 15px;
  height: 15px;
}
.card-title-icon {
  width: 17px;
  height: 17px;
  color: var(--c-primary);
}
.dash-panel .card-title > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.dash-card-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  white-space: nowrap;
}
.dash-section {
  margin-bottom: 18px;
}
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dash-section-head.compact {
  margin-bottom: 10px;
}
.dash-section-kicker {
  font-size: 10px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dash-section-title {
  margin: 1px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
}
.dash-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(5,150,105,.18);
  background: rgba(236,253,245,.66);
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}
.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.13);
  animation: dash-live-pulse 1.8s ease-in-out infinite;
}
@keyframes dash-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .48; }
}
.dash-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.dash-summary-item {
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.54);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.dash-summary-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
}
.dash-summary-item strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
body.admin-body .dash-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}
body.admin-body .dash-stat {
  min-width: 0;
  min-height: 96px;
  padding: 14px;
  border-radius: var(--r);
  background: rgba(255,255,255,.58);
}
body.admin-body .dash-stat:hover {
  transform: translateY(-1px) translateZ(0) !important;
}
.dash-stat-left {
  min-width: 0;
}
body.admin-body .dash-stat-label {
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
body.admin-body .dash-stat-value {
  font-size: 28px;
}
body.admin-body .dash-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  font-size: 0;
}
.dash-stat-icon .dash-heroicon {
  width: 19px;
  height: 19px;
  color: var(--stat-color, var(--c-primary));
}
.dash-analytics-grid,
.dash-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}
.dash-main-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: start;
}
body.admin-body .dash-panel {
  margin: 0;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.58);
}
.dash-chart-panel {
  min-height: 286px;
}
.dash-donut-layout {
  display: grid;
  grid-template-columns: minmax(138px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.dash-donut-box {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.dash-donut-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dash-donut-svg circle {
  transition: stroke-dasharray .28s ease, stroke-dashoffset .28s ease;
}
.dash-donut-center {
  position: absolute;
  inset: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.44);
}
.dash-donut-center strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.dash-donut-center span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--c-muted);
}
.dash-chart-legend,
.dash-bars {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.dash-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.dash-legend-row:last-child {
  border-bottom: 0;
}
.dash-legend-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 700;
}
.dash-legend-label i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.dash-legend-row strong {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-legend-row strong span {
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 800;
}
.dash-bar-row {
  display: grid;
  gap: 6px;
}
.dash-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  color: var(--c-text-2);
}
.dash-bar-top strong {
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.dash-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148,163,184,.18);
}
.dash-bar-track span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--bar-color, var(--c-primary));
  transition: width .28s ease;
}
.dash-node-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dash-node-metric {
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(248,250,252,.72);
  border: 1px solid rgba(226,232,240,.76);
}
.dash-node-metric span {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: var(--c-muted);
}
.dash-node-metric strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}
.dash-node-list {
  display: grid;
  gap: 8px;
}
.dash-node-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(226,232,240,.78);
  background: rgba(248,250,252,.7);
}
.dash-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}
.dash-node-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.1);
}
.dash-node-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 750;
}
.dash-node-state {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 750;
}
.dash-empty-state {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--c-muted);
  text-align: center;
}
.dash-empty-icon {
  width: 30px;
  height: 30px;
  color: var(--c-subtle);
}
.dash-empty-state strong {
  color: var(--c-text-2);
  font-size: 13px;
}
.dash-empty-state span {
  font-size: 12px;
}
.dash-actions-section {
  margin-bottom: 0;
}
.dash-actions-section .dash-shortcuts {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 0;
}
.dash-actions-section .dash-shortcut {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon desc";
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--r);
  background: rgba(255,255,255,.58);
}
body.admin-body .dash-actions-section .dash-shortcut:hover {
  transform: translateY(-1px) translateZ(0) !important;
}
.dash-actions-section .dash-shortcut-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  font-size: 0;
  color: var(--c-primary);
}
.dash-actions-section .dash-shortcut-name {
  grid-area: name;
  min-width: 0;
  line-height: 1.25;
}
.dash-actions-section .dash-shortcut-desc {
  grid-area: desc;
  min-width: 0;
  line-height: 1.35;
}
.dash-auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.dash-auth-card {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(248,250,252,.64);
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.dash-auth-card:hover {
  border-color: rgba(79,70,229,.25);
  box-shadow: 0 4px 16px rgba(15,23,42,.07);
}
.dash-auth-card:focus-visible {
  outline: 2px solid rgba(79,70,229,.45);
  outline-offset: 2px;
}
.dash-auth-card.is-ok {
  background: rgba(240,253,244,.62);
  border-color: rgba(22,163,74,.2);
}
.dash-auth-card.is-danger {
  background: rgba(254,242,242,.62);
  border-color: rgba(220,38,38,.22);
}
.dash-auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dash-auth-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
}
.dash-auth-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
  background: rgba(79,70,229,.08);
}
.dash-auth-icon .dash-heroicon {
  width: 16px;
  height: 16px;
}
.dash-auth-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 850;
  color: #047857;
  background: rgba(16,185,129,.12);
}
.dash-auth-card.is-danger .dash-auth-badge {
  color: #b91c1c;
  background: rgba(239,68,68,.12);
}
.dash-auth-card.is-muted .dash-auth-badge {
  color: #64748b;
  background: rgba(148,163,184,.14);
}
.dash-auth-sub,
.dash-auth-extra {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.45;
}
body.admin-body.dark-bg .dash-section-title,
body.admin-body.dark-bg .dash-summary-item strong {
  color: var(--admin-text);
}
body.admin-body.dark-bg .dash-summary-item,
body.admin-body.dark-bg .dash-panel,
body.admin-body.dark-bg .dash-stat,
body.admin-body.dark-bg .dash-actions-section .dash-shortcut {
  background: rgba(15,23,42,.38);
  border-color: rgba(255,255,255,.12);
}

@media (max-width: 1280px) {
  body.admin-body .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-actions-section .dash-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .dash-header-actions { width: 100%; justify-content: flex-start; }
  .dash-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-section-head { align-items: flex-start; }
  body.admin-body .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-body .dash-stat { min-height: 88px; padding: 12px; }
  body.admin-body .dash-stat-value { font-size: 24px; }
  .dash-donut-layout { grid-template-columns: 1fr; }
  .dash-donut-box { max-width: 168px; }
  .dash-actions-section .dash-shortcuts { grid-template-columns: 1fr; }
  .dash-auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .dash-summary-strip,
  .dash-node-summary { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-live-dot { animation: none; }
  .dash-donut-svg circle,
  .dash-bar-track span {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin Global UI v2 — legacy icon cleanup + mobile-first polish
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-icon-menu {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'><path d='M4 6h16M4 12h16M4 18h16'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'><path d='M4 6h16M4 12h16M4 18h16'/></svg>");
}
.nav-icon-search {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4 4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4 4'/></svg>");
}
.nav-icon-trash {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M9 7V5h6v2M7 7l1 13h8l1-13M10 11v5M14 11v5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M9 7V5h6v2M7 7l1 13h8l1-13M10 11v5M14 11v5'/></svg>");
}
.nav-icon-alert {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2.8 19a2 2 0 0 0 1.7 3h15a2 2 0 0 0 1.7-3L12 3z'/><path d='M12 9v5M12 18h.01'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2.8 19a2 2 0 0 0 1.7 3h15a2 2 0 0 0 1.7-3L12 3z'/><path d='M12 9v5M12 18h.01'/></svg>");
}
.nav-icon-check {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
}
.nav-icon-xmark {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>");
}
.nav-icon-upload {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V4M7 9l5-5 5 5'/><path d='M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V4M7 9l5-5 5 5'/><path d='M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/></svg>");
}
.nav-icon-globe {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9S14.5 18.3 12 21c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9S14.5 18.3 12 21c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z'/></svg>");
}
.nav-icon-sparkles {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3z'/><path d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8L12 3z'/><path d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15z'/></svg>");
}
.nav-icon-image {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='8' cy='10' r='1.5'/><path d='m21 16-5-5L6 19'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='8' cy='10' r='1.5'/><path d='m21 16-5-5L6 19'/></svg>");
}
.nav-icon-banknotes {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='12' rx='2'/><circle cx='12' cy='12' r='3'/><path d='M6 9h.01M18 15h.01'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='6' width='18' height='12' rx='2'/><circle cx='12' cy='12' r='3'/><path d='M6 9h.01M18 15h.01'/></svg>");
}
.nav-icon-clock {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}
.nav-icon-bolt {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/></svg>");
}
.nav-icon-volume {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10v4h4l6 5V5L8 10H4z'/><path d='M17 9a4 4 0 0 1 0 6'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10v4h4l6 5V5L8 10H4z'/><path d='M17 9a4 4 0 0 1 0 6'/></svg>");
}
.nav-icon-folder {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 6.5A2.5 2.5 0 016 4h4l2 2h6a2.5 2.5 0 012.5 2.5v8A2.5 2.5 0 0118 19H6a2.5 2.5 0 01-2.5-2.5v-10z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 6.5A2.5 2.5 0 016 4h4l2 2h6a2.5 2.5 0 012.5 2.5v8A2.5 2.5 0 0118 19H6a2.5 2.5 0 01-2.5-2.5v-10z'/></svg>");
}
.nav-icon-mail {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M4 7l8 6 8-6'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M4 7l8 6 8-6'/></svg>");
}
.nav-icon-robot {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4V2'/><rect x='5' y='6' width='14' height='12' rx='3'/><path d='M8 18v2M16 18v2M9 11h.01M15 11h.01M9 15h6'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4V2'/><rect x='5' y='6' width='14' height='12' rx='3'/><path d='M8 18v2M16 18v2M9 11h.01M15 11h.01M9 15h6'/></svg>");
}
.nav-icon-pin {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 4.5l5 5-3.3 1.1-3.9 3.9.7 4-1 1-3.5-3.5L5 19.5 4 18.5l3.5-3.5L4 11.5l1-1 4 .7 3.9-3.9 1.6-2.8z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 4.5l5 5-3.3 1.1-3.9 3.9.7 4-1 1-3.5-3.5L5 19.5 4 18.5l3.5-3.5L4 11.5l1-1 4 .7 3.9-3.9 1.6-2.8z'/></svg>");
}
.nav-icon-info {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5M12 8h.01'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5M12 8h.01'/></svg>");
}
.nav-icon-trophy {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4h8v3a4 4 0 01-8 0V4z'/><path d='M8 6H4v1a4 4 0 004 4M16 6h4v1a4 4 0 01-4 4'/><path d='M12 11v5M9 20h6M10 16h4'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4h8v3a4 4 0 01-8 0V4z'/><path d='M8 6H4v1a4 4 0 004 4M16 6h4v1a4 4 0 01-4 4'/><path d='M12 11v5M9 20h6M10 16h4'/></svg>");
}

.admin-auto-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
}
.admin-inline-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: -2px;
}
.pay-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.pay-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -1px;
}
.pay-qq {
  background: linear-gradient(135deg,#8b5cf6,#d946ef);
}
.admin-login-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-login-feature .nav-icon,
.auth-logo .nav-icon {
  color: currentColor;
}
.admin-leading-iconized {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.admin-leading-iconized > .admin-auto-icon {
  flex-shrink: 0;
}
.admin-icon-box {
  font-size: 0 !important;
}
.admin-icon-box .nav-icon,
.fx-empty-svg {
  width: 18px;
  height: 18px;
}
.fx-empty .fx-empty-svg {
  width: 34px;
  height: 34px;
}

@media (max-width: 960px) {
  html { overscroll-behavior-y: contain; }
  body.admin-body .main-area {
    width: 100%;
    min-width: 0;
  }
  body.admin-body .page-content {
    padding: 14px 12px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 100vw;
    overflow-x: hidden;
  }
  body.admin-body .pg-header {
    margin: -14px -12px 14px !important;
    padding: 12px !important;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
  }
  body.admin-body .pg-header-left {
    min-width: 0;
  }
  body.admin-body .pg-header-right,
  body.admin-body .pg-header-actions,
  body.admin-body .dash-header-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
  }
  body.admin-body .pg-header-right > *,
  body.admin-body .pg-header-actions > *,
  body.admin-body .dash-header-actions > * {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  body.admin-body .pg-title {
    font-size: 17px;
  }
  body.admin-body .pg-desc {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }
  body.admin-body .mobile-drawer-btn {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  body.admin-body .mobile-drawer-btn .nav-icon {
    width: 19px;
    height: 19px;
  }
  body.admin-body .drawer {
    width: min(84vw, 320px);
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  body.admin-body .drawer-overlay.open {
    background: rgba(15,23,42,.36) !important;
  }
  body.admin-body .mobile-nav {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
    padding: 5px;
  }
  body.admin-body .mobile-nav a {
    min-height: 48px;
    padding: 7px 2px;
  }
  body.admin-body .mobile-nav .nav-icon {
    width: 19px !important;
    height: 19px !important;
  }
  body.admin-body .filter-row,
  body.admin-body .filter-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 12px;
  }
  body.admin-body .filter-left,
  body.admin-body .filter-right {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100%;
  }
  body.admin-body .filter-row > *,
  body.admin-body .filter-bar select,
  body.admin-body .filter-bar input,
  body.admin-body .filter-bar button,
  body.admin-body .filter-left > *,
  body.admin-body .filter-right > * {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
  body.admin-body .filter-search {
    width: 100%;
  }
  body.admin-body .filter-search input,
  body.admin-body .filter-row input,
  body.admin-body .filter-row select,
  body.admin-body .filter-select {
    height: 42px !important;
    font-size: 14px !important;
  }
  body.admin-body .btn,
  body.admin-body button,
  body.admin-body .act-btn {
    min-height: 40px;
  }
  body.admin-body .btn-sm {
    min-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }
  body.admin-body .job-stats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 1px 8px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.admin-body .job-stats::-webkit-scrollbar {
    display: none;
  }
  body.admin-body .job-stat-chip {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }
  body.admin-body .stat-grid,
  body.admin-body .u-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
  body.admin-body .stat-card,
  body.admin-body .u-stat-card {
    min-width: 0;
    padding: 12px !important;
    border-radius: 14px !important;
  }
  body.admin-body .u-stat-icon {
    width: 34px !important;
    height: 34px !important;
  }
  body.admin-body .table-wrap,
  body.admin-body .job-table-wrap,
  body.admin-body .ord-table-wrap,
  body.admin-body .plans-table-wrap {
    max-width: calc(100vw - 24px);
    border-radius: 14px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  body.admin-body table {
    min-width: 760px;
  }
  body.admin-body .desktop-only {
    display: none !important;
  }
  body.admin-body .mobile-only {
    display: block !important;
  }
  body.admin-body .job-card,
  body.admin-body .ord-card,
  body.admin-body .user-card,
  body.admin-body .node-card,
  body.admin-body .notice-card,
  body.admin-body .upd-card {
    border-radius: 14px !important;
    margin-bottom: 10px;
  }
  body.admin-body .node-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.admin-body .node-card-header,
  body.admin-body .notice-card-header {
    padding: 12px 14px 10px !important;
  }
  body.admin-body .node-card-body,
  body.admin-body .notice-card-body {
    padding: 10px 14px !important;
  }
  body.admin-body .node-card-footer,
  body.admin-body .notice-card-footer,
  body.admin-body .user-card-actions,
  body.admin-body .jc-actions,
  body.admin-body .ord-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px !important;
  }
  body.admin-body .node-card-footer .btn,
  body.admin-body .notice-card-footer .btn,
  body.admin-body .user-card-actions .btn,
  body.admin-body .jc-actions .btn,
  body.admin-body .ord-actions .btn {
    width: 100%;
  }
  body.admin-body .pager,
  body.admin-body .pager-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch !important;
  }
  body.admin-body .pager button,
  body.admin-body .pager a,
  body.admin-body .pager span {
    min-height: 38px;
  }
  body.admin-body .modal-overlay,
  body.admin-body .modal-mask,
  body.admin-body .modal-backdrop,
  body.admin-body .profile-modal-mask,
  body.admin-body .notice-modal-overlay,
  body.admin-body .ajax-dialog-overlay {
    padding: 12px !important;
    align-items: center !important;
  }
  body.admin-body .modal-box,
  body.admin-body .modal-card,
  body.admin-body .admin-modal-card,
  body.admin-body .profile-modal-box,
  body.admin-body .notice-modal-box,
  body.admin-body .ajax-dialog {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 16px !important;
  }
  body.admin-body .modal-body,
  body.admin-body .profile-modal-body,
  body.admin-body .notice-modal-box {
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
  body.admin-body .modal-2col,
  body.admin-body .s-row {
    grid-template-columns: 1fr !important;
  }
  body.admin-body .setting-row {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
    gap: 8px !important;
  }
  body.admin-body .setting-row-control {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.admin-body .setting-row-control input,
  body.admin-body .setting-row-control select,
  body.admin-body .setting-select,
  body.admin-body .s-input input,
  body.admin-body .s-input select,
  body.admin-body .s-input textarea {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.admin-body .save-bar {
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    flex-wrap: wrap;
  }
  body.admin-body .bg-panel {
    width: min(100vw, 420px);
    right: -100vw;
  }
  body.admin-body .bg-panel.open {
    right: 0;
  }
}

@media (max-width: 520px) {
  body.admin-body .stat-grid,
  body.admin-body .u-stat-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  body.admin-body .modal-head,
  body.admin-body .modal-header,
  body.admin-body .modal-foot,
  body.admin-body .modal-footer,
  body.admin-body .profile-modal-footer,
  body.admin-body .notice-form-footer {
    flex-wrap: wrap;
  }
  body.admin-body .modal-foot .btn,
  body.admin-body .modal-footer .btn,
  body.admin-body .profile-modal-footer button,
  body.admin-body .notice-form-footer .btn {
    flex: 1 1 120px;
  }
}

/* Admin Global UI v3 — SVG controls + compact mobile pages */
body.admin-body .s-icon,
body.admin-body .upd-card-icon,
body.admin-body .ref-auth-icon {
  color: var(--c-primary);
}
body.admin-body .s-icon .nav-icon,
body.admin-body .upd-card-icon .nav-icon,
body.admin-body .ref-auth-icon .nav-icon,
body.admin-body .admin-icon-box .nav-icon {
  width: 18px;
  height: 18px;
}
body.admin-body .admin-status-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  vertical-align: middle;
}
body.admin-body .admin-status-icon.is-ok { color: #16a34a; background: #dcfce7; }
body.admin-body .admin-status-icon.is-warn { color: #d97706; background: #fef3c7; }
body.admin-body .admin-status-icon.is-danger { color: #dc2626; background: #fee2e2; }
body.admin-body .admin-task-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
body.admin-body .admin-task-line + .admin-task-line {
  margin-top: 2px;
}
body.admin-body .admin-task-line .nav-icon {
  margin-top: .35em;
  color: #64748b;
}
body.admin-body .admin-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-variant-numeric: tabular-nums;
}
body.admin-body .admin-rank-badge.rank-1 { color: #92400e; background: #fef3c7; border-color: #fde68a; }
body.admin-body .admin-rank-badge.rank-2 { color: #475569; background: #f8fafc; border-color: #cbd5e1; }
body.admin-body .admin-rank-badge.rank-3 { color: #9a3412; background: #ffedd5; border-color: #fed7aa; }
body.admin-body .status-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
body.admin-body .status-mini.is-on { color: #16a34a; }
body.admin-body .status-mini.is-off { color: #dc2626; }
body.admin-body .modal-close,
body.admin-body .profile-modal-close {
  font-size: 0 !important;
}
body.admin-body .modal-close::before,
body.admin-body .profile-modal-close::before {
  content: '';
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>") center / contain no-repeat;
}
body.admin-body .filter-search-icon {
  font-size: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4 4'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='m16 16 4 4'/></svg>") center / contain no-repeat;
}
body.admin-body .tab-bar,
body.admin-body .settings-tabs,
body.admin-body .tab-nav {
  scrollbar-width: none;
}
body.admin-body .tab-bar::-webkit-scrollbar,
body.admin-body .settings-tabs::-webkit-scrollbar,
body.admin-body .tab-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 760px) {
  body.admin-body .tab-bar,
  body.admin-body .settings-tabs,
  body.admin-body .tab-nav {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto;
    padding: 2px 1px 8px;
    border-bottom: 0;
    margin-bottom: 12px !important;
    -webkit-overflow-scrolling: touch;
  }
  body.admin-body .tab-bar .tab-btn,
  body.admin-body .settings-tabs .tab-btn,
  body.admin-body .tab-nav .tab-btn {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid var(--c-border) !important;
    border-radius: 12px;
    background: rgba(255,255,255,.62);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  body.admin-body .tab-bar .tab-btn.active,
  body.admin-body .settings-tabs .tab-btn.active,
  body.admin-body .tab-nav .tab-btn.active {
    background: rgba(79,70,229,.09);
    border-color: rgba(79,70,229,.28) !important;
    color: var(--c-primary) !important;
  }
  body.admin-body .tab-bar .tab-btn.active::after,
  body.admin-body .settings-tabs .tab-btn.active::after,
  body.admin-body .tab-nav .tab-btn.active::after {
    content: none;
  }
  body.admin-body .s-card {
    margin-bottom: 10px;
    border-radius: 14px !important;
  }
  body.admin-body .s-head {
    padding: 12px 14px !important;
    gap: 10px;
  }
  body.admin-body .s-head:hover {
    padding-left: 14px !important;
  }
  body.admin-body .s-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }
  body.admin-body .s-title {
    font-size: 14px;
  }
  body.admin-body .s-body {
    padding: 14px !important;
    gap: 12px !important;
  }
  body.admin-body .s-row {
    gap: 8px !important;
    padding: 0 !important;
  }
  body.admin-body .s-input,
  body.admin-body .s-input > div[style*="display:flex"] {
    width: 100%;
  }
  body.admin-body .s-input > div[style*="display:flex"],
  body.admin-body .migrate-action-row,
  body.admin-body .upd-action-row,
  body.admin-body .sync-actions {
    flex-wrap: wrap;
  }
  body.admin-body .fps-tier-head,
  body.admin-body .fps-tier-row {
    grid-template-columns: minmax(70px, .8fr) minmax(80px, .8fr) minmax(120px, 1fr) 32px !important;
    min-width: 520px;
  }
  body.admin-body .s-input:has(.fps-tier-head) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.admin-body .upd-ver-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.admin-body .upd-ver-sep {
    width: 100%;
    height: 1px;
    margin: 0 !important;
  }
  body.admin-body .upd-status-row,
  body.admin-body .upd-card-head,
  body.admin-body .upd-hist-head,
  body.admin-body .hist-row {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  body.admin-body .upd-status-row > *,
  body.admin-body .upd-check-btn,
  body.admin-body .upd-btn,
  body.admin-body .upd-reload-btn,
  body.admin-body .migrate-action-row > *,
  body.admin-body .sync-actions .btn {
    width: 100%;
    justify-content: center;
  }
  body.admin-body .upd-log {
    max-height: 240px;
    font-size: 11px;
  }
  body.admin-body .hist-date {
    margin-left: 0;
  }
  body.admin-body .hist-arrow {
    margin-left: auto;
  }
  body.admin-body .sync-status {
    padding: 14px;
    border-radius: 14px;
  }
  body.admin-body .sync-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.admin-body .sync-stat-val {
    font-size: 22px;
  }
  body.admin-body .blacklist-card {
    border-radius: 14px;
    padding: 12px 14px;
  }
  body[data-admin-page="plans.php"].admin-body .panel > div:first-child,
  body[data-admin-page="referral.php"].admin-body #detail-pager,
  body[data-admin-page="prepay.php"].admin-body .modal-foot,
  body[data-admin-page="prepay.php"].admin-body #ulPager {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
    gap: 8px !important;
  }
  body[data-admin-page="plans.php"].admin-body .panel > div:first-child > *,
  body[data-admin-page="referral.php"].admin-body #detail-pager > *,
  body[data-admin-page="prepay.php"].admin-body .modal-foot > *,
  body[data-admin-page="prepay.php"].admin-body #ulPager > * {
    width: 100%;
    justify-content: center;
  }
  body[data-admin-page="referral.php"].admin-body #detailKw,
  body[data-admin-page="referral.php"].admin-body #adminSlugInput,
  body[data-admin-page="prepay.php"].admin-body #rateInput,
  body[data-admin-page="prepay.php"].admin-body #adjustAmount {
    width: 100% !important;
    max-width: 100% !important;
  }
  body[data-admin-page="effects.php"].admin-body .pg-header-right > div,
  body[data-admin-page="color_grades.php"].admin-body .pg-header-right > div {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    width: 100%;
  }
  body[data-admin-page="effects.php"].admin-body .pg-header-right select,
  body[data-admin-page="effects.php"].admin-body .pg-header-right button,
  body[data-admin-page="color_grades.php"].admin-body .pg-header-right select,
  body[data-admin-page="color_grades.php"].admin-body .pg-header-right button {
    width: 100% !important;
    min-width: 0 !important;
  }
  body[data-admin-page="effects.php"].admin-body .modal-body[style*="grid-template-columns"],
  body[data-admin-page="color_grades.php"].admin-body .modal-body[style*="grid-template-columns"],
  body[data-admin-page="effects.php"].admin-body .modal-body > div[style*="grid-template-columns"],
  body[data-admin-page="color_grades.php"].admin-body .modal-body > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  body[data-admin-page="effects.php"].admin-body .modal-body input,
  body[data-admin-page="effects.php"].admin-body .modal-body select,
  body[data-admin-page="effects.php"].admin-body .modal-body textarea,
  body[data-admin-page="color_grades.php"].admin-body .modal-body input,
  body[data-admin-page="color_grades.php"].admin-body .modal-body select,
  body[data-admin-page="color_grades.php"].admin-body .modal-body textarea {
    max-width: 100% !important;
  }
  body[data-admin-page="effects.php"].admin-body #categorySortModal .modal-body,
  body[data-admin-page="color_grades.php"].admin-body #categorySortModal .modal-body {
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chart Styles — 支付趋势和用户增长图表
   ═══════════════════════════════════════════════════════════════════════════ */
.dash-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dash-main-grid .dash-panel {
  min-height: 280px;
}

.dash-main-grid canvas {
  width: 100% !important;
  height: 200px !important;
  display: block;
}

.dash-card-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent, #4ecca3);
}

@media (max-width: 1280px) {
  .dash-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dash-main-grid canvas {
    height: 160px !important;
  }
}
