/**
 * FitRonix — Dark Mode System (لایه اعمال)
 * توکن‌ها: user-panel-dark-tokens.css · چیدمان بدون تغییر
 */

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user {
  background: var(--fx-dark-bg);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .main,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .main {
  background: transparent !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard {
  --fx-mw-muted: var(--fx-dark-text-muted);
  color: var(--fx-dark-text);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable],
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable] {
  gap: var(--fx-dark-gap) !important;
}

/* ─── Card primitive → ویجت‌های داشبورد ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-standalone,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-standalone,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash-card-ref,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash-card-ref,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-card-ref,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-card-ref,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v4.up-dash-greet,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v4.up-dash-greet,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3.up-dash-greet,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3.up-dash-greet,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub--v9,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub--v9,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-programs-section,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-programs-section,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-panel-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-panel-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-customize,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-customize,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="promo"]) {
  background: var(--fx-dark-card-bg) !important;
  border: 1px solid var(--fx-dark-border) !important;
  border-radius: var(--fx-dark-radius) !important;
  box-shadow: var(--fx-dark-shadow) !important;
  color: var(--fx-dark-text);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-card:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-card:hover,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-standalone:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-standalone:hover,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub--v9:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub--v9:hover {
  border-color: var(--fx-dark-border-hover) !important;
  box-shadow: var(--fx-dark-shadow) !important;
}

/* ═══ تایپوگرافی ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard h4,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard h4,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-title,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-title,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-value,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-value,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-foot-item strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-foot-item strong,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-metric-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-metric-val,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .up-dash-greet-name-row h2,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .up-dash-greet-name-row h2,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-card strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-card strong {
  color: var(--fx-dark-text) !important;
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-desc,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-desc,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-foot-item span,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-foot-item span,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-metric-lbl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-metric-lbl,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-card .fx-program-meta,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-card .fx-program-meta,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-legend li,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-legend li,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-title-sub,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-title-sub {
  color: var(--fx-dark-text-muted) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-panel-head-link,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-panel-head-link {
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-card-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-card-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash-card-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash-card-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics-head {
  border-bottom-color: var(--fx-dk-border) !important;
}

/* ═══ inset panels ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-metric,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-metric,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops--v6,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops--v6,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-pane--v9,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-pane--v9,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics--v9 .fx-body-hub-chart-panel,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-banner,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-banner,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-side,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-side,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-ring,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-ring,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-task-v4,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-task-v4,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-tasks-water,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-tasks-water,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-expiry--portrait,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-expiry--portrait,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hub-today-chips .up-dash-greet-chip,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hub-today-chips .up-dash-greet-chip {
  background: var(--fx-dark-inset) !important;
  border: 1px solid var(--fx-dark-border) !important;
  border-radius: var(--fx-dark-radius-sm) !important;
  box-shadow: none !important;
  color: var(--fx-dk-text-2);
}

/* ═══ خوش‌آمدگویی ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-greet-v4.up-dash-greet::before,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-greet-v4.up-dash-greet::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--fx-dk-gradient-cta);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-greet-v4 .fx-greet-metrics,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-greet-v4 .fx-greet-metrics {
  border-top-color: var(--fx-dk-border) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-greet-v4 .fx-greet-metric-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-greet-v4 .fx-greet-metric-ico {
  background: var(--fx-dk-inset-2) !important;
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-greet-v4 .fx-greet-metric--weight .fx-greet-metric-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-greet-v4 .fx-greet-metric--weight .fx-greet-metric-ico {
  color: var(--fx-dk-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-greet-v4 .fx-greet-pro-label,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-greet-v4 .fx-greet-pro-label {
  background: var(--fx-dk-purple-soft) !important;
  border-color: rgba(124, 77, 255, 0.28) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-greet-v4 .fx-greet-pro-label-tier,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-greet-v4 .fx-greet-pro-label-tier {
  background: var(--fx-dk-gradient-cta) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-title h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-title h3 {
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-ico {
  background: var(--fx-dk-blue-soft) !important;
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--blue .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--blue .fx-greet-ops-tile-val { color: var(--fx-dk-blue) !important; }
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--green .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--green .fx-greet-ops-tile-val { color: var(--fx-dk-green) !important; }
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--orange .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--orange .fx-greet-ops-tile-val { color: var(--fx-dk-orange) !important; }
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--purple .fx-greet-ops-tile-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-ops-tile--purple .fx-greet-ops-tile-val { color: var(--fx-dk-purple) !important; }

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime-title h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime-title h3 {
  color: var(--fx-dk-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime-ico {
  background: rgba(255, 138, 61, 0.14) !important;
  color: var(--fx-dk-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-num,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-num {
  color: var(--fx-dk-orange) !important;
  background: rgba(255, 138, 61, 0.12) !important;
  border-color: rgba(255, 138, 61, 0.22) !important;
  box-shadow: none !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text {
  color: var(--fx-dk-text-2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text--en,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime--v1 .fx-dual-date-text--en {
  color: var(--fx-dark-text-muted) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime-clock,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime-clock {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--fx-dk-border) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime-clock-lbl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime-clock-lbl {
  color: var(--fx-dark-text-muted) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-datetime-clock-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-datetime-clock-val {
  color: var(--fx-dk-text) !important;
}

/* ═══ مرکز روزانه ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics-head h4,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics-head h4,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-chart-head h4,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-chart-head h4,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-donut-center strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-donut-center strong,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-legend b,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-legend b {
  color: var(--fx-dk-text) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-weight-pill,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-weight-pill,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-prog,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-prog,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics-link,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics-link {
  background: var(--fx-dk-blue-soft) !important;
  border-color: rgba(41, 121, 255, 0.28) !important;
  color: var(--fx-dk-blue) !important;
  border-radius: 999px !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-track,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-track,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-progress,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-progress,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-bar,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-bar,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-tasks-prog-track,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-tasks-prog-track {
  background: var(--fx-dk-inset-2) !important;
  border-radius: 999px !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-track span,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-track span,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-bar span,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-bar span,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-tasks-prog-track span,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-tasks-prog-track span {
  background: var(--fx-dark-gradient-cta) !important;
  box-shadow: none;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hub-tasks-ring-track,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hub-tasks-ring-track {
  stroke: var(--fx-dk-inset-2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hub-tasks-ring-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hub-tasks-ring-val,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hub-today-status,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hub-today-status {
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-ring.is-complete .fx-hub-tasks-ring-val,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-today-banner.is-workout-done .fx-hub-today-status,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-today-banner.is-workout-done .fx-hub-today-status,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-task-v4.is-done .fx-task-text,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-task-v4.is-done .fx-task-text {
  color: var(--fx-dk-green) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hub-today-chips .up-greet-chip--streak,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hub-today-chips .up-greet-chip--streak {
  background: var(--fx-dk-orange-soft) !important;
  border-color: var(--fx-dk-orange-border) !important;
  color: var(--fx-dk-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hub-today-chips .up-greet-chip--done,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hub-today-chips .up-greet-chip--done {
  background: var(--fx-dk-green-soft) !important;
  border-color: rgba(0, 200, 83, 0.28) !important;
  color: var(--fx-dk-green) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-tasks-water-lbl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-tasks-water-lbl {
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-tasks-water-cups .fx-water-cup.is-full,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-tasks-water-cups .fx-water-cup.is-full {
  background: var(--fx-dark-accent-blue-muted) !important;
  border-color: var(--fx-dark-border) !important;
  box-shadow: none;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-tasks-water-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-tasks-water-btn {
  background: var(--fx-dk-gradient-cta) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px !important;
}

/* ═══ ویجت‌های سلامت — رنگ دسته (مرجع) ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout {
  --fx-ref-accent: var(--fx-dk-purple);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition {
  --fx-ref-accent: var(--fx-dk-green);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep {
  --fx-ref-accent: var(--fx-dk-blue);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery {
  --fx-ref-accent: var(--fx-dk-purple);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout .fx-hw-card-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout .fx-hw-card-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout .fx-hw-card-value,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout .fx-hw-card-value {
  color: var(--fx-dk-purple) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition .fx-hw-card-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition .fx-hw-card-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition .fx-hw-card-value,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition .fx-hw-card-value {
  color: var(--fx-dk-green) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep .fx-hw-card-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep .fx-hw-card-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep .fx-hw-card-value,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep .fx-hw-card-value {
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery .fx-hw-card-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery .fx-hw-card-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery .fx-hw-card-value,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery .fx-hw-card-value {
  color: var(--fx-dk-purple) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout > .fx-hw-foot,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="fitronix"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--workout > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="firouzi"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--workout > .fx-hw-foot {
  background: var(--fx-dk-purple-soft) !important;
  border-top: 1px solid rgba(124, 77, 255, 0.2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition > .fx-hw-foot,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition > .fx-hw-foot,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition > .fx-hw-foot--macros,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition > .fx-hw-foot--macros,
html[data-theme="dark"] html[data-user-panel-theme="fitronix"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--nutrition > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="firouzi"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--nutrition > .fx-hw-foot {
  background: var(--fx-dk-green-soft) !important;
  border-top: 1px solid rgba(0, 200, 83, 0.2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep > .fx-hw-foot,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="fitronix"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--sleep > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="firouzi"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--sleep > .fx-hw-foot {
  background: var(--fx-dk-blue-soft) !important;
  border-top: 1px solid rgba(41, 121, 255, 0.2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery > .fx-hw-foot,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="fitronix"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--recovery > .fx-hw-foot,
html[data-theme="dark"] html[data-user-panel-theme="firouzi"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref.fx-hw--recovery > .fx-hw-foot {
  background: var(--fx-dk-purple-soft) !important;
  border-top: 1px solid rgba(124, 77, 255, 0.2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item strong,
html[data-theme="dark"] html[data-user-panel-theme="fitronix"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item strong,
html[data-theme="dark"] html[data-user-panel-theme="firouzi"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item strong {
  color: var(--fx-dk-text) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item > span:last-child,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item > span:last-child,
html[data-theme="dark"] html[data-user-panel-theme="fitronix"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item > span:last-child,
html[data-theme="dark"] html[data-user-panel-theme="firouzi"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-card-ref > .fx-hw-foot .fx-hw-foot-item > span:last-child {
  color: var(--fx-dark-text-muted) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout canvas,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--workout canvas,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition canvas,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--nutrition canvas,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep canvas,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--sleep canvas,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery canvas,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-card-ref.fx-hw--recovery canvas,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics--v9 canvas,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-hub-analytics--v9 canvas {
  filter: none !important;
}

/* ═══ برنامه‌ها + دسترسی سریع ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-card:nth-child(1) strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-card:nth-child(1) strong {
  color: var(--fx-dk-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn:hover {
  border-color: var(--fx-dark-border-hover) !important;
  box-shadow: none !important;
  color: var(--fx-dark-text) !important;
}

/* ═══ اشتراک ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-plan,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-plan {
  background: var(--fx-dk-orange-soft) !important;
  border-color: var(--fx-dk-orange-border) !important;
  color: var(--fx-dk-orange) !important;
  border-radius: 999px !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-row span,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-row span {
  color: var(--fx-dark-text-muted) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-row b,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-row b {
  color: var(--fx-dk-text) !important;
}

/* ═══ پیشنهاد ویژه (بنر پایین مرجع) ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-banner,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-banner,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > .fx-promo-banner,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > .fx-promo-banner,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable="fx-promo"] .fx-promo-banner,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable="fx-promo"] .fx-promo-banner {
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255, 109, 0, 0.08), transparent 55%),
    linear-gradient(135deg, #0f1218 0%, var(--fx-dk-card) 100%) !important;
  border: 1px solid var(--fx-dk-border) !important;
  border-radius: var(--fx-dk-radius) !important;
  box-shadow: var(--fx-dk-card-shadow) !important;
  color: var(--fx-dk-text) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-kicker,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-kicker {
  color: var(--fx-dk-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-copy h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-copy h3 {
  color: var(--fx-dk-text) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-copy p,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-copy p {
  color: var(--fx-dark-text-muted) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-cta,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-cta {
  background: var(--fx-dk-gradient-cta) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(255, 109, 0, 0.35);
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-cta:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-cta:hover {
  filter: brightness(1.06);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-promo-banner-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-promo-banner-ico {
  color: var(--fx-dk-orange) !important;
}

/* ═══ دکمه‌ها ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-btn {
  background: var(--fx-dk-gradient-cta) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-btn--ghost,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-btn--ghost {
  background: transparent !important;
  border: 1px solid var(--fx-dk-orange-border) !important;
  color: var(--fx-dk-orange) !important;
  border-radius: 12px !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-chart-empty-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-chart-empty-btn {
  background: var(--fx-dk-gradient-cta) !important;
  border: none !important;
  color: #fff !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .dash-widget-ctrl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .dash-widget-ctrl {
  background: var(--fx-dk-inset) !important;
  border-color: var(--fx-dk-border) !important;
  border-radius: var(--fx-dk-radius-sm) !important;
  box-shadow: var(--fx-dk-card-shadow) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .dash-widget-ctrl-btn:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .dash-widget-ctrl-btn:hover {
  background: var(--fx-dk-orange-soft) !important;
  color: var(--fx-dk-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-customize summary,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-customize summary {
  color: var(--fx-dark-text) !important;
}

/* ═══ دسترسی سریع v6 — پس‌زمینه یکسان، accent فقط روی آیکون ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6 {
  background: var(--fx-dark-inset) !important;
  border: 1px solid var(--fx-dark-border) !important;
  border-radius: var(--fx-dark-radius-sm) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6:hover,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6:active,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6:active {
  background: var(--fx-dark-inset) !important;
  border-color: var(--fx-dark-border-hover) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6 .fx-quick-label,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-btn--v6 .fx-quick-label {
  color: var(--fx-dark-text) !important;
  font-weight: 500 !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6 {
  background: var(--fx-dark-bg) !important;
  border: 1px solid var(--fx-dark-border) !important;
  border-radius: var(--fx-dark-radius-sm) !important;
  box-shadow: none !important;
  color: var(--fx-dark-accent-blue) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-btn--v6:hover .fx-quick-ico--v6,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-btn--v6:hover .fx-quick-ico--v6 {
  transform: none !important;
  box-shadow: none !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--blue,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--blue {
  color: var(--fx-dark-accent-blue) !important;
  background: var(--fx-dark-bg) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--green,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--green {
  color: var(--fx-dark-accent-green) !important;
  background: var(--fx-dark-bg) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--orange,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--orange {
  color: var(--fx-dark-accent-cta) !important;
  background: var(--fx-dark-bg) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--purple,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--purple {
  color: var(--fx-dark-accent-purple) !important;
  background: var(--fx-dark-bg) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--pink,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-quick-card--v6 .fx-quick-ico--v6.fx-quick-ico--pink {
  color: var(--fx-dark-accent-red) !important;
  background: var(--fx-dark-bg) !important;
}

/* ═══ سفارشی‌سازی ویجت ═══ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-customize,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-customize {
  color: var(--fx-dark-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SHELL یکپارچه — سایدبار · هدر · منو · flyout
   (همان زبان بصری Ember Rail + داشبورد)
═══════════════════════════════════════════════════════════ */

/* ─── سایدبار rail ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .sidebar-user-panel,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .sidebar-user-panel {
  background: var(--fx-dark-bg) !important;
  border-inline-start: 1px solid var(--fx-dark-border) !important;
  border-color: var(--fx-dark-border) !important;
  box-shadow: none !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .sidebar-brand,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .sidebar-brand {
  border-bottom-color: var(--fx-uni-border) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-brand-frame,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-brand-frame {
  background: var(--fx-uni-inset) !important;
  border: 1px solid var(--fx-uni-border) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-label,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-label {
  color: var(--fx-uni-text-3) !important;
  letter-spacing: 0.04em;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-group-toggle,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-group-toggle {
  color: var(--fx-uni-text-3) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
  border: 1px solid transparent !important;
  position: relative;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link .ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link .ico {
  opacity: 0.78;
  color: inherit;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link:hover,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-group-toggle:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-group-toggle:hover {
  background: var(--fx-uni-inset) !important;
  border-color: var(--fx-uni-border) !important;
  color: var(--fx-uni-text) !important;
  box-shadow: inset 0 1px 0 var(--fx-uni-border-soft) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link:hover .ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link:hover .ico {
  opacity: 1;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link.active,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link.active,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-group-toggle.active,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-group-toggle.active {
  background: var(--fx-uni-orange-soft) !important;
  border-color: var(--fx-uni-orange-border) !important;
  color: var(--fx-uni-orange) !important;
  box-shadow: inset 0 1px 0 var(--fx-uni-border-soft) !important;
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link.active::before,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link.active::before,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-group-toggle.active::before,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-group-toggle.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--fx-uni-gradient-cta);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link.active .ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link.active .ico {
  opacity: 1;
  color: var(--fx-uni-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link-featured,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link-featured {
  background: var(--fx-uni-orange-soft) !important;
  border-color: var(--fx-uni-orange-border) !important;
  color: color-mix(in srgb, var(--fx-uni-orange) 88%, var(--fx-uni-text)) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-link-featured.active,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-link-featured.active {
  background: color-mix(in srgb, var(--fx-uni-orange) 18%, var(--fx-uni-rail-bg)) !important;
  color: var(--fx-uni-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-sub,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-sub {
  border-inline-start-color: var(--fx-uni-border) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-sub .nav-link,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-sub .nav-link {
  color: var(--fx-uni-text-3) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .nav-sub .nav-link.active,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .nav-sub .nav-link.active {
  background: var(--fx-uni-orange-soft) !important;
  border-color: var(--fx-uni-orange-border) !important;
  color: var(--fx-uni-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .sidebar-user,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .sidebar-user {
  background: var(--fx-uni-card) !important;
  border-top-color: var(--fx-uni-border) !important;
  margin: 8px 10px 10px;
  border-radius: var(--fx-uni-radius-sm) !important;
  border: 1px solid var(--fx-uni-border) !important;
  box-shadow: inset 0 1px 0 var(--fx-uni-border-soft) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user #user-logout-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user #user-logout-btn {
  background: var(--fx-uni-inset) !important;
  border: 1px solid var(--fx-uni-orange-border) !important;
  color: var(--fx-uni-orange) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user #user-logout-btn:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user #user-logout-btn:hover {
  background: var(--fx-uni-orange-soft) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-sidebar-help,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-sidebar-help {
  background: var(--fx-uni-card) !important;
  border: 1px solid var(--fx-uni-border) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
  color: var(--fx-uni-text-2);
  margin-inline: 10px;
  box-shadow: inset 0 1px 0 var(--fx-uni-border-soft) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-sidebar-help-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-sidebar-help-btn {
  background: var(--fx-uni-purple-soft) !important;
  border: 1px solid rgba(124, 77, 255, 0.32) !important;
  color: color-mix(in srgb, var(--fx-uni-purple) 85%, var(--fx-uni-text)) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
  box-shadow: none !important;
}

/* ─── هدر ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .up-header,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .up-header,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .header,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .header {
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--fx-uni-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-header-name,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-header-name,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .up-header-titles h1,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .up-header-titles h1 {
  color: var(--fx-uni-text) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-header-cta,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-header-cta {
  background: var(--fx-uni-gradient-cta) !important;
  color: var(--fx-uni-text) !important;
  border: none !important;
  border-radius: var(--fx-uni-radius-sm) !important;
  box-shadow: none !important;
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-header-icon-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-header-icon-btn,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .panel-ux-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .panel-ux-btn,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .menu-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .menu-btn,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .panel-theme-toggle,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .panel-theme-toggle {
  background: var(--fx-uni-inset) !important;
  border: 1px solid var(--fx-uni-border) !important;
  color: var(--fx-uni-text-2) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
  box-shadow: inset 0 1px 0 var(--fx-uni-border-soft) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .panel-ux-btn.on,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .panel-ux-btn.on {
  background: var(--fx-uni-orange-soft) !important;
  border-color: var(--fx-uni-orange-border) !important;
  color: var(--fx-uni-orange) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .main > .panel-footer,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .main > .panel-footer {
  background: var(--fx-uni-card) !important;
  border-top-color: var(--fx-uni-border) !important;
  color: var(--fx-uni-text-2);
}

/* ─── منوی پایین موبایل ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .up-bottom-nav,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .up-bottom-nav {
  background: color-mix(in srgb, var(--fx-uni-card) 94%, transparent) !important;
  border-top: 1px solid var(--fx-uni-border) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .up-bottom-nav button,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .up-bottom-nav button {
  color: var(--fx-uni-text-3) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .up-bottom-nav button.on,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .up-bottom-nav button.on {
  color: var(--fx-uni-orange) !important;
  background: var(--fx-uni-orange-soft) !important;
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .up-bottom-nav button.up-bn-live,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .up-bottom-nav button.up-bn-live {
  background: var(--fx-uni-gradient-cta) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(255, 109, 0, 0.35) !important;
}

/* ─── flyout منوی جمع‌شده ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub,
html[data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub {
  background: var(--fx-uni-card) !important;
  border: 1px solid var(--fx-uni-border) !important;
  border-radius: var(--fx-uni-radius-sm) !important;
  box-shadow: var(--fx-uni-shadow), inset 0 1px 0 var(--fx-uni-border-soft) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub .nav-link.active,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub .nav-link.active {
  background: var(--fx-uni-orange-soft) !important;
  color: var(--fx-uni-orange) !important;
}

/* ─── اسکرولبار ─── */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user ::-webkit-scrollbar-thumb,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user ::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fx-uni-text-3) 22%, transparent);
  border-radius: 999px;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user ::-webkit-scrollbar-thumb:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user ::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--fx-uni-text-3) 34%, transparent);
}

/* ─── circuit glass هم‌رنگ ─── */
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) {
  --fxu-glass-bg: color-mix(in srgb, var(--fx-uni-card) 94%, transparent);
  --fxu-glass-bg-strong: color-mix(in srgb, var(--fx-uni-card) 98%, transparent);
  --fxu-glass-border: var(--fx-uni-border);
  --fxu-nested-bg: var(--fx-uni-inset);
}

/* ═══ خرید پلن · خلاصه سفارش — لایه نهایی کنتراست ═══ */
html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-summary-card,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-summary-card {
  background: #ffffff !important;
  border: 1px solid #e4e9ef !important;
  color: #263238 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-summary-card .card-head,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-summary-card .card-head {
  border-bottom-color: #e4e9ef !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-summary-card .card-head h3,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-summary-card .card-head h3 {
  color: #263238 !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-summary-card .k,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-summary-card .k,
html[data-user-panel-theme="fitronix"] #view-plan-order .plan-order-summary-item .k,
html[data-user-panel-theme="firouzi"] #view-plan-order .plan-order-summary-item .k,
html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-sum-total .k,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-sum-total .k {
  color: #546e7a !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-summary-card .v,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-summary-card .v,
html[data-user-panel-theme="fitronix"] #view-plan-order .plan-order-summary-item .v,
html[data-user-panel-theme="firouzi"] #view-plan-order .plan-order-summary-item .v {
  color: #263238 !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-summary-hint,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-summary-hint {
  color: #546e7a !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-sum-total,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-sum-total {
  background: rgba(249, 115, 22, 0.1) !important;
}

html[data-user-panel-theme="fitronix"] #view-plan-order .up-po-sum-total .v,
html[data-user-panel-theme="firouzi"] #view-plan-order .up-po-sum-total .v {
  color: #ea580c !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .up-po-summary-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .up-po-summary-card {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%) !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .up-po-summary-card .card-head h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .up-po-summary-card .card-head h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .up-po-summary-card .v,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .up-po-summary-card .v,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .plan-order-summary-item .v,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .plan-order-summary-item .v {
  color: #ffffff !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .up-po-summary-card .k,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .up-po-summary-card .k,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .plan-order-summary-item .k,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .plan-order-summary-item .k,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-plan-order .up-po-summary-hint,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-plan-order .up-po-summary-hint {
  color: rgba(241, 245, 249, 0.78) !important;
}
