/**
 * FitRoniX — تم پنل کاربری (Safarnameh · روشن و مینیمال)
 */

html[data-user-panel-theme="fitronix"], html[data-user-panel-theme="firouzi"] { color-scheme: light; }
html[data-user-panel-theme="fitronix"][data-theme="dark"], html[data-user-panel-theme="firouzi"][data-theme="dark"] { color-scheme: dark; }

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

html[data-user-panel-theme="fitronix"][data-theme="dark"] body.user-app, html[data-user-panel-theme="firouzi"][data-theme="dark"] body.user-app,
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:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 255, 255, 0.03), transparent 55%),
    var(--fx-bg) !important;
}

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

.user-app {
  --fx-blue: #26a69a;
  --fx-blue-600: #00897b;
  --fx-blue-soft: #e0f2f1;
  --fx-blue-muted: rgba(38, 166, 154, 0.14);
  --fx-orange: #ff8f00;
  --fx-orange-hover: #ef6c00;
  --fx-green: #26a69a;
  --fx-green-soft: #e0f2f1;
  --fx-purple: #7c3aed;
  --fx-bg: #eef1f5;
  --fx-surface: #ffffff;
  --fx-border: #e4e9ef;
  --fx-border-strong: #cfd8dc;
  --fx-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
  --fx-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);
  --fx-radius: 16px;
  --fx-radius-lg: 18px;
  --fx-radius-xl: 20px;
  --fx-layout-max: none;
  --fx-content-pad-x: clamp(16px, 2vw, 28px);
  font-family: Shabnam, system-ui, sans-serif;
}

/* پالت تم — آبی اکسنت اصلی، روی تم پایه admin می‌نشیند */
html[data-user-panel-theme="fitronix"] .user-app, html[data-user-panel-theme="firouzi"] .user-app,
html[data-user-panel-theme="fitronix"].user-app, html[data-user-panel-theme="firouzi"].user-app,
html[data-user-panel-theme="fitronix"], html[data-user-panel-theme="firouzi"] {
  --bg: #eef1f5;
  --bg-elevated: #ffffff;
  --bg-hover: #e8eef2;
  --bg-secondary: #e4e9ef;
  --border: #e4e9ef;
  --border-strong: #cfd8dc;
  --text: #263238;
  --text-secondary: #546e7a;
  --text-tertiary: #90a4ae;
  --accent: #26a69a;
  --accent-2: #26a69a;
  --accent-muted: rgba(38, 166, 154, 0.12);
  --accent-subtle: rgba(38, 166, 154, 0.06);
  --accent-glow: rgba(38, 166, 154, 0.22);
  --header-bg: #ffffff;
  --up-surface: #ffffff;
  --up-surface-2: #f5f8fa;
  --up-border: #e4e9ef;
  --up-text: #263238;
  --up-muted: #90a4ae;
  --up-radius: 16px;
  --up-radius-lg: 18px;
  --up-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.08);
  --card-bg: #ffffff;
  --surface-1: rgba(38, 166, 154, 0.04);
  --surface-2: rgba(38, 166, 154, 0.07);
  --surface-hover: rgba(38, 166, 154, 0.05);
  --up-w: #ffffff;
  --up-w-default: #ffffff;
  --up-w-greet: linear-gradient(145deg, #e0f2f1 0%, #ffffff 55%);
  --up-w-kpi-1: #ffffff;
  --up-w-kpi-2: #ffffff;
  --up-w-kpi-3: #ffffff;
  --up-w-kpi-4: #ffffff;
  --up-w-programs: #ffffff;
  --up-w-quick: #ffffff;
  --up-w-calendar: #ffffff;
  --up-w-macro: #ffffff;
  --up-w-progress: #ffffff;
  --up-w-notifs: #ffffff;
  --up-w-support: #ffffff;
  --up-w-coach: #ffffff;
  --up-w-shop-rec: #ffffff;
  --up-w-features: #ffffff;
  --up-w-faq: #ffffff;
  --bg-sidebar: #ffffff;
  color-scheme: light;
}

/* fitronix · مدیریتی — اکسنت نارنجی هم‌سبک پنل ادمین */
html[data-user-panel-theme="fitronix"],
html[data-user-panel-theme="fitronix"] .user-app,
html[data-user-panel-theme="fitronix"].user-app {
  --accent: #f97316;
  --accent-2: #ea580c;
  --accent-muted: rgba(249, 115, 22, 0.14);
  --accent-subtle: rgba(249, 115, 22, 0.08);
  --accent-glow: rgba(249, 115, 22, 0.28);
  --fx-blue: #f97316;
  --fx-blue-600: #ea580c;
  --fx-blue-soft: rgba(249, 115, 22, 0.12);
  --fx-blue-muted: rgba(249, 115, 22, 0.18);
}

/* ═══════════════════ حالت تاریک زغالی ═══════════════════ */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .user-app, html[data-user-panel-theme="firouzi"][data-theme="dark"] .user-app,
html[data-user-panel-theme="fitronix"][data-theme="dark"].user-app, html[data-user-panel-theme="firouzi"][data-theme="dark"].user-app,
html[data-user-panel-theme="fitronix"][data-theme="dark"], html[data-user-panel-theme="firouzi"][data-theme="dark"] {
  --fx-bg: #121212;
  --fx-surface: #1c1c1c;
  --fx-border: #2e2e2e;
  --fx-border-strong: #3a3a3a;
  --fx-blue-soft: rgba(59, 130, 246, 0.14);
  --fx-blue-muted: rgba(59, 130, 246, 0.2);
  --fx-green-soft: rgba(5, 150, 105, 0.14);
  --bg: #121212;
  --bg-elevated: #1c1c1c;
  --bg-hover: #252525;
  --bg-secondary: #181818;
  --border: #2e2e2e;
  --border-strong: #3a3a3a;
  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --accent-muted: rgba(59, 130, 246, 0.16);
  --accent-subtle: rgba(59, 130, 246, 0.1);
  --accent-glow: rgba(59, 130, 246, 0.28);
  --header-bg: rgba(28, 28, 28, 0.92);
  --up-surface: #1c1c1c;
  --up-surface-2: #181818;
  --up-border: #2e2e2e;
  --up-text: #f5f5f5;
  --up-muted: #737373;
  --card-bg: #1c1c1c;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --up-w: #1c1c1c;
  --up-w-default: #1c1c1c;
  --up-w-greet: linear-gradient(145deg, #222 0%, #1c1c1c 60%);
  --up-w-kpi-1: #1c1c1c;
  --up-w-kpi-2: #1c1c1c;
  --up-w-kpi-3: #1c1c1c;
  --up-w-kpi-4: #1c1c1c;
  --up-w-programs: #1c1c1c;
  --up-w-quick: #1c1c1c;
  --up-w-calendar: #1c1c1c;
  --up-w-macro: #1c1c1c;
  --up-w-progress: #1c1c1c;
  --up-w-notifs: #1c1c1c;
  --up-w-support: #1c1c1c;
  --up-w-coach: #1c1c1c;
  --up-w-shop-rec: #1c1c1c;
  --up-w-features: #1c1c1c;
  --up-w-faq: #1c1c1c;
  --bg-sidebar: #1c1c1c;
  --fx-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"],
html[data-user-panel-theme="fitronix"][data-theme="dark"] .user-app,
html[data-user-panel-theme="fitronix"][data-theme="dark"].user-app {
  --accent: #fb923c;
  --accent-2: #f97316;
  --accent-muted: rgba(251, 146, 60, 0.18);
  --accent-subtle: rgba(251, 146, 60, 0.1);
  --accent-glow: rgba(251, 146, 60, 0.32);
  --fx-blue: #fb923c;
  --fx-blue-600: #f97316;
  --fx-blue-soft: rgba(251, 146, 60, 0.14);
  --fx-blue-muted: rgba(251, 146, 60, 0.22);
}

/* ریزتنظیم‌های حالت تاریک */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-water-cup, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-water-cup{ border-color: #3a3a3a; }
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{
  border-color: var(--fx-border);
  background: rgba(255, 255, 255, 0.04);
}
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-customize-chip.is-on::before, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-customize-chip.is-on::before{ box-shadow: inset 0 0 0 2px var(--fx-surface); }
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-nav-logout:hover, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-nav-logout:hover{ background: rgba(220, 38, 38, 0.12); }

/* ویجت‌های داشبورد — تم تاریک */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-streak-card, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-streak-card{
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.14) 0%, var(--sf-card, #1a2229) 58%) !important;
  border: none !important;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-streak-dot, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-streak-dot{
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-tertiary);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-streak-dot.today, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-streak-dot.today{
  box-shadow: 0 0 0 2px var(--fx-surface), 0 0 0 3.5px #4db6ac;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-streak-dot.on, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-streak-dot.on{
  background: linear-gradient(160deg, #4db6ac, #26a69a) !important;
  color: #fff;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-level-bar, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-level-bar{
  background: rgba(77, 182, 172, 0.18);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-weekly-summary, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-weekly-summary{
  background: rgba(77, 182, 172, 0.08);
  border-color: rgba(77, 182, 172, 0.18);
}

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

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-weekly-summary li, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-weekly-summary li{
  color: var(--text-secondary);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-weekly-chart, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-weekly-chart{
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--fx-radius);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-btn-outline, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-btn-outline{
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--fx-border-strong);
  color: var(--text-secondary);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-btn-outline:hover, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-btn-outline:hover{
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

/* ویجت‌های سلامت — تم تاریک (تمرین · تغذیه · خواب) */
html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-foot, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-foot,
html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-foot--macros, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-foot--macros{
  background: rgba(255, 255, 255, 0.04);
  border-top-color: var(--fx-border);
}

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

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-foot-item > span:last-child, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-foot-item > span:last-child{
  color: var(--text-tertiary);
}

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

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

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-macro-bar, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-macro-bar{
  background: rgba(255, 255, 255, 0.08);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-ring .fx-ring-bg, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-ring .fx-ring-bg{
  stroke: #2e2e2e;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-stat-ico, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-stat-ico{
  background: rgba(255, 255, 255, 0.06);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-stats--pair li, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-stats--pair li{
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-hw-sleep-empty p, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-hw-sleep-empty p{
  color: var(--text-secondary);
}

/* فونت — دکمه/ورودی‌ها فونت را از body ارث نمی‌برند؛ صریح ست می‌کنیم */
html[data-user-panel-theme="fitronix"] .shell-user button, html[data-user-panel-theme="firouzi"] .shell-user button,
html[data-user-panel-theme="fitronix"] .shell-user input, html[data-user-panel-theme="firouzi"] .shell-user input,
html[data-user-panel-theme="fitronix"] .shell-user select, html[data-user-panel-theme="firouzi"] .shell-user select,
html[data-user-panel-theme="fitronix"] .shell-user textarea, html[data-user-panel-theme="firouzi"] .shell-user textarea,
html[data-user-panel-theme="fitronix"] .shell-user .btn, html[data-user-panel-theme="firouzi"] .shell-user .btn,
html[data-user-panel-theme="fitronix"] .fx-header-cta, html[data-user-panel-theme="firouzi"] .fx-header-cta,
html[data-user-panel-theme="fitronix"] .fx-promo-cta, html[data-user-panel-theme="firouzi"] .fx-promo-cta{
  font-family: Shabnam, system-ui, sans-serif;
}

/* ─── Shell ─── */
.shell-user {
  --sidebar-w: 272px;
  --fx-panel-gap: 18px;
  height: 100dvh;
  overflow: hidden;
  background: var(--fx-bg);
}

.shell-user .main {
  flex: 1 1 auto;
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100vw - var(--sidebar-w));
  min-width: 0;
  min-height: 0;
  margin-right: var(--sidebar-w);
  margin-left: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: clip;
  scrollbar-gutter: stable;
  background: var(--fx-bg);
  padding: var(--fx-panel-gap);
  padding-inline-start: 0;
  padding-inline-end: calc(var(--fx-panel-gap) + 2px);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  direction: ltr;
  display: flex;
  flex-direction: column;
  gap: var(--fx-panel-gap);
}

.shell-user .main > .header,
.shell-user .main > .content {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  direction: rtl;
}

.shell-user .main > .header {
  flex-shrink: 0;
  background: var(--fx-surface);
  border: none;
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
  padding-inline: clamp(16px, 1.8vw, 24px);
}

.shell-user .main > .content {
  flex: 1 0 auto;
  min-height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.shell-user .content {
  padding: 0 0 40px;
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
  overflow-x: clip;
}

/* ─── Sidebar ─── */
.shell-user .sidebar-user-panel {
  background: var(--fx-surface);
  border-left: none;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.04);
}

.shell-user .sidebar-brand {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  height: auto !important;
  min-height: 0;
  padding: 12px 10px 10px;
  border-bottom: 1px solid var(--fx-border);
  text-align: center;
  position: relative;
  z-index: 3;
}

.shell-user .fx-brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 12px rgba(38, 166, 154, 0.22));
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.shell-user .fx-brand-mark-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* حذف قطعی آیکون/نام برند قدیمی که تم admin با hidden نمایش می‌داد */
.shell-user .sidebar-brand .up-brand-mark,
.shell-user .sidebar-brand .brand-mark,
.shell-user .sidebar-brand .brand-name,
.shell-user .sidebar-brand [hidden] {
  display: none !important;
}

.shell-user .fx-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shell-user .fx-brand-logo--v2 {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
}

.shell-user .fx-brand-frame {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid var(--fx-border);
  background: linear-gradient(145deg, rgba(38, 166, 154, 0.07), rgba(255, 255, 255, 0.92));
  box-shadow: 0 4px 18px rgba(38, 166, 154, 0.08);
  margin-bottom: 0;
}

.shell-user .fx-brand-tagline {
  margin: 8px 0 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.shell-user .fx-brand-tagline:empty,
.shell-user .fx-brand-tagline[hidden] {
  display: none;
}

.shell-user .sidebar-scroll { padding: 8px 12px 10px; }

.shell-user .fx-brand-word {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--text);
}

.shell-user .fx-brand-word::first-letter {
  color: var(--fx-teal, #26a69a);
}

.shell-user .fx-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shell-user .fx-sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: right;
  transition: background 0.15s, color 0.15s;
}

.shell-user .fx-sidebar-nav .nav-link .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0.75;
}

.shell-user .fx-sidebar-nav .nav-link .ico::before {
  font-size: 15px !important;
  color: inherit !important;
}

.shell-user .fx-sidebar-nav .nav-link:hover {
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}

.shell-user .fx-sidebar-nav .nav-link.active {
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
  font-weight: 600;
}

.shell-user .fx-sidebar-nav .nav-link.active::before { display: none; }

.shell-user .fx-nav-logout { margin-top: 6px; color: #dc2626; }
.shell-user .fx-nav-logout:hover { background: #fef2f2; color: #dc2626; }
.shell-user .fx-nav-logout .ico::before { content: '↪'; }

.shell-user .fx-sidebar-nav .nav-link[data-view="support-live"] .ico::before { content: '💬'; }
.shell-user .fx-sidebar-nav .nav-link[data-view="subscription"] .ico::before { content: '₮'; }
.shell-user .fx-sidebar-nav .nav-link[data-view="panel-settings"] .ico::before,
.shell-user .fx-sidebar-nav .nav-link[data-view="privacy"] .ico::before { content: '⚙'; }

.shell-user .sidebar-user {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--fx-border);
}

.shell-user .sidebar-user > #user-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.shell-user .sidebar-user > #user-logout-btn:hover { background: #fef2f2; border-color: #fecaca; }

.shell-user .fx-sidebar-help {
  padding: 14px;
  border-radius: var(--fx-radius);
  background: var(--fx-blue-soft);
  border: 1px solid rgba(38, 166, 154, 0.18);
}

.shell-user .fx-sidebar-help p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.shell-user .fx-sidebar-help .btn {
  width: 100%;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 10px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  color: var(--fx-blue);
  font-size: 12px;
}

.shell-user .fx-sidebar-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shell-user .fx-sidebar-help-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.88;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5a9 9 0 0 1 18 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5a9 9 0 0 1 18 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ═══════════ منوی کامل سایدبار (همه امکانات · چیدمان بر اساس اولویت) ═══════════ */
.shell-user .fx-sidebar-nav { display: none !important; }
.shell-user .fx-sidebar-full {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shell-user .fx-sidebar-full .nav-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  padding: 13px 12px 5px;
}

.shell-user .fx-sidebar-full .nav-link,
.shell-user .fx-sidebar-full .nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: right;
  transition: background 0.15s, color 0.15s;
}

.shell-user .fx-sidebar-full .nav-group-toggle {
  font-weight: 700;
  color: var(--text);
}

.shell-user .fx-sidebar-full .nav-link:hover,
.shell-user .fx-sidebar-full .nav-group-toggle:hover {
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}

.shell-user .fx-sidebar-full .nav-link.active {
  background: var(--fx-blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(38, 166, 154, 0.28);
}
.shell-user .fx-sidebar-full .nav-link.active .ico { opacity: 1; }

/* آیکون‌ها — خطی، مدرن و مینیمال (SVG mask) */
.shell-user .fx-sidebar-full .ico {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
  position: relative;
  width: 18px !important;
  height: 18px !important;
  min-width: 0 !important;
  flex-shrink: 0;
  display: inline-block !important;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 7px;
  opacity: 0.72;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.15s ease;
  background: currentColor !important;
  background-color: currentColor !important;
  -webkit-mask: var(--i) center / 78% no-repeat;
  mask: var(--i) center / 78% no-repeat;
}
.shell-user .fx-sidebar-full .ico::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: transparent;
  z-index: -1;
  transition: background 0.15s ease;
}
.shell-user .fx-sidebar-full .nav-link:hover .ico,
.shell-user .fx-sidebar-full .nav-group-toggle:hover .ico {
  opacity: 0.95;
}
.shell-user .fx-sidebar-full .nav-link:hover .ico::after,
.shell-user .fx-sidebar-full .nav-group-toggle:hover .ico::after {
  background: rgba(38, 166, 154, 0.1);
}
.shell-user .fx-sidebar-full .nav-link.active .ico {
  opacity: 1;
}
.shell-user .fx-sidebar-full .nav-link.active .ico::after {
  background: rgba(255, 255, 255, 0.16);
}
.shell-user .fx-sidebar-full .nav-link-featured.active .ico::after {
  background: rgba(255, 255, 255, 0.2);
}
/* زیرمنو — کوچک‌تر برای سلسله‌مراتب */
.shell-user .fx-sidebar-full .nav-sub .nav-link .ico {
  width: 16px !important;
  height: 16px !important;
  padding: 2px;
  opacity: 0.66;
  -webkit-mask-size: 76%;
  mask-size: 76%;
}
.shell-user .fx-sidebar-full .ico::before { content: none !important; }

/* چِورِن گروه */
.shell-user .fx-sidebar-full .nav-chevron {
  margin-inline-start: auto;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  opacity: 0.45;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.shell-user .fx-sidebar-full .nav-chevron::before { content: none !important; }
.shell-user .fx-sidebar-full .nav-group.open > .nav-group-toggle .nav-chevron { transform: rotate(180deg); opacity: 0.7; }

/* زیرمنو */
.shell-user .fx-sidebar-full .nav-sub {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin: 1px 8px 4px;
  padding-inline-start: 12px;
  border-inline-start: 1.5px solid var(--fx-border);
}
.shell-user .fx-sidebar-full .nav-group.open > .nav-sub { display: flex; }
.shell-user .fx-sidebar-full .nav-sub .nav-link {
  font-size: 12.5px;
  padding: 8px 10px;
  gap: 8px;
}
.shell-user .fx-sidebar-full .nav-sub .ico { width: 16px; height: 16px; }
.shell-user .fx-sidebar-full .nav-sub .ico::before { font-size: 13px; }

/* آیتم ویژه */
.shell-user .fx-sidebar-full .nav-link-featured { color: var(--fx-orange); font-weight: 700; }
.shell-user .fx-sidebar-full .nav-link-featured:hover { background: #fff7ed; color: var(--fx-orange-hover); }
.shell-user .fx-sidebar-full .nav-link-featured.active { background: var(--fx-orange); color: #fff; box-shadow: 0 4px 12px rgba(242, 101, 34, 0.28); }

/* شمارنده */
.shell-user .fx-sidebar-full .cnt {
  margin-inline-start: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  background: var(--fx-orange);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.shell-user .fx-sidebar-full .nav-link.active .cnt { background: rgba(255, 255, 255, 0.3); }

/* جداکننده گروه‌ها */
.shell-user .fx-sidebar-full .admin-nav-divider {
  height: 1px;
  margin: 9px 12px;
  background: var(--fx-border);
  border: none;
}
.shell-user .fx-sidebar-full .admin-nav-divider::after { display: none; }

/* آیکون‌های منو بر اساس مقصد — Lucide خطی */
.shell-user .fx-sidebar-full .nav-link[data-view="dashboard"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="my-profile"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="today"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="live-workout"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='10 8 16 12 10 16 10 8'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="workout-hub"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6v12'/%3E%3Cpath d='M4 8v8'/%3E%3Cpath d='M18 6v12'/%3E%3Cpath d='M20 8v8'/%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="nutrition-hub"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06z'/%3E%3Cpath d='M10 2c1 .5 2 2 2 5'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="workout"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="exercises"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8Z'/%3E%3Crect width='14' height='12' x='2' y='6' rx='2'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="progress"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="nutrition"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7c0 1.1.9 2 2 2a2 2 0 0 0 2-2V2'/%3E%3Cpath d='M7 2v20'/%3E%3Cpath d='M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="goals"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="plan-buy"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M12 11h4'/%3E%3Cpath d='M12 16h4'/%3E%3Cpath d='M8 11h.01'/%3E%3Cpath d='M8 16h.01'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="plan-order"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .962 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.962 0z'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="plan-workout"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14'/%3E%3Cpath d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="plan-nutrition"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="user-assist"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8V4H8'/%3E%3Crect width='16' height='12' x='4' y='8' rx='2'/%3E%3Cpath d='M2 14h2'/%3E%3Cpath d='M20 14h2'/%3E%3Cpath d='M15 13v2'/%3E%3Cpath d='M9 13v2'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="coach"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z'/%3E%3Cpath d='M22 10v6'/%3E%3Cpath d='M6 12.5V16a6 3 0 0 0 12 0v-3.5'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="buddy"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="user-shop"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="shop"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="orders"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z'/%3E%3Cpath d='M3.3 7 12 12l8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="user-billing"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4Z'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="subscription"][data-sub-tab="sub-invoices"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="subscription"][data-sub-tab="sub-c2c"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 7l4 4'/%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='m16 21 4-4-4-4'/%3E%3Cpath d='M20 17H4'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="user-connect"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5a9 9 0 0 1 18 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="support"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M13 5v2'/%3E%3Cpath d='M13 17v2'/%3E%3Cpath d='M13 11v2'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="support-live"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="faq"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-group[data-nav-group="user-extra"] > .nav-group-toggle .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="timeline"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="content"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8z'/%3E%3C/svg%3E"); }
.shell-user .fx-sidebar-full .nav-link[data-view="panel-settings"] .ico,
.shell-user .fx-sidebar-full .nav-link[data-view="privacy"] .ico { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }

/* جلوگیری از هر نشانگر اضافی روی گروه‌ها */
.shell-user .fx-sidebar-full .nav-chevron::after { display: none !important; content: none !important; }
.shell-user .fx-sidebar-full .nav-group-toggle::after { content: none !important; }

/* گروه باز/فعال — پس‌زمینه ملایم به‌جای هلویی admin */
.shell-user .fx-sidebar-full .nav-group.open > .nav-group-toggle,
.shell-user .fx-sidebar-full .nav-group.has-active > .nav-group-toggle {
  background: transparent;
  color: var(--text);
}
.shell-user .fx-sidebar-full .nav-group.has-active > .nav-group-toggle {
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
}

/* ─── Header ─── */
.shell-user .up-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 14px 0;
  box-sizing: border-box;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  min-width: 0;
  overflow: visible;
  box-shadow: none;
}

.shell-user .menu-btn { display: none; }

.shell-user .up-live-btn { display: none !important; }

/* عنوان صفحه + مسیر راهنما در هدر (سمت راست) */
.shell-user .up-header-titles {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  order: -1;
  flex: 1 1 auto;
  min-width: 0;
  margin-inline-end: 8px;
}
.shell-user .up-header-titles h1,
.shell-user .up-header-titles #page-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shell-user .up-header-titles .desc {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
  word-break: keep-all;
}

/* ─── کنترل‌های هدر: لینک‌های سایت + جمع‌کردن منو + تغییر تم ─── */
.shell-user .header-spacer { display: block !important; flex: 1; order: 2; }

.shell-user .up-header-site-nav {
  display: flex !important;
  align-items: center;
  gap: 8px;
  order: 3;
  position: relative;
  z-index: 3;
}
.shell-user .up-header-site-link {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.shell-user .up-header-site-link:hover {
  border-color: var(--fx-blue);
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
}
.shell-user .up-header-site-link::before {
  content: '';
  width: 15px;
  height: 15px;
  margin-inline-end: 7px;
  display: inline-block;
  vertical-align: -3px;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.shell-user .up-header-site-link[href*="index"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); }
.shell-user .up-header-site-link[href*="shop"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.shell-user .up-header-site-link[href*="blog"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z'/%3E%3C/svg%3E"); }
.shell-user .up-header-site-link--guide {
  color: var(--fx-orange, #f97316);
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.06);
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20'/%3E%3C/svg%3E");
}
.shell-user .up-header-site-link--guide:hover {
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--fx-orange, #f97316);
  background: rgba(249, 115, 22, 0.12);
}
.shell-user .up-header-site-link--faq {
  color: var(--fx-teal, #0d9488);
  border-color: rgba(13, 148, 136, 0.28);
  background: rgba(13, 148, 136, 0.06);
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.shell-user .up-header-site-link--faq:hover {
  border-color: rgba(13, 148, 136, 0.45);
  color: var(--fx-teal, #0d9488);
  background: rgba(13, 148, 136, 0.12);
}
.shell-user .up-header-site-sep {
  width: 1px;
  height: 18px;
  background: var(--fx-border);
  flex-shrink: 0;
  margin-inline: 2px;
}

.shell-user .panel-ux-toolbar {
  display: flex !important;
  align-items: center;
  gap: 6px;
  order: 4;
  margin: 0;
}
.shell-user .panel-sidebar-collapse-btn,
html[data-user-panel-theme="fitronix"] .panel-theme-toggle, html[data-user-panel-theme="firouzi"] .panel-theme-toggle{
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
}
.shell-user .panel-ux-btn svg { width: 18px; height: 18px; }
.shell-user .panel-ux-btn:hover {
  border-color: var(--fx-blue);
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
}
.shell-user .panel-ux-btn.on {
  border-color: var(--fx-blue);
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
}

.shell-user .fx-header-cta { order: 5; }

.shell-user .fx-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 1;
}

/* ─── جمع‌کردن منو (حالت آیکون‌ریل) ─── */
.shell-user.sidebar-collapsed,
html.sidebar-collapsed .shell-user {
  --sidebar-w: 76px;
}

.shell-user.sidebar-collapsed .fx-sidebar-full .nav-link,
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-group-toggle,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-link,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-group-toggle {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-link .ico,
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-group-toggle .ico,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-link .ico,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-group-toggle .ico { margin: 0; }
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-text,
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-label,
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-chevron,
.shell-user.sidebar-collapsed .fx-sidebar-full .cnt,
.shell-user.sidebar-collapsed .fx-sidebar-full .admin-nav-divider,
.shell-user.sidebar-collapsed .fx-brand-text,
.shell-user.sidebar-collapsed .fx-brand-tagline,
.shell-user.sidebar-collapsed .fx-brand-word,
.shell-user.sidebar-collapsed .fx-sidebar-help,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-text,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-label,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-chevron,
html.sidebar-collapsed .shell-user .fx-sidebar-full .cnt,
html.sidebar-collapsed .shell-user .fx-sidebar-full .admin-nav-divider,
html.sidebar-collapsed .shell-user .fx-brand-text,
html.sidebar-collapsed .shell-user .fx-brand-tagline,
html.sidebar-collapsed .shell-user .fx-brand-word,
html.sidebar-collapsed .shell-user .fx-sidebar-help { display: none !important; }
.shell-user.sidebar-collapsed .fx-sidebar-full .nav-sub,
html.sidebar-collapsed .shell-user .fx-sidebar-full .nav-sub { display: none !important; }
.shell-user.sidebar-collapsed .fx-brand-logo,
.shell-user.sidebar-collapsed .fx-brand-logo--v2,
html.sidebar-collapsed .shell-user .fx-brand-logo,
html.sidebar-collapsed .shell-user .fx-brand-logo--v2 {
  justify-content: center;
  width: 100%;
}
.shell-user.sidebar-collapsed .sidebar-brand,
html.sidebar-collapsed .shell-user .sidebar-brand {
  text-align: center;
  padding: 10px 6px 8px;
  align-items: center;
}
.shell-user.sidebar-collapsed .fx-brand-frame,
html.sidebar-collapsed .shell-user .fx-brand-frame {
  padding: 8px 4px;
  width: 100%;
  border-radius: 12px;
}
.shell-user.sidebar-collapsed .fx-brand-mark,
html.sidebar-collapsed .shell-user .fx-brand-mark {
  width: 40px;
  height: 40px;
  margin: 0 auto;
}
.shell-user.sidebar-collapsed .fx-brand-mark svg,
.shell-user.sidebar-collapsed .fx-brand-mark-img,
html.sidebar-collapsed .shell-user .fx-brand-mark svg,
html.sidebar-collapsed .shell-user .fx-brand-mark-img {
  width: 36px !important;
  height: 36px !important;
}
.shell-user.sidebar-collapsed #user-logout-btn {
  font-size: 0;
  gap: 0;
  justify-content: center;
}
.shell-user.sidebar-collapsed #user-logout-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shell-user .fx-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(38, 166, 154, 0.25);
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.12);
}

.shell-user .fx-header-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.shell-user .fx-header-actions { display: flex; gap: 6px; }

.shell-user .fx-header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: 0.15s;
}

.shell-user .fx-header-icon-btn:hover {
  border-color: rgba(38, 166, 154, 0.35);
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}

.shell-user .fx-header-cta,
.shell-user .fx-promo-cta {
  padding: 11px 20px;
  border: none;
  border-radius: 12px;
  background: var(--fx-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(38, 166, 154, 0.28);
  white-space: nowrap;
  transition: 0.15s;
}

.shell-user .fx-header-cta:hover,
.shell-user .fx-promo-cta:hover {
  background: var(--fx-blue-600);
  transform: translateY(-1px);
}

/* ─── Dashboard ─── */
#view-dashboard {
  --dashboard-gap: 1rem;
  --dashboard-card-radius: 14px;
  --dashboard-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
}

#view-dashboard .dashboard-card--full-width {
  grid-column: 1 / -1;
  width: 100%;
}

.fx-dash[data-dash-sortable="fx-main"] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--dashboard-gap);
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.fx-dash[data-dash-sortable="fx-main"] > .fx-customize {
  grid-column: 1 / -1;
}

.fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key],
.fx-dash [data-dash-sortable] > [data-dash-sort-key] {
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.fx-dash[data-dash-sortable="fx-main"] > [data-dash-sort-key]:not([class*="dash-widget-size-"]),
.fx-dash [data-dash-sortable] > [data-dash-sort-key]:not([class*="dash-widget-size-"]) {
  grid-column: 1 / -1;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-full,
.fx-dash [data-dash-sortable] > .dash-widget-size-full {
  grid-column: 1 / -1;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half,
.fx-dash [data-dash-sortable] > .dash-widget-size-half {
  grid-column: span 6;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-third,
.fx-dash [data-dash-sortable] > .dash-widget-size-third {
  grid-column: span 4;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-two-thirds,
.fx-dash [data-dash-sortable] > .dash-widget-size-two-thirds {
  grid-column: span 8;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-quarter,
.fx-dash [data-dash-sortable] > .dash-widget-size-quarter {
  grid-column: span 3;
}

.fx-dash [data-dash-sortable="fx-quick"],
.fx-dash [data-dash-sortable="fx-ops"],
.fx-dash [data-dash-sortable="fx-insights"],
.fx-dash [data-dash-sortable="fx-promo"],
.fx-dash [data-dash-sortable="fx-bottom"] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--dashboard-gap);
  align-items: stretch;
}

@media (max-width: 1100px) {
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-third,
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-two-thirds,
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-quarter,
  .fx-dash [data-dash-sortable] > .dash-widget-size-third,
  .fx-dash [data-dash-sortable] > .dash-widget-size-two-thirds,
  .fx-dash [data-dash-sortable] > .dash-widget-size-quarter {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half,
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-two-thirds,
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-third,
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-quarter,
  .fx-dash [data-dash-sortable] > .dash-widget-size-half,
  .fx-dash [data-dash-sortable] > .dash-widget-size-two-thirds,
  .fx-dash [data-dash-sortable] > .dash-widget-size-third,
  .fx-dash [data-dash-sortable] > .dash-widget-size-quarter {
    grid-column: 1 / -1;
  }
}

/* Drag handles — جابجایی ویجت‌ها */
.fx-dash > [data-dash-sort-key],
.fx-dash [data-dash-sortable] > [data-dash-sort-key] {
  position: relative;
}

.fx-dash .dash-drag-handle {
  border-color: var(--fx-border);
  background: var(--fx-surface);
  color: var(--text-tertiary);
}

.fx-dash .dash-drag-handle:hover {
  border-color: var(--fx-blue);
  color: var(--fx-blue);
  background: rgba(38, 166, 154, 0.08);
}

.fx-dash .dash-drag-handle--float {
  top: 12px;
  inset-inline-end: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.fx-dash .has-dash-widget-ctrl.has-dash-drag .dash-widget-ctrl--float {
  top: 12px;
  inset-inline-end: 48px;
}

.fx-dash .has-dash-widget-ctrl.has-dash-drag .dash-drag-handle--float {
  inset-inline-end: 12px;
}

/* ردیف‌های تو در تو: فقط ⠿ روی گوشه مقابل کارت‌های داخل */
.fx-dash .fx-dash-row-shell.has-dash-drag .dash-drag-handle--float {
  inset-inline-end: auto;
  inset-inline-start: 12px;
}

.fx-dash .fx-dash-row-shell.has-dash-drag {
  padding-inline-end: 0;
}

.fx-dash .dash-widget-ctrl {
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.fx-dash [data-dash-sort-key]:hover .dash-widget-ctrl,
.fx-dash [data-dash-sort-key] .dash-widget-ctrl:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.fx-dash .dash-widget-ctrl-btn {
  border-color: var(--fx-border);
  background: var(--fx-surface);
  color: var(--text-tertiary);
}

.fx-dash .dash-widget-ctrl-btn:hover:not(:disabled) {
  border-color: var(--fx-blue);
  color: var(--fx-blue);
  background: rgba(38, 166, 154, 0.08);
}

.fx-health-grid.dash-widget-size-half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-health-grid.dash-widget-size-half .fx-hw--monitor {
  grid-column: span 2;
}

.fx-health-grid.dash-widget-size-third,
.fx-health-grid.dash-widget-size-quarter {
  grid-template-columns: 1fr;
}

.fx-dash .dash-widget-size-half .fx-score-row {
  grid-template-columns: repeat(2, 1fr);
}

.fx-dash .dash-widget-size-third .fx-score-row,
.fx-dash .dash-widget-size-quarter .fx-score-row {
  grid-template-columns: 1fr;
}

.fx-dash .dash-sort-dragging {
  opacity: 0.78;
  outline: 2px dashed var(--fx-blue);
  outline-offset: 3px;
  z-index: 2;
}

.fx-dash .fx-card-head,
.fx-dash .fx-panel-head,
.fx-dash .fx-weekly-head,
.fx-dash .fx-profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-dash .fx-card-head .dash-drag-handle--inline,
.fx-dash .fx-panel-head .dash-drag-handle--inline,
.fx-dash .fx-weekly-head .dash-drag-handle--inline {
  margin-inline-end: 4px;
}

.fx-customize-drag-hint {
  color: var(--fx-blue);
  font-weight: 600;
}

html[data-user-panel-theme="fitronix"] .up-dash-customize, html[data-user-panel-theme="firouzi"] .up-dash-customize{ display: none !important; }

/* Profile */
.fx-profile-card {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 22px 28px;
  align-items: center;
  padding: 22px 26px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-xl);
  box-shadow: var(--fx-shadow);
}

.fx-profile-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #b2dfdb;
  box-shadow: 0 8px 24px rgba(38, 166, 154, 0.16);
}

.fx-profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.fx-profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.fx-profile-name-row h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.fx-verified {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fx-blue);
  display: grid;
  place-items: center;
}

.fx-badge-member {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
}

.fx-profile-expiry {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.fx-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
}

.fx-profile-stat {
  padding: 10px 12px;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fx-teal, #26a69a) 4%, var(--fx-surface));
  text-align: center;
}

.fx-profile-stat:first-child { padding-right: 12px; border-left: 1px solid var(--fx-border); }
.fx-profile-stat:last-child { padding-left: 12px; }

.fx-profile-stat .lbl {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.fx-profile-stat .val {
  font-size: 15px;
  font-weight: 700;
}

.fx-profile-col--actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  align-self: stretch;
  justify-content: space-between;
}

.fx-profile-actions-top { display: flex; gap: 8px; }

.fx-profile-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--text-tertiary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fx-profile-edit-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

/* Score cards */
.fx-score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fx-score-card {
  padding: 16px 18px 14px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
  min-height: 148px;
  display: flex;
  flex-direction: column;
}

.fx-score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fx-score-lbl {
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.fx-score-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-green);
  background: var(--fx-green-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

.fx-score-val {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: auto;
}

.fx-score-val small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-right: 2px;
}

.fx-score-card--total {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fx-score-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 4px auto 0;
}

.fx-score-ring {
  width: 88px;
  height: 88px;
}

.fx-score-ring svg {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
  display: block;
}

.fx-score-ring .fx-ring-bg {
  fill: none;
  stroke: #e8edf4;
  stroke-width: 7;
}

.fx-score-ring .fx-ring-fg {
  fill: none;
  stroke: var(--fx-blue);
  stroke-width: 7;
  stroke-linecap: round;
}

.fx-score-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fx-score-ring-center strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.fx-score-ring-center small {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.fx-sparkline {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  display: block;
}

/* ─── Health widgets — standalone (جدا از هم در داشبورد) ─── */
.fx-hw-standalone {
  min-width: 0;
  height: 100%;
}

.fx-hw-standalone.fx-hw--monitor {
  grid-column: span 12;
}

/* Legacy grid (اگر جایی باقی مانده) */
.fx-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fx-hw {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.fx-hw--monitor { grid-column: span 2; }

.fx-hw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}

.fx-hw-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fx-hw-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.fx-hw-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-surface));
  color: var(--text-secondary);
  border: 1px solid color-mix(in srgb, var(--fx-blue) 10%, transparent);
}

.fx-hw-ico svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

.fx-hw-ico--purple {
  background: color-mix(in srgb, #8b5cf6 12%, var(--fx-surface));
  color: #7c3aed;
  border-color: color-mix(in srgb, #8b5cf6 18%, transparent);
}

.fx-hw-ico--green,
.fx-hw-ico--nutrition {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.18);
}

.fx-hw-ico--blue,
.fx-hw-ico--sleep {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.18);
}

.fx-hw-ico--orange,
.fx-hw-ico--workout {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.18);
}

.fx-hw-ico--recovery {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.18);
}

.fx-hw-menu {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}

.fx-hw-menu svg { width: 16px; height: 16px; }
.fx-hw-menu:hover { opacity: 1; background: rgba(0, 0, 0, 0.04); }

.fx-dash .fx-hw-head .dash-drag-handle--inline,
.fx-dash .fx-hw-head .dash-widget-ctrl--inline {
  flex-shrink: 0;
}

.fx-dash .fx-hw-head .dash-widget-ctrl--inline {
  margin-inline-start: 0;
  opacity: 0.5;
}

.fx-dash .fx-hw-head:hover .dash-widget-ctrl--inline,
.fx-dash .fx-hw-head .dash-widget-ctrl--inline:focus-within {
  opacity: 1;
}

.fx-hw-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 16px 12px;
  flex: 1;
  min-width: 0;
}

.fx-hw-body--workout,
.fx-hw-body--nutrition,
.fx-hw-body--recovery {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.fx-hw-workout-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fx-hw-workout-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.fx-hw-workout-kpi {
  padding: 10px 12px;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.05);
}

.fx-hw-workout-kpi .lbl {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.fx-hw-workout-kpi strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.fx-hw-workout-chart-wrap {
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  padding: 10px 12px 8px;
}

.fx-hw-workout-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fx-hw-workout-chart-head span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.fx-hw-workout-chart-head small {
  font-size: 10px;
  color: var(--text-tertiary);
}

.fx-hw-workout-chart {
  position: relative;
  height: 96px;
}

.fx-hw-nutrition-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.fx-hw-nutrition-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.fx-hw-nutrition-pills li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--fx-border);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.05);
}

.fx-hw-nutrition-pills .lbl {
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.fx-hw-nutrition-pills strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.fx-hw-recovery-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-hw-recovery-msg {
  margin: 0;
  flex: 1;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.fx-hw-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.fx-hw-recovery-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.04);
  min-width: 0;
}

.fx-hw-recovery-tile .lbl {
  font-size: 10px;
  color: var(--text-tertiary);
}

.fx-hw-recovery-tile strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

/* ویجت‌های نیم‌عرض — عمودی فقط در موبایل (quarter در widgets-fitronix.css) */
@media (min-width: 769px) {
  .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half:not(.fx-hw-standalone) .fx-hw-body {
    flex-direction: row;
    align-items: center;
  }
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half .fx-hw-stats {
  width: 100%;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half .fx-hw-foot--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half .fx-hw-foot-item {
  min-width: 0;
  padding: 8px 4px;
}

.fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half .fx-hw-foot-item > span:last-child {
  font-size: 9px;
}

.fx-hw-ring-wrap {
  position: relative;
  flex-shrink: 0;
}

.fx-hw-ring-wrap--lg {
  width: 104px;
  height: 104px;
}

.fx-hw-ring {
  width: 104px;
  height: 104px;
}

.fx-hw-ring svg {
  width: 104px;
  height: 104px;
  transform: rotate(-90deg);
  display: block;
}

.fx-hw-ring .fx-ring-bg {
  fill: none;
  stroke: var(--fx-border);
  stroke-width: 8;
}

.fx-hw-ring .fx-ring-fg {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.fx-hw--workout .fx-ring-fg { stroke: url(#fx-hw-grad-orange); }
.fx-hw--nutrition .fx-ring-fg { stroke: url(#fx-hw-grad-blue); }
.fx-hw--sleep .fx-ring-fg,
.fx-hw--recovery .fx-ring-fg { stroke: url(#fx-hw-grad-blue); }

.fx-hw-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 8px;
}

.fx-hw-ring-center strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.fx-hw-ring-center small {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 1.3;
}

.fx-hw-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.fx-hw-stats li {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
}

.fx-hw-stat-ico {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text-tertiary);
  display: grid;
  place-items: center;
}

.fx-hw-stat-ico svg { width: 14px; height: 14px; }
.fx-hw-stat-ico--up { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.fx-hw-stat-ico--fire { color: #f97316; background: rgba(249, 115, 22, 0.1); }
.fx-hw-stat-ico--blue { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.fx-hw-stat-ico--green { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.fx-hw-stat-ico--gold { color: #eab308; background: rgba(234, 179, 8, 0.12); }

.fx-hw-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.fx-hw-stat-val--green { color: #10b981; }

.fx-hw-stat-lbl {
  font-size: 10.5px;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.fx-hw-foot {
  border-top: 1px solid var(--fx-border);
  background: var(--up-surface-2);
}

.fx-hw-foot--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fx-hw-foot--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fx-hw-foot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px;
  gap: 2px;
  border-left: 1px solid var(--fx-border);
}

.fx-hw-foot-item:first-child { border-left: none; }

.fx-hw-foot-item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fx-hw-foot-item > span:last-child {
  font-size: 10px;
  color: var(--text-tertiary);
}

.fx-hw-foot-ico {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  line-height: 1;
}

.fx-hw-foot-ico svg { width: 14px; height: 14px; display: block; margin: 0 auto 2px; }
.fx-hw-foot-ico--sun { color: #f59e0b; }

.fx-hw-foot--macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 10px 12px 12px;
}

.fx-hw-macro {
  text-align: center;
  padding: 0 6px;
  border-left: 1px solid var(--fx-border);
}

.fx-hw-macro:first-child { border-left: none; }

.fx-hw-macro .lbl {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.fx-hw-macro strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.fx-hw-macro-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.fx-hw-macro-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.fx-hw-macro-bar i.protein { background: linear-gradient(90deg, #10b981, #34d399); }
.fx-hw-macro-bar i.carbs { background: linear-gradient(90deg, #3b82f6, #4db6ac); }
.fx-hw-macro-bar i.fat { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.fx-hw-recovery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fx-hw-recovery-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.fx-hw-recovery-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  display: grid;
  place-items: center;
}

.fx-hw-recovery-ico svg { width: 13px; height: 13px; }

.fx-hw-recovery-lbl {
  color: var(--text-tertiary);
  font-size: 11px;
}

.fx-hw-recovery-list strong {
  font-size: 12px;
  font-weight: 700;
}

.fx-hw-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.fx-hw-badge--green {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.fx-hw-badge--yellow {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.fx-hw-ready-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 12px;
  background: rgba(59, 130, 246, 0.06);
  border-top: none;
}

.fx-hw-ready-bar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fx-hw-monitor-body {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 12px;
  padding: 0 16px 16px;
  flex: 1;
  align-items: stretch;
  min-height: 180px;
}

.fx-hw-monitor-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-hw-monitor-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
}

.fx-hw-monitor-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f3f4f6;
  color: #6b7280;
  display: grid;
  place-items: center;
}

.fx-hw-monitor-ico svg { width: 15px; height: 15px; }

.fx-hw-monitor-meta .lbl {
  display: block;
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.fx-hw-monitor-meta strong {
  font-size: 14px;
  font-weight: 700;
}

.fx-hw-monitor-delta {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.fx-hw-monitor-delta--down { color: #10b981; }
.fx-hw-monitor-delta--up { color: #10b981; }

.fx-hw-monitor-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--fx-border);
  border-radius: 10px;
  background: var(--fx-surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color 0.15s, color 0.15s;
}

.fx-hw-monitor-more svg { width: 14px; height: 14px; }
.fx-hw-monitor-more:hover { border-color: #3b82f6; color: #26a69a; }

.fx-hw-monitor-chart {
  position: relative;
  min-height: 160px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  padding: 8px 4px 4px;
}

.fx-hw-monitor-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1100px) {
  .fx-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-hw--monitor { grid-column: span 2; }
}

@media (max-width: 720px) {
  .fx-health-grid { grid-template-columns: 1fr; }
  .fx-hw--monitor { grid-column: auto; }
  .fx-hw-monitor-body { grid-template-columns: 1fr; min-height: 0; }
  .fx-hw-monitor-chart { min-height: 140px; }
}

/* Health widget — menu · sleep log · interactions */
.fx-hw[data-hw-goto] { cursor: pointer; }
.fx-hw[data-hw-goto]:hover { border-color: rgba(59, 130, 246, 0.25); }

.fx-hw-menu-wrap { position: relative; }

.fx-hw-menu-pop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 148px;
  padding: 6px;
  background: var(--fx-surface, #fff);
  border: 1px solid var(--fx-border, #e2e8f0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.fx-hw-menu-pop.is-open { display: flex; flex-direction: column; gap: 2px; }

.fx-hw-menu-pop button {
  border: none;
  background: transparent;
  text-align: right;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
}

.fx-hw-menu-pop button:hover { background: rgba(59, 130, 246, 0.08); color: #26a69a; }

.fx-hw-sleep-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  text-align: center;
}

.fx-hw-sleep-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #64748b);
}

.fx-hw-sleep-log {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--fx-border, #e2e8f0);
}

.fx-hw-sleep-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fx-hw-sleep-log-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary, #64748b);
}

.fx-hw-sleep-log-grid .input {
  font-size: 13px;
  padding: 6px 8px;
}

.fx-hw-recovery-trend {
  border-top: 1px solid var(--fx-border);
}

.fx-hw-recovery-trend-lbl {
  display: block;
  padding: 10px 14px 0;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.fx-hw-recovery-trend-bar {
  padding: 6px 14px 12px;
}

.fx-hw-recovery-trend .fx-hw-ready-track {
  height: 10px;
  min-height: 10px;
  max-height: 12px;
  flex: none;
  width: 100%;
}

.fx-hw-recovery-trend .fx-hw-ready-track span {
  height: 100%;
  min-height: 0;
}

.fx-hw-recovery-trend-empty {
  padding: 8px 0 0;
  text-align: center;
}

.fx-hw-recovery-trend-empty p {
  margin: 0 0 4px;
  font-size: 10.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.fx-hw-nutrition-chart-wrap {
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  padding: 10px 12px 8px;
  width: 100%;
}

.fx-hw-chart-host {
  position: relative;
  min-height: 96px;
}

.fx-hw-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  background: rgba(248, 250, 252, 0.92);
  border-radius: 10px;
}

html[data-theme="dark"] .fx-hw-chart-empty {
  background: rgba(15, 23, 42, 0.88);
}

.fx-hw-chart-empty-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  background: rgba(148, 163, 184, 0.12);
}

.fx-hw-chart-empty-ico svg {
  width: 18px;
  height: 18px;
}

.fx-hw-chart-empty p {
  margin: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.fx-hw-chart-empty-btn {
  border: none;
  background: transparent;
  color: var(--fx-teal, #26a69a);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.fx-hw-chart-empty-btn:hover {
  background: rgba(38, 166, 154, 0.08);
}

.fx-hw-chart-empty--compact {
  position: relative;
  inset: auto;
  min-height: 52px;
  padding: 8px;
}

.fx-hw-tile-empty {
  margin-top: 4px;
}

.fx-hw-tile-empty p {
  margin: 0 0 4px;
  font-size: 9.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.fx-hw-recovery-tile--hrv {
  position: relative;
}

@keyframes fx-dash-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fx-dash-card-enter {
  opacity: 0;
  animation: fx-dash-card-in 0.3s ease forwards;
}

.fx-weekly-summary li.fx-trend--positive strong {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
}

.fx-weekly-summary li.fx-trend--negative strong {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 8px;
  border-radius: 8px;
}

.fx-weekly-summary li.fx-trend--neutral strong {
  color: var(--text);
  background: transparent;
  padding: 0;
}

.fx-greet-v3 .up-dash-greet-portrait.is-pro-member::before {
  opacity: 0.55;
  background: conic-gradient(from 200deg, #d4af37, #10b981, #80cbc4, #d4af37);
  animation: fx-pro-ring-pulse 3.5s ease-in-out infinite;
}

.fx-greet-v3 .up-dash-greet-portrait.is-pro-member .up-dash-greet-avatar {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(212, 175, 55, 0.38),
    0 12px 32px rgba(38, 166, 154, 0.22);
}

@keyframes fx-pro-ring-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.72; }
}

.fx-hw-ready-track {
  flex: 1 1 100%;
  height: 4px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.fx-hw-ready-track i,
.fx-hw-ready-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: inherit;
  transition: width 0.35s ease;
}

@media (max-width: 720px) {
  .fx-hw-sleep-log-grid { grid-template-columns: 1fr; }
}

/* Weekly */
.fx-weekly-card {
  padding: 20px 22px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-xl);
  box-shadow: var(--fx-shadow);
}

.fx-weekly-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fx-weekly-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.fx-weekly-legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.fx-weekly-legend span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

.fx-weekly-legend .leg-weight::before { background: var(--fx-blue); }
.fx-weekly-legend .leg-fat::before { background: var(--fx-orange); }

.fx-weekly-body {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--dashboard-gap, 1rem);
  align-items: stretch;
}

.fx-weekly-chart {
  min-height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.fx-weekly-chart canvas {
  width: 100% !important;
  height: 280px !important;
  flex: 1;
}

.fx-weekly-summary {
  padding: 14px 16px;
  border-radius: var(--fx-radius);
  background: var(--up-surface-2);
  border: 1px solid var(--fx-border);
  display: flex;
  flex-direction: column;
}

.fx-weekly-summary h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.fx-weekly-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.fx-weekly-summary li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.fx-weekly-summary li + li {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.fx-weekly-summary li strong {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.fx-btn-outline {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-surface);
  color: var(--fx-blue);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.fx-greet-edit-btn { white-space: nowrap; }

/* Greet widget — merged profile info */
.up-dash-greet-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.up-dash-greet-name-row h2 { margin: 0; }

.up-dash-greet-expiry,
.fx-greet-expiry {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.fx-greet-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fx-greet-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--up-surface-2, rgba(15, 23, 42, 0.04));
  min-width: 72px;
}

.fx-greet-stat .lbl {
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.fx-greet-stat .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-blue, #26a69a);
}

.up-dash-greet-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.up-dash-greet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Programs */
.fx-programs-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fx-programs-head-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.fx-programs-head-ico img {
  display: block;
}

.fx-widget-head-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(38, 166, 154, 0.08);
  color: var(--fx-blue);
}

.fx-widget-head-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.fx-widget-head-ico--weekly {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.fx-widget-head-ico--ops {
  background: rgba(38, 166, 154, 0.1);
  color: var(--fx-blue);
}

.fx-widget-head-ico--activity {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.fx-widget-head-ico--sub {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.fx-widget-head-ico--body {
  background: rgba(38, 166, 154, 0.1);
  color: var(--fx-blue);
}

.fx-widget-head-ico--promo {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.fx-card-head--ico {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fx-card-head--ico h3 {
  margin: 0;
}

.fx-card-head--split {
  justify-content: flex-start;
}

.fx-card-head--split h3 {
  flex: 1;
  min-width: 0;
}

.fx-panel-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fx-panel-head-title h3 {
  margin: 0;
}

.fx-panel-head-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--fx-blue);
  font-weight: 600;
  cursor: pointer;
}

.fx-panel-head-link:hover {
  text-decoration: underline;
}

.fx-weekly-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fx-weekly-head-title h3 {
  margin: 0;
}

.fx-programs-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.fx-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
}

.fx-program-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
  overflow: hidden;
  min-height: 156px;
}

.fx-program-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.14));
}

.fx-program-thumb img {
  display: block;
  width: 56px;
  height: 56px;
}

.fx-program-card--wp .fx-program-thumb {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.16));
}

.fx-program-card--np .fx-program-thumb {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.16));
}

.fx-program-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fx-program-type {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.fx-program-content strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.fx-program-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.fx-program-live {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-orange, #ff8f00);
  margin-top: 2px;
}

.fx-program-card[data-goto] {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fx-program-card[data-goto]:hover {
  border-color: color-mix(in srgb, var(--fx-orange, #ff8f00) 35%, var(--fx-border));
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.fx-program-card--np .fx-program-live {
  color: var(--fx-green, #16a34a);
}

.fx-program-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.fx-program-progress {
  flex: 1;
  height: 6px;
  background: var(--fx-dash-gray-200, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
}

.fx-program-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f97316, #2563eb);
  border-radius: 999px;
}

.fx-program-progress-row span {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  min-width: 28px;
}

.fx-program-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: var(--fx-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.fx-program-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* کارت تغذیه — اکسنت آبی */
.fx-program-card--np .fx-program-type { color: #2563eb; }
.fx-program-card--np .fx-program-progress i {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.fx-program-card--np .fx-program-progress-row span { color: #2563eb; }
.fx-program-card--np .fx-program-btn { background: #2563eb; }
.fx-program-card--wp .fx-program-type { color: #f97316; }
.fx-program-card--wp .fx-program-progress-row span { color: #f97316; }
.fx-program-card--wp .fx-program-btn { background: #f97316; }

.fx-programs-empty {
  grid-column: 1 / -1;
}

/* Body comp */
.fx-body-card,
.fx-body-comp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-xl);
  box-shadow: var(--fx-shadow);
}

.fx-body-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-body-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.fx-body-card-title-row h3 {
  margin: 0;
}

.fx-body-card-head-link {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-blue);
  cursor: pointer;
  white-space: nowrap;
}

.fx-body-card-head-link:hover {
  text-decoration: underline;
}

.fx-body-card-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fx-body-card-head-copy h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}

.fx-body-card-head-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.fx-body-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 14px;
  border: 1px solid rgba(38, 166, 154, 0.25);
  border-radius: 10px;
  background: rgba(38, 166, 154, 0.08);
  color: var(--fx-blue);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.fx-body-card-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.fx-body-card-cta:hover {
  background: rgba(38, 166, 154, 0.14);
  border-color: rgba(38, 166, 154, 0.4);
}

.fx-body-card-cta:active {
  transform: scale(0.98);
}

.fx-body-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.fx-body-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--up-surface-2, rgba(15, 23, 42, 0.03));
  text-align: center;
  min-width: 0;
}

.fx-body-seg-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(38, 166, 154, 0.1);
  color: var(--fx-blue);
}

.fx-body-seg-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.fx-body-seg--fat .fx-body-seg-ico {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.fx-body-seg--muscle .fx-body-seg-ico {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.fx-body-seg--water .fx-body-seg-ico {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.fx-body-seg--bmr .fx-body-seg-ico {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.fx-body-seg .lbl {
  font-size: 10.5px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.fx-body-seg .val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  line-height: 1.2;
}

/* legacy body icons — kept for compat */
.fx-body-comp-link { display: none; }

.fx-body-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fx-blue-soft) center/16px no-repeat;
}

.fx-body-ico--weight { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='1.75' d='M12 3v18M8 7h8'/%3E%3C/svg%3E"); }
.fx-body-ico--fat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='1.75' d='M4 18h16M6 14l2-8h8l2 8'/%3E%3C/svg%3E"); }
.fx-body-ico--muscle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='1.75' d='M8 12h8M12 8v8'/%3E%3C/svg%3E"); }
.fx-body-ico--water { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='1.75' d='M12 2s6 7 6 11a6 6 0 11-12 0c0-4 6-11 6-11z'/%3E%3C/svg%3E"); }
.fx-body-ico--bmr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='1.75' d='M12 2v4M8 6h8M6 10h12v10H6z'/%3E%3C/svg%3E"); }

/* Bottom row */
.fx-bottom-row[data-dash-sortable="fx-bottom"] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.fx-bottom-row:not([data-dash-sortable]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fx-panel-card {
  padding: 18px 20px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
}

.fx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fx-panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.fx-panel-head a,
.fx-panel-head-link { font-size: 12px; color: var(--fx-blue); text-decoration: none; font-weight: 600; }

.fx-achievements-grid {
  display: flex;
  justify-content: space-around;
  gap: 12px;
}

.fx-achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 1;
}

.fx-achievement-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.fx-achievement-badge span { font-size: 18px; font-weight: 800; line-height: 1; }
.fx-achievement-badge small { font-size: 9px; opacity: 0.9; margin-top: 1px; }
.fx-achievement-badge.gold { background: linear-gradient(145deg, #fbbf24, #d97706); }
.fx-achievement-badge.blue { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.fx-achievement-badge.purple { background: linear-gradient(145deg, #a78bfa, #7c3aed); }

.fx-achievement > span:last-child {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 100px;
}

.fx-activities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.fx-activity-item:last-child { border-bottom: none; }

.fx-activity-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-surface));
  color: var(--text-secondary);
  border: 1px solid color-mix(in srgb, var(--fx-blue) 10%, transparent);
}

.fx-activity-ico svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.fx-activity-ico.workout,
.fx-activity-ico.nutrition,
.fx-activity-ico.weight {
  background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-surface));
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--fx-blue) 10%, transparent);
}

.fx-activity-body strong { display: block; font-size: 12.5px; font-weight: 600; }
.fx-activity-body span { font-size: 11px; color: var(--text-tertiary); }

/* Promo */
.fx-promo-banner {
  padding: 0;
  border-radius: var(--fx-radius-xl);
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 52%, #2dd4bf 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.22);
}

.fx-promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18) 0%, transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 0%, transparent 36%);
  pointer-events: none;
}

.fx-promo-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.fx-promo-banner-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.fx-promo-banner-ico svg {
  width: 24px;
  height: 24px;
}

.fx-promo-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fx-promo-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.fx-promo-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 520px;
}

.fx-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  transition: transform 0.12s, box-shadow 0.15s;
}

.fx-promo-cta svg {
  width: 16px;
  height: 16px;
}

.fx-promo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.fx-promo-cta:active {
  transform: scale(0.98);
}

/* legacy promo visuals */
.fx-promo-visual,
.fx-promo-product { display: none; }

/* Hidden / compat */
.up-dash-compat,
.up-dash-notifs-hidden,
.up-dash-sr-only {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

/* پنهان‌سازی عناصر اضافی قالب قدیمی در تم فیت‌رونیکس */
html[data-user-panel-theme="fitronix"] .up-dash-customize, html[data-user-panel-theme="firouzi"] .up-dash-customize,
html[data-user-panel-theme="fitronix"] .dash-customize-fab, html[data-user-panel-theme="firouzi"] .dash-customize-fab,
html[data-user-panel-theme="fitronix"] .dash-customize-fab-txt, html[data-user-panel-theme="firouzi"] .dash-customize-fab-txt,
html[data-user-panel-theme="fitronix"] .up-dash-widget-fab, html[data-user-panel-theme="firouzi"] .up-dash-widget-fab,
html[data-user-panel-theme="fitronix"] .dash-ops-fab, html[data-user-panel-theme="firouzi"] .dash-ops-fab {
  display: none !important;
}

/* دستیار هوشمند — دکمه شناور مثل پنل مدیریت */
html[data-user-panel-theme="fitronix"] .user-app .buddy,
html[data-user-panel-theme="firouzi"] .user-app .buddy,
html[data-user-panel-theme="fitronix"] #fitronix-buddy:not(.buddy--hidden),
html[data-user-panel-theme="firouzi"] #fitronix-buddy:not(.buddy--hidden) {
  display: flex !important;
}

.shell-user .btn-primary {
  background: var(--fx-blue);
  border-color: var(--fx-blue);
}

.shell-user .view .card,
.shell-user .view .up-w {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
}

/* ════════════════════════════════════════════════════
   هماهنگ‌سازی همهٔ صفحات/منوها/تب‌ها با زبان طراحی داشبورد
   (روکش روی تم پایه admin)
   ════════════════════════════════════════════════════ */

/* عنوان کارت‌ها */
.shell-user .view .card-head h3,
.shell-user .view .card-head h2 {
  color: var(--text);
  font-weight: 800;
}
.shell-user .view .card-head .hint,
.shell-user .view .hint { color: var(--text-tertiary); }

/* ── هیرو صفحات (پروفایل/پشتیبانی/پرداخت/فروشگاه/سفارش) ── */
.shell-user .up-mp-hero,
.shell-user .up-sup-hero,
.shell-user .up-sub-hero,
.shell-user .up-po-hero,
.shell-user .usp-hero,
.shell-user .orders-hero,
.shell-user .up-ex-hero {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow);
  color: var(--text);
  overflow: hidden;
}
.shell-user [class*="hero-stripe"] { display: none !important; }
.shell-user .up-mp-hero h2,
.shell-user .up-sup-hero h2,
.shell-user .up-sub-hero h2,
.shell-user .up-po-hero h2,
.shell-user .usp-hero h2 { color: var(--text); }

/* ── KPI / آمار کارت‌ها ── */
.shell-user .up-mp-stat,
.shell-user .up-sup-kpi,
.shell-user .up-inv-kpi,
.shell-user .usp-kpi {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow);
}

/* غلبه بر رنگ‌های گرم theme-light-refined (سلکتورهای پراولویت literal) */
html[data-user-panel-theme="fitronix"] .user-app .up-np-kpi, html[data-user-panel-theme="firouzi"] .user-app .up-np-kpi,
html[data-user-panel-theme="fitronix"] .user-app .up-np-meal-items li, html[data-user-panel-theme="firouzi"] .user-app .up-np-meal-items li,
html[data-user-panel-theme="fitronix"] .user-app .up-np-supp-list li, html[data-user-panel-theme="firouzi"] .user-app .up-np-supp-list li,
html[data-user-panel-theme="fitronix"] .user-app .up-mp-stat, html[data-user-panel-theme="firouzi"] .user-app .up-mp-stat,
html[data-user-panel-theme="fitronix"] .user-app .up-mp-plan-card, html[data-user-panel-theme="firouzi"] .user-app .up-mp-plan-card,
html[data-user-panel-theme="fitronix"] .user-app .up-wp-kpi, html[data-user-panel-theme="firouzi"] .user-app .up-wp-kpi,
html[data-user-panel-theme="fitronix"] .user-app .up-wp-day, html[data-user-panel-theme="firouzi"] .user-app .up-wp-day,
html[data-user-panel-theme="fitronix"] .user-app .up-wp-ex, html[data-user-panel-theme="firouzi"] .user-app .up-wp-ex,
html[data-user-panel-theme="fitronix"] .user-app .up-sup-kpi, html[data-user-panel-theme="firouzi"] .user-app .up-sup-kpi,
html[data-user-panel-theme="fitronix"] .user-app .up-inv-kpi, html[data-user-panel-theme="firouzi"] .user-app .up-inv-kpi,
html[data-user-panel-theme="fitronix"] .user-app .up-ex-toolbar, html[data-user-panel-theme="firouzi"] .user-app .up-ex-toolbar,
html[data-user-panel-theme="fitronix"] .user-app .up-dash-pill--date, html[data-user-panel-theme="firouzi"] .user-app .up-dash-pill--date{
  background: var(--fx-surface);
}
html[data-user-panel-theme="fitronix"] .user-app .up-progress-track, html[data-user-panel-theme="firouzi"] .user-app .up-progress-track{
  background: #e8edf4;
}

/* ── تب‌ها (سگمنت تمیز با اکسنت آبی) ── */
.shell-user .view .tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--fx-shadow);
  margin-bottom: 16px;
}
.shell-user .view .tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.shell-user .view .tab:not(.on):hover {
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}
.shell-user .view .tab.on {
  background: var(--fx-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.25);
}
.shell-user .view .tab .cnt {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0 6px;
  margin-right: 6px;
  font-size: 11px;
}

/* ── تولبار صفحه ── */
.shell-user .view .page-toolbar {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow);
  padding: 12px 16px;
}

/* ── بنرها ── */
.shell-user .view .banner {
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow);
  color: var(--text);
}
.shell-user .view .banner.ok { border-color: rgba(22, 163, 74, 0.28); background: var(--fx-green-soft); }
.shell-user .view .banner.warn { border-color: rgba(234, 88, 12, 0.28); background: #fff7ed; }
.shell-user .view .banner.info { border-color: var(--fx-blue-muted); background: var(--fx-blue-soft); }
.shell-user .view .banner .banner-text strong { color: var(--text); }

/* ── جداول ── */
.shell-user .view .tbl-wrap {
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  overflow: hidden;
  background: var(--fx-surface);
}
.shell-user .view .tbl { width: 100%; border-collapse: collapse; }
.shell-user .view .tbl thead th {
  background: var(--fx-blue-soft);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 11px 14px;
  border-bottom: 1px solid var(--fx-border);
  text-align: right;
}
.shell-user .view .tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--fx-border);
  font-size: 13px;
  color: var(--text);
}
.shell-user .view .tbl tbody tr:last-child td { border-bottom: none; }
.shell-user .view .tbl tbody tr:hover td { background: var(--fx-blue-soft); }

/* ── فرم‌ها / ورودی‌ها ── */
.shell-user .view .input,
.shell-user .view textarea.input,
.shell-user .view select.input {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border-strong);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
}
.shell-user .view .input::placeholder { color: var(--text-tertiary); }
.shell-user .view .input:focus {
  border-color: var(--fx-blue);
  box-shadow: 0 0 0 3px var(--fx-blue-muted);
  outline: none;
}
.shell-user .view .field > label { color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.shell-user .view .upload-zone {
  border: 1.5px dashed var(--fx-border-strong);
  border-radius: 12px;
  background: var(--fx-blue-soft);
  color: var(--text-secondary);
}

/* ── چیپ فیلتر ── */
.shell-user .view .filter-chip {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border-strong);
  color: var(--text-secondary);
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}
.shell-user .view .filter-chip.on {
  background: var(--fx-blue);
  border-color: var(--fx-blue);
  color: #fff;
}

/* ── جعبه جزئیات / لیست ماژول ── */
.shell-user .view .detail-box {
  background: var(--fx-blue-soft);
  border: 1px solid var(--fx-border);
  border-radius: 12px;
}
.shell-user .view .mod-list li { border-color: var(--fx-border); }

/* ── دکمه‌ها ── */
.shell-user .view .btn-ghost {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border-strong);
  color: var(--text-secondary);
}
.shell-user .view .btn-ghost:hover {
  border-color: var(--fx-blue);
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
}

/* ═══════════════════ سفارشی‌سازی ویجت‌ها (menu3) ═══════════════════ */
.shell-user .fx-customize {
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.shell-user .fx-customize > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.shell-user .fx-customize > summary::-webkit-details-marker { display: none; }
.shell-user .fx-customize > summary::after {
  content: '⌄';
  margin-inline-start: 4px;
  font-size: 15px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}
.shell-user .fx-customize[open] > summary::after { transform: rotate(180deg); }
.shell-user .fx-customize-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.shell-user .fx-customize-title svg { color: var(--fx-blue); }
.shell-user .fx-customize-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-inline-start: auto;
}
.shell-user .fx-customize[open] > summary { border-bottom: 1px solid var(--fx-border); }
.shell-user .fx-customize-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}
.shell-user .fx-customize-actions {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--fx-border);
}
.shell-user .fx-customize-reset {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed var(--fx-border-strong);
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.shell-user .fx-customize-reset:hover {
  border-color: var(--fx-blue);
  background: rgba(38, 166, 154, 0.12);
}
html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .fx-customize-reset, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .fx-customize-reset{
  background: rgba(59, 130, 246, 0.1);
}
.shell-user .fx-customize-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-surface);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.shell-user .fx-customize-chip input { display: none; }
.shell-user .fx-customize-chip::before {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 1.5px solid var(--fx-border-strong);
  flex-shrink: 0;
  transition: all 0.15s;
}
.shell-user .fx-customize-chip.is-on {
  border-color: var(--fx-blue);
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}
.shell-user .fx-customize-chip.is-on::before {
  background: var(--fx-blue);
  border-color: var(--fx-blue);
  box-shadow: inset 0 0 0 2px #fff;
}

/* ═══════════════════ ردیف ویجت‌های جدید ═══════════════════ */
.shell-user .fx-quick-row[data-dash-sortable="fx-quick"] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--dashboard-gap, 1rem);
  align-items: stretch;
}

.shell-user .fx-quick-row:not([data-dash-sortable]) {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: var(--dashboard-gap, 1rem);
  align-items: stretch;
}
.shell-user .fx-quick-row .fx-card {
  background: var(--fx-surface);
  border: none;
  border-radius: var(--dashboard-card-radius, var(--fx-radius));
  box-shadow: var(--dashboard-card-shadow, var(--shadow-sm));
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.shell-user .fx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.shell-user .fx-card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }

/* دسترسی سریع */
.shell-user .fx-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--dashboard-gap, 1rem);
  flex: 1;
}
.shell-user .fx-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  border: none;
  border-radius: var(--dashboard-card-radius, 12px);
  background: rgba(248, 250, 252, 0.95);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
}
.shell-user .fx-quick-btn:hover {
  background: var(--fx-blue-soft);
  transform: translateY(-2px);
  box-shadow: var(--dashboard-card-shadow, var(--shadow-sm));
}
.shell-user .fx-quick-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-surface));
  color: var(--text-secondary);
  border: 1px solid color-mix(in srgb, var(--fx-blue) 10%, transparent);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.shell-user .fx-quick-ico svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}
.shell-user .fx-quick-btn:hover .fx-quick-ico {
  color: var(--fx-blue);
  background: color-mix(in srgb, var(--fx-blue) 12%, var(--fx-surface));
  border-color: color-mix(in srgb, var(--fx-blue) 22%, transparent);
}
.shell-user .fx-quick-ico--blue,
.shell-user .fx-quick-ico--green,
.shell-user .fx-quick-ico--orange,
.shell-user .fx-quick-ico--purple,
.shell-user .fx-quick-ico--pink,
.shell-user .fx-quick-ico--teal {
  background: color-mix(in srgb, var(--fx-blue) 8%, var(--fx-surface));
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--fx-blue) 10%, transparent);
}

/* کارهای امروز */
.shell-user .fx-tasks-prog {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--fx-blue);
  background: var(--fx-blue-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.shell-user .fx-tasks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.shell-user .fx-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 9px;
  cursor: pointer;
}
.shell-user .fx-task:hover { background: var(--fx-blue-soft); }
.shell-user .fx-task-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1.5px solid var(--fx-border-strong);
  background: var(--fx-surface);
  color: transparent;
  cursor: pointer;
}
.shell-user .fx-task.is-done .fx-task-check { background: var(--fx-green, #16a34a); border-color: var(--fx-green, #16a34a); color: #fff; }
.shell-user .fx-task-text { font-size: 13px; color: var(--text); }
.shell-user .fx-task.is-done .fx-task-text { text-decoration: line-through; color: var(--text-tertiary); }

/* آب امروز */
.shell-user .fx-water-count { font-size: 12.5px; color: var(--text-secondary); }
.shell-user .fx-water-count strong { font-size: 16px; color: var(--fx-blue); }
.shell-user .fx-water-cups { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 14px; }
.shell-user .fx-water-cup {
  height: 36px;
  border-radius: 7px;
  border: 1.5px solid #80cbc4;
  background: var(--fx-surface);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.shell-user .fx-water-cup.is-full { background: linear-gradient(180deg, #4db6ac, #26a69a); border-color: #26a69a; }
.shell-user .fx-water-actions { display: flex; gap: 8px; }
.shell-user .fx-water-btn {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  border: none;
  background: var(--fx-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.shell-user .fx-water-btn:hover { filter: brightness(0.95); }
.shell-user .fx-water-btn--ghost { flex: 0 0 64px; background: #fff; border: 1px solid var(--fx-border-strong); color: var(--text-secondary); }

/* ═══════════════════ ردیف ویجت‌های عملیاتی (استریک/کیف‌پول/وضعیت) ═══════════════════ */
.shell-user .fx-ops-row[data-dash-sortable="fx-ops"] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--dashboard-gap, 1rem);
  align-items: stretch;
  margin-bottom: 0;
}

.shell-user .fx-ops-row:not([data-dash-sortable]) {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: var(--dashboard-gap, 1rem);
  align-items: stretch;
  margin-bottom: 0;
}
.shell-user .fx-ops-row .fx-card {
  background: var(--fx-surface);
  border: none;
  border-radius: var(--dashboard-card-radius, var(--fx-radius));
  padding: 18px;
  box-shadow: var(--dashboard-card-shadow, var(--shadow-sm));
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* — استریک و سطح (گیمیفیکیشن) — */
.shell-user .fx-streak-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 60%) !important;
  border-color: #fed7aa !important;
}
.shell-user .fx-streak-top { display: flex; align-items: center; gap: 12px; }
.shell-user .fx-streak-flame {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(160deg, #fb923c, #ef4444);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}
.shell-user .fx-streak-flame svg { width: 24px; height: 24px; }
.shell-user .fx-streak-meta { display: flex; flex-direction: column; gap: 2px; }
.shell-user .fx-streak-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.shell-user .fx-streak-days { font-size: 16px; font-weight: 800; color: var(--text); }
.shell-user .fx-streak-days span { color: #ea580c; }
.shell-user .fx-streak-points {
  margin-inline-start: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.shell-user .fx-streak-points span { font-size: 18px; font-weight: 800; color: var(--fx-orange); }
.shell-user .fx-streak-points small { font-size: 10.5px; color: var(--text-tertiary); }
.shell-user .fx-streak-week { display: flex; gap: 6px; margin: 16px 0 14px; }
.shell-user .fx-streak-dot {
  flex: 1;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
}
.shell-user .fx-streak-dot.on { background: linear-gradient(160deg, #fb923c, #f97316); color: #fff; }
.shell-user .fx-streak-dot.today { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f97316; }
.shell-user .fx-level-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-secondary); margin-bottom: 6px; }
.shell-user .fx-level-head b { color: var(--text); font-weight: 800; }
.shell-user .fx-level-bar { height: 8px; border-radius: 999px; background: #fde9d7; overflow: hidden; }
.shell-user .fx-level-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fb923c, #f97316); transition: width 0.4s ease; }

/* — اشتراک — */
.shell-user .fx-sub-plan {
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  padding: 3px 10px;
  border-radius: 999px;
}
.shell-user .fx-sub-info { margin-bottom: 14px; }
.shell-user .fx-sub-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.shell-user .fx-sub-row b { color: var(--text); font-weight: 700; }
.shell-user .fx-sub-bar { height: 7px; border-radius: 999px; background: var(--fx-blue-soft); overflow: hidden; }
.shell-user .fx-sub-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4db6ac, var(--fx-blue)); }
.shell-user .fx-sub-actions { display: flex; gap: 8px; }
.shell-user .fx-sub-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--fx-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.shell-user .fx-sub-btn:hover { filter: brightness(0.95); }
.shell-user .fx-sub-btn--ghost { background: var(--fx-surface); border: 1px solid var(--fx-border-strong); color: var(--text-secondary); }
.shell-user .fx-sub-btn--ghost:hover { border-color: var(--fx-blue); color: var(--fx-blue); background: var(--fx-blue-soft); filter: none; }

/* — وضعیت حساب (تیکت/سفارش/سبد/مربی) — */
.shell-user .fx-ops-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.fx-ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-ops-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fx-ops-head-copy h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}

.fx-ops-head-copy p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.fx-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fx-ops-tile,
.shell-user .fx-ops-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: var(--fx-surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.shell-user .fx-ops-item:hover { border-color: var(--fx-blue); background: var(--fx-blue-soft); transform: translateX(-2px); }
.fx-ops-tile:hover { border-color: var(--fx-blue); background: var(--fx-blue-soft); transform: translateY(-1px); }
.shell-user .fx-ops-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.shell-user .fx-ops-ico svg { width: 18px; height: 18px; }
.shell-user .fx-ops-ico--blue { background: rgba(38, 166, 154, 0.1); color: #26a69a; }
.shell-user .fx-ops-ico--green { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.shell-user .fx-ops-ico--orange { background: rgba(242, 101, 34, 0.1); color: #f26522; }
.shell-user .fx-ops-ico--purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.shell-user .fx-ops-text { font-size: 13px; font-weight: 600; color: var(--text); }
.shell-user .fx-ops-badge {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fx-blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.shell-user .fx-ops-badge--new { background: #16a34a; }
.shell-user .fx-ops-status {
  margin-inline-start: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ═══════════════════ تم موبایل / ریسپانسیو ═══════════════════ */

/* تبلت — کاهش ستون‌های شبکه */
@media (max-width: 1100px) {
  .shell-user { --sidebar-w: 240px; }
  .fx-score-row { grid-template-columns: repeat(2, 1fr); }
  .fx-weekly-body { grid-template-columns: 1fr; }
  .fx-programs-grid { grid-template-columns: 1fr; }
  /* ردیف‌های تو در تو: عرض کامل هر ویجت — grid ۱ ستونی + span باعث overflow می‌شد */
  .shell-user .fx-quick-row[data-dash-sortable] > [data-dash-sort-key],
  .shell-user .fx-ops-row[data-dash-sortable] > [data-dash-sort-key],
  .shell-user .fx-bottom-row[data-dash-sortable] > [data-dash-sort-key] {
    grid-column: 1 / -1;
  }
  .shell-user .content { padding: 18px 0 32px; }
}

/* موبایل — سایدبار کشویی (off-canvas) + هدر موبایل */
@media (max-width: 880px) {
  .shell-user .main {
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* سایدبار به‌صورت کشوی راست */
  .shell-user .sidebar-user-panel {
    transform: translateX(100%);
    width: 290px;
    max-width: 86vw;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.22);
    z-index: 130;
  }
  .shell-user .sidebar-user-panel.open { transform: translateX(0); }

  /* بک‌دراپ تیره پشت کشو */
  body.panel-sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 120;
    animation: fxBackdropIn 0.2s ease;
  }
  @keyframes fxBackdropIn { from { opacity: 0; } to { opacity: 1; } }

  /* دکمهٔ همبرگر */
  .shell-user .menu-btn {
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .shell-user .menu-btn:active { background: var(--fx-blue-soft); }

  /* هدر موبایل */
  .shell-user .up-header {
    padding: 10px 0;
    gap: 10px;
    min-height: 58px;
    margin-inline: 0;
    width: 100%;
  }
  .shell-user .fx-header-user { gap: 8px; }
  .shell-user .fx-header-name { display: none; }
  /* در موبایل: لینک‌های سایت و جمع‌کردن منو مخفی (کشو جایگزین است)؛ تغییر تم می‌ماند */
  .shell-user .up-header-site-nav { display: none !important; }
  .shell-user .panel-sidebar-collapse-btn { display: none !important; }
  .shell-user .panel-sidebar-collapse-btn,
  html[data-user-panel-theme="fitronix"] .panel-theme-toggle, html[data-user-panel-theme="firouzi"] .panel-theme-toggle{ width: 38px; height: 38px; }
  .shell-user .fx-header-cta {
    padding: 9px 12px;
    font-size: 12px;
  }
  .shell-user .content {
    padding: 12px clamp(10px, 3vw, 16px) calc(var(--panel-bn-h, 64px) + 20px + env(safe-area-inset-bottom, 0px));
  }
  .shell-user .fx-customize-hint { display: none; }
  .shell-user .fx-customize > summary { padding: 12px 14px; }
  .shell-user .fx-quick-grid { grid-template-columns: repeat(3, 1fr); }
}

/* موبایل کوچک */
@media (max-width: 768px) {
  .fx-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .fx-profile-avatar-wrap { margin: 0 auto; }
  .fx-profile-stats { justify-content: center; }
  .fx-profile-name-row { justify-content: center; }
  .fx-profile-col--actions { align-items: center; }
  .fx-profile-stat { border: none; padding: 0 12px; }
  .fx-promo-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .fx-promo-cta { width: 100%; justify-content: center; }
  .fx-body-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .fx-body-card-title-row {
    justify-content: space-between;
    width: 100%;
  }
  .fx-body-card-cta { width: 100%; justify-content: center; }
  .fx-body-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* جدول‌ها به‌صورت اسکرول افقی */
  .shell-user .view .tbl-wrap,
  .shell-user .view .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fx-health-grid { grid-template-columns: 1fr; }
  .fx-hw--monitor { grid-column: auto; }
  .fx-hw-monitor-body { grid-template-columns: 1fr; }
  .fx-hw-body { flex-direction: column; align-items: center; }
  .fx-hw-stats, .fx-hw-recovery-list { width: 100%; }
}

@media (max-width: 560px) {
  .fx-score-row { grid-template-columns: 1fr; }
  .shell-user .fx-header-cta {
    width: 38px;
    padding: 0;
    font-size: 0;
    display: inline-grid;
    place-items: center;
  }
  .shell-user .fx-header-cta::before {
    content: '✦';
    font-size: 16px;
  }
  .fx-card, .fx-profile-card, .fx-weekly, .fx-score-card { padding: 16px; }
}

/* ═══ پولیش کارت‌ها · تم روشن ═══ */
html[data-user-panel-theme="fitronix"] .fx-card, html[data-user-panel-theme="firouzi"] .fx-card,
html[data-user-panel-theme="fitronix"] .fx-hw, html[data-user-panel-theme="firouzi"] .fx-hw,
html[data-user-panel-theme="fitronix"] .fx-score-card, html[data-user-panel-theme="firouzi"] .fx-score-card,
html[data-user-panel-theme="fitronix"] .fx-weekly-card, html[data-user-panel-theme="firouzi"] .fx-weekly-card,
html[data-user-panel-theme="fitronix"] .fx-panel-card, html[data-user-panel-theme="firouzi"] .fx-panel-card,
html[data-user-panel-theme="fitronix"] .fx-customize, html[data-user-panel-theme="firouzi"] .fx-customize{
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow);
}

html[data-user-panel-theme="fitronix"] .fx-profile-card, html[data-user-panel-theme="firouzi"] .fx-profile-card{
  background: linear-gradient(145deg, var(--fx-surface) 0%, var(--up-surface-2) 100%);
}

html[data-user-panel-theme="fitronix"] .fx-score-card--total, html[data-user-panel-theme="firouzi"] .fx-score-card--total{
  background: linear-gradient(145deg, #e0f2f1 0%, var(--fx-surface) 100%);
  border-color: rgba(38, 166, 154, 0.18);
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .fx-score-card--total, html[data-user-panel-theme="firouzi"][data-theme="dark"] .fx-score-card--total{
  background: linear-gradient(145deg, #222 0%, var(--fx-surface) 100%);
  border-color: #3a3a3a;
}

html[data-user-panel-theme="fitronix"] .fx-quick-btn, html[data-user-panel-theme="firouzi"] .fx-quick-btn{
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

html[data-user-panel-theme="fitronix"] .fx-quick-btn:active, html[data-user-panel-theme="firouzi"] .fx-quick-btn:active{
  transform: scale(0.97);
}

/* ═══ موبایل فیت‌رونیکس — یکپارچه با bottom nav ═══ */
@media (max-width: 768px) {
  html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main{
    padding-inline: 14px;
  }

  html[data-user-panel-theme="fitronix"] .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half, html[data-user-panel-theme="firouzi"] .fx-dash[data-dash-sortable="fx-main"] > .dash-widget-size-half,
  html[data-user-panel-theme="fitronix"] .fx-dash[data-dash-sortable="fx-main"] > .fx-hw-standalone, html[data-user-panel-theme="firouzi"] .fx-dash[data-dash-sortable="fx-main"] > .fx-hw-standalone{
    grid-column: 1 / -1;
  }

  html[data-user-panel-theme="fitronix"] .fx-dash[data-dash-sortable="fx-main"], html[data-user-panel-theme="firouzi"] .fx-dash[data-dash-sortable="fx-main"]{
    gap: 12px;
  }

  html[data-user-panel-theme="fitronix"] .fx-score-row, html[data-user-panel-theme="firouzi"] .fx-score-row{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  html[data-user-panel-theme="fitronix"] .fx-score-card, html[data-user-panel-theme="firouzi"] .fx-score-card{
    min-height: 120px;
    padding: 14px;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-standalone, html[data-user-panel-theme="firouzi"] .fx-hw-standalone{
    border-radius: var(--fx-radius-lg);
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-quick-row, html[data-user-panel-theme="firouzi"] .shell-user .fx-quick-row,
  html[data-user-panel-theme="fitronix"] .shell-user .fx-ops-row, html[data-user-panel-theme="firouzi"] .shell-user .fx-ops-row,
  html[data-user-panel-theme="fitronix"] .shell-user .fx-bottom-row, html[data-user-panel-theme="firouzi"] .shell-user .fx-bottom-row{
    gap: 12px;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-quick-grid, html[data-user-panel-theme="firouzi"] .shell-user .fx-quick-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-quick-btn, html[data-user-panel-theme="firouzi"] .shell-user .fx-quick-btn{
    padding: 10px 6px;
    font-size: 11px;
    border-radius: 12px;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-quick-btn span:last-child, html[data-user-panel-theme="firouzi"] .shell-user .fx-quick-btn span:last-child{
    line-height: 1.2;
  }

  html[data-user-panel-theme="fitronix"] .up-bottom-nav, html[data-user-panel-theme="firouzi"] .up-bottom-nav{
    background: color-mix(in srgb, var(--up-surface) 94%, transparent);
    border-top-color: var(--fx-border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  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: rgba(15, 20, 25, 0.94);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  }

  html[data-user-panel-theme="fitronix"] .up-bottom-nav button.on, html[data-user-panel-theme="firouzi"] .up-bottom-nav button.on{
    color: var(--fx-blue);
    background: var(--fx-blue-soft);
  }

  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: #4db6ac;
    background: rgba(77, 182, 172, 0.14);
  }

  html[data-user-panel-theme="fitronix"] .shell-user .panel-theme-toggle, html[data-user-panel-theme="firouzi"] .shell-user .panel-theme-toggle,
  html[data-user-panel-theme="fitronix"] .shell-user .menu-btn, html[data-user-panel-theme="firouzi"] .shell-user .menu-btn{
    border-color: var(--fx-border);
    background: var(--fx-surface);
    box-shadow: var(--shadow-sm);
  }

  html[data-user-panel-theme="fitronix"] .fx-customize > summary, html[data-user-panel-theme="firouzi"] .fx-customize > summary{
    border-radius: var(--fx-radius-lg);
    background: var(--fx-surface);
  }

  html[data-user-panel-theme="fitronix"] .view, html[data-user-panel-theme="firouzi"] .view{
    overflow-x: hidden;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main{
    padding-inline: 12px;
  }

  html[data-user-panel-theme="fitronix"] .fx-score-row, html[data-user-panel-theme="firouzi"] .fx-score-row{
    grid-template-columns: 1fr;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-quick-grid, html[data-user-panel-theme="firouzi"] .shell-user .fx-quick-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══ رسپانسیو یکپارچه — جلوگیری از به‌هم‌ریختگی چیدمان ═══ */
html[data-user-panel-theme="fitronix"], html[data-user-panel-theme="firouzi"],
html[data-user-panel-theme="fitronix"] body.user-app, html[data-user-panel-theme="firouzi"] body.user-app{
  overflow-x: clip;
  max-width: 100%;
}

html[data-user-panel-theme="fitronix"] .shell-user .main::-webkit-scrollbar, html[data-user-panel-theme="firouzi"] .shell-user .main::-webkit-scrollbar{
  width: 8px;
}

html[data-user-panel-theme="fitronix"] .shell-user .main::-webkit-scrollbar-thumb, html[data-user-panel-theme="firouzi"] .shell-user .main::-webkit-scrollbar-thumb{
  background: rgba(100, 116, 139, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html[data-user-panel-theme="fitronix"][data-theme="dark"] .shell-user .main::-webkit-scrollbar-thumb, html[data-user-panel-theme="firouzi"][data-theme="dark"] .shell-user .main::-webkit-scrollbar-thumb{
  background: rgba(255, 255, 255, 0.18);
}

html[data-user-panel-theme="fitronix"] .shell-user .main::-webkit-scrollbar-track, html[data-user-panel-theme="firouzi"] .shell-user .main::-webkit-scrollbar-track{
  background: transparent;
}

html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main,
html[data-user-panel-theme="fitronix"] .fx-dash, html[data-user-panel-theme="firouzi"] .fx-dash,
html[data-user-panel-theme="fitronix"] .fx-dash [data-dash-sort-key], html[data-user-panel-theme="firouzi"] .fx-dash [data-dash-sort-key]{
  min-width: 0;
  box-sizing: border-box;
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .header, html[data-user-panel-theme="firouzi"] .shell-user .main > .header,
html[data-user-panel-theme="fitronix"] .shell-user .main > .content, html[data-user-panel-theme="firouzi"] .shell-user .main > .content{
  min-width: 0;
}

html[data-user-panel-theme="fitronix"] .fx-quick-row[data-dash-sortable], html[data-user-panel-theme="firouzi"] .fx-quick-row[data-dash-sortable],
html[data-user-panel-theme="fitronix"] .fx-ops-row[data-dash-sortable], html[data-user-panel-theme="firouzi"] .fx-ops-row[data-dash-sortable],
html[data-user-panel-theme="fitronix"] .fx-bottom-row[data-dash-sortable], html[data-user-panel-theme="firouzi"] .fx-bottom-row[data-dash-sortable]{
  grid-column: 1 / -1;
  width: 100%;
}

html[data-user-panel-theme="fitronix"] .fx-hw-standalone, html[data-user-panel-theme="firouzi"] .fx-hw-standalone{
  width: 100%;
  overflow: hidden;
}

@media (max-width: 880px) {
  html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main{
    width: 100% !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-inline: 16px;
    direction: rtl;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .up-header-titles h1, html[data-user-panel-theme="firouzi"] .shell-user .up-header-titles h1,
  html[data-user-panel-theme="fitronix"] .shell-user .up-header-titles #page-title, html[data-user-panel-theme="firouzi"] .shell-user .up-header-titles #page-title{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(42vw, 200px);
  }

  html[data-user-panel-theme="fitronix"] .shell-user .header-spacer, html[data-user-panel-theme="firouzi"] .shell-user .header-spacer{
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main{
    padding: 10px;
    padding-inline-end: 12px;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .content, html[data-user-panel-theme="firouzi"] .shell-user .content{
    padding: 12px clamp(10px, 3vw, 16px) calc(var(--panel-bn-h, 64px) + 20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .up-header-titles .desc, html[data-user-panel-theme="firouzi"] .shell-user .up-header-titles .desc{
    white-space: normal;
    overflow: visible;
    font-size: 10px;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot--4, html[data-user-panel-theme="firouzi"] .fx-hw-foot--4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot--3, html[data-user-panel-theme="firouzi"] .fx-hw-foot--3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot-item, html[data-user-panel-theme="firouzi"] .fx-hw-foot-item{
    min-width: 0;
    padding: 8px 4px;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot-item > span:last-child, html[data-user-panel-theme="firouzi"] .fx-hw-foot-item > span:last-child{
    font-size: 9px;
    line-height: 1.25;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-sleep-log-grid, html[data-user-panel-theme="firouzi"] .fx-hw-sleep-log-grid{
    grid-template-columns: 1fr;
  }

  html[data-user-panel-theme="fitronix"] .fx-profile-stats, html[data-user-panel-theme="firouzi"] .fx-profile-stats{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  html[data-user-panel-theme="fitronix"] .fx-profile-name-row h2, html[data-user-panel-theme="firouzi"] .fx-profile-name-row h2{
    font-size: 18px;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-streak-top, html[data-user-panel-theme="firouzi"] .shell-user .fx-streak-top{
    flex-wrap: wrap;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .fx-streak-points, html[data-user-panel-theme="firouzi"] .shell-user .fx-streak-points{
    margin-inline-start: 0;
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  html[data-user-panel-theme="fitronix"] .fx-hw-foot--3, html[data-user-panel-theme="firouzi"] .fx-hw-foot--3{
    grid-template-columns: 1fr;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot-item, html[data-user-panel-theme="firouzi"] .fx-hw-foot-item{
    border-left: none;
    border-top: 1px solid var(--fx-border);
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
    padding: 10px 12px;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot-item:first-child, html[data-user-panel-theme="firouzi"] .fx-hw-foot-item:first-child{
    border-top: none;
  }

  html[data-user-panel-theme="fitronix"] .fx-hw-foot-item strong, html[data-user-panel-theme="firouzi"] .fx-hw-foot-item strong{
    order: 2;
  }

  html[data-user-panel-theme="fitronix"] .shell-user .up-header-titles h1, html[data-user-panel-theme="firouzi"] .shell-user .up-header-titles h1,
  html[data-user-panel-theme="fitronix"] .shell-user .up-header-titles #page-title, html[data-user-panel-theme="firouzi"] .shell-user .up-header-titles #page-title{
    max-width: 36vw;
    font-size: 14px;
  }
}

/* ═══ لAYOUT تمام‌عرض — کارت یکپارچه هدر + محتوا (فقط دسکتاپ) ═══ */
html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main{
  flex: 1 1 auto;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: clip;
  scrollbar-gutter: stable;
  box-sizing: border-box;
}

@media (min-width: 881px) {
  html[data-user-panel-theme="fitronix"] .shell-user .main, html[data-user-panel-theme="firouzi"] .shell-user .main{
    width: calc(100% - var(--sidebar-w)) !important;
    max-width: calc(100vw - var(--sidebar-w)) !important;
    margin-right: var(--sidebar-w);
    margin-left: 0;
    direction: ltr;
    padding-block: var(--fx-panel-gap, 14px);
    padding-inline-start: 0;
    padding-inline-end: calc(var(--fx-panel-gap, 14px) + 4px);
  }
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .header, html[data-user-panel-theme="firouzi"] .shell-user .main > .header,
html[data-user-panel-theme="fitronix"] .shell-user .main > .content, html[data-user-panel-theme="firouzi"] .shell-user .main > .content{
  direction: rtl;
}

html[data-user-panel-theme="fitronix"] .shell-user .content, html[data-user-panel-theme="firouzi"] .shell-user .content,
html[data-user-panel-theme="fitronix"] .shell-user .main > .content, html[data-user-panel-theme="firouzi"] .shell-user .main > .content{
  flex: 1 0 auto;
  min-height: auto !important;
  overflow: visible !important;
  overflow-x: clip;
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .header, html[data-user-panel-theme="firouzi"] .shell-user .main > .header,
html[data-user-panel-theme="fitronix"] .shell-user .main > .content, html[data-user-panel-theme="firouzi"] .shell-user .main > .content{
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
  background: var(--fx-surface);
  border-inline: 1px solid var(--fx-border);
}

/* داشبورد: عرض کامل */
html[data-user-panel-theme="fitronix"] .shell-user .main:has(#view-dashboard.active) > .header,
html[data-user-panel-theme="firouzi"] .shell-user .main:has(#view-dashboard.active) > .header,
html[data-user-panel-theme="fitronix"] .shell-user .main:has(#view-dashboard.active) > .content,
html[data-user-panel-theme="firouzi"] .shell-user .main:has(#view-dashboard.active) > .content {
  max-width: none !important;
  margin-inline: 0 !important;
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .header, html[data-user-panel-theme="firouzi"] .shell-user .main > .header{
  border-radius: var(--fx-radius-lg) var(--fx-radius-lg) 0 0;
  border-bottom: none;
  padding-inline: clamp(14px, 1.6vw, 22px);
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .content, html[data-user-panel-theme="firouzi"] .shell-user .main > .content{
  border-top: none;
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .content:not(:has(+ .panel-footer)), html[data-user-panel-theme="firouzi"] .shell-user .main > .content:not(:has(+ .panel-footer)){
  border-radius: 0 0 var(--fx-radius-lg) var(--fx-radius-lg);
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .content:has(+ .panel-footer), html[data-user-panel-theme="firouzi"] .shell-user .main > .content:has(+ .panel-footer){
  border-radius: 0;
  padding-bottom: 20px !important;
}

html[data-user-panel-theme="fitronix"] .shell-user .main > .panel-footer, html[data-user-panel-theme="firouzi"] .shell-user .main > .panel-footer{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px clamp(14px, 1.6vw, 22px) 14px;
  border-inline: 1px solid var(--fx-border);
  border-top: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
  border-radius: 0 0 var(--fx-radius-lg) var(--fx-radius-lg);
  background: var(--fx-surface);
  box-sizing: border-box;
  font-size: 11.5px;
  color: var(--text-tertiary);
  gap: 8px 14px;
  position: sticky;
  bottom: 0;
  z-index: 25;
  margin-top: auto;
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-brand, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-brand{
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-brand .brand-mark, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-brand .brand-mark{
  width: 22px;
  height: 22px;
  font-size: 10px;
  border-radius: 6px;
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-text, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-text{
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-ver, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-ver{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1;
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-ver .dash-scroll-ver-icon, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-ver .dash-scroll-ver-icon{
  display: inline-flex;
  align-items: center;
  color: var(--fx-orange);
  line-height: 0;
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-ver .dash-scroll-ver-icon svg, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-ver .dash-scroll-ver-icon svg{
  width: 13px;
  height: 13px;
}

html[data-user-panel-theme="fitronix"] .shell-user .panel-footer-links, html[data-user-panel-theme="firouzi"] .shell-user .panel-footer-links{
  gap: 10px;
  font-size: 11px;
}

html[data-user-panel-theme="fitronix"] .shell-user .up-header, html[data-user-panel-theme="firouzi"] .shell-user .up-header{
  box-shadow: none;
}

html[data-user-panel-theme="fitronix"] .shell-user .content, html[data-user-panel-theme="firouzi"] .shell-user .content{
  padding: 0 0 40px !important;
}

html[data-user-panel-theme="fitronix"] .shell-user .up-header-titles .desc, html[data-user-panel-theme="firouzi"] .shell-user .up-header-titles .desc{
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
}

html[data-user-panel-theme="fitronix"] .fx-dash[data-dash-sortable="fx-main"], html[data-user-panel-theme="firouzi"] .fx-dash[data-dash-sortable="fx-main"],
html[data-user-panel-theme="fitronix"] .shell-user .view, html[data-user-panel-theme="firouzi"] .shell-user .view{
  width: 100%;
  max-width: none;
}

/* ═══ Dashboard polish v2 — greet · sleep · ops · activity ═══ */

.fx-greet-v2 .fx-greet-layout {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.fx-greet-v2 .up-dash-greet-portrait {
  flex-shrink: 0;
  width: 120px;
}

.fx-greet-v2 .up-dash-greet-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--fx-teal, #26a69a) 35%, var(--fx-border));
  box-shadow: 0 8px 24px rgba(38, 166, 154, 0.18);
  background: linear-gradient(145deg, rgba(38, 166, 154, 0.08), rgba(255, 255, 255, 0.9));
}

.fx-greet-v3 .up-dash-greet-portrait.has-custom-avatar .up-greet-char--custom:not([hidden]) {
  display: block !important;
}

.fx-greet-v2 .up-greet-char--custom:not([hidden]) {
  display: block !important;
}

.fx-greet-v2 .fx-greet-about {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--fx-teal, #26a69a) 28%, var(--fx-border));
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.06), rgba(255, 255, 255, 0.72));
}

.fx-greet-v2 .fx-greet-about-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--fx-teal, #26a69a);
  margin-bottom: 4px;
}

.fx-greet-v2 .fx-greet-about-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.fx-greet-v2 .fx-greet-about-empty {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

.fx-greet-v2 .fx-greet-main {
  flex: 1;
  min-width: 0;
}

.fx-greet-v2 .fx-greet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.fx-greet-v2 .up-dash-greet-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
}

.fx-greet-v2 .fx-greet-date {
  flex-shrink: 0;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--fx-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
  white-space: nowrap;
}

.fx-greet-v2 .up-dash-greet-name-row {
  margin-bottom: 2px;
}

.fx-greet-v2 .up-dash-greet-sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.fx-greet-v2 .up-dash-greet-details {
  margin-top: 10px;
}

.fx-greet-v2 .fx-greet-stats {
  margin-top: 14px;
}

.fx-greet-v2 .fx-greet-stat {
  flex: 1 1 0;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--fx-border);
  background: linear-gradient(180deg, rgba(38, 166, 154, 0.05), rgba(38, 166, 154, 0.02));
}

.fx-greet-v2 .fx-greet-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.fx-greet-v2 .fx-greet-toolbar .fx-profile-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.fx-greet-v2 .fx-greet-toolbar .fx-profile-icon-btn:hover {
  border-color: var(--fx-blue);
  background: var(--fx-blue-soft);
  color: var(--fx-blue);
}

.fx-greet-v2 .fx-greet-edit-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-surface);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ═══ Dashboard greet v3 — portrait · tasks integrated ═══ */

.fx-greet-v3.up-dash-greet,
.fx-greet-v3.fx-dash-greet {
  padding: 24px 26px 24px 28px;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.72));
  border: 1px solid color-mix(in srgb, #2563eb 16%, var(--fx-border));
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.fx-greet-v3 .fx-greet-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.fx-greet-v3 .fx-greet-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.fx-greet-v3 .up-dash-greet-portrait {
  width: 168px;
  position: relative;
}

.fx-greet-v3 .up-dash-greet-portrait::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #2563eb, #60a5fa, #93c5fd, #2563eb);
  opacity: 0.35;
  z-index: 0;
}

.fx-greet-v3 .up-dash-greet-avatar {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
  background: #fff;
}

.fx-greet-v3 .up-dash-greet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-greet-v3 .up-dash-greet-name-row h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fx-greet-v3 .fx-greet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fx-greet-v3 .fx-greet-stat {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #2563eb 14%, var(--fx-border));
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.fx-greet-v3 .fx-greet-stat .val {
  font-size: 15px;
  font-weight: 800;
  color: #1d4ed8;
}

.fx-greet-v3 .fx-greet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.fx-greet-v3 .fx-greet-tasks {
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #2563eb 14%, var(--fx-border));
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  min-height: 100%;
}

.fx-greet-v3 .fx-greet-tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in srgb, #2563eb 18%, var(--fx-border));
}

.fx-greet-v3 .fx-greet-tasks-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.fx-greet-v3 .fx-tasks-list {
  max-height: 220px;
  overflow-y: auto;
}

.fx-greet-v3 .fx-task {
  padding: 7px 8px;
  border-radius: 10px;
}

/* Sleep widget v2 */
.fx-hw--sleep .fx-sleep-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fx-hw--sleep .fx-sleep-pane[hidden] {
  display: none !important;
}

.fx-hw--sleep .fx-sleep-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  min-height: 0;
}

.fx-hw--sleep .fx-sleep-pane--empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.fx-hw--sleep .fx-sleep-empty-art {
  width: 72px;
  height: 72px;
  color: var(--fx-blue);
  opacity: 0.85;
}

.fx-hw--sleep .fx-sleep-empty-art svg {
  width: 100%;
  height: 100%;
}

.fx-hw--sleep .fx-sleep-pane--empty p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.fx-sleep-cta {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.12s, box-shadow 0.15s;
}

.fx-sleep-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34);
}

.fx-hw--sleep .fx-sleep-form-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.fx-hw--sleep .fx-sleep-form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.fx-hw--sleep .fx-sleep-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.fx-hw--sleep .fx-sleep-score {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
}

.fx-hw--sleep .fx-sleep-score .lbl {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.fx-hw--sleep .fx-sleep-score strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.fx-hw--sleep .fx-sleep-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fx-hw--sleep .fx-sleep-metric {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--fx-border);
  background: rgba(0, 0, 0, 0.02);
  text-align: center;
}

.fx-hw--sleep .fx-sleep-metric .lbl {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.fx-hw--sleep .fx-sleep-metric strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

/* Ops card v2 */
.fx-ops-card--v2 .fx-ops-head-main h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.fx-ops-card--v2 .fx-ops-head {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.fx-ops-card--v2 .fx-ops-tile {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 16px 10px;
  min-height: 118px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
}

.fx-ops-card--v2 .fx-ops-tile .fx-ops-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0;
}

.fx-ops-card--v2 .fx-ops-tile .fx-ops-text {
  font-size: 12px;
  line-height: 1.4;
}

.fx-ops-card--v2 .fx-ops-tile .fx-ops-badge,
.fx-ops-card--v2 .fx-ops-tile .fx-ops-status {
  margin-inline-start: 0;
}

/* Activity list v2 */
.fx-panel-card .fx-activities-list {
  gap: 8px;
}

.fx-panel-card .fx-activity-item {
  padding: 12px 14px;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.015);
  border-bottom: none;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.fx-panel-card .fx-activity-item:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.04);
  transform: translateX(-2px);
}

.fx-panel-card .fx-activity-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.fx-panel-card .fx-activity-body strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.fx-panel-card .fx-activity-body span {
  font-size: 11px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .fx-greet-v2 .fx-greet-layout,
  .fx-greet-v3 .fx-greet-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fx-greet-v2 .fx-greet-toolbar,
  .fx-greet-v3 .fx-greet-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .fx-greet-v2 .fx-greet-stats,
  .fx-greet-v3 .fx-greet-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-greet-v3 .up-dash-greet-portrait {
    margin: 0 auto;
  }

  .fx-greet-v3 .fx-greet-tasks {
    width: 100%;
  }

  .fx-hw--sleep .fx-sleep-hero {
    flex-direction: column;
    text-align: center;
  }

  .fx-hw--sleep .fx-sleep-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .fx-hw--sleep .fx-sleep-metrics {
    grid-template-columns: 1fr;
  }
}

/* ─── خطوط انرژی · تم روشن (fitronix.css پس‌زمینه main را بازنویسی می‌کند) ─── */
html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) body.user-app {
  background: var(--fx-bg) !important;
}

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

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .shell-user .fxu-circuit-bg .fxa-circuit-lines {
  stroke: var(--accent-2, #ea580c);
  opacity: 0.85;
}

html[data-user-panel-theme="fitronix"]:not([data-theme="dark"]) .shell-user .fxu-circuit-bg .fxa-circuit-node {
  fill: var(--accent-2, #ea580c);
  opacity: 0.78;
}

