/**
 * FitRonix — پنل کاربری · تم تاریک v2
 * توکن‌های پایه: user-panel-dark-tokens.css
 * ─────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════
   1. ALIASهای مکمل (بدون override رنگ پایه)
═══════════════════════════════════════════════════════════ */
html[data-user-panel-theme="fitronix"][data-theme="dark"],
html[data-user-panel-theme="firouzi"][data-theme="dark"] {
  --fx-dark-primary: var(--fx-dark-accent-blue);
  --fx-dark-primary-d: var(--fx-dark-accent-blue);
  --fx-dark-primary-m: var(--fx-dark-accent-blue-muted);
  --fx-dark-accent: var(--fx-dark-accent-cta);
  --fx-dark-accent-m: var(--fx-dark-accent-cta-muted);
  --fx-dark-shadow-lg: none;
  --fx-dark-glow-orange: none;
  --fx-dark-glow-blue: none;
  --fx-dark-radius-card: var(--fx-dark-radius);
  --fx-dark-radius-nav: var(--fx-dark-radius-sm);

  --fx-blue: var(--fx-dark-accent-blue);
  --fx-blue-600: var(--fx-dark-accent-blue);
  --fx-blue-soft: var(--fx-dark-accent-blue-muted);
  --fx-blue-muted: var(--fx-dark-accent-blue-muted);
  --fx-orange: var(--fx-dark-accent-cta);

  --up-surface: var(--fx-dark-card-bg);
  --up-surface-2: var(--fx-dark-card-bg);
  --up-border: var(--fx-dark-border);
  --up-text: var(--fx-dark-text);
  --up-muted: var(--fx-dark-text-muted);
  --up-w: var(--fx-dark-card-bg);
  --up-w-default: var(--fx-dark-card-bg);
  --up-w-greet: var(--fx-dark-card-bg);
  --up-w-kpi-1: var(--fx-dark-card-bg);
  --up-w-kpi-2: var(--fx-dark-card-bg);
  --up-w-kpi-3: var(--fx-dark-card-bg);
  --up-w-kpi-4: var(--fx-dark-card-bg);
  --up-w-programs: var(--fx-dark-card-bg);
  --up-w-quick: var(--fx-dark-card-bg);
  --up-w-calendar: var(--fx-dark-card-bg);
  --up-w-macro: var(--fx-dark-card-bg);
  --up-w-progress: var(--fx-dark-card-bg);
  --up-w-notifs: var(--fx-dark-card-bg);
  --up-w-support: var(--fx-dark-card-bg);
  --up-w-coach: var(--fx-dark-card-bg);
  --up-w-shop-rec: var(--fx-dark-card-bg);
  --up-w-features: var(--fx-dark-card-bg);
  --up-w-faq: var(--fx-dark-card-bg);

  --dw: var(--fx-dark-card-bg);
  --dn: var(--fx-dark-text);
  --ds2: var(--fx-dark-text-muted);
  --ds3: var(--fx-dark-text-muted);
  --g100: var(--fx-dark-bg);
  --g200: var(--fx-dark-border);
  --g300: var(--fx-dark-border);
  --dp: var(--fx-dark-accent-blue);
  --dp-dark: var(--fx-dark-accent-blue);
  --dp-soft: var(--fx-dark-accent-blue-muted);
  --dp-muted: var(--fx-dark-accent-blue-muted);
  --da: var(--fx-dark-accent-cta);
  --da-muted: var(--fx-dark-accent-cta-muted);
  --card-sh: none;
  --card-sh-hover: none;

  --accent-subtle: var(--fx-dark-accent-cta-muted);
  --accent-glow: transparent;
  --surface-1: var(--fx-dark-inset);
  --surface-2: var(--fx-dark-inset);
  --surface-hover: var(--fx-dark-inset);
  --bg: var(--fx-dark-bg);
  --bg-elevated: var(--fx-dark-card-bg);
  --bg-hover: var(--fx-dark-inset);
  --bg-secondary: var(--fx-dark-card-bg);
  --border: var(--fx-dark-border);
  --border-strong: var(--fx-dark-border-hover);
  --accent: var(--fx-dark-accent-cta);
  --accent-muted: var(--fx-dark-accent-cta-muted);
  --fx-border-strong: var(--fx-dark-border-hover);
  --fx-w-accent-blue: var(--fx-dark-accent-blue);
}

/* ═══════════════════════════════════════════════════════════
   2. CANVAS — body · shell · main
═══════════════════════════════════════════════════════════ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] body.user-app,
html[data-user-panel-theme="firouzi"][data-theme="dark"] body.user-app {
  background: var(--fx-dark-canvas) !important;
  color: var(--fx-dark-text);
}

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-canvas);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .main,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .main,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .main:has(#view-dashboard.active),
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .main:has(#view-dashboard.active) {
  background: var(--fx-dark-canvas) !important;
  color: var(--fx-dark-text);
}

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

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-dark-surface) !important;
  border-color: var(--fx-dark-border) !important;
  color: var(--fx-dark-text-2);
}

/* ═══════════════════════════════════════════════════════════
   3. SIDEBAR
═══════════════════════════════════════════════════════════ */
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-sidebar) !important;
  border-color: var(--fx-dark-border) !important;
  box-shadow: none;
}

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-dark-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: color-mix(in srgb, var(--fx-pal-primary) 6%, transparent);
  border-color: var(--fx-dark-border);
}

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-dark-text-3) !important;
}

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-dark-text-3) !important;
  border-radius: var(--fx-dark-radius-nav);
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}

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: .72;
  transition: opacity .18s, color .18s;
}

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-dark-nested) !important;
  color: var(--fx-pal-white) !important;
  border-color: var(--fx-dark-border) !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 {
  background: color-mix(in srgb, var(--fx-pal-accent) 14%, var(--fx-dark-sidebar)) !important;
  color: var(--fx-pal-accent) !important;
  border-color: color-mix(in srgb, var(--fx-pal-accent) 28%, transparent) !important;
  box-shadow: var(--fx-dark-glow-orange);
  font-weight: 600;
}

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-pal-accent);
}

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: color-mix(in srgb, var(--fx-pal-accent) 8%, transparent) !important;
  color: color-mix(in srgb, var(--fx-pal-accent) 85%, var(--fx-pal-white)) !important;
  border-color: color-mix(in srgb, var(--fx-pal-accent) 18%, transparent) !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-pal-accent) 16%, var(--fx-dark-sidebar)) !important;
  color: var(--fx-pal-accent) !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-color: color-mix(in srgb, var(--fx-pal-primary) 15%, transparent) !important;
}

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: color-mix(in srgb, var(--fx-pal-accent) 12%, var(--fx-dark-sidebar)) !important;
  color: var(--fx-pal-accent) !important;
  border-color: color-mix(in srgb, var(--fx-pal-accent) 24%, transparent) !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: color-mix(in srgb, var(--fx-pal-accent) 10%, transparent) !important;
  color: var(--fx-pal-accent) !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 {
  border-top-color: var(--fx-dark-border) !important;
  background: var(--fx-dark-surface) !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-dark-accent-m) !important;
  border-color: color-mix(in srgb, var(--fx-pal-accent) 28%, transparent) !important;
  color: var(--fx-pal-accent) !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: color-mix(in srgb, var(--fx-pal-accent) 22%, transparent) !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: color-mix(in srgb, var(--fx-cat-purple) 12%, var(--fx-dark-sidebar)) !important;
  border-color: color-mix(in srgb, var(--fx-cat-purple) 28%, transparent) !important;
  color: var(--fx-dark-text-2);
  border-radius: var(--fx-dark-radius-nav);
}

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 {
  border-color: color-mix(in srgb, var(--fx-cat-purple) 40%, transparent) !important;
  color: color-mix(in srgb, var(--fx-cat-purple) 80%, var(--fx-pal-white)) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--fx-cat-purple) 18%, transparent);
}

/* ═══════════════════════════════════════════════════════════
   4. HEADER
═══════════════════════════════════════════════════════════ */
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-color: var(--fx-dark-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-dark-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: linear-gradient(180deg, #ff6d00 0%, #e65100 100%) !important;
  color: var(--fx-pal-white) !important;
  box-shadow: 0 4px 20px rgba(255, 109, 0, 0.35);
  border: none;
  border-radius: 12px;
  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"] .panel-ux-btn,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .panel-ux-btn {
  background: var(--fx-dark-overlay) !important;
  border-color: var(--fx-dark-border) !important;
  color: var(--fx-dark-text-2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .panel-ux-btn.on,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .panel-ux-btn.on {
  background: var(--fx-dark-primary-m) !important;
  border-color: color-mix(in srgb, var(--fx-pal-primary) 28%, transparent) !important;
  color: var(--fx-pal-g200) !important;
}

/* ═══════════════════════════════════════════════════════════
   5. CIRCUIT BACKGROUND
═══════════════════════════════════════════════════════════ */
html.fxu-circuit-on[data-user-panel-theme="fitronix"][data-theme="dark"] body.user-app,
html.fxu-circuit-on[data-user-panel-theme="firouzi"][data-theme="dark"] body.user-app {
  background: var(--fx-dark-canvas) !important;
}

html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) {
  --fxu-glass-bg:         color-mix(in srgb, var(--fx-dark-elevated) 94%, transparent);
  --fxu-glass-bg-strong:  color-mix(in srgb, var(--fx-dark-elevated) 98%, transparent);
  --fxu-glass-border:     var(--fx-dark-border);
  --fxu-nested-bg:        var(--fx-dark-nested);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxa-circuit-lines {
  stroke: var(--fx-pal-primary);
  opacity: 0.32;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxa-circuit-node {
  fill: var(--fx-pal-primary);
  opacity: 0.35;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxu-bg-glow {
  background:
    radial-gradient(ellipse 55% 40% at 88% 8%, color-mix(in srgb, var(--fx-pal-primary) 12%, transparent), transparent 58%),
    radial-gradient(ellipse 45% 35% at 12% 92%, color-mix(in srgb, var(--fx-pal-accent) 7%, transparent), transparent 55%);
}

/* ═══════════════════════════════════════════════════════════
   6. DASHBOARD — کارت‌های ویجت
═══════════════════════════════════════════════════════════ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard {
  color: var(--fx-dark-text);
}

/* سطح کارت — همه انواع */
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-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-weekly-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-weekly-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-comp,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-comp,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-card,
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-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-greet-v3.fx-dash-greet,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3.fx-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-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="promo"]),
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="promo"]),
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-standalone,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-score-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-panel-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-weekly-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-body-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-body-comp,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-ops-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-programs-section,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-customize,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-greet-v3.fx-dash-greet,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-greet-v3.up-dash-greet,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="promo"]) {
  background: var(--fx-dark-elevated) !important;
  border-color: var(--fx-dark-border) !important;
  box-shadow: var(--fx-dark-inset) !important;
}

/* نمره کل — حلقه درخشان (mockup) */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-card--total,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-card--total,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-score-card--total {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--fx-pal-primary) 18%, transparent), transparent 65%),
    var(--fx-dark-elevated) !important;
  border-color: color-mix(in srgb, var(--fx-pal-primary) 30%, var(--fx-dark-border)) !important;
  box-shadow: var(--fx-dark-glow-blue), var(--fx-dark-inset) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-card--total .fx-score-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-card--total .fx-score-val {
  color: var(--fx-pal-white) !important;
  font-weight: 800;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-card--total .fx-ring-fg,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-card--total .fx-ring-fg {
  stroke: var(--fx-pal-primary) !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--fx-cat-purple) 45%, var(--fx-pal-primary)));
}

/* خوش‌آمدگویی */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3 .up-dash-greet-name-row h2,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3 .up-dash-greet-name-row h2 {
  color: var(--fx-dark-text) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3 .up-dash-greet-sub,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3 .up-dash-greet-sub,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3 .fx-greet-expiry,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3 .fx-greet-expiry {
  color: var(--fx-dark-text-2) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3 .fx-greet-date,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3 .fx-greet-date,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3 .up-dash-pill--date {
  background: var(--fx-dark-nested) !important;
  border-color: var(--fx-dark-border) !important;
  color: var(--fx-dark-text-2) !important;
}

/* خوش‌آمدگویی — کارت hero */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3.fx-dash-greet,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-v3.fx-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 {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, color-mix(in srgb, var(--fx-pal-primary) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, color-mix(in srgb, var(--fx-pal-accent) 6%, transparent), transparent 50%),
    var(--fx-dark-elevated) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-v3 .up-dash-greet-avatar {
  border: 2px solid color-mix(in srgb, var(--fx-pal-white) 20%, transparent) !important;
  background: var(--fx-dark-overlay) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-pal-primary) 12%, transparent);
}

/* عناوین ویجت */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-card-head h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-card-head h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-widget-head h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-widget-head h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-panel-head h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-panel-head h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-head h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-head h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-programs-section h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-programs-section h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-weekly-head h3,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-weekly-head h3,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-head-main span,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-head-main span {
  color: var(--fx-dark-text) !important;
}

/* مقادیر */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-val,
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-streak-days,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-streak-days,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-seg .val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-seg .val,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-ring-center strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-ring-center strong,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-stat .val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-stat .val,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-card h4,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-card h4 {
  color: var(--fx-dark-text) !important;
}

/* برچسب‌ها */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-lbl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-lbl,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-foot-item > span:last-child,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-foot-item > span:last-child,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-streak-label,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-streak-label,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-seg .lbl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-seg .lbl,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-text,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-text,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-stat .lbl,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-stat .lbl,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-program-card p,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-program-card p {
  color: var(--fx-dark-text-3) !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-hw-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-widget-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-widget-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-panel-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-panel-head,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-programs-head,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-programs-head {
  border-bottom-color: var(--fx-dark-border) !important;
}

/* آیکون‌ها */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-widget-head-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-widget-head-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-programs-head-ico,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-programs-head-ico {
  background: var(--fx-dark-primary-m) !important;
  color: var(--fx-pal-primary) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-streak-flame,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-streak-flame,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-widget-head-ico--sub,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-widget-head-ico--sub {
  background: var(--fx-dark-accent-m) !important;
  color: var(--fx-pal-accent) !important;
}

/* عناصر تو در تو */
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-ops-tile,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-tile,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-seg,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-seg,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-stat,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-stat,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-greet-tasks,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-greet-tasks,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-workout-kpi,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-workout-kpi,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-nutrition-pills li,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-nutrition-pills li,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-stats--pair li,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-stats--pair li,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-macro,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-macro,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-recovery-tile,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-recovery-tile,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sleep-metric,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sleep-metric,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-monitor-row,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-monitor-row,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-foot,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-foot,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-program-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-quick-btn,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-ops-tile,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-body-seg,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-greet-stat,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-greet-tasks,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-workout-kpi,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-foot {
  background: var(--fx-dark-nested) !important;
  border-color: var(--fx-dark-border) !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 {
  background: var(--fx-dark-primary-m) !important;
  border-color: color-mix(in srgb, var(--fx-pal-primary) 25%, transparent) !important;
  color: var(--fx-pal-g200) !important;
}

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

/* حلقه پیشرفت */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-ring .fx-ring-bg,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-ring .fx-ring-bg {
  stroke: color-mix(in srgb, var(--fx-pal-g200) 8%, transparent) !important;
}

/* streak */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-streak-dot,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-streak-dot {
  background: var(--fx-dark-nested) !important;
  border-color: var(--fx-dark-border) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-streak-dot.done,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-streak-dot.done {
  background: var(--fx-dark-primary) !important;
  border-color: transparent !important;
}

/* badge و وضعیت */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-badge,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-badge {
  background: var(--fx-dark-primary-m) !important;
  color: var(--fx-pal-g200) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-status,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-status {
  color: var(--fx-pal-primary) !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,
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-dark-primary-m) !important;
  color: var(--fx-pal-g200) !important;
  border-color: color-mix(in srgb, var(--fx-pal-primary) 25%, transparent) !important;
}

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: var(--fx-dark-nested) !important;
  color: var(--fx-dark-text-2) !important;
  border-color: var(--fx-dark-border) !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"] > [data-dash-sort-key="promo"],
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-promo-banner {
  background: linear-gradient(135deg, var(--fx-pal-navy) 0%, color-mix(in srgb, var(--fx-pal-primary) 28%, var(--fx-pal-navy)) 45%, color-mix(in srgb, var(--fx-pal-primary) 38%, var(--fx-pal-navy)) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--fx-pal-primary) 28%, transparent) !important;
  box-shadow: var(--fx-dark-shadow-lg), var(--fx-dark-inset) !important;
  color: var(--fx-pal-white) !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-pal-white) !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: color-mix(in srgb, var(--fx-pal-white) 78%, transparent) !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: color-mix(in srgb, var(--fx-pal-white) 12%, transparent) !important;
  color: var(--fx-pal-white) !important;
  border: 1px solid color-mix(in srgb, var(--fx-pal-white) 18%, transparent) !important;
}

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 {
  background: color-mix(in srgb, var(--fx-pal-white) 20%, transparent) !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 {
  border-color: var(--fx-dark-border) !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;
}

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

/* لینک‌ها */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-panel-head a,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-panel-head a {
  color: var(--fx-pal-primary) !important;
}

/* hover کارت */
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-score-card:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-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 {
  border-color: color-mix(in srgb, var(--fx-pal-primary) 22%, transparent) !important;
  box-shadow: var(--fx-dark-shadow-lg), var(--fx-dark-inset) !important;
}

/* ═══════════════════════════════════════════════════════════
   7. سایر صفحات پنل (view ها)
═══════════════════════════════════════════════════════════ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .view .card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .view .card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .up-w,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .up-w,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-profile-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-profile-card {
  background: var(--fx-dark-elevated) !important;
  border-color: var(--fx-dark-border) !important;
  color: var(--fx-dark-text);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user input,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user input,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user select,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user select,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user textarea,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user textarea {
  background: var(--fx-dark-overlay) !important;
  border-color: var(--fx-dark-border) !important;
  color: var(--fx-dark-text) !important;
}

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

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .btn-primary,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .btn-primary {
  background: var(--fx-pal-primary) !important;
  border-color: transparent !important;
  color: var(--fx-pal-white) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .btn-ghost,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .btn-ghost {
  background: var(--fx-dark-nested) !important;
  border-color: var(--fx-dark-border) !important;
  color: var(--fx-dark-text-2) !important;
}

/* flyout منوی جمع‌شده */
html[data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub {
  background: var(--fx-dark-elevated) !important;
  border-color: var(--fx-dark-border) !important;
  box-shadow: var(--fx-dark-shadow-lg) !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-pal-g300) 18%, transparent);
}

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-pal-g300) 28%, transparent);
}

/* ═══════════════════════════════════════════════════════════
   8. صفحات تمرین · تغذیه · لینک‌ها · circuit-glass
═══════════════════════════════════════════════════════════ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-workout .wpv2,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-workout .wpv2 {
  --wpv2-accent: var(--fx-pal-primary);
  --wpv2-surface: var(--fx-dark-elevated);
  --wpv2-surface-2: var(--fx-dark-nested);
  --wpv2-border: var(--fx-dark-border);
  --wpv2-text: var(--fx-pal-g100);
  --wpv2-muted: var(--fx-pal-g300);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-nutrition .npv2,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-nutrition .npv2 {
  --npv2-accent: var(--fx-pal-accent);
  --npv2-surface: var(--fx-dark-elevated);
  --npv2-surface-2: var(--fx-dark-nested);
  --npv2-border: var(--fx-dark-border);
  --npv2-text: var(--fx-pal-g100);
  --npv2-muted: var(--fx-pal-g300);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user a:not(.btn):not(.nav-link),
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user a:not(.btn):not(.nav-link) {
  color: var(--fx-pal-primary);
}

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

/* circuit-glass — override نهایی با پالت رسمی */
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-standalone,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-score-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-panel-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-weekly-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-body-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-body-comp,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-ops-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-programs-section,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-customize,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-greet-v3.fx-dash-greet,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-greet-v3.up-dash-greet,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="promo"]) {
  background: var(--fx-dark-elevated) !important;
  border-color: var(--fx-dark-border) !important;
  box-shadow: var(--fx-dark-inset) !important;
}

html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) .main > .header {
  background: var(--header-bg) !important;
  border-color: var(--fx-dark-border) !important;
}

html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-promo-banner,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key="promo"] {
  background: linear-gradient(135deg, var(--fx-pal-navy) 0%, color-mix(in srgb, var(--fx-pal-primary) 28%, var(--fx-pal-navy)) 50%, color-mix(in srgb, var(--fx-pal-primary) 38%, var(--fx-pal-navy)) 100%) !important;
  border-color: color-mix(in srgb, var(--fx-pal-primary) 28%, transparent) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxa-circuit-lines,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxa-circuit-lines {
  stroke: var(--fx-pal-primary);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxa-circuit-node,
html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fxu-circuit-bg .fxa-circuit-node {
  fill: var(--fx-pal-primary);
}

/* ═══════════════════════════════════════════════════════════
   9. PREMIUM MOCK — ویجت‌ها · hover · دسته‌بندی رنگ
   (فقط استایل — چیدمان بدون تغییر)
═══════════════════════════════════════════════════════════ */

/* کارت‌های داشبورد — flat premium */
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-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-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-weekly-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-weekly-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-body-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-body-card,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-ops-card,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-ops-card,
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 {
  border-radius: var(--fx-dark-radius-card) !important;
  border: 1px solid var(--fx-dark-border) !important;
  box-shadow: var(--fx-dark-inset) !important;
  transition: border-color .2s, box-shadow .2s;
}

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-score-card:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-card:hover {
  border-color: var(--fx-dark-border-s) !important;
  box-shadow: var(--card-sh-hover), var(--fx-dark-inset) !important;
}

/* آیکون‌های دسته‌بندی‌شده */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--workout .fx-hw-ico {
  background: color-mix(in srgb, var(--fx-pal-accent) 14%, transparent) !important;
  color: var(--fx-pal-accent) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--nutrition .fx-hw-ico {
  background: color-mix(in srgb, var(--fx-cat-green) 14%, transparent) !important;
  color: var(--fx-cat-green) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--sleep .fx-hw-ico,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--monitor .fx-hw-ico {
  background: color-mix(in srgb, var(--fx-pal-primary) 14%, transparent) !important;
  color: var(--fx-pal-primary) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--recovery .fx-hw-ico {
  background: color-mix(in srgb, var(--fx-cat-purple) 14%, transparent) !important;
  color: var(--fx-cat-purple) !important;
}

/* حلقه پیشرفت — رنگ دسته */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--workout .fx-ring-fg {
  stroke: var(--fx-pal-accent) !important;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--fx-pal-accent) 40%, transparent));
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--nutrition .fx-ring-fg {
  stroke: var(--fx-cat-green) !important;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--fx-cat-green) 40%, transparent));
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--sleep .fx-ring-fg {
  stroke: var(--fx-pal-primary) !important;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--fx-pal-primary) 40%, transparent));
}

/* نوار پیشرفت */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-macro-bar i,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-ready-track span {
  background: linear-gradient(90deg, var(--fx-cat-green), color-mix(in srgb, var(--fx-cat-green) 70%, var(--fx-pal-primary))) !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw--workout .fx-hw-macro-bar i {
  background: linear-gradient(90deg, var(--fx-pal-accent), #fb923c) !important;
}

/* مقادیر بزرگ — سفید درخشان */
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-score-val,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-score-val,
html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-hw-ring-center strong,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-hw-ring-center strong {
  color: var(--fx-pal-white) !important;
  font-weight: 800;
}

/* بنر promo — mockup */
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"] > [data-dash-sort-key="promo"] {
  background:
    radial-gradient(ellipse 40% 80% at 15% 50%, color-mix(in srgb, var(--fx-pal-primary) 12%, transparent), transparent 60%),
    linear-gradient(135deg, #0a1020 0%, color-mix(in srgb, var(--fx-pal-primary) 22%, #0a1020) 55%, #121830 100%) !important;
  border: 1px solid color-mix(in srgb, var(--fx-pal-primary) 25%, transparent) !important;
  border-radius: var(--fx-dark-radius-card) !important;
  box-shadow: var(--fx-dark-inset) !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: linear-gradient(135deg, #ea580c, var(--fx-pal-accent)) !important;
  border: none !important;
  box-shadow: var(--fx-dark-glow-orange);
  font-weight: 600;
}

/* دکمه‌های ghost/outline */
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: transparent !important;
  border: 1px solid color-mix(in srgb, var(--fx-pal-primary) 35%, transparent) !important;
  color: var(--fx-pal-g200) !important;
  border-radius: 10px;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] #view-dashboard .fx-sub-btn:hover,
html[data-user-panel-theme="firouzi"][data-theme="dark"] #view-dashboard .fx-sub-btn:hover {
  background: color-mix(in srgb, var(--fx-pal-primary) 10%, transparent) !important;
  border-color: color-mix(in srgb, var(--fx-pal-primary) 50%, transparent) !important;
}

/* flyout منو — آیتم فعال نارنجی */
html[data-theme="dark"] .nav-group.is-collapsed-flyout .nav-sub .nav-link.active {
  background: color-mix(in srgb, var(--fx-pal-accent) 14%, var(--fx-dark-elevated)) !important;
  color: var(--fx-pal-accent) !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: transparent !important;
  border-bottom: 1px solid var(--fx-dark-border) !important;
  backdrop-filter: blur(12px);
}

/* circuit-glass override نهایی */
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-hw-standalone,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-score-card,
html[data-theme="dark"] .shell-user:has(.fxu-circuit-bg) #view-dashboard .fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([data-dash-sort-key="promo"]) {
  background: var(--fx-dark-elevated) !important;
  border: 1px solid var(--fx-dark-border) !important;
  box-shadow: var(--fx-dark-inset) !important;
}
