/* `--card` was never a token on this site - it is defined in no
 * stylesheet - so this fill resolved to nothing and the notice box has
 * been transparent since the coaching pages shipped. `--surface-2` is
 * what this site calls a raised surface. Found by the var() check in
 * tools-build/test-coach-profile.mjs, which now fails on any undefined
 * token rather than letting it fall back silently. */
/* Website-only additions: existing navigation/theme tokens remain authoritative. */
.commerce-preparation{padding:14px 18px;border:1px solid var(--blue);border-radius:14px;background:var(--surface-2);font-size:14px;line-height:1.6}
.commerce-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-block:22px}
.commerce-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.commerce-grid .card{display:flex;flex-direction:column;gap:14px}
.commerce-grid p,.commerce-grid li,.commerce-details dd{overflow-wrap:anywhere}
.commerce-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px 20px;padding:24px;border:1px solid var(--border);border-radius:18px}
.commerce-details dt{font-weight:700}.commerce-details dd{margin:0}
#commerceContent button{margin-inline-end:10px;margin-block:8px}
#commerceContent button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:520px){.commerce-details{grid-template-columns:1fr;gap:6px}.commerce-details dd{margin-block-end:14px}.commerce-tabs .btn{flex:1 1 130px}}

/* ── A coach card that looks like the coach's page in the app ───────────
 *
 * Added 2026-10-19. The card drew a name, a paragraph, a price and a list;
 * the app showed a face, a verified seal, years, a rating and languages. The
 * server had been sending all of it for weeks.
 *
 * `logical` properties throughout (inline-start, not left): this site serves
 * Arabic right-to-left, and a `margin-left` here is a gap on the wrong side
 * of the photo for the primary audience.
 */
.coach-head{display:flex;gap:14px;align-items:flex-start;margin-block-end:12px}
.coach-head-text{min-width:0;flex:1}          /* min-width:0 or a long name cannot ellipsize */
.coach-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.coach-name-row h2{margin:0}

/* A fixed square that is also the fallback: the initial sits underneath and
 * the photo covers it, so a slow or failed image shows a letter rather than
 * a hole. Same idea as AppAvatar in the app. */
.coach-avatar{position:relative;flex:0 0 auto;width:64px;height:64px;border-radius:50%;
  overflow:hidden;background:var(--surface-2,#1d2026);
  display:grid;place-items:center}
.coach-avatar-initial{font-weight:800;font-size:24px;color:var(--text-2,#9aa4b2)}
.coach-avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* The PAID badge. Amber on a dark seal would fail contrast, so the seal is
 * --blue and the tick is --on-blue - the same rule the app's colour law
 * states for a filled accent surface. */
.coach-seal{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;
  background:var(--blue,#2563eb);color:var(--on-blue,#fff);font-size:12px;font-weight:700;line-height:1;
  flex:0 0 auto}

.coach-headline{margin:4px 0 0;color:var(--text-2,#9aa4b2)}
.coach-chips{display:flex;flex-wrap:wrap;gap:6px;margin-block-start:8px}
.coach-chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;
  border:1px solid var(--border,#252932);color:var(--text-2,#9aa4b2);white-space:nowrap}
.coach-languages{margin:0 0 10px}
.coach-languages-label{color:var(--text-2,#9aa4b2)}

/* 360dp is the width this project measures at, and a 64px photo beside a
 * translated name is exactly where a row runs off the edge. */
@media (max-width:420px){
  .coach-avatar{width:52px;height:52px}
  .coach-avatar-initial{font-size:20px}
}

/* USER-WRITTEN TEXT PICKS ITS OWN DIRECTION.
 *
 * A coach's bio, name and headline are typed by the coach and the page has
 * no idea which language they are in. Rendered inside an Arabic (RTL)
 * paragraph, an English sentence that STARTS WITH A DIGIT has that digit
 * reordered to the far end: "9 years of experience & Body Building" came out
 * as "years of experience & Body Building 9", which is not a cosmetic
 * complaint - it moves the number away from the thing it counts.
 *
 * `plaintext` sets each paragraph's direction from its own first strong
 * character, so an English bio reads left-to-right on the Arabic page and an
 * Arabic bio reads right-to-left on the English one. Both directions matter
 * here: one of the two coaches on Production has an Arabic bio and the other
 * an English one.
 *
 * NOT applied to the chips: those are a number plus a LOCALIZED label, so
 * they should follow the page like any other interface text. */
.coach-name-row h2,
.coach-headline,
.coach-card > p,
.coach-card li{unicode-bidi:plaintext;text-align:start}

/* The coach's photos. Signed-in only -- see assets/coaching-media.js for why
 * these are never shown to the open web. */
.coach-media{margin-block-start:18px}
.coach-media h3{margin:16px 0 8px;font-size:15px}
.coach-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.coach-media-item{margin:0}
.coach-media-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block;
  background:var(--surface-2)}
.coach-media-item figcaption{margin-block-start:6px;font-size:12px;color:var(--text-2);
  unicode-bidi:plaintext;text-align:start}
.coach-media-error{color:var(--text-2);margin:8px 0}

/* ---- Website PRO page (2026-10-26) ------------------------------------- */
.pro-hero{position:relative;overflow:hidden;padding:28px 26px;margin-block:10px 20px;border:1px solid var(--border);
  border-radius:var(--r-lg);background:radial-gradient(120% 140% at 100% 0%,rgba(37,99,235,.22),transparent 55%),var(--surface)}
.pro-kicker{margin:0 0 6px;font-size:12.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--blue-2)}
.pro-hero h2{margin:0 0 10px;font-size:clamp(24px,4vw,34px);font-weight:900;letter-spacing:-.6px;line-height:1.15}
.pro-lead{margin:0 0 18px;color:var(--text-2);max-width:60ch;line-height:1.6}
.pro-feats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px 18px}
.pro-feats li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45}
.pro-tick{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;
  background:rgba(37,99,235,.16);color:var(--blue-2);font-weight:900;font-size:12.5px}
.pro-banner{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;padding:14px 18px;margin-block:0 16px;
  border:1px solid var(--border-hi);border-radius:var(--r);background:var(--surface-2);line-height:1.55}
.pro-banner b{flex-basis:100%}
.pro-banner.ok{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.10)}
.pro-banner.pro-have{border-color:rgba(37,99,235,.40);background:rgba(37,99,235,.08)}
.pro-plans{margin-block:6px 16px}
#commerceContent .pro-plans .plan-opt{margin:0;width:100%;font:inherit;color:inherit;min-height:104px;display:flex;flex-direction:column;gap:2px}
.pro-plans .plan-opt.wide{grid-column:1/-1}
.pro-plans .plan-opt:focus-visible{outline:2px solid var(--blue-2);outline-offset:2px}
.pro-plans .plan-opt.sel{background:linear-gradient(180deg,rgba(37,99,235,.10),transparent 70%),var(--surface)}
.pro-opt-top{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pro-opt-top .pl{margin-inline-end:auto}
.pro-badge,.pro-save{font-size:11px;font-weight:800;padding:3px 8px;border-radius:var(--r-pill);white-space:nowrap}
.pro-badge{background:var(--blue);color:var(--on-blue)}
.pro-save{background:rgba(34,197,94,.14);color:var(--success)}
.pro-plans .plan-opt .pa{font-size:26px;margin-top:6px}
.pro-plans .plan-opt .pp{font-size:12.5px;color:var(--text-2)}
.pro-skel{min-height:104px;cursor:default;background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%);
  background-size:200% 100%;animation:proshimmer 1.3s ease-in-out infinite}
@keyframes proshimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.pro-pay{display:grid;gap:8px;justify-items:center;text-align:center;padding:18px;margin-block:0 18px;
  border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface)}
#commerceContent .pro-pay .pro-cta{margin:0;width:100%;max-width:520px;justify-content:center}
#commerceContent .pro-pay p{margin:0}
.pro-methods{margin:4px 0 0;font-size:13px;font-weight:600;color:var(--text-2)}
.pro-muted{margin:0;font-size:12.5px;color:var(--text-3)}
.pro-fine{margin-block:6px 18px;padding-top:14px;border-top:1px solid var(--border)}
.pro-fine p{margin:0 0 8px;font-size:12.5px;line-height:1.6;color:var(--text-3)}
.pro-fine a{font-size:12.5px;color:var(--blue-2)}
@media(prefers-reduced-motion:reduce){.pro-skel{animation:none}}
@media(max-width:520px){.pro-hero{padding:22px 18px}.pro-plans .plan-opt .pa{font-size:23px}}

/* ---- Coaching pages, redesigned (2026-10-26) --------------------------- */
.commerce-lead{color:var(--text-2);margin:0 0 18px;max-width:62ch;line-height:1.6}
.commerce-muted{color:var(--text-3);font-size:13px;line-height:1.55;margin:10px 0}
.commerce-footer-links{display:flex;flex-wrap:wrap;gap:10px;margin-block:26px 6px}
.commerce-note-ok{border-color:rgba(34,197,94,.45)!important;background:rgba(34,197,94,.10)!important}
.commerce-empty{display:grid;gap:14px;justify-items:start;padding:24px}
.commerce-empty p{margin:0;font-size:15.5px;line-height:1.55}


.coach-card p{margin:0}
.coach-card h3{margin:16px 0 8px;font-size:13px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--text-3)}
.coach-list-card{gap:12px}
.coach-card-top{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}
.coach-card-top .coach-head{min-width:0}
.coach-price{flex:none;display:grid;justify-items:end;text-align:end;line-height:1.15}
.coach-price strong{font-size:22px;font-weight:900;letter-spacing:-.4px}
.coach-price span{font-size:12px;color:var(--text-3)}
.coach-desc{color:var(--text-2);line-height:1.6}
.clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.coach-langs .coach-chip{background:var(--surface-2)}
.coach-services .coach-chip{border-color:rgba(37,99,235,.35);color:var(--blue-2)}
#commerceContent .coach-cta{width:100%;justify-content:center;margin:6px 0 0}
#commerceContent .coach-cta-2{width:100%;justify-content:center;margin:8px 0 0}

.coach-profile{display:grid;gap:18px;align-items:start}
@media(min-width:900px){.coach-profile{grid-template-columns:minmax(0,1fr) 340px}.coach-buy{position:sticky;top:90px}}
.coach-buy{display:grid;gap:12px}
.coach-buy .coach-price{justify-items:start;text-align:start}
.coach-buy .coach-price strong{font-size:30px}
.coach-steps{list-style:none;margin:4px 0;padding:0;display:grid;gap:10px}
.coach-steps li{display:flex;gap:10px;align-items:center;color:var(--text-3);font-size:14px}
.coach-step-dot{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;
  border:1.5px solid var(--border-hi);font-size:12.5px;font-weight:800}
.coach-steps li.done{color:var(--text-2)}
.coach-steps li.done .coach-step-dot{background:var(--success);border-color:var(--success);color:#fff}
.coach-steps li.on{color:var(--text);font-weight:700}
.coach-steps li.on .coach-step-dot{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
.coach-step-note{padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2);font-size:14px;line-height:1.5}

.coach-status{font-weight:800}
.coach-status.tone-ok{background:rgba(34,197,94,.14);color:var(--success);border-color:transparent}
.coach-status.tone-wait{background:rgba(245,158,11,.14);color:#D97706;border-color:transparent}
.coach-status.tone-warn{background:rgba(239,68,68,.12);color:var(--danger);border-color:transparent}
.coach-status.tone-off{background:var(--surface-2);color:var(--text-3);border-color:transparent}
.coach-sub-card{display:grid;gap:14px;margin-block-end:14px}
.coach-sub-card h2{margin:0;font-size:20px}
.coach-sub-facts{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0}
.coach-sub-facts dt{color:var(--text-3);font-size:13.5px}
.coach-sub-facts dd{margin:0;font-weight:700;font-size:14px}

.coach-dash-head{display:grid;gap:16px;margin-block-end:8px}
.coach-dash-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.coach-dash-tile{display:grid;gap:2px;padding:14px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface-2)}
.coach-dash-tile strong{font-size:24px;font-weight:900}
.coach-dash-tile span{font-size:12.5px;color:var(--text-3)}
.coach-dash-tile.hot{border-color:rgba(37,99,235,.5);background:rgba(37,99,235,.08)}
.coach-dash-list{display:grid;gap:10px}
.coach-dash-request{padding:14px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface)}
.coach-dash-req-head{display:flex;gap:12px;align-items:center}
.coach-dash-initial{flex:none;display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:var(--surface-2);font-weight:800;color:var(--text-2)}
.coach-dash-who{display:grid;min-width:0;margin-inline-end:auto}
.coach-dash-who strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coach-dash-when{font-size:12.5px;color:var(--text-3);margin:0}
.coach-dash-actions{display:flex;gap:8px;margin-top:12px}
.coach-dash-payout{display:grid;gap:6px}
.coach-dash-blockers{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.coach-dash-blockers li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5}
.coach-todo{flex:none;width:8px;height:8px;margin-top:8px;border-radius:50%;background:#D97706;font-size:0}
@media(max-width:520px){.coach-dash-tile strong{font-size:20px}.coach-price strong{font-size:19px}}

.coach-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--border)}
.coach-card-foot .coach-price{justify-items:start;text-align:start}
#commerceContent .coach-card-foot .btn{margin:0}
.coach-list-card .coach-head{margin-block-end:0}

