/* Octopus Fit — training pages in the member app (phase 5) */
.ofa-train-cta { display: flex; align-items: center; gap: 12px; margin-top: 12px; background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff;
                 border-radius: 18px; padding: 12px 14px; }
.ofa-train-cta b { display: block; font-size: 16px; } .ofa-train-cta small { display: block; font-size: 12px; opacity: .75; }
.ofa-train-ic { font-size: 28px; } .ofa-arrow { margin-inline-start: auto; font-size: 26px; opacity: .6; }
html[dir="ltr"] .ofa-arrow { transform: scaleX(-1); }
.oft-sub { margin: -8px 0 10px; }
.oft-coach { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.oft-coach b { display: block; font-size: 16px; } .oft-coach small { color: var(--muted); font-size: 12.5px; }
.oft-coach.big { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.oft-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--orange), var(--navy)); color: #fff;
              display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; }
.oft-upsell p { margin: 0 0 6px; }
.oft-prog b { display: block; font-size: 16px; } .oft-prog small { color: var(--muted); font-size: 12.5px; }
.oft-today { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; margin-top: 10px;
             background: #FFF4EE; border: 1px solid #FFD0BA; border-radius: 16px; padding: 10px 12px; color: var(--navy); }
.oft-today-l { grid-row: span 2; background: var(--orange); color: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 900; font-size: 13px; }
.oft-today b { font-size: 16px; } .oft-today small { grid-column: 2; color: var(--muted); font-size: 12.5px; } .oft-today .ofa-btn { grid-row: 1 / span 2; grid-column: 3; }
.oft-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.oft-macros > div { background: var(--bg); border-radius: 14px; padding: 8px; text-align: center; border-top: 4px solid var(--navy); }
.oft-macros .p { border-top-color: #EF4444; } .oft-macros .c { border-top-color: #F59E0B; } .oft-macros .f { border-top-color: #14B8A6; }
.oft-macros b { display: block; font-size: 18px; font-weight: 900; } .oft-macros small { font-size: 11px; color: var(--muted); font-weight: 700; }
.oft-macros.big > div { background: #fff; border: 1px solid var(--line); border-top-width: 4px; }
.oft-water { margin: 10px 0; font-weight: 800; }
.oft-meal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.oft-meal-h { display: flex; align-items: center; gap: 8px; } .oft-meal-h b { font-size: 16px; } .oft-kcal { margin-inline-start: auto; color: var(--orange); font-weight: 900; font-size: 13px; }
.oft-meal-items { white-space: pre-line; color: #334155; font-size: 14px; margin-top: 4px; }
.oft-kpis { display: flex; gap: 10px; margin-bottom: 6px; }
.oft-kpis > div { flex: 1; background: var(--bg); border-radius: 14px; padding: 8px 10px; }
.oft-kpis b { font-size: 20px; font-weight: 900; } .oft-kpis small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.oft-kpis em, .oft-ch-h em { font-style: normal; font-size: 12px; font-weight: 900; }
em.down { color: var(--ok); } em.up { color: var(--warn); } em.good { color: var(--ok); }
.oft-chart svg { width: 100%; height: 120px; display: block; }
.oft-chart .line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.oft-chart .area { fill: rgba(255,106,43,.12); stroke: none; }
.oft-chart .dot { fill: var(--orange); stroke: #fff; stroke-width: 2; }
/* الجراف بيترسم من الأقدم (شمال) للأحدث (يمين) حتى في العربي ⇒ التواريخ تحته لازم تبقى ltr */
.oft-chart-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-weight: 700; direction: ltr; }
.oft-ch-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.oft-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.oft-slot { width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 6px; font: inherit; font-weight: 900; font-size: 15px; color: var(--navy); }
.oft-slot:active { border-color: var(--orange); color: var(--orange); }
.oft-ex { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.oft-check input { display: none; } .oft-check i { display: block; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); }
.oft-check input:checked + i { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 4px #fff; }
.oft-ex-main { flex: 1; min-width: 0; } .oft-ex-name { font-weight: 900; font-size: 15px; color: var(--navy); } .oft-ex-name span { color: var(--orange); font-size: 12px; }
.oft-w { display: flex; align-items: center; gap: 4px; } .oft-w input { width: 64px; font: inherit; font-weight: 800; padding: 8px; border: 2px solid var(--line); border-radius: 10px; text-align: center; }
.oft-w small { color: var(--muted); font-size: 11px; }
.oft-finish { margin: 6px 0 10px; }
.oft-logw { display: flex; gap: 8px; margin-bottom: 12px; } .oft-logw input { flex: 1; font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; }
.oft-table { font-size: 13.5px; } .oft-tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.oft-th { color: var(--muted); font-weight: 800; font-size: 12px; }
.oft-lib { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; margin-bottom: 8px; color: var(--navy); }
.oft-lib b { display: block; font-size: 15px; } .oft-lib small { color: var(--muted); font-size: 12px; }
.oft-thumb { width: 96px; height: 60px; flex: none; border-radius: 12px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.oft-thumb span { background: rgba(0,0,0,.55); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.oft-thumb.none { background: var(--bg); }
.oft-back { display: inline-block; font-weight: 800; margin-bottom: 4px; }
.oft-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 10px; }
.oft-video { position: relative; padding-top: 56.25%; border-radius: 18px; overflow: hidden; background: #000; }
.oft-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oft-credit { margin: 4px 2px 10px; }
.oft-pre { white-space: pre-line; font-size: 14.5px; line-height: 1.9; }
