/* ═══════════════════════════════════════════════════════════════════════════════════════
   GymPump Web v2.1.0 — هویت بصری برند (هماهنگ با Platcom / triple18.ir)
   این فایل آخر از همه بارگذاری می‌شود و روی app.css و site.css می‌نشیند.

   زبان طراحی Platcom: زمینه‌ی خنثی (سفید و خاکستری #f5f5f7)، تایپوگرافی درشت، دکمه‌های قرصی،
   نوار بالای شیشه‌ای، و یک رنگ تأکیدی برای هر محصول. رنگ جیم‌پامپ: سبز ‎#16c060 → ‎#07875a
   (همان GYMPUMP_COLORS در seed پلتکام). برای عوض کردن رنگ برند فقط --g1 و --g2 را تغییر دهید.
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ───────────── ۱) توکن‌ها: روشن ───────────── */
:root {
  --g1: #16c060; --g2: #07875a;                 /* رنگ برند (از Platcom) */
  --grad: linear-gradient(135deg, var(--g1), var(--g2));
  --bg: #ffffff; --bg2: #f5f5f7; --bg3: #fbfbfd; --card: #ffffff;
  --text: #1d1d1f; --text2: #6e6e73; --text3: #86868b;
  --line2: rgba(0, 0, 0, .08);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -12px rgba(0,0,0,.12);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.04), 0 30px 70px -28px rgba(0,0,0,.35);
  --r: 18px; --r-lg: 28px;
  --latin: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
  /* نگاشت متغیرهای قدیمی app.css به رنگ‌های تازه (تا ویرایشگر و صفحه‌های قبلی خودکار هماهنگ شوند) */
  --green: #07875a; --green-d: #05704a; --green-l: #e4f7ec;
  --ink: var(--text); --muted: var(--text2); --line: #e3e3e8; --soft: var(--bg2);
  --top-bg: rgba(250, 250, 252, .78); --field-bg: #ffffff; --bubble-user: #f2f2f5;
  --red: #d70015; --ok: #1a7f37; --ok-bg: #e8f6ec; --warn: #b25000; --warn-bg: #fff4e5; --err-bg: #fdecee;
  color-scheme: light;
}
/* ───────────── ۲) توکن‌ها: تیره ───────────── */
:root[data-theme="dark"] {
  --bg: #000000; --bg2: #161617; --bg3: #0b0b0c; --card: #1c1c1e;
  --text: #f5f5f7; --text2: #a1a1a6; --text3: #86868b;
  --line2: rgba(255, 255, 255, .1);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -28px rgba(0,0,0,.8);
  --green: #30d67a; --green-d: #5fe39a; --green-l: rgba(22, 192, 96, .16);
  --line: #2c2c2e; --top-bg: rgba(22, 22, 23, .8); --field-bg: #111113; --bubble-user: #2c2c2e;
  --red: #ff6961; --ok: #30d158; --ok-bg: rgba(48,209,88,.14); --warn: #ffb340; --warn-bg: rgba(255,159,10,.14);
  --err-bg: rgba(255,69,58,.15);
  color-scheme: dark;
}

/* ───────────── ۳) پایه ───────────── */
html, body { background: var(--bg); color: var(--text); }
body { font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.in-app { background: var(--bg2); }
a { color: var(--green); }
.latin { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--g1) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--g1) 30%, transparent); }

/* ───────────── ۴) نشان برند ───────────── */
.mark { font-style: normal; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--grad); color: #fff; font: 800 12px/1 var(--latin); letter-spacing: -.04em; flex: none;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--g2) 70%, transparent); }
.mark.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.mark.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }

/* ───────────── ۵) نوار بالا (شیشه‌ای، مثل Platcom) ───────────── */
.site-top { background: var(--top-bg); border-bottom: 1px solid var(--line2);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.site-top .in { min-height: 52px; padding: 6px max(16px, 3vw); gap: 18px; max-width: 1120px; }
.brand { gap: 9px; color: var(--text); font-size: 17px; }
.brand i { all: unset; }
.brand .mark { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--grad);
  color: #fff; font: 800 12px/1 var(--latin); }
.brand .word { font-family: var(--latin); direction: ltr; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.brand .word b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover { opacity: .85; text-decoration: none; }
.site-top nav.main { gap: 2px; margin: 0; flex: 1; justify-content: center; }
.site-top nav.main a { font-size: 14px; font-weight: 500; color: var(--text); opacity: .78; padding: 6px 11px; border-radius: 999px;
  transition: opacity .2s, background-color .2s; }
.site-top nav.main a:hover { opacity: 1; background: var(--line2); }
.site-top nav.main a.on { opacity: 1; font-weight: 700; background: var(--green-l); color: var(--green-d); }
.top-end { gap: 4px; margin-inline-start: auto; margin-right: 0; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; background: transparent; color: var(--text); display: grid; place-items: center; padding: 0; }
.iconbtn:hover { background: var(--line2); }
.iconbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn .i-sun { display: none; }
:root[data-theme="dark"] .iconbtn .i-sun { display: block; }
:root[data-theme="dark"] .iconbtn .i-moon { display: none; }
.linkbtn { color: var(--text2); font-size: 14px; border-radius: 999px; padding: 6px 12px; }
.linkbtn:hover { color: var(--red); background: var(--err-bg); }
.menu-btn { display: none; }
.subnav { display: none !important; }
.mnav { display: none; }
@media (max-width: 980px) {
  .site-top nav.main { display: none; }
  .menu-btn { display: grid; }
  .top-end .logout { display: none; }
  .mnav { position: fixed; inset: 52px 0 0; z-index: 7; background: var(--bg); padding: 22px max(20px, 5vw) 40px;
    flex-direction: column; gap: 2px; overflow-y: auto; }
  .mnav.open { display: flex; animation: gpMenuIn .38s cubic-bezier(.22,1,.36,1); }
  .mnav a { font-size: 26px; font-weight: 800; color: var(--text); padding: 8px 0; text-decoration: none; letter-spacing: -.01em;
    animation: gpMenuIn .5s cubic-bezier(.22,1,.36,1) backwards; }
  .mnav a.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mnav a:nth-child(2) { animation-delay: .03s } .mnav a:nth-child(3) { animation-delay: .06s } .mnav a:nth-child(4) { animation-delay: .09s }
  .mnav a:nth-child(5) { animation-delay: .12s } .mnav a:nth-child(6) { animation-delay: .15s } .mnav a:nth-child(7) { animation-delay: .18s }
  .mnav form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line2); }
  .mnav .linkbtn.big { font-size: 17px; padding: 8px 0; }
  body.menu-open { overflow: hidden; }
}
@keyframes gpMenuIn { from { opacity: 0; transform: translate3d(0, -10px, 0); } }
.demo-ribbon { position: relative; z-index: 9; text-align: center; font-size: 13px; padding: 7px 14px; color: #fff; background: var(--grad); }
.demo-ribbon span { font-weight: 800; margin-inline-end: 6px; padding: 1px 9px; border-radius: 999px; background: rgba(255,255,255,.2); }

/* ───────────── ۶) دکمه‌ها (قرصی، مثل Platcom) ───────────── */
.btn { border-radius: 980px; min-height: 44px; padding: 10px 22px; font-weight: 600; letter-spacing: -.005em;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--g2) 80%, transparent);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s, filter .2s, background-color .2s; }
.btn:hover { filter: brightness(1.06); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--g2) 85%, transparent); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn.ghost, .btn.light { background: var(--card); color: var(--green-d); box-shadow: inset 0 0 0 1px var(--line); filter: none; }
.btn.ghost:hover, .btn.light:hover { background: var(--green-l); }
.btn.danger { background: var(--err-bg); color: var(--red); box-shadow: none; }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.sm { min-height: 34px; padding: 6px 16px; font-size: 14px; }
.btn.big { min-height: 52px; padding: 12px 30px; font-size: 17px; }
.btn.block { display: flex; width: 100%; align-items: center; justify-content: center; }
.btn.white { background: #fff; color: var(--g2); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
a.btn.block { display: flex; }
.top-cta { margin: 0 !important; }
.more { font-size: 16px; font-weight: 600; color: var(--green); text-decoration: none; white-space: nowrap; }
.more::after { content: " ‹"; }
.more:hover { text-decoration: underline; }

/* ───────────── ۷) صفحه، عنوان‌ها و کارت‌ها ───────────── */
.page { padding: 28px max(16px, 3vw) 56px; max-width: 1120px; }
.page.wide { max-width: none; padding: 0; }
.page-title h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.page-title h2 { font-size: 20px; font-weight: 800; }
.card { background: var(--card); border: 0; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
a.card { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 40px -16px rgba(0,0,0,.2); }
.card.err { background: var(--err-bg); color: var(--red); box-shadow: none; }
.card.stat { text-align: start; padding: 18px 20px; position: relative; overflow: hidden; }
.card.stat span, .card.stat small { color: var(--text2); font-size: 13px; }
.card.stat b { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status-card { background: var(--card); box-shadow: var(--shadow); border: 0; position: relative; overflow: hidden; }
.status-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.quick .card { text-align: start; padding: 20px; font-size: 26px; }
.quick .card b { display: block; margin-top: 8px; font-size: 16px; font-weight: 800; }
.quick .card .hint, .quick .card span { font-size: 13.5px; }
.flash { background: var(--green-l); color: var(--green-d); border: 0; border-radius: 14px; font-weight: 600; }
.flash.bad { background: var(--err-bg); color: var(--red); }
.hint, .muted { color: var(--text2); }
.pill { background: var(--green-l); color: var(--green-d); font-weight: 600; }
.badge { background: var(--bg2); color: var(--text); }
.badge.ok, .status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.badge.wait, .status-pill.wait { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--err-bg); color: var(--red); }
.avatar { background: var(--green-l); color: var(--green-d); border-radius: 50%; }
.empty-icon { background: var(--green-l); color: var(--green-d); }

/* جدول‌ها */
.tbl-wrap { border: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
table.tbl th { background: transparent; color: var(--text3); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); }
table.tbl td { border-bottom: 1px solid var(--line2); }
table.tbl tbody tr:hover td { background: color-mix(in srgb, var(--g1) 5%, transparent); }

/* فرم‌ها */
.form label { font-weight: 600; color: var(--text); }
.form input, .form select, .form textarea, input.input-code {
  background: var(--bg2); border: 1px solid transparent; border-radius: 12px; min-height: 46px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s; }
body.in-app .form input, body.in-app .form select, body.in-app .form textarea { background: var(--field-bg); border-color: var(--line); }
.form input:focus, .form select:focus, .form textarea:focus, input.input-code:focus {
  outline: none; border-color: var(--g1); background: var(--field-bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1) 18%, transparent); }
:root[data-theme="dark"] .form input, :root[data-theme="dark"] .form select, :root[data-theme="dark"] .form textarea { background: var(--field-bg); }

/* زبانه‌ها و پنل مالک */
.tab { border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 600; }
.tab.on { background: var(--text); color: var(--bg); box-shadow: none; }
.plan-card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; }
.plan-card.featured { box-shadow: 0 0 0 2px var(--g1), 0 24px 50px -24px color-mix(in srgb, var(--g2) 70%, transparent); }
.plan-card .price, .offer-price, .price { color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.offer-card { border: 0; background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1) 35%, transparent), var(--shadow); }
:root[data-theme="dark"] .offer-card { background: var(--card); }
details.fold, .qa { border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: var(--r); }
.chat-bubble.assistant, .msg.bot { background: var(--green-l); }
.toast { background: var(--text); color: var(--bg); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow-lg); }
.toast.bad { background: var(--red); color: #fff; }
.sheet-panel { background: var(--card); border-radius: 26px 26px 0 0; }
.bar { background: var(--line2); } .bar span { background: var(--grad); }

/* ───────────── ۸) فوتر (مثل Platcom) ───────────── */
.site-foot { border-top: 1px solid var(--line2); padding: 22px max(16px, 3vw) 30px; color: var(--text3); font-size: 13px; background: var(--bg2); }
body.landing .site-foot { background: var(--bg); }
.site-foot .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--text2); }
.foot-brand a { color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }
.foot-brand a:hover { color: var(--green); }
.foot-meta { display: flex; gap: 14px; }
@media (max-width: 560px) { .site-foot .in { justify-content: center; text-align: center; } }

/* ───────────── ۹) ورود و دمو ───────────── */
.auth-card { max-width: 460px; margin: clamp(12px, 5vw, 48px) auto 0; text-align: center; background: var(--card);
  border-radius: var(--r-lg); padding: clamp(26px, 5vw, 40px) clamp(20px, 5vw, 36px); box-shadow: var(--shadow); }
.auth-card .mark.lg { margin: 0 auto 16px; display: grid; }
.auth-card h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin: 0 0 6px; }
.auth-card > p { margin: 0 0 18px; }
.auth-steps { list-style: none; counter-reset: s; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; text-align: start; }
.auth-steps li { counter-increment: s; position: relative; padding: 14px 54px 14px 16px; border-radius: 16px; background: var(--bg2); display: grid; gap: 6px; }
.auth-steps li::before { content: counter(s); position: absolute; right: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.auth-steps .form { margin: 4px 0 0; }
.auth-steps .btn { margin-top: 6px; }
input.input-code { width: 100%; text-align: center; letter-spacing: 8px; font: 700 22px var(--latin); direction: ltr; padding: 10px; }
.auth-notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; color: var(--text2); font-size: 14px; }
.auth-notes li::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ───────────── ۱۰) صفحه‌ی معرفی ───────────── */
body.landing { background: var(--bg); }
.lp-hero { text-align: center; padding: clamp(56px, 10vw, 120px) max(16px, 4vw) 0; overflow: hidden; }
.lp-eyebrow { margin: 0 0 10px; font-size: 18px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-eyebrow.latin { font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; }
.lp-hero h1 { font-size: clamp(36px, 6.6vw, 76px); line-height: 1.18; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: clamp(18px, 2.2vw, 24px); color: var(--text2); max-width: 680px; margin: 18px auto 0; line-height: 1.6; }
.lp-ctas { display: flex; gap: 14px 26px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.lp-trial { margin: 18px 0 0; color: var(--text2); font-size: 15px; }
.lp-art { position: relative; margin-top: clamp(44px, 7vw, 80px); }
.lp-art::before { content: ""; position: absolute; inset: 18% 0 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 70%); filter: blur(10px); }
.lp-manifesto { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(64px, 10vw, 120px) max(16px, 4vw); }
.lp-manifesto h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.2; font-weight: 800; margin: 0 0 18px; }
.lp-manifesto p:last-child { color: var(--text2); font-size: clamp(17px, 2vw, 21px); line-height: 1.8; margin: 0; }
.lp-bento { max-width: 1120px; margin: 0 auto; padding: 0 max(12px, 2vw); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bx { position: relative; overflow: hidden; background: var(--bg2); border-radius: var(--r-lg); padding: 28px 26px; min-height: 230px;
  display: flex; flex-direction: column; gap: 6px; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.bx:hover { transform: translateY(-3px); }
.bx.wide { grid-column: span 2; }
.bx.g { background: linear-gradient(150deg, color-mix(in srgb, var(--g1) 14%, var(--bg2)), var(--bg2) 70%); }
.bx-ic { font-size: 30px; line-height: 1; }
.bx h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 800; margin: 10px 0 0; }
.bx p { margin: 0; color: var(--text2); font-size: 15.5px; line-height: 1.8; max-width: 520px; }
.bx-bars { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; max-width: 420px; }
.bx-bars span { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 12.5px; color: var(--text2); }
.bx-bars i { display: block; height: 8px; border-radius: 9px; background: var(--line2); position: relative; overflow: hidden; order: 2; }
.bx-bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: right; transform: scaleX(var(--v)); }
.bx-pages { margin-top: auto; padding-top: 22px; display: flex; gap: 0; height: 110px; align-items: flex-end; }
.bx-pages i { width: 88px; height: 112px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); border-top: 5px solid var(--g1); margin-inline-start: -26px; }
.bx-pages i:first-child { margin: 0; transform: rotate(-6deg); } .bx-pages i:nth-child(2) { transform: rotate(2deg); border-top-color: #ffb020; } .bx-pages i:nth-child(3) { transform: rotate(9deg); border-top-color: #4f8cff; }
.lp-steps { max-width: 1120px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) max(16px, 3vw) 0; text-align: center; }
.lp-steps h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 32px; }
.lp-steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: start; }
.lp-steps li { counter-increment: s; background: var(--bg2); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 6px; }
.lp-steps li::before { content: counter(s, persian); font: 800 40px/1 var(--latin); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-steps li b { font-size: 19px; }
.lp-steps li span { color: var(--text2); font-size: 15px; }
.lp-cta { margin: clamp(64px, 9vw, 110px) max(12px, 2vw) clamp(40px, 6vw, 64px); border-radius: var(--r-lg); background: var(--grad); color: #fff;
  text-align: center; padding: clamp(48px, 8vw, 90px) max(16px, 4vw); position: relative; overflow: hidden; isolation: isolate; }
.lp-cta::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }
.lp-cta h2 { font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; line-height: 1.3; margin: 0; }
.more.light { color: #fff; }
@media (max-width: 860px) {
  .lp-bento { grid-template-columns: 1fr 1fr; } .bx.wide { grid-column: span 2; }
  .lp-steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp-bento { grid-template-columns: 1fr; } .bx.wide { grid-column: auto; } .bx { min-height: 0; padding: 24px 22px; }
}

/* تصویر اصلی (همان gp-hero صفحه‌ی محصول در Platcom) */
.gp-hero { position: relative; width: min(440px, 86vw); margin: 0 auto; padding: 22px 0 64px; text-align: start; }
.gp-sheet { position: relative; z-index: 2; background: var(--card); border-radius: 26px; padding: 20px; display: grid; gap: 16px;
  box-shadow: var(--shadow-lg); border-top: 6px solid var(--g1); }
.gp-sheet-back { position: absolute; inset: 40px -18px 60px 30px; z-index: 1; border-radius: 26px; transform: rotate(-5deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 32%, var(--bg)), color-mix(in srgb, var(--g2) 20%, var(--bg))); border: 0; box-shadow: none; }
.gp-sheet-h { display: flex; align-items: center; gap: 12px; }
.gp-sheet-h b { display: block; font-size: 16px; } .gp-sheet-h small { color: var(--text3); font-size: 12px; }
.gp-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; flex: none; background: var(--grad); }
.gp-sign { margin-inline-start: auto; font-size: 11.5px; font-weight: 800; color: var(--green-d); background: var(--green-l); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.gp-sheet-b { display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: center; }
.gp-ring { position: relative; width: 136px; aspect-ratio: 1; }
.gp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gp-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.gp-ring .t { stroke: var(--line2); }
.gp-ring .p, .gp-ring .c, .gp-ring .f { stroke-dasharray: 100; animation: gpRing 1.8s cubic-bezier(.22,1,.36,1) both; }
.gp-ring .p { stroke: var(--g1); stroke-dashoffset: 18; } .gp-ring .c { stroke: #ffb020; stroke-dashoffset: 30; animation-delay: .15s; }
.gp-ring .f { stroke: #4f8cff; stroke-dashoffset: 42; animation-delay: .3s; }
@keyframes gpRing { from { stroke-dashoffset: 100; } }
.gp-kcal { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gp-kcal b { font-size: 17px; font-weight: 900; line-height: 1.2; } .gp-kcal small { font-size: 9.5px; color: var(--text3); }
.gp-meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gp-meals li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; font-size: 13.5px; padding: 8px 10px; border-radius: 12px; background: var(--bg2); }
.gp-meals i { font-style: normal; } .gp-meals em { font-style: normal; color: var(--text2); font-size: 12.5px; }
.gp-macros { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--text2); }
.gp-macros i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
.gp-macros i.p { background: var(--g1); } .gp-macros i.c { background: #ffb020; } .gp-macros i.f { background: #4f8cff; }
.gp-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text);
  background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  padding: 10px 14px; border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.35); border: 1px solid var(--line2); animation: gpFloat 6s ease-in-out infinite; }
.gp-chip-a { top: 0; inset-inline-start: -40px; color: var(--green-d); }
.gp-chip-b { bottom: 30px; inset-inline-end: -40px; animation-delay: -2s; }
.gp-chip-c { top: 40%; inset-inline-end: -128px; animation-delay: -4s; }
@media (max-width: 900px) { .gp-chip-c { display: none; } }
@keyframes gpFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@media (max-width: 640px) {
  .gp-chip-a { inset-inline-start: -6px; top: -4px; } .gp-chip-b { inset-inline-end: -6px; } .gp-chip-c { display: none; }
  .gp-sheet-b { grid-template-columns: 104px 1fr; } .gp-ring { width: 104px; }
}

/* ───────────── ۱۱) داشبورد و بخش‌های داخلی ───────────── */
body.in-app .page-title { margin-bottom: 18px; }
.grid3, .grid4, .cols { gap: 14px; }
.client-row, .card.row { border-radius: 16px; }
.logo-prev { border-color: var(--line); background: #fff; }

/* ───────────── ۱۲) دسترس‌پذیری و حرکت ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print { .site-top, .site-foot, .mnav, .demo-ribbon { display: none !important; } body { background: #fff; } }

/* دکمه‌های لینکی (a.btn) پهنای محتوا دارند؛ دکمه‌های فرم مثل قبل تمام‌عرض می‌مانند */
a.btn:not(.block), .lp-ctas .btn, .row-actions .btn, .top-end .btn { width: auto; margin-top: 0; }

/* ───────────── ۱۳) موبایل: آمار فشرده، میانبرهای افقی، جدول با اسکرول ───────────── */
.quick .card br { display: none; }
.quick .card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 2px; }
.quick .card b { grid-column: 2; margin: 0; }
.quick .card .hint { grid-column: 2; }
.quick .card { font-size: 24px; line-height: 1.3; }
@media (max-width: 760px) {
  .grid3:not(.quick) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid3:not(.quick) .card.stat, .grid4 .card.stat { padding: 12px 12px; margin: 0; }
  .card.stat b { font-size: 24px; }
  .card.stat span, .card.stat small { font-size: 12px; }
  .quick { gap: 8px; } .quick .card { margin: 0; padding: 14px 16px; }
  table.tbl th, table.tbl td { white-space: nowrap; padding: 10px 12px; }
  .page-title .btn.inline { min-height: 40px; padding: 8px 16px; font-size: 14px; }
}
button.linkbtn { color: var(--text2) !important; text-decoration: none !important; background: none; }
button.linkbtn:hover { color: var(--red) !important; }

/* ───────────── v2.2.0: فرم شاگرد (خانم‌ها، عکس بدن) ───────────── */
fieldset.women-only, fieldset.photo-fields { border: 0; border-radius: 14px; background: var(--bg2); padding: 10px 14px 4px; margin: 12px 0; }
fieldset.women-only legend, fieldset.photo-fields legend { font-weight: 800; padding: 0 4px; float: right; width: 100%; margin-bottom: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 10px; }
.photo-pick { position: relative; display: grid !important; place-items: center; gap: 6px; aspect-ratio: 3 / 4; margin: 0 !important; border-radius: 14px;
  border: 2px dashed var(--line); background: var(--card); cursor: pointer; overflow: hidden; text-align: center; font-size: 13px; }
.photo-pick span { position: relative; z-index: 2; background: color-mix(in srgb, var(--card) 85%, transparent); padding: 2px 10px; border-radius: 99px; }
.photo-pick input { position: absolute !important; inset: 0; opacity: 0; cursor: pointer; min-height: 0 !important; margin: 0 !important; }
.photo-prev { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .3s; }
.photo-prev.on { opacity: 1; }
.photo-pick:has(.photo-prev.on) { border-style: solid; border-color: var(--g1); }
.photo-grid.view .photo-view { display: grid; gap: 4px; text-decoration: none; color: var(--text2); font-size: 13px; text-align: center; }
.photo-grid.view img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--bg2); }
[hidden] { display: none !important; }

/* v2.2.0 — دکمه‌های کاری ایجنت و یادداشت ملایم دستیار */
.msg-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 4px; }
.msg.note { background: transparent; border: 1px dashed var(--line, #d6dde3); color: var(--muted); font-size: 13px; }

/* v2.2.0 — دستیار رژیم (متن/صدا) در ویرایشگر */
.d-voicebtn { display: block; width: 100%; margin: 10px 0; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--green, #16a34a); background: var(--green-l, #ecfdf3); color: var(--ink); font: inherit; font-weight: 600; text-align: start; }
.d-voicebtn:hover { filter: brightness(.98); }
.d-voice { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60; max-width: 720px; margin-inline: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 12px 14px; }
.d-voice[hidden] { display: none !important; }
.d-voice .dv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.d-voice .dv-head .iconbtn { margin-inline-start: auto; }
.d-voice textarea { width: 100%; resize: vertical; min-height: 64px; }
.d-voice .dv-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.d-voice .dv-row #dv-state { flex: 1; min-width: 120px; }
.d-voice .dv-row #dv-state.bad { color: var(--red, #dc2626); }
.dv-mic.rec { background: #fee2e2; border-color: #ef4444; color: #b91c1c; animation: dvpulse 1.2s infinite; }
@keyframes dvpulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.15); } }
body.dv-on .editor-page, body.dv-on main { padding-bottom: 220px; }
.d-item.dv-new { animation: dvnew 1.6s ease-out; }
@keyframes dvnew { 0% { background: #bbf7d0; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .d-item.dv-new, .dv-mic.rec { animation: none; } }
:root[data-theme="dark"] .d-voicebtn { background: rgba(22,163,74,.12); }
:root[data-theme="dark"] .dv-mic.rec { background: rgba(239,68,68,.18); color: #fca5a5; }

/* v2.2.0 — حساب باشگاه */
.gym-price { margin: 8px 0 14px; padding-inline-start: 18px; line-height: 2; }
.gym-bill { border-top: 1px solid var(--line, #e5e7eb); padding-top: 10px; margin-top: 10px; }
.gym-bill:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.gym-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.gym-cta .btn { margin-inline-start: auto; }

/* v2.2.0 — بدون لوگو: نام باشگاه به‌شکل نشان‌واره */
.gym-logo-img { max-height: 72px; max-width: 180px; }
.gym-wordmark { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; max-width: 100%;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--green, #16a34a); color: var(--green-d, #15803d);
  font-weight: 800; font-size: clamp(18px, 4.5vw, 26px); line-height: 1.4; text-align: center; background: var(--card, #fff); }
.gym-wordmark.sm { min-height: 48px; font-size: 18px; margin: 4px 0 8px; }
:root[data-theme="dark"] .gym-wordmark { color: #86efac; border-color: #22c55e; }

/* v2.2.0 — مدیریت وعده‌ها، قبل/بعد از تمرین، وعده‌ی آزاد و روز آزاد */
.d-daybar { flex-wrap: wrap; }
.d-daybar-end { display: inline-flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.sl-h { margin: 4px 0 6px; font-size: 16px; }
.sl-list { display: grid; gap: 8px; margin: 10px 0; }
.sl-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(110px, 1.2fr) auto; gap: 6px; align-items: center;
  padding: 8px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: var(--card, #fff); }
.sl-row select, .sl-row input { min-width: 0; width: 100%; }
.sl-move { display: inline-flex; flex-direction: column; gap: 2px; }
.iconbtn.sm { width: 28px; height: 24px; font-size: 12px; line-height: 1; }
.sl-add { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.sl-ci { display: grid; gap: 6px; margin: 8px 0 12px; }
.sl-ci-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft, #f8faf9); }
.sl-ci-row .linkbtn { margin-inline-start: auto; }
.pill.free { background: #fef3c7; color: #92400e; }
.d-meal-free { border-style: dashed; }
.d-free { margin: 8px 0 2px; line-height: 1.9; }
.d-cheatday { text-align: center; border: 2px dashed #f59e0b; }
.d-cheatday h3 { margin: 4px 0 8px; }
.d-cheatnote { margin: 6px 0; }
@media (max-width: 520px) { .sl-row { grid-template-columns: auto 1fr auto; } .sl-row .sl-label { grid-column: 2 / 3; } .sl-row .sl-type { grid-column: 2 / 3; } }
:root[data-theme="dark"] .pill.free { background: rgba(245,158,11,.18); color: #fcd34d; }
:root[data-theme="dark"] .sl-ci-row { background: rgba(255,255,255,.04); }
.sl-row select, .sl-row input { height: 40px; padding: 0 10px; border: 1px solid var(--line, #d6dde3); border-radius: 10px;
  background: var(--card, #fff); color: var(--ink); font: inherit; }
.sl-row input:focus, .sl-row select:focus { outline: 2px solid var(--green, #16a34a); outline-offset: 1px; }

/* v2.2.0 — ستاره‌های امتیاز، پنجره‌ی دوره‌ای امتیاز و صفحه‌ی پشتیبانی */
.stars { border: 0; padding: 0; margin: 4px 0 10px; }
.stars legend { font-weight: 700; margin-bottom: 6px; }
.stars-row { display: inline-flex; flex-direction: row; gap: 4px; direction: ltr; }   /* DOM: ۵…۱ ← ستاره‌ی ۱ سمت راست (RTL) */
.stars-row input { position: absolute; opacity: 0; pointer-events: none; }
.stars-row label { font-size: 38px; line-height: 1; color: #d1d5db; cursor: pointer; transition: transform .12s, color .12s; }
.stars-row label:hover, .stars-row label:hover ~ label, .stars-row input:checked ~ label { color: #f59e0b; }
.stars-row input:focus-visible + label { outline: 2px solid var(--green, #16a34a); border-radius: 6px; }
.stars-row label:active { transform: scale(.9); }
.stars .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stars-hint { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.gp-pop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 23, 42, .35); padding: 16px; animation: gpfade .2s ease-out; }
.gp-pop-card { position: relative; width: 100%; max-width: 420px; margin: 0 auto 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.gp-pop-x { position: absolute; inset-inline-end: 10px; top: 10px; }
@media (min-width: 700px) { .gp-pop { align-items: center; } }
@keyframes gpfade { from { opacity: 0; } to { opacity: 1; } }
.support-id .sid { font-size: 22px; letter-spacing: 1px; }
.faq-search { width: 100%; margin: 6px 0 10px; }
details.qa[hidden] { display: none; }
:root[data-theme="dark"] .stars-row label { color: #475569; }

/* v2.2.0 — ایموجی سه‌بعدی Fluent: هم‌اندازه‌ی متن، روی خط پایه */
img.emo { width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin: 0 .05em; display: inline-block; object-fit: contain;
  user-select: none; -webkit-user-drag: none; }
h1 img.emo, h2 img.emo { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.faq-search { height: 44px; padding: 0 14px; border: 1px solid var(--line, #d6dde3); border-radius: 12px; background: var(--card, #fff);
  color: var(--ink); font: inherit; }
.faq-search:focus { outline: 2px solid var(--green, #16a34a); outline-offset: 1px; }

/* v2.3.0 — ساپلیمنت‌ها (مکمل، قرص، ویتامین) */
.sp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-card-h h3 { margin: 0; }
.sp-sum { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.sp-sum li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft, #f8faf9); }
.sp-sum li span { color: var(--muted, #6b7280); font-size: 13px; }
.sp-mini { margin: 6px 0 10px; }
.sp-lead { margin: 0 0 10px; line-height: 1.8; }
.sp-ph { margin: 10px 0 2px; }
.sp-list { display: grid; gap: 8px; margin: 8px 0; }
.sp-row { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: var(--card, #fff); }
.sp-top { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; }
.sp-grid { display: grid; grid-template-columns: 80px 1fr 1fr 1.2fr; gap: 6px; }
.sp-row input, .sp-row select { min-width: 0; width: 100%; }
.sp-name { font-weight: 700; }
.sp-kind { display: grid; gap: 4px; margin: 6px 0; }
@media (max-width: 520px) { .sp-grid { grid-template-columns: 1fr 1fr; } }
.sp-row input, .sp-row select, .sp-kind select { padding: 8px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: var(--field-bg, #fff);
  color: var(--ink); font: inherit; font-size: 14px; min-height: 40px; }
.sp-row input:focus, .sp-row select:focus, .sp-kind select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-l); }
.sp-name { font-size: 15px !important; }
