/* Physique Gym Pro — site shell: one header and one footer on every page.
   The header is the home page's `header.ohd` (its rules are copied from
   assets/motion-home/restore.css so pages without that file look the same).
   The footer follows the home page's «immersion» panel: a dark rounded frame
   that opens up as it scrolls in. */

/* One font for header, footer and notices on every page: the home page's own font
   files. (Pages load different fonts — home «Gym», runtime pages «Gym Sans», app
   pages «Vazirmatn» — so the header changed size from page to page.) */
@font-face { font-family: 'PGP Shell'; src: url(/assets/motion-home/font-fa.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'PGP Shell'; src: url(/assets/motion-home/font-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF; }

/* ── header (same rules as restore.css; on the home page they are already loaded) ── */
:root {
  --pc0: 249,250,249; --pc1: 0,88,156; --pc3: 234,237,235; --pc4: 198,203,199; --pc5: 16,16,15; --pc6: 93,93,91;
  --pc7: 205,209,207; --pc9: 229,232,230; --pc13: 9,9,9; --pc14: 0,86,154; --pc15: 0,86,154;
  --pc54: 212,212,212; --pc159: 38,42,39; --pc194: 240,240,240;
}
:root[data-theme="dark"] {
  --pc0: 3,5,4; --pc1: 75,160,221; --pc3: 10,14,16; --pc4: 32,39,43; --pc5: 244,244,239; --pc6: 143,143,136;
  --pc7: 28,33,37; --pc9: 14,19,15; --pc13: 255,255,255; --pc14: 117,191,242; --pc15: 39,120,181;
  --pc54: 31,31,31; --pc159: 196,206,212; --pc194: 11,11,11;
}
header.ohd, header.ohd * { box-sizing: border-box; }
header.ohd a { text-decoration: none; color: inherit; }
header.ohd button { font-family: inherit; cursor: pointer; }
header.ohd, header.ohd.compact {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100; display: block; height: auto; direction: rtl;
  margin: 0; padding: 0; gap: 0; border: 0; border-radius: 0; border-bottom: 1px solid transparent;
  background: rgba(var(--pc0), .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .4s ease, border-color .4s ease;
  font-family: 'PGP Shell', Gym, sans-serif; line-height: normal; color: rgb(var(--pc5));
}
header.ohd.compact { border-bottom-color: rgba(var(--pc13), .06); background: rgba(var(--pc0), .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.ohd-in { max-width: 1600px; margin: 0 auto; padding: 0 clamp(14px, 2.4vw, 34px); height: 70px; display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); }
.ohd-brand { display: flex; align-items: center; gap: 10px; padding: 0; flex: 0 0 auto; font-family: 'PGP Shell', Gym, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: .3px; color: rgb(var(--pc5)); }
.ohd-brand img { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; display: block; }
.ohd-name { display: grid; gap: 1px; text-align: right; }
.ohd-t { font-size: 20px; line-height: 1.15; }
.ohd-t span { color: rgb(var(--pc1)); }
.ohd-s { font-family: 'PGP Shell', Gym, sans-serif; font-size: 10.5px; font-weight: 400; color: rgb(var(--pc6)); letter-spacing: 0; line-height: 1.5; }
header.ohd nav { display: flex; align-items: center; gap: clamp(2px, 1vw, 14px); flex: 1 1 0%; justify-content: space-evenly; min-width: 0; font-size: inherit; color: inherit; }
header.ohd nav .ohd-sep, header.ohd nav .ohd-quick { display: none; }
@media (min-width: 861px) { header.ohd nav.open button.ohd-theme-row { display: none; } }
.ohd-link { position: relative; display: block; font-size: 14.5px; font-weight: 500; padding: 6px 13px 8px; border-radius: 999px; white-space: nowrap; background: transparent; color: rgb(var(--pc5)); transition: background .5s cubic-bezier(.32, .72, 0, 1), transform .5s cubic-bezier(.32, .72, 0, 1); }
header.ohd nav a.ohd-link:hover { color: rgb(var(--pc5)); }
.ohd-roll { display: block; height: 24px; overflow: hidden; }
.ohd-rin { display: block; transition: transform .55s cubic-bezier(.32, .72, 0, 1); }
.ohd-rin > span { display: block; height: 24px; line-height: 24px; }
.ohd-rin > span + span { color: rgb(var(--pc1)); }
.ohd-bar { position: absolute; bottom: 2px; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--pc15)), rgb(var(--pc14))); transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .4s; transform: scaleX(0); opacity: 0; }
.ohd-link:hover, .ohd-link:focus-visible { background: rgba(var(--pc1), .09); transform: translateY(-1px); }
.ohd-link:hover .ohd-rin, .ohd-link:focus-visible .ohd-rin { transform: translateY(-24px); }
.ohd-link:hover .ohd-bar, .ohd-link:focus-visible .ohd-bar { transform: scaleX(1); opacity: 1; }
.ohd-fill { display: none; flex: 1; }
header.ohd .header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ohd-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 12px; background: rgba(var(--pc9), .8); border: 1px solid rgb(var(--pc7)); border-radius: 999px; flex: 0 1 150px; min-width: 110px; width: 150px; overflow: hidden; }
.ohd-lens { width: 12px; height: 12px; border: 1.5px solid rgb(var(--pc6)); border-radius: 50%; flex: 0 0 auto; }
.ohd-search input { flex: 1 1 0%; background: none; border: none; outline: none; color: rgb(var(--pc5)); font: inherit; font-size: 12.5px; min-width: 0; padding: 0; height: auto; box-shadow: none; -webkit-appearance: none; appearance: none; }
.ohd-search input::placeholder { color: rgb(var(--pc6)); }
.ohd-search input::-webkit-search-cancel-button { display: none; }
.ohd-search:focus-within { border-color: rgb(var(--pc1)); }
header.ohd #theme { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; font-size: 0; border-radius: 999px; border: 1px solid rgb(var(--pc7)); background: rgba(var(--pc9), .8); color: rgb(var(--pc5)); transition: transform .5s cubic-bezier(.32, .72, 0, 1), border-color .4s cubic-bezier(.32, .72, 0, 1), color .4s cubic-bezier(.32, .72, 0, 1); }
header.ohd #theme:hover { border-color: rgb(var(--pc1)); color: rgb(var(--pc1)); }
header.ohd #theme:active { transform: scale(.92); }
.ohd-moon { display: none; }
:root[data-theme="light"] .ohd-sun { display: none; }
:root[data-theme="light"] .ohd-moon { display: block; }
header.ohd .login { display: flex; align-items: center; justify-content: center; gap: 7px; width: 118px; height: 40px; padding: 0 10px; cursor: pointer; border-radius: 12px; flex: 0 0 auto; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: 0; border: 1px solid rgb(var(--pc54)); background: rgb(var(--pc194)); color: rgb(var(--pc159)); }
header.ohd #menu { display: none; }
/* «ورود» / «حساب من»: one fixed width for both, so the header never moves */
.ohd-acct { position: relative; flex: 0 0 auto; display: flex; }
header.ohd .login .ohd-caret { display: none; width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
header.ohd .login.is-me .ohd-caret { display: block; }
header.ohd .login:hover, .ohd-acct.is-open .login { border-color: rgb(var(--pc1)); }
.ohd-acct.is-open .ohd-caret { transform: rotate(180deg); }
.ohd-drop { position: absolute; top: calc(100% + 9px); left: 0; z-index: 130; min-width: 236px; display: grid; gap: 2px; padding: 8px; direction: rtl; text-align: right;
  background: rgb(var(--pc0)); border: 1px solid rgb(var(--pc7)); border-radius: 14px; box-shadow: 0 20px 44px -12px rgba(0,0,0,.35); animation: pgpDrop .16s ease; }
.ohd-drop[hidden] { display: none; }
.ohd-drop-h { display: grid; gap: 4px; padding: 8px 10px 11px; margin-bottom: 4px; border-bottom: 1px solid rgb(var(--pc7)); }
.ohd-drop-h b { font-size: 13.5px; font-weight: 700; color: rgb(var(--pc5)); }
.ohd-drop-h span { font-size: 11.5px; color: rgb(var(--pc6)); text-align: right; }
header.ohd .ohd-drop a, header.ohd .ohd-drop button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 600; color: rgb(var(--pc5)); text-align: right; cursor: pointer; }
header.ohd .ohd-drop a:hover, header.ohd .ohd-drop button:hover, header.ohd .ohd-drop a:focus-visible, header.ohd .ohd-drop button:focus-visible { background: rgb(var(--pc9)); outline: none; }
.ohd-drop i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 3px; background: rgb(var(--pc1)); }
header.ohd .ohd-drop .is-admin { color: #a86b00; }
.ohd-drop .is-admin i { background: #d18a00; }
header.ohd .ohd-drop .is-out { color: #c93636; }
.ohd-drop .is-out i { background: #d84a4a; }
:root[data-theme="dark"] header.ohd .ohd-drop .is-admin { color: #f2b84b; }
:root[data-theme="dark"] header.ohd .ohd-drop .is-out { color: #ff8080; }
.ohd-grid { display: none; }
@media (max-width: 1340px) { .ohd-search { display: none; } }
@media (max-width: 1180px) {
  header.ohd nav { display: none; }
  .ohd-fill { display: block; }
  header.ohd #menu { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(var(--pc9), .8); border: 1px solid rgb(var(--pc7)); border-radius: 8px; color: rgb(var(--pc5)); font-size: 20px; line-height: 1; }
  header.ohd nav.open { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 6px; justify-content: stretch; grid-template-columns: minmax(0, 1fr); border-top: 1px solid rgb(var(--pc7)); background: rgba(var(--pc0), .97); padding: 14px clamp(16px, 4vw, 24px) 18px; max-height: calc(100vh - 64px); overflow: auto; animation: pgpDrop .18s ease; }
  header.ohd nav.open .ohd-link { text-align: right; min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 8px; background: rgb(var(--pc9)); border: 1px solid rgb(var(--pc7)); color: rgb(var(--pc5)); font-size: 15px; font-weight: 400; transform: none; }
  header.ohd nav.open .ohd-roll { height: auto; }
  header.ohd nav.open .ohd-rin { transform: none; }
  header.ohd nav.open .ohd-rin > span + span, header.ohd nav.open .ohd-bar { display: none; }
  header.ohd nav.open .ohd-sep { display: block; height: 1px; background: rgb(var(--pc7)); margin: 8px 0; }
  header.ohd nav.open .ohd-quick { display: flex; width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; align-items: center; text-align: right; min-height: 46px; padding: 0 14px; color: rgb(var(--pc1)); font-size: 14.5px; font-weight: 600; }
}
@media (max-width: 860px) {
  header.ohd, header.ohd.compact { background: rgba(var(--pc0), .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(var(--pc13), .06); padding-top: env(safe-area-inset-top); }
  .ohd-in { height: 60px; gap: 10px; padding: 0 14px; }
  .ohd-brand { gap: 9px; min-width: 0; flex: 1 1 0%; }
  .ohd-brand img { width: 36px; height: 36px; }
  .ohd-name { line-height: 1.3; min-width: 0; gap: 0; }
  .ohd-t { font-size: 16px; font-weight: 700; line-height: 1.3; white-space: nowrap; color: rgb(var(--pc5)); }
  .ohd-s { white-space: nowrap; line-height: 1.3; }
  .ohd-long, .ohd-fill { display: none; }
  header.ohd #theme, header.ohd .login { display: none; }
  header.ohd #menu { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--pc3)); border: 1px solid rgb(var(--pc4)); color: rgb(var(--pc5)); font-size: 0; }
  .ohd-burger { display: none; }
  .ohd-grid { display: block; }
  header.ohd nav.open { max-height: calc(100dvh - 60px); }
}
@keyframes pgpDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* the pages' own (older) header and footer give way to the shared ones */
.pgp-oldhdr, .pgp-oldftr { display: none !important; }
/* the page runtime pins its root to the screen height (content overflows it): let it
   wrap the page, so the footer comes after the content instead of over it */
html body #dc-root, html body #dc-root > .sc-host { height: auto; }
/* account/admin: nothing shows until the app knows who is signed in */
html.pgp-shell-wait body > :not(header):not(.sft) { visibility: hidden; }

/* ── footer: inside the «immersion» photo ───────────────────────────────────
   Desktop: a tall section with a sticky frame. --e opens the frame (scale/tilt/radius
   like the home page's immersion), --h fades its line of copy out, --c brings the
   footer content in over the photo. Phones / short screens / reduced motion: one
   static photo panel with the copy and the footer stacked. */
html { overflow-x: clip; }
/* the home page styles every <footer>; this one sets its own box */
footer.sft { padding: 0; border: 0; background: none; }
.sft { display: block; width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); align-self: center; position: relative; z-index: 3; direction: rtl; height: 290vh; height: 290svh; margin-top: 40px; font-family: 'PGP Shell', Gym, sans-serif; --e: 0; --h: 0; --c: 0; --p: 0; }
.sft *, .sft *::before, .sft *::after { box-sizing: border-box; }
.sft a { color: inherit; text-decoration: none; }
.sft-sticky { width: 100%; position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; perspective: 1200px; }
.sft-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0b0f0d; color: #fff;
  border-radius: calc(32px * (1 - var(--e)));
  transform: scale(calc(.88 + var(--e) * .12)) rotateX(calc((1 - var(--e)) * 5deg));
  box-shadow: 0 50px 90px -40px rgba(0,0,0, calc(.45 * (1 - var(--e)) + .12)); }
.sft-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(calc(1.03 + var(--p) * .21)) translateY(calc(var(--p) * -2%)); }
.sft-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.72)), linear-gradient(0deg, rgba(0,0,0,.6), transparent 60%);
  opacity: calc(.85 + var(--c) * .15); }
.sft-shade::after { content: ''; position: absolute; inset: 0; background: rgba(4,8,6,.5); opacity: var(--c); }
.sft-hero { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 9vw;
  opacity: calc(1 - var(--h)); transform: translateY(calc(var(--h) * -40px)); pointer-events: none; }
.sft-hero > * { pointer-events: auto; }
.sft-eye { margin: 0; font-size: 10px; letter-spacing: 2px; color: #bcd7eb; }
.sft-hero h2 { margin: 6px 0 0; font-size: clamp(38px, 6.5vw, 95px); line-height: 1.45; font-weight: 800; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.sft-hero h2 span, .sft-content h2 span, .sft-brand b { color: #54aced; }
.sft-hero > p:not(.sft-eye) { margin: 8px 0 0; font-size: 14px; line-height: 2; color: #d0d9e0; }
.sft-cta { display: inline-flex; margin-top: 22px; padding: 12px 22px; border-radius: 999px; background: #54aced; color: #091926 !important; font-weight: 800; font-size: 14px; }
.sft-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(80px, 9vh, 120px) clamp(24px, 6vw, 96px) clamp(28px, 5vh, 56px);
  color: #f3f7f3; text-shadow: 0 2px 16px rgba(0,0,0,.4); pointer-events: none; }
.sft-content [data-sft-i] { --o: clamp(0, calc(var(--c) * 1.8 - var(--i) * .1), 1); opacity: var(--o); transform: translateY(calc((1 - var(--o)) * 28px)); }
.sft.is-live .sft-content { pointer-events: auto; }
.sft.is-live .sft-hero > * { pointer-events: none; }
.sft-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); }
.sft-intro { max-width: 440px; }
.sft-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.sft-brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.sft-content h2 { margin: 22px 0 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.3; font-weight: 800; color: #fff; }
.sft-intro > p { margin: 10px 0 0; font-size: 14.5px; line-height: 2; color: #d6dee3; }
.sft-form { display: flex; gap: 8px; margin-top: 20px; text-shadow: none; }
.sft-form input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 14px; outline: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-appearance: none; appearance: none; }
.sft-form input::placeholder { color: rgba(255,255,255,.65); }
.sft-form input:focus { border-color: #54aced; }
.sft-form input::-webkit-search-cancel-button { display: none; }
.sft-form button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #54aced; color: #091926; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background .3s ease; }
.sft-form button:hover { background: #fff; }
.sft-form svg, .sft-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sft-cols h3 { margin: 0; font-size: 15px; font-weight: 800; color: #fff; }
.sft-cols ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.sft-cols li { font-size: 14px; line-height: 1.8; color: #d0d8dd; }
.sft-cols a { color: #d0d8dd; transition: color .25s ease; }
.sft-cols a:hover, .sft-cols a:focus-visible { color: #54aced; }
.sft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 5vh, 52px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.sft-bottom p { margin: 0; font-size: 13.5px; color: #c6ced4; }
.sft-social { display: flex; gap: 8px; text-shadow: none; }
.sft-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #e6ebee; transition: color .25s ease, border-color .25s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sft-social a:hover, .sft-social a:focus-visible { color: #54aced; border-color: rgba(84,172,237,.6); }
.sft-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.14); direction: ltr; }
.sft-progress i { display: block; height: 100%; background: #54aced; transform-origin: left; transform: scaleX(var(--p)); }
.sft :focus-visible { outline: 2px solid #54aced; outline-offset: 3px; }
.sft-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phones, short screens, reduced motion: one static photo panel */
@media (max-width: 860px), (max-height: 640px), (prefers-reduced-motion: reduce) {
  footer.sft { height: auto; margin-top: 24px; padding: 0 8px 8px; }
  .sft-frame { width: 100%; }
  .sft-sticky { position: relative; height: auto; display: block; overflow: visible; perspective: none; }
  .sft-frame { height: auto; border-radius: 24px; transform: none; }
  .sft-img { transform: none; }
  .sft-shade::after { opacity: .55; }
  .sft-hero { position: relative; inset: auto; padding: 56px 24px 8px; opacity: 1; transform: none; }
  .sft-hero h2 { font-size: 40px; }
  .sft-content { position: relative; inset: auto; padding: 24px 24px 28px; pointer-events: auto; }
  .sft-content [data-sft-i] { --o: 1; }
  .sft-progress { display: none; }
  .sft-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sft-cols > div:last-child { grid-column: 1 / -1; }
  .sft-form { flex-direction: column; }
  .sft-form button { justify-content: center; }
  .sft-bottom { flex-direction: column; align-items: flex-start; }
}
/* phones: room for the app's bottom tab bar */
@media (max-width: 860px) { html.pgp-shell .sft { padding-bottom: 96px; } }
/* ── plain footer (every page but home): transparent, no photo, theme colours ──
   Same content and type as the home footer; on a short page it sits at the bottom
   of the screen (--push, set by shell.js). Fades up when it comes into view. */
footer.sft.sft--plain { height: auto; margin-top: calc(56px + var(--push, 0px)); padding: 0; background: transparent; border: 0; border-top: 1px solid rgb(var(--pc7)); color: rgb(var(--pc5)); }
footer.sft.sft--plain .sft-content { position: static; inset: auto; display: block; max-width: 1600px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) 28px; color: rgb(var(--pc5)); text-shadow: none; pointer-events: auto; }
.sft--plain .sft-content [data-sft-i] { --o: 1; opacity: 1; transform: none; }
html.sft-anim .sft--plain .sft-content [data-sft-i] { transition: opacity .7s ease calc(var(--i) * 60ms), transform .9s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 60ms); }
html.sft-anim .sft--plain:not(.is-in) .sft-content [data-sft-i] { opacity: 0; transform: translateY(18px); }
.sft--plain .sft-content h2, .sft--plain .sft-cols h3 { color: rgb(var(--pc5)); }
.sft--plain .sft-content h2 span, .sft--plain .sft-brand b { color: rgb(var(--pc1)); }
.sft--plain .sft-brand img { filter: none; }
.sft--plain .sft-intro > p, .sft--plain .sft-cols li, .sft--plain .sft-cols a, .sft--plain .sft-bottom p { color: rgb(var(--pc6)); }
.sft--plain .sft-cols a:hover, .sft--plain .sft-cols a:focus-visible { color: rgb(var(--pc1)); }
.sft--plain .sft-form input { border-color: rgb(var(--pc7)); background: rgba(var(--pc9), .7); color: rgb(var(--pc5)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sft--plain .sft-form input::placeholder { color: rgb(var(--pc6)); }
.sft--plain .sft-form input:focus { border-color: rgb(var(--pc1)); }
.sft--plain .sft-form button { background: rgb(var(--pc1)); color: rgb(var(--pc0)); }
.sft--plain .sft-form button:hover { background: rgb(var(--pc5)); color: rgb(var(--pc0)); }
.sft--plain .sft-bottom { border-top-color: rgb(var(--pc7)); }
.sft--plain .sft-social a { border-color: rgb(var(--pc7)); background: transparent; color: rgb(var(--pc6)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sft--plain .sft-social a:hover, .sft--plain .sft-social a:focus-visible { color: rgb(var(--pc1)); border-color: rgb(var(--pc1)); }
.sft--plain :focus-visible { outline-color: rgb(var(--pc1)); }
@media (max-width: 860px) { footer.sft.sft--plain .sft-content { padding: 36px 16px 24px; } }
@media (prefers-reduced-motion: reduce) { html.sft-anim .sft--plain:not(.is-in) .sft-content [data-sft-i] { opacity: 1; transform: none; } }

/* ── new-version notice (like Hariel Store's): a bar sliding in at the top ──── */
.pgp-upd { position: fixed; z-index: 2147483000; top: 12px; left: 50%; transform: translate(-50%, -140%); transition: transform .45s cubic-bezier(.2, .9, .25, 1); direction: rtl;
  display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 24px)); padding: 12px 14px 12px 12px; border-radius: 14px;
  background: #fff; color: #1f2937; border: 1px solid rgba(15,23,42,.12); box-shadow: 0 18px 44px -12px rgba(15,23,42,.35), 0 2px 6px rgba(15,23,42,.08);
  font-family: 'PGP Shell', Gym, sans-serif; line-height: normal; text-align: right; }
.pgp-upd.is-on { transform: translate(-50%, 0); }
.pgp-upd__ic { width: 42px; height: 42px; flex: none; align-self: flex-start; border-radius: 11px; display: grid; place-items: center; background: #0b0f0d; }
.pgp-upd__ic img { width: 30px; height: 30px; object-fit: contain; display: block; }
.pgp-upd__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pgp-upd__t b { font-size: 13.5px; font-weight: 900; }
.pgp-upd__t > span { font-size: 11.5px; font-weight: 600; color: #5f6368; line-height: 1.7; }
.pgp-upd__t ul { margin: 4px 0 0; padding: 0 16px 0 0; font-size: 11.5px; font-weight: 700; color: #3c4043; line-height: 1.8; max-height: 7.4em; overflow: auto; }
.pgp-upd__t li::marker { color: #00589c; }
.pgp-upd__b { display: flex; gap: 8px; flex: none; }
.pgp-upd button { font-family: inherit; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.pgp-upd__go { background: #00589c; color: #fff; border: 1px solid #00589c; }
.pgp-upd__go:hover { background: #004d86; }
.pgp-upd__go:disabled { opacity: .75; cursor: wait; }
.pgp-upd__no { background: transparent; color: #00589c; border: 1px solid rgba(0,88,156,.35); }
.pgp-upd__no:hover { background: #eff5fa; }
.pgp-upd :focus-visible { outline: 2px solid #00589c; outline-offset: 2px; }
:root[data-theme="dark"] .pgp-upd { background: #111417; color: #eef3ef; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 44px -12px rgba(0,0,0,.7); }
:root[data-theme="dark"] .pgp-upd__t > span { color: #9aa1a5; }
:root[data-theme="dark"] .pgp-upd__t ul { color: #c4cace; }
:root[data-theme="dark"] .pgp-upd__t li::marker { color: #54aced; }
:root[data-theme="dark"] .pgp-upd__go { background: #54aced; border-color: #54aced; color: #091926; }
:root[data-theme="dark"] .pgp-upd__go:hover { background: #7fc2f3; }
:root[data-theme="dark"] .pgp-upd__no { color: #54aced; border-color: rgba(84,172,237,.35); }
:root[data-theme="dark"] .pgp-upd__no:hover { background: rgba(84,172,237,.08); }
@media (max-width: 520px) { .pgp-upd { flex-wrap: wrap; } .pgp-upd__t { flex-basis: calc(100% - 56px); } .pgp-upd__b { width: 100%; justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .pgp-upd { transition: none; } }

/* ── plans: spotlight cards (the landing's original pricing cards) ─────────── */
.opl-card { --x: 50%; --y: 50%; }
.opl-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(360px circle at var(--x) var(--y), rgba(84,172,237,.9), transparent 45%); }
.opl-cards:hover .opl-card::before { opacity: 1; }
.opl-card .opl-in::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(84,172,237,.08), transparent 50%); }
.opl-card:hover .opl-in::before { opacity: 1; }
html.sft-anim .opl-card:not(.is-in) { opacity: 0; transform: translateY(40px); }
html.sft-anim .opl-card { transition: opacity .8s ease var(--d, 0s), transform 1.1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { html.sft-anim .opl-card:not(.is-in) { opacity: 1; transform: none; } }

/* ── nothing on the site can be selected or dragged (form fields still can) ── */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"], [contenteditable=""] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, a { -webkit-user-drag: none; }

/* ── flat surfaces: the home page's decorative glows and gradient fills go ──
   (image shades that keep text readable stay) */
.hero-lines, .body-view, .gp-view { background: none !important; }
.service::before, .ogd::before, .otm-glow, .otm-lead::before { display: none !important; }
.service.featured, .services-grid .service, .accent-plan, .otm-lead, .otm-card { background: var(--card) !important; }
.coach-art { background: var(--soft) !important; }
.opl-card.is-hot { background: color-mix(in srgb, var(--green) 55%, transparent) !important; }
.ohd-bar { background: rgb(var(--pc1)) !important; }
:root[data-theme="dark"] .service.featured, :root[data-theme="dark"] .accent-plan { border-color: color-mix(in srgb, var(--green) 35%, var(--line)) !important; }

/* ── one-time code (shell.js «one-time code») ───────────────────────────────── */
:root { --otp-bg: 241,242,241; --otp-line: 226,229,227; --otp-fill: 255,255,255; --otp-line2: 200,205,201; --otp-ink: 31,35,32; --otp-acc: 0,156,80; --otp-err: 220,38,38; }
:root[data-theme="dark"] { --otp-bg: 20,24,22; --otp-line: 38,44,40; --otp-fill: 27,32,29; --otp-line2: 70,78,72; --otp-ink: 232,236,233; --otp-acc: 84,237,156; --otp-err: 248,113,113; }
.pgp-otp-host { position: relative !important; direction: ltr; }
.pgp-otp-host > input.pgp-otp__in { position: absolute !important; inset: 0 !important; z-index: 2; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; opacity: 0 !important; border: 0 !important; background: transparent !important; color: transparent !important; caret-color: transparent !important; font-size: 16px !important; letter-spacing: 0 !important; cursor: text; box-shadow: none !important; }
.pgp-otp { display: flex; justify-content: center; gap: 10px; direction: ltr; }
.pgp-otp__c { position: relative; display: grid; place-items: center; width: 52px; height: 60px; flex: 0 1 52px; min-width: 0; box-sizing: border-box; border-radius: 12px; border: 2px solid rgb(var(--otp-line));
  background: rgb(var(--otp-bg)); box-shadow: inset 0 1px 2px rgba(0,0,0,.07); transition: background-color .15s, border-color .15s, box-shadow .15s; }
:root[data-theme="dark"] .pgp-otp__c { box-shadow: inset 0 1px 2px rgba(0,0,0,.45); }
.pgp-otp__c.is-filled { background: rgb(var(--otp-fill)); border-color: rgb(var(--otp-line2)); box-shadow: none; }
.pgp-otp__c.is-active { background: rgb(var(--otp-fill)); border-color: rgb(var(--otp-acc)); box-shadow: 0 0 0 4px rgba(var(--otp-acc), .14); }
.pgp-otp.is-error .pgp-otp__c { border-color: rgb(var(--otp-err)); box-shadow: none; }
.pgp-otp__g { grid-area: 1 / 1; font: 700 22px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; color: rgb(var(--otp-ink)); }
.pgp-otp__g.is-in { animation: pgpOtpIn .22s cubic-bezier(.23, 1, .32, 1) both; }
.pgp-otp__g.is-out { animation: pgpOtpOut .2s cubic-bezier(.23, 1, .32, 1) both; }
.pgp-otp__c.has-caret::after { content: ''; grid-area: 1 / 1; width: 2px; height: 22px; border-radius: 1px; background: rgb(var(--otp-ink)); animation: pgpOtpCaret 1.06s steps(1, end) infinite; }
.pgp-otp.is-shake { animation: pgpOtpShake .32s cubic-bezier(.23, 1, .32, 1); }
@keyframes pgpOtpIn { from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pgpOtpOut { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(-6px) scale(.98); filter: blur(3px); } }
@keyframes pgpOtpCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes pgpOtpShake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-3px); } }
@media (max-width: 380px) { .pgp-otp { gap: 7px; } .pgp-otp__c { height: 54px; } }
@media (prefers-reduced-motion: reduce) { .pgp-otp__g.is-in, .pgp-otp__g.is-out, .pgp-otp.is-shake { animation: none; } .pgp-otp__c.has-caret::after { animation: none; } }
.pgp-resend { display: block; width: 100%; margin: 4px 0 0; padding: 10px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: rgb(var(--otp-acc)); cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; }
.pgp-resend:disabled { color: rgb(var(--pc6)); cursor: default; }
.pgp-resend:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ══ phones (≤ 860px) ════════════════════════════════════════════════════════
   Touch first: 44px+ targets, one bottom bar for every page, one frame per card,
   readable sizes (nothing under 12px), controls where the thumb is. */
.pgp-tabbar { display: none; }
@media (max-width: 860px) {
  /* one bottom bar on every page (the app pages' own bar gives way) */
  #dc-root nav[aria-label="منوی اصلی"][style*="position:fixed"], #dc-root nav[aria-label="منوی اصلی"][style*="position: fixed"] { display: none !important; }
  .pgp-tabbar { position: fixed; z-index: 120; right: 0; left: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); direction: rtl;
    background: rgba(var(--pc0), .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(var(--pc13), .08);
    font-family: 'PGP Shell', Gym, sans-serif; }
  .pgp-tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: rgb(var(--pc6)); text-decoration: none; font-size: 11.5px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .pgp-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pgp-tab.is-on { color: rgb(var(--pc1)); font-weight: 800; }
  .pgp-tab.is-on::before { content: ''; position: absolute; top: -6px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: rgb(var(--pc1)); }
  .pgp-tab:active { background: rgba(var(--pc1), .08); }
  html.pgp-has-tabbar body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html.pgp-has-tabbar .sft { padding-bottom: 0 !important; }
  .pgp-upd { bottom: auto; }

  /* one frame per card: the outer "bezel" around cards is dropped on phones */
  [style*="padding:6px;border-radius:30px;background:rgba(var(--c13),.03)"], [style*="padding: 6px; border-radius: 30px; background: rgba(var(--c13),.03)"] { padding: 0 !important; border: 0 !important; background: none !important; }

  /* home hero: the 3D weight's controls dock under the scene as one clear card */
  #hero .visual-tag, #hero .orbital-word, #hero .view-caption, .hero-bottom { display: none !important; }
  #hero .hero-visual { height: 560px !important; }
  .hero-load { top: auto !important; bottom: 10px; left: 10px !important; right: 10px; width: auto !important; max-width: none !important; padding: 12px !important; border-radius: 16px !important; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55) !important; }
  .hero-load-head { margin-bottom: 10px !important; }
  .hero-load-modes { flex: 1; }
  .hero-load-modes button { flex: 1; min-height: 40px !important; font-size: 14px !important; font-weight: 700; }
  .hero-load-total output { font-size: 28px !important; }
  .hero-load-total > span { font-size: 12px !important; }
  .hero-load-actions { grid-template-columns: 48px 1fr 48px !important; gap: 8px !important; }
  .hero-load-actions > button { width: 48px !important; min-height: 48px !important; font-size: 26px !important; }
  .hero-load-select { padding: 16px 10px 2px !important; }
  .hero-load-select > span { font-size: 11px !important; top: 5px !important; }
  .hero-load-select select { font-size: 15px !important; min-height: 30px !important; }
  .hero-load-foot { margin-top: 8px !important; }
  .hero-load-foot span, .hero-load-foot small { font-size: 12px !important; }
  .hero-load-foot button { min-height: 36px; padding: 0 12px; font-size: 13px !important; }
  .hero-load-hint { display: none !important; }

  /* home services: a compact text row each instead of a screen-tall card */
  .services-grid { gap: 10px !important; }
  .services-grid .service { min-height: 0 !important; padding: 18px !important; display: block !important; }
  .services-grid .service .service-drawing, .services-grid .service .card-label { display: none !important; }
  .services-grid .service h3 { margin: 0 !important; font-size: 19px !important; }
  .services-grid .service p { margin: 6px 0 0 !important; font-size: 13.5px !important; line-height: 1.8 !important; }
  .services-grid .service .card-go { margin: 14px 0 0 !important; padding-top: 12px !important; font-size: 13.5px !important; }
}
@media (max-width: 380px) {
  .pgp-tab { font-size: 11px; }
  .hero-load-total output { font-size: 24px !important; }
}

/* destructive actions in the operations panels (cancel a booking) */
.ops-panel button.ops-danger { border-color: rgba(var(--pc13), .12) !important; background: transparent !important; color: #e5484d !important; }
.ops-panel button.ops-danger:hover:not(:disabled) { border-color: #e5484d !important; }

/* dark-only for now (theme-init.js ONLY): every light/dark switch is hidden */
html[data-theme] header.ohd #theme, html[data-theme] header.ohd .header-actions #theme, html[data-theme] #theme, html[data-theme] [data-theme-toggle], html[data-theme] [data-theme-proxy], html[data-theme] .ohd-theme-row, html[data-theme] .theme-toggle,
html[data-theme] button[aria-label="حالت روشن"], html[data-theme] button[aria-label="حالت تاریک"] { display: none !important; }

/* phones: no dead space before the footer (login, account and every plain page) */
@media (max-width: 860px) {
  footer.sft.sft--plain { margin-top: 18px !important; }
  footer.sft.sft--plain .sft-content { padding-top: 26px; }
  .lg { min-height: 0 !important; padding-bottom: 0 !important; }
  .lg .lg-side { min-height: 150px !important; }
  .lg .lg-main { padding: 22px 18px 18px !important; }
}
