/* قسم «اللياقة البدنية» (Fitness/Default.aspx و Admin/Fitness.aspx). لون القسم أخضر ليموني. */
.fx-app, .fx-player, .fx-admin, .fx-sheet-wrap {
  --fx: #4d7c0f; --fx2: #65a30d; --fx3: #84cc16; --fx-soft: #ecfccb; --fx-soft2: #f7fee7; --fx-far: #3f6212; --fx-near: #65a30d; --fx-tile: #f1f5e9; --fx-on: #fff;
}
[data-theme="dark"] .fx-app, [data-theme="dark"] .fx-player, [data-theme="dark"] .fx-admin, [data-theme="dark"] .fx-sheet-wrap {
  --fx: #a3e635; --fx2: #84cc16; --fx-soft: rgba(163,230,53,.14); --fx-soft2: rgba(163,230,53,.07); --fx-far: #4d7c0f; --fx-near: #a3e635; --fx-tile: rgba(255,255,255,.06); --fx-on: #0f131a;
}
.fx-app { max-width: 760px; margin: 0 auto; padding-bottom: 84px; }
.fx-app h3 { margin: 16px 0 8px; font-size: 1.02rem; }
.fx-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.fx-head h1 { margin: 0; font-size: 1.35rem; }
.fx-sp { flex: 1; }
.fx-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fx-brand img { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 3px; box-shadow: var(--shadow); }
.fx-brand .fx-title { font-weight: 800; font-size: 1.1rem; color: var(--fx); }
.fx-ib { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 16px; cursor: pointer; flex: none; }
.fx-flame { display: inline-flex; align-items: center; gap: 3px; background: #fff7ed; color: #c2410c; border-radius: 99px; padding: 2px 12px; font-weight: 800; }
[data-theme="dark"] .fx-flame { background: rgba(234,88,12,.16); color: #fdba74; }
.fx-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.fx-chip { display: inline-block; border: 0; font: inherit; background: var(--fx-tile); color: var(--muted); border-radius: 99px; padding: 3px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.fx-chip.on { background: var(--fx-soft); color: var(--fx); }
.fx-plans { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
/* الشخصية المتحركة */
.fx-fig { display: block; width: 100%; height: 100%; }
.fx-fig .cl { fill: #262a33; }
.fx-fig .far .cl { fill: #3e4450; }
.fx-fig .sk { fill: #e2a77f; }
.fx-fig .far .sk { fill: #c98c66; }
.fx-fig .hr { fill: #4a2e1d; }
.fx-fig .so { fill: #f8fafc; stroke: #9ca3af; stroke-width: .6; }
.fx-fig .far .so { fill: #e5e7eb; }
.fx-fig .mat { fill: #52525b; }
.fx-fig .sh { fill: rgba(0,0,0,.12); }
.fx-fig .wall { fill: #d4d4d8; }
.fx-fig .chair rect { fill: #57534e; }
.fx-fig .chair .bk { fill: #7c2d12; }
.fx-media { width: 100%; height: 100%; object-fit: contain; display: block; }
.fx-thumb { width: 58px; height: 58px; border-radius: 13px; background: linear-gradient(#f6f6f7, #e7e7ea); display: grid; place-items: center; overflow: hidden; flex: none; padding: 3px; }
/* الخطة */
.fx-hero { position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 16px; background: linear-gradient(135deg, #365314, #4d7c0f 55%, #65a30d); min-height: 140px; }
.fx-hero h2 { margin: 2px 0 10px; font-size: 1.2rem; max-width: 62%; line-height: 1.45; }
.fx-hero .small { opacity: .9; }
.fx-hero .fx-bar { max-width: 60%; }
.fx-hero-fig { position: absolute; inset-inline-end: 6px; bottom: -2px; width: 110px; height: 124px; }
.fx-hero-fig .fx-fig .sh { fill: rgba(0,0,0,.18); }
.fx-bar { height: 8px; border-radius: 9px; background: rgba(255,255,255,.25); overflow: hidden; margin: 4px 0; }
.fx-bar i { display: block; height: 100%; background: #d9f99d; border-radius: 9px; transition: width .4s; }
.fx-bar.l { background: var(--fx-tile); }
.fx-bar.l i { background: var(--fx2); }
.fx-days { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fx-day, .fx-ex, .fx-hrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 8px 10px; cursor: pointer; }
.fx-day .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--fx-tile); flex: none; }
.fx-day.done .n { background: var(--fx2); color: #fff; }
.fx-day.cur { border: 2px solid var(--fx2); background: var(--fx-soft2); }
.fx-day.cur .n { background: var(--fx); color: var(--fx-on); }
.fx-day.rest .n { background: var(--fx-soft); color: var(--fx); }
.fx-day .t, .fx-ex .t, .fx-hrow .t { flex: 1; min-width: 0; }
.fx-day .t b, .fx-ex .t b, .fx-hrow .t b { display: block; }
.fx-day .t span, .fx-hrow .t span { font-size: .8rem; color: var(--muted); }
.fx-ex .t span { font-size: .85rem; color: var(--fx); font-weight: 700; }
.fx-moon { font-size: 22px; width: 52px; text-align: center; }
/* استكشف */
.fx-search { width: 100%; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 14px; padding: 10px 14px; font: inherit; }
.fx-focus { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fx-focus button { flex: none; width: 70px; border: 0; background: none; font: inherit; font-size: .8rem; color: var(--text); cursor: pointer; padding: 0; }
.fx-focus .ring { width: 58px; height: 58px; border-radius: 50%; background: var(--fx-soft); display: grid; place-items: center; font-size: 26px; margin: 0 auto 3px; }
.fx-focus .on .ring { background: var(--fx2); box-shadow: 0 0 0 3px var(--fx-soft); }
.fx-focus .on { font-weight: 700; color: var(--fx); }
.fx-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fx-wk { flex: none; width: 160px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; padding: 0; }
.fx-grid .fx-wk { width: auto; }
.fx-wk .fx-thumb { width: 100%; height: 110px; border-radius: 16px; padding: 6px; }
.fx-wk b { display: block; font-size: .92rem; margin-top: 5px; line-height: 1.4; }
.fx-wk span:last-child { font-size: .78rem; color: var(--muted); }
/* تفاصيل */
.fx-dtop { display: flex; gap: 12px; align-items: center; }
.fx-dtop h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.fx-thumb.fx-big { width: 100px; height: 100px; border-radius: 18px; }
.fx-stats { display: flex; gap: 8px; margin: 12px 0; }
.fx-stats > div { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 4px; text-align: center; }
.fx-stats b { display: block; font-size: 1.1rem; color: var(--fx); }
.fx-stats span { font-size: .75rem; color: var(--muted); }
.fx-exl { display: flex; flex-direction: column; gap: 7px; }
.fx-sticky { position: sticky; bottom: 76px; margin-top: 14px; z-index: 5; }
.btn.fx-go { width: 100%; padding: 13px; font-size: 1.05rem; border-radius: 16px; background: var(--fx2); border-color: var(--fx2); color: #fff; }
[data-theme="dark"] .btn.fx-go { background: var(--fx); border-color: var(--fx); color: var(--fx-on); }
/* السجل */
.fx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fx-tiles > div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 4px; text-align: center; }
.fx-tiles b { display: block; font-size: 1.25rem; color: var(--fx); }
.fx-tiles span { font-size: .74rem; color: var(--muted); }
.fx-cal-card { padding: 10px 12px; }
.fx-cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fx-cal-nav .fx-ib { width: 32px; height: 32px; }
.fx-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: .88rem; }
.fx-cal .h { color: var(--muted); font-size: .68rem; }
.fx-cal span { height: 34px; display: grid; place-items: center; border-radius: 50%; }
.fx-cal span.w { background: var(--fx2); color: #fff; font-weight: 700; }
[data-theme="dark"] .fx-cal span.w { color: var(--fx-on); background: var(--fx); }
.fx-cal span.today { outline: 2px solid var(--fx2); }
.fx-goal { margin: 12px 0 2px; }
.fx-hist { display: flex; flex-direction: column; gap: 6px; }
.fx-hrow { cursor: default; }
/* حسابي */
.fx-me { display: flex; gap: 12px; align-items: center; padding: 12px; }
.fx-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--fx-soft); display: grid; place-items: center; font-size: 24px; flex: none; }
.fx-sets { padding: 4px 14px; margin-top: 10px; }
.fx-set { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0; }
.fx-set:last-child { border-bottom: 0; }
.fx-set select { width: auto; min-width: 130px; }
.fx-tg { width: 22px; height: 22px; accent-color: var(--fx2); }
.fx-health { padding: 10px 14px; margin-top: 10px; }
.fx-reset { margin-top: 12px; }
/* الشريط السفلي */
.fx-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; background: var(--card); border-top: 1px solid var(--border); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.fx-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .75rem; color: var(--muted); text-decoration: none; position: relative; }
.fx-nav a i { font-style: normal; font-size: 20px; line-height: 1.25; filter: grayscale(1); opacity: .7; }
.fx-nav a.on { color: var(--fx); font-weight: 700; }
.fx-nav a.on i { filter: none; opacity: 1; }
@media (min-width: 900px) { .fx-nav { max-width: 760px; margin: 0 auto; border: 1px solid var(--border); border-radius: 18px 18px 0 0; } }
/* المشغّل */
html.fx-playing, html.fx-playing body { overflow: hidden; }
.fx-player { position: fixed; inset: 0; z-index: 1000; background: var(--bg); color: var(--text); overflow-y: auto; padding: calc(10px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); }
.fx-ptop { display: flex; gap: 8px; align-items: center; max-width: 560px; margin: 0 auto; }
.fx-prog { display: flex; gap: 3px; margin: 10px auto; max-width: 560px; }
.fx-prog i { flex: 1; height: 5px; border-radius: 5px; background: var(--fx-tile); }
.fx-prog i.d { background: var(--fx2); }
.fx-prog i.c { background: var(--fx3); }
.fx-pbody { max-width: 560px; margin: 0 auto; text-align: center; }
.fx-pbody h2 { margin: 8px 0 4px; font-size: 1.4rem; }
.fx-ready-t { font-size: 1.8rem !important; margin-top: 24px !important; }
.fx-stage { background: linear-gradient(#f7f7f8, #e6e6e9); border: 1px solid var(--border); border-radius: 24px; height: min(42vh, 330px); padding: 10px; display: grid; place-items: center; }
.fx-stage-sm { height: 220px; }
.fx-ring { position: relative; width: 190px; height: 190px; margin: 10px auto; }
.fx-pbody .fx-ring { width: min(190px, 30vh); height: min(190px, 30vh); }
.fx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-ring .bg { fill: none; stroke: var(--fx-tile); stroke-width: 8; }
.fx-ring .fg { fill: none; stroke: var(--fx-timer, var(--fx2)); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.fx-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.2rem; font-weight: 800; color: var(--fx-timer, var(--fx)); direction: ltr; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .fx-ring b { color: var(--fx); }
.fx-big { font-size: 3.6rem; font-weight: 800; line-height: 1.15; direction: ltr; font-variant-numeric: tabular-nums; color: var(--fx-timer, var(--text)); margin: 8px 0; }
.fx-big-s { font-size: 2.6rem; }
.fx-tbar { max-width: 320px; margin: 4px auto 0; height: 10px; }
.fx-tbar i { background: var(--fx-timer, var(--fx2)) !important; }
.fx-reps { color: var(--fx); }
.fx-ctr { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.fx-ctr .fx-ib { width: 48px; height: 48px; }
.fx-pp { min-width: 72px; height: 72px; border-radius: 36px; border: 0; background: var(--fx2); color: #fff; font: inherit; font-size: 1.5rem; cursor: pointer; padding: 0 20px; }
.fx-pp-next { font-size: 1.1rem; font-weight: 800; }
[data-theme="dark"] .fx-pp { background: var(--fx); color: var(--fx-on); }
.fx-skip { margin: 8px auto 0; padding: 6px 28px; }
.fx-next { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 8px; margin-top: 22px; text-align: start; color: var(--text); }
.fx-next .fx-thumb { width: 64px; height: 64px; }
.fx-next b { display: block; }
.fx-amt { color: var(--fx); font-weight: 800; }
.fx-rest { padding-top: 6vh; }
.fx-rest .fx-big { font-size: 4.4rem; color: var(--fx); }
.fx-rest-btns { display: flex; gap: 10px; justify-content: center; }
.fx-done .fx-party { font-size: 2.2rem; margin-top: 10px; }
.fx-done-fig { width: 150px; height: 160px; margin: 0 auto; }
.fx-feel { display: flex; gap: 8px; margin-bottom: 14px; }
.fx-feel button { flex: 1; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; padding: 8px 2px; cursor: pointer; }
.fx-feel button.on { border: 2px solid var(--fx2); background: var(--fx-soft2); font-weight: 700; }
.fx-feel i { font-style: normal; font-size: 24px; display: block; }
/* نافذة طريقة الأداء */
.fx-sheet-wrap { position: fixed; inset: 0; z-index: 1100; }
.fx-dim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.fx-sheet { position: absolute; inset-inline: 0; bottom: 0; max-height: 88vh; overflow-y: auto; max-width: 600px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: 24px 24px 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); text-align: start; }
.fx-sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--border); margin: 0 auto 10px; }
.fx-sheet h2 { margin: 10px 0 4px; font-size: 1.3rem; }
.fx-sheet h3 { margin: 12px 0 4px; font-size: 1rem; }
.fx-steps { margin: 0 0 8px; padding-inline-start: 20px; }
.fx-steps li { margin-bottom: 4px; }
.fx-toast { position: fixed; bottom: 90px; inset-inline: 16px; max-width: 420px; margin: 0 auto; background: #1f2937; color: #fff; text-align: center; padding: 10px 14px; border-radius: 14px; z-index: 1200; }

/* ===== لوحة المشرف ===== */
.fx-admin .fx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.fx-admin .fx-tabs button { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 99px; padding: 6px 14px; font: inherit; cursor: pointer; }
.fx-admin .fx-tabs button.on { background: var(--fx2); border-color: var(--fx2); color: #fff; font-weight: 700; }
[data-theme="dark"] .fx-admin .fx-tabs button.on { color: var(--fx-on); background: var(--fx); }
.fx-acard { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.fx-acard .t { flex: 1; min-width: 0; }
.fx-acard .t b { display: block; }
.fx-acard .en { font-size: .82rem; color: var(--muted); direction: ltr; text-align: start; unicode-bidi: plaintext; }
.fx-acard.off { opacity: .55; }
.fx-acard .fx-thumb { width: 56px; height: 56px; }
.fx-form { background: var(--card); border: 2px solid var(--fx2); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.fx-form .fx-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.fx-form label.lbl { display: block; font-size: .82rem; color: var(--muted); margin: 8px 0 3px; }
.fx-form input[type=text], .fx-form input[type=number], .fx-form textarea, .fx-form select { width: 100%; }
.fx-form textarea { min-height: 76px; }
.fx-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.fx-pick button { border: 2px solid transparent; background: linear-gradient(#f6f6f7, #e7e7ea); border-radius: 12px; height: 84px; padding: 4px; cursor: pointer; font: inherit; font-size: .66rem; color: var(--muted); display: flex; flex-direction: column; }
.fx-pick button .fx-fig { flex: 1; min-height: 0; }
.fx-pick button.on { border-color: var(--fx2); background: var(--fx-soft); color: var(--fx); font-weight: 700; }
.fx-up { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 2px dashed var(--border); border-radius: 14px; padding: 10px; margin-top: 8px; }
.fx-up .fx-thumb { width: 64px; height: 64px; }
.fx-seg { display: inline-flex; background: var(--fx-tile); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.fx-seg button { border: 0; background: none; font: inherit; padding: 5px 14px; border-radius: 9px; cursor: pointer; color: var(--text); }
.fx-seg button.on { background: var(--card); color: var(--fx); font-weight: 700; box-shadow: var(--shadow); }
.fx-tstyle { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-tstyle button { width: 104px; border: 2px solid var(--border); background: var(--card); color: var(--text); border-radius: 14px; padding: 8px; font: inherit; cursor: pointer; }
.fx-tstyle button.on { border-color: var(--fx2); background: var(--fx-soft2); font-weight: 700; }
.fx-tstyle svg { width: 56px; height: 56px; display: block; margin: 0 auto 2px; }
.fx-sw { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fx-sw button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; }
.fx-sw button.on { outline: 3px solid var(--text); outline-offset: 2px; }
.fx-pday { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; margin-bottom: 7px; }
.fx-pday-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fx-pday-h b { min-width: 64px; }
.fx-pday-h span { flex: 1; color: var(--muted); font-size: .85rem; }
.fx-pday.open { border: 2px solid var(--fx2); }
.fx-irow { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.fx-irow .fx-thumb { width: 44px; height: 44px; }
.fx-irow .nm { flex: 1; min-width: 120px; }
.fx-irow input[type=number] { width: 80px; }
.fx-term { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; margin-bottom: 7px; }
.fx-term .k { font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.fx-term .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 6px; margin-top: 4px; }
.fx-term .two input[dir=ltr] { text-align: left; }
.fx-linkbtn { border: 0; background: none; color: var(--fx); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.fx-adm-save { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; z-index: 5; }
.fx-dirty { color: var(--warning); font-weight: 700; }
@media (max-width: 760px) { body.has-bottom-nav .fx-nav { bottom: calc(58px + env(safe-area-inset-bottom)); padding-bottom: 6px; } body.has-bottom-nav .fx-app { padding-bottom: 150px; } body.has-bottom-nav .fx-sticky { bottom: 136px; } }
.fx-unit { border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 99px; padding: 2px 8px; font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap; }
