@charset "UTF-8";
:root {
  --clr-faq: #f2f7fa;
  --clr-faq-hover: #dffbfc;
  --background-color: #0b1118;
  --neutral: #111820;
  --neutral-hover: #1b2530;
  --text: #f5f7fa;
  --text-muted: #a9b4c2;
  --btn--tag: #1b2530;
  /* כחול */
  --primary: #0066ff;
  --primary-text: #ffffff;
  --primary-hover: #030912;
  --primary-text-accent: #3385ff;
  /* טורקיז */
  --secondary: #00f5fb;
  --secondary-text: #0b1118;
  --secondary-hover: #00dce2;
  --light-red: rgb(255, 102, 102);
  --red: rgb(255, 0, 0);
  --dark-red: rgb(179, 0, 0);
  --light-orange: rgb(252, 123, 33);
  --orange: rgb(211, 84, 0);
  --dark-orange: rgb(168, 67, 0);
  --light-yellow: rgb(255, 223, 120);
  --yellow: rgb(212, 175, 55);
  --dark-yellow: rgb(163, 133, 43);
  --light-ocher: rgb(230, 230, 170);
  --ocher: rgb(202, 202, 135);
  --dark-ocher: rgb(162, 162, 108);
  --light-green: rgb(82, 156, 100);
  --green: rgb(7, 102, 80);
  --dark-green: rgb(5, 80, 61);
  --light-green2: rgb(216, 237, 221);
  --green2: rgb(120, 147, 127);
  --dark-green2: rgb(95, 117, 102);
  --light-blue: rgb(211, 226, 239);
  --blue: rgb(125, 168, 174);
  --dark-blue: rgb(95, 130, 135);
  --light-brown: rgb(217, 173, 121);
  --brown: rgb(178, 109, 60);
  --dark-brown: rgb(53, 36, 26);
  --light-cream: rgb(255, 250, 248);
  --cream: rgb(241, 235, 234);
  --dark-cream: rgb(210, 205, 204);
  --light-gray: rgb(177, 180, 179);
  --gray: rgb(142, 145, 144);
  --dark-gray: rgb(110, 113, 111);
  --dark-color: black;
  --dark-color-hover: rgb(142, 145, 144);
  --light-color: #dee2e1;
  --whatsapp: var(--secondary);
}

@media (prefers-color-scheme: light) {
  :root:not(.theme-dark) {
    --clr-faq: #ffffff;
    --clr-faq-hover: #e5f8fa;
    --background-color: #f4f7fb;
    --neutral: #ffffff;
    --neutral-hover: #e8eef5;
    --text: #172436;
    --text-muted: #526176;
    --primary-hover: #004fc7;
    --primary-text-accent: #0057d9;
    --secondary: #007e86;
    --secondary-text: #ffffff;
    --secondary-hover: #006a71;
    --light-color: #243247;
    --dark-color: #ffffff;
    --dark-color-hover: #dbe4ee;
  }
}
:root {
  direction: rtl;
  --ff-body: "Assistant", sans-serif;
  --ff-heading: "Rubik", sans-serif;
  --ff-english: "Rubik", sans-serif;
}

:root {
  --fs-200: 0.5rem;
  --fs-300: 0.9375rem;
  --fs-400: 1.0625rem;
  --fs-500: 1.275rem;
  --fs-600: 1.875rem;
  --fs-700: 2rem;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;
  --fw-900: 900;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-400);
}

h1,
h2,
h3 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-800);
  line-height: 1.1;
}

p {
  line-height: 1.7;
  text-wrap: pretty;
}

strong {
  font-weight: var(--fw-700);
}

.section-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 2rem auto 2rem;
  font-family: var(--ff-heading);
  font-size: clamp(var(--fs-600), 3vw, var(--fs-700));
  font-weight: var(--fw-800);
  line-height: 1.1;
  letter-spacing: 0.03rem;
  text-align: center;
  text-wrap: pretty;
  color: inherit;
}

.section-title::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -0.3em;
  width: 66%;
  height: 5px;
  background-color: var(--primary);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.big-title {
  font-family: var(--ff-heading);
  font-size: clamp(var(--fs-500), 6vw, var(--fs-600));
  font-weight: var(--fw-900);
  text-wrap: balance;
  letter-spacing: 0.03rem;
  text-align: center;
}

.english {
  font-family: var(--ff-english);
  font-weight: var(--fw-700);
  letter-spacing: 0.05em;
}

.title {
  margin-inline: auto;
  margin-bottom: 1rem;
  font-family: var(--ff-heading);
  font-size: clamp(var(--fs-400), 5vw, var(--fs-500));
  font-weight: var(--fw-700);
  letter-spacing: 0.02rem;
  color: var(--secondary);
}

li {
  line-height: 1.5;
}

.eyebrow {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: var(--fw-600);
  letter-spacing: 0.04em;
}

/*   RESET   */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ol,
ul,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul:where([role=list]),
ol:where([role=list]) {
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark light;
  scroll-behavior: smooth;
  overflow-x: clip;
  writing-mode: horizontal-tb;
  direction: rtl;
  text-orientation: mixed;
}

html.theme-dark {
  color-scheme: dark;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--ff-body);
  position: relative;
  background-color: var(--background-color);
  color: var(--text);
}

main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 4rem);
  padding-right: 1rem;
  padding-left: 1rem;
}

/* דף הבית מתחיל ישירות מתחת לניווט */
.home-main {
  padding-top: 0;
}

.policy,
.privacy,
.accessibility {
  max-width: 50rem;
  margin-inline: auto;
  padding-block: 3rem;
}
.policy h1,
.privacy h1,
.accessibility h1 {
  margin-bottom: 2rem;
}
.policy p,
.privacy p,
.accessibility p {
  line-height: 1.8;
  margin-bottom: 1rem;
}
.policy .contact-information,
.privacy .contact-information,
.accessibility .contact-information {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-hover);
}
.policy .contact-information h2,
.privacy .contact-information h2,
.accessibility .contact-information h2 {
  margin-bottom: 1rem;
}
.policy .contact-information a,
.privacy .contact-information a,
.accessibility .contact-information a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.policy .contact-information a:hover,
.privacy .contact-information a:hover,
.accessibility .contact-information a:hover {
  color: var(--primary);
}

svg.logo {
  width: clamp(7rem, 10vw, 9rem);
  height: auto;
  margin-inline: auto;
  display: block;
}

.section {
  margin: auto;
}

.section-heading {
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
}
.section-heading > p:last-child {
  max-width: 60ch;
  margin-inline: auto;
  font-weight: var(--fw-600);
  font-size: clamp(var(--fs-400), 2.2vw, var(--fs-500));
  line-height: 1.6;
  text-align: start;
}

/* עיצוב פס הגלילה */
::-webkit-scrollbar {
  width: 0; /* רוחב הפס אם 0 אז הסתרת פס הגלילה */
  height: 2ch; /* גובה הפס, אם מדובר בפס אופקי */
}

/* עיצוב המסילה */
::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 100svw;
}

/* עיצוב האגודל (החלק הניתן לגרירה) */
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 100svw;
}

/* עיצוב האגודל במעבר עכבר */
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transform-origin: right;
  transition: opacity var(--animation-timing), width var(--animation-timing), right var(--animation-timing), left var(--animation-timing), top var(--animation-timing), translate var(--animation-timing), background-color var(--animation-timing), clip-path var(--animation-timing);
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}
/*   General styling   */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

video {
  max-width: 100%;
  height: auto;
  padding: 1rem;
  margin: 0 auto;
  display: block;
  max-height: 90svh;
}

/*  Utility Classes */
/* select all direct childen of .flow
   and add margin to the top for proper
   spacing */
.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-spacer, 1em);
}

.container {
  max-width: min(1200px, 95vw);
}

.flex-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: auto;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
  margin-bottom: 1rem;
}

button,
.btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn {
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
  display: flex;
  line-height: 1;
  padding: 0.75em 1.75em;
  border-radius: var(--border-radius);
  justify-content: center;
  align-items: center;
  text-align: center;
  justify-content: center;
  border: transparent;
  outline: transparent;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: var(--fw-700);
  font-size: var(--fs-400);
  margin: auto;
  padding: 0.5rem;
  border: 2px solid var(--secondary);
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn--secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  width: max-content;
  margin: auto;
  padding-inline: 1.5rem;
  border-radius: 1rem;
  corner-shape: round;
  background: var(--secondary);
  color: var(--secondary-text);
  transition: padding var(--animation-timing);
}
.btn--secondary::after {
  content: "🏀";
  position: absolute;
  top: 50%;
  left: 0.7rem;
  font-size: 1.15em;
  line-height: 1;
  opacity: 0;
  transform: translate(-150%, -50%) rotate(-180deg);
  transition: transform 400ms ease, opacity 200ms ease;
  pointer-events: none;
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  /* פותחים מקום לכדור */
  padding-inline-end: 3.2rem;
  text-align: start;
}
.btn--secondary:hover::after, .btn--secondary:focus-visible::after {
  opacity: 1;
  animation: ball-bounce 500ms ease-out forwards;
}

@keyframes ball-bounce {
  0% {
    opacity: 0;
    transform: translate(-150%, -50%) rotate(-180deg);
  }
  55% {
    opacity: 1;
    transform: translate(0, -85%) rotate(-30deg);
  }
  75% {
    transform: translate(0, -35%) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, -50%) rotate(0deg);
  }
}
.btn--neutral {
  background-color: var(--neutral);
  font-weight: var(--fw-700);
  outline: 2px solid var(--light-brown);
}

.btn--neutral:hover,
.btn--neutral:focus {
  background-color: var(--neutral-hover);
  color: var(--light-color);
  outline-offset: 0.25em;
}

.btn-dark {
  background-color: var(--dark-color);
  color: var(--light-color);
}

.btn-dark:hover,
.btn-dark:focus {
  background-color: var(--dark-color-hover);
  color: var(--dark-color);
}

.btn--back {
  position: relative;
  font-weight: var(--fw-700);
  background: var(--green2);
  color: var(--light-color);
  margin: 1rem auto;
  min-width: max-content;
  max-width: 10svw;
}

.btn--back:hover,
.btn--back:focus-visible {
  color: var(--light-green);
  background-color: var(--dark-color);
}

.btn--to-top {
  z-index: 25;
  position: absolute;
  bottom: 10rem;
  background: var(--secondary);
  color: var(--secondary-text);
  max-width: min-content;
  aspect-ratio: 1;
  width: 2rem;
  height: 2rem;
  right: 2%;
  border-radius: 50%;
  font-size: 2rem;
  padding: 0;
}

.btn--to-top:hover,
.btn--to-top:focus-visible {
  color: var(--light-color);
  background-color: var(--dark-color);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: white;
}

.whatsapp-button {
  border: 1px solid var(--whatsapp);
  border-radius: 0;
}

.btn-whatsapp:hover,
.whatsapp-button:hover {
  background-color: var(--light-green);
  color: black;
}

.copyright:hover span {
  color: #ff0000;
}

#whatsapp-link {
  position: fixed;
  left: 5%;
  top: 30svh;
  color: var(--whatsapp);
  font-size: 3rem;
  text-decoration: none;
  z-index: 1000;
  transform-origin: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

#whatsapp-link:hover,
#whatsapp-link:focus-visible {
  transform: scale(1.12) rotate(360deg);
  filter: brightness(1.15);
}

.scroll-x {
  width: 100%;
  height: max-content;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-inline: auto;
  scroll-margin-bottom: 0;
  column-gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  cursor: zoom-in;
}

.scroll-x.grabbing {
  cursor: grabbing; /* סמן בעת גרירה */
}

.hidden {
  display: none;
}

.label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-404 {
  margin: 1rem;
  padding: 1rem;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  background-color: var(--light-brown);
}

/* אקורדיון תעודות בתוך עמוד טיפול ואודות */
.about-certificates,
.service-certificates {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  /* גלריית התעודות */
}
.about-certificates .accordion,
.service-certificates .accordion {
  width: 100%;
  overflow: hidden;
  background-color: var(--neutral);
  border: 1px solid var(--neutral-hover);
  border-radius: 0.5rem;
}
.about-certificates .accordion-label,
.service-certificates .accordion-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--neutral);
  color: var(--text);
  font-weight: var(--fw-600);
  transition: background-color 0.3s ease;
}
.about-certificates .accordion-label:hover,
.service-certificates .accordion-label:hover {
  background-color: var(--neutral-hover);
}
.about-certificates .accordion-label .arrow,
.service-certificates .accordion-label .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: transform 0.35s ease;
}
.about-certificates .accordion-content,
.service-certificates .accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  background-color: var(--background-color);
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.about-certificates .accordion-inner,
.service-certificates .accordion-inner {
  min-height: 0;
  overflow: hidden;
}
.about-certificates .accordion[open] .accordion-content,
.service-certificates .accordion[open] .accordion-content {
  grid-template-rows: 1fr;
  opacity: 1;
}
.about-certificates .accordion[open] .accordion-label .arrow,
.service-certificates .accordion[open] .accordion-label .arrow {
  transform: rotate(-90deg);
}
.about-certificates .scroll-images,
.service-certificates .scroll-images {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.about-certificates .scroll-images img,
.service-certificates .scroll-images img {
  width: min(80vw, 550px);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.5rem;
  aspect-ratio: 1/1.414;
  scroll-snap-align: center;
}

:root {
  --bar-width: 30px;
  --bar-height: 4px;
  --hamburger-gap: 5px;
  --foreground: white;
  --background: var(--text);
  --hamburger-margin: 1.5em;
  --animation-timing: 500ms ease-in-out;
  --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

.hamburger-menu {
  --x-width: calc(var(--hamburger-height) * 1.41421356237);
  display: flex;
  flex-direction: column;
  gap: var(--hamburger-gap);
  width: max-content;
  position: absolute;
  top: var(--hamburger-margin);
  right: var(--hamburger-margin);
  z-index: 10;
  cursor: pointer;
}

.hamburger-menu:has(input:checked) {
  --foreground: white;
  --background: #333;
}

.hamburger-menu:has(input:focus-visible)::before,
.hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu input:focus-visible {
  border: 1px solid var(--background);
  box-shadow: 0 0 0 1px var(--foreground);
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input {
  content: "";
  width: var(--bar-width);
  height: var(--bar-height);
  background-color: var(--foreground);
  border-radius: 9999px;
  transform-origin: left center;
  transition: opacity var(--animation-timing), width var(--animation-timing), rotate var(--animation-timing), translate var(--animation-timing), background-color var(--animation-timing);
}

.hamburger-menu input {
  appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  pointer-events: none;
}

.hamburger-menu:has(input:checked)::before {
  rotate: 45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / -2);
}

.hamburger-menu:has(input:checked)::after {
  rotate: -45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / 2);
}

.hamburger-menu input:checked {
  opacity: 0;
  width: 0;
}

.sidebar {
  padding-inline-start: 2rem;
  padding-top: calc(var(--hamburger-height) + var(--hamburger-margin) + 3rem);
  background-color: rgba(51, 51, 51, 0.9019607843);
  color: var(--background);
  z-index: 9;
  transition: translate var(--animation-timing);
  translate: 150%;
  position: absolute;
  right: 0;
  flex-direction: column;
  align-items: start;
  width: 100%;
  min-height: 100vh;
  transform-origin: right;
  transition: translate 600ms ease-in;
}

.hamburger-menu:has(input:checked) + .sidebar {
  translate: 0;
}

@media (prefers-color-scheme: light) {
  html:not(.theme-dark) .hamburger-menu {
    --foreground: var(--text);
  }
  html:not(.theme-dark) .hamburger-menu:has(input:checked) {
    --foreground: var(--text);
    --background: var(--background-color);
  }
  html:not(.theme-dark) .sidebar {
    color: var(--text);
    background-color: rgba(244, 247, 251, 0.97);
  }
}
/*   Footer   */
.site-footer {
  --logo-color: currentColor;
  text-align: center;
}

.wrapper-footer {
  display: grid;
  grid-template-areas: "more-info" "social" "copyright";
  column-gap: 2rem;
  row-gap: 1rem;
  text-align: center;
  margin-top: 4rem;
}

.more-info {
  min-width: 70svw;
  max-width: 70svw;
  margin: auto;
  grid-area: more-info;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
}

.social {
  grid-area: social;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.social .icon {
  width: 2rem;
  height: 2rem;
}

.copyright {
  grid-area: copyright;
}

.contact-us,
.more-info,
.useful-information {
  display: grid;
  gap: 1rem;
}

footer:has(a.social-item:hover) a.social-item:not(:hover),
footer:has(a.social-item:hover) a.social-item.active {
  opacity: 0.7;
  color: var(--secondary);
}

.icon-facebook:hover {
  color: blue;
}

.icon-instagram:hover .instagram-path {
  fill: url(#instagram-gradient);
}

.icon-youtube:hover {
  color: red;
}

.icon-pinterest:hover {
  color: red;
}

.useful-information {
  grid-area: useful-information;
}

/*  Header  */
:root {
  --header-height: 10svh;
}

header.page-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  background-color: var(--background-color);
  color: var(--text);
  height: var(--header-height);
  /* מצב רגיל: העמוד הנוכחי כתום */
  /* סלקטור לכל הקישורים שלא נבחרו */
}
header.page-header.hide {
  transform: translateY(-150%);
}
header.page-header .page-header-content {
  background-color: inherit;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  z-index: 100;
  height: calc(var(--header-height) + 0.5rem);
  top: 0;
}
header.page-header .nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 90svh;
}
header.page-header .personal-area-mobile {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  background-color: transparent;
  transform: translateY(-50%);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
header.page-header .personal-area-mobile svg {
  width: 1.4rem;
  height: 1.4rem;
}
header.page-header .personal-area-mobile:hover,
header.page-header .personal-area-mobile:focus-visible {
  color: var(--background-color);
  background-color: var(--primary);
  border-color: var(--primary);
}
header.page-header .logo:hover .logo-lightning {
  fill: var(--primary);
}
header.page-header .logo-lightning {
  transition: fill 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}
header.page-header .icon-home {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: sub;
}
header.page-header .nav-list a:focus,
header.page-header .nav-list a:hover {
  color: var(--secondary);
  font-weight: var(--fw-500);
}
header.page-header .nav-item[aria-current=page] {
  color: var(--primary);
}
header.page-header nav:has(.nav-item[aria-current=page]:hover) a[class=nav-item]:not(:hover) {
  color: var(--primary);
}
header.page-header nav:has(a[class=nav-item]:hover) a[class=nav-item]:not(:hover),
header.page-header nav:has(li[class=nav-item]:hover) a[class=nav-item]:not(:hover),
header.page-header nav:has(a[class=nav-item]:hover) .nav-item.active,
header.page-header nav:has(a[class=nav-item][aria-current=page]:hover) a[class=nav-item]:not([aria-current=page]) {
  color: var(--primary);
}

/* =======================================================
   HOMEPAGE
======================================================= */
/* =======================================================
   HERO
======================================================= */
.hero-grid {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "content" "cta";
  align-content: center;
  row-gap: 2rem;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 25%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 75%, transparent 100%), url("/assets/image/Image-hero-mobile.webp") center/cover no-repeat;
  color: white;
}

.hero-basketball {
  display: inline-block;
  font-size: 0.4em;
  vertical-align: middle;
}

.hero-content {
  grid-area: content;
  display: grid;
  gap: 2rem;
  padding-inline: 1.5rem;
  padding-top: calc(var(--header-height) + 1.5rem);
}
.hero-content .section-title {
  max-width: 18ch;
  line-height: 1.05;
}
.hero-content > p {
  max-width: 55ch;
}

.hero-benefits {
  max-width: 30ch;
  display: grid;
  gap: 0.75rem;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-500);
  font-weight: var(--fw-600);
}
.hero-benefits li::before {
  content: "";
  width: 1rem;
  height: 1.5rem;
  flex-shrink: 0;
  background: url("/assets/image/lightning.png") center/contain no-repeat;
}

.hero-cta {
  grid-area: cta;
  margin: 2rem auto;
}
.hero-cta .hero-btn {
  min-width: 14rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border: 2px solid var(--secondary);
  border-radius: 0.25rem;
  background-color: rgba(0, 0, 0, 0.35);
  color: white;
  font-family: var(--ff-heading);
  font-size: var(--fs-500);
  font-weight: var(--fw-700);
  backdrop-filter: blur(4px);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.hero-cta .hero-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* =======================================================
   INFO BAR
======================================================= */
.info-bar-wrapper {
  padding: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: info-border 5s linear infinite;
  border-radius: var(--border-radius);
}

.info-bar {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--neutral);
  border-radius: calc(var(--border-radius) - 2px);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--secondary-hover);
}
.info-item:first-child {
  border-top: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-value {
  font-weight: var(--fw-600);
  color: var(--secondary);
}

.info-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--secondary);
}
.info-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

@keyframes info-border {
  to {
    background-position: 200% center;
  }
}
/* =======================================================
   HOME PERFORMANCE
======================================================= */
.home-performance {
  background-color: var(--neutral);
  display: grid;
  justify-items: center;
  width: 100%;
}
.home-performance > .container {
  width: min(94%, 90rem);
  max-width: none;
}
.home-performance .section-title {
  max-width: 18ch;
}

/* ========================
   CONTAINER
======================== */
.performance-query {
  container-type: inline-size;
  container-name: performance;
}

/* ========================
   GRID
======================== */
.performance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
}

/* ========================
   CARD
======================== */
.performance-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--background-color);
  border: 1px solid var(--neutral-hover);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.performance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4rem;
  height: 0.25rem;
  background-color: var(--secondary);
  transform: translateX(-50%);
  transition: width 300ms ease;
}
.performance-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.performance-card p {
  max-width: 30ch;
  color: var(--text-muted);
}

/* ========================
   HOVER
======================== */
@media (hover: hover) {
  .performance-card:hover {
    transform: translateY(-0.35rem);
    border-color: var(--secondary);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  }
  .performance-card:hover::before {
    width: 100%;
  }
}
/* ========================
   CONTAINER QUERIES
======================== */
@container performance (min-width: 30rem) {
  .performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .performance-card {
    min-height: 13rem;
    padding: 2rem;
  }
}
@container performance (min-width: 70rem) {
  .performance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .performance-card {
    min-height: 11rem;
    padding: 1.5rem;
  }
}
/* =======================================================
   HOME ABOUT
======================================================= */
.home-about {
  position: relative;
  overflow: hidden;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}

/* ========================
   CONTENT
======================== */
.home-about-content {
  max-width: 38rem;
}
.home-about-content .eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--secondary);
}
.home-about-content .section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}
.home-about-content p:not(.eyebrow) {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
}
.home-about-content .btn {
  margin-top: 1rem;
}

/* ========================
   IMAGE
======================== */
.home-about-img {
  position: relative;
  width: min(100%, 30rem);
  max-width: 50svw;
  margin-inline: auto;
}
.home-about-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--secondary);
  border-radius: 50%;
  opacity: 0.9;
}
.home-about-img img {
  view-transition-name: oded-image;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  outline: 2px solid var(--primary);
  border-radius: 50%;
  outline-offset: -0.25rem;
}

/* =======================================================
   FINAL CTA
======================================================= */
.home-final-cta {
  min-height: 70svh;
  width: 100%;
  display: grid;
  align-items: end;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.8) 100%), url(/assets/image/oded-run.webp) 70% center/cover no-repeat;
  color: white;
  position: relative;
}
.home-final-cta::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  inset-inline: 0;
  height: 1rem;
  background: var(--dark-color);
  filter: blur(0.75rem);
  z-index: 1;
  pointer-events: none;
}
.home-final-cta .card {
  width: min(100%, 30ch);
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  padding: 2rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.home-final-cta p {
  color: inherit;
  text-align: center;
  font-size: clamp(var(--fs-400), 2.5vw, var(--fs-500));
  width: fit-content;
  padding: 1rem 2rem;
  background-color: rgba(10, 10, 10, 0.55);
  border-radius: 1.5rem;
  corner-shape: scoop;
}

/* =======================================================
   HOME PROCESS
======================================================= */
.home-process {
  position: relative;
  padding-inline: 5vw;
  background-color: var(--background-color);
}
.home-process .section-title {
  max-width: 20ch;
}

/* ========================
   PROCESS LIST
======================== */
.process-list {
  position: relative;
  max-width: 70rem;
  display: grid;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  right: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

/* ========================
   PROCESS ITEM
======================== */
.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  grid-template-areas: "number title" "number text";
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  padding-block: 1.5rem;
  opacity: 0;
  transform: translateY(2rem);
  animation: process-reveal linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}
.process-item h3 {
  grid-area: title;
  align-self: end;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  transition: color 250ms ease;
}
.process-item p {
  grid-area: text;
  max-width: 45ch;
  color: var(--text-muted);
}

/* ========================
   NUMBER
======================== */
.process-number {
  grid-area: number;
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  align-self: start;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background-color: var(--background-color);
  color: var(--secondary);
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-700);
  transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

/* ========================
   HOVER
======================== */
@media (hover: hover) {
  .process-item:hover .process-number {
    background-color: var(--primary);
    color: white;
    transform: scale(1.08);
  }
  .process-item:hover h3 {
    color: var(--secondary);
  }
}
/* ========================
   REVEAL ANIMATION
======================== */
@keyframes process-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =======================================================
   PROCESS — WIDE SCREEN
======================================================= */
@media (min-width: 64em) {
  .process-list {
    max-width: 90rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-top: 1rem;
    view-timeline-name: --process-timeline;
    view-timeline-axis: block;
  }
  .process-list::before {
    top: 3rem;
    right: 12.5%;
    bottom: auto;
    left: 12.5%;
    width: auto;
    height: 2px;
    background: linear-gradient(to left, var(--secondary), var(--primary));
  }
  .process-item {
    grid-template-columns: 1fr;
    grid-template-rows: 4rem 4.5rem auto;
    grid-template-areas: "number" "title" "text";
    justify-items: center;
    padding: 0;
    text-align: center;
    opacity: 1;
    transform: none;
    animation: none;
  }
  .process-item h3 {
    max-width: 18ch;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
  }
  .process-item p {
    max-width: 28ch;
  }
  .process-number {
    width: 4rem;
    height: 4rem;
    font-size: 1rem;
    animation: process-number-fill linear both;
    animation-timeline: --process-timeline;
  }
  .process-item:nth-child(1) .process-number {
    animation-range: entry 0% cover 20%;
  }
  .process-item:nth-child(2) .process-number {
    animation-range: cover 20% cover 35%;
  }
  .process-item:nth-child(3) .process-number {
    animation-range: cover 35% cover 50%;
  }
  .process-item:nth-child(4) .process-number {
    animation-range: cover 50% cover 65%;
  }
}
/* ========================
   NUMBER ANIMATION
======================== */
@keyframes process-number-fill {
  from {
    background-color: var(--background-color);
    color: var(--secondary);
    transform: scale(1);
  }
  to {
    background-color: var(--secondary);
    color: white;
    transform: scale(1.08);
  }
}
/* ========================
   REDUCED MOTION
======================== */
@media (prefers-reduced-motion: reduce) {
  .process-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
.home-page {
  counter-reset: home-section;
}

.numbered-section {
  counter-increment: home-section;
  position: relative;
}
.numbered-section .section-title::before {
  content: counter(home-section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.18;
}

/* =========================
   FORM VARIABLES
========================= */
:root {
  --outline-color-invalid: #ff6b6b;
  --outline-color-valid: var(--secondary);
  --form-background: linear-gradient(
    180deg,
    rgba(17, 24, 32, 0.96) 0%,
    rgba(11, 17, 24, 0.98) 100%
  );
  --form-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* =========================
   LIGHT MODE
========================= */
@media (prefers-color-scheme: light) {
  :root:not(.theme-dark) {
    --form-background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(244, 247, 251, 0.98) 100%
    );
    --form-shadow:
      0 12px 30px rgba(23, 36, 54, 0.08), 0 2px 10px rgba(23, 36, 54, 0.06);
  }
}
/* =========================
   FORM SECTION
========================= */
/* =========================
   FORM WRAPPER
========================= */
#form {
  overflow: hidden;
  text-align: center;
  border-radius: calc(var(--border-radius) * 1.5);
}

.form {
  width: min(90%, 50rem);
  margin: 0.5rem auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--form-background);
  border: 1px solid var(--neutral-hover);
  border-radius: calc(var(--border-radius) * 1.5);
  box-shadow: var(--form-shadow);
  backdrop-filter: blur(6px);
}

/* =========================
   HEADING
========================= */
.lead,
.form .section-title {
  margin-bottom: 0.5rem;
}

.form p {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

/* =========================
   FIELDS GRID
========================= */
.text-fields {
  padding-top: 1rem;
  display: grid;
  grid-template-areas: "name" "phone" "email" "message" "consent" "submit";
  gap: 1rem;
}
.text-fields .name-input {
  grid-area: name;
}
.text-fields .phone-input {
  grid-area: phone;
  text-align: right;
}
.text-fields .email-input {
  grid-area: email;
}
.text-fields .message-input {
  grid-area: message;
  min-height: 8rem;
  resize: vertical;
}
.text-fields .form-consent {
  grid-area: consent;
}
.text-fields .submit {
  grid-area: submit;
}

/* =========================
   INPUTS
========================= */
.text-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--neutral);
  border: none;
  border-radius: var(--border-radius);
  outline: 1px solid var(--neutral-hover);
  transition: outline-color 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.text-input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: var(--fw-500);
}

/* =========================
   FOCUS
========================= */
.text-input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  background-color: var(--neutral-hover);
  color: var(--text);
  box-shadow: 0 0 0 0.25rem rgba(0, 245, 251, 0.12);
}

/* =========================
   VALIDATION
========================= */
input:invalid,
textarea:invalid {
  outline-color: var(--outline-color-invalid);
}

form input:valid,
textarea:valid {
  outline-color: var(--outline-color-valid);
}

/* =========================
   CONSENT
========================= */
.form-consent {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 0.25rem;
  text-align: right;
  line-height: 1.5;
  font-size: 0.95rem;
}
.form-consent input[type=checkbox] {
  margin-top: 0.15rem;
  inline-size: 1rem;
  block-size: 1rem;
  flex-shrink: 0;
  accent-color: var(--secondary);
}

/* =========================
   SUBMIT
========================= */
button[type=submit] {
  align-self: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--secondary);
  border-radius: var(--border-radius);
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: var(--fw-700);
  color: var(--primary-text);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

button[type=submit]:hover,
button[type=submit]:focus-visible {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

/* =========================
   SUCCESS
========================= */
.success {
  min-height: 70svh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  background: var(--form-background);
  border: 1px solid var(--neutral-hover);
  border-radius: calc(var(--border-radius) * 1.5);
  box-shadow: var(--form-shadow);
}

.contact-us {
  grid-area: contact-us;
  margin: 1rem;
  justify-content: start;
  text-align: start;
  padding: 1rem;
}
.contact-us span {
  display: inline-flex;
  margin: 1rem;
}

.contact {
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
}

#faq {
  scroll-margin-top: 20svh;
}

.faq-section {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.faq-item {
  animation: slide-in-list 1s ease-in-out forwards;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 7ch;
  cursor: pointer;
  transition: background-color 0.3s;
  gap: 1rem;
  min-width: 70svw;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.5rem;
  min-height: 10vh;
  text-align: start;
  align-items: center;
  color: currentColor;
  margin-top: 1rem;
  background-color: transparent;
  border: none;
  border-bottom: 1px inset rgba(0, 0, 0, 0.2117647059);
}

.faq-question:hover {
  border-bottom: 2px inset rgba(0, 245, 251, 0.3019607843);
}

.faq-answer {
  color: var(--secondary);
  padding-inline: 1rem;
  text-wrap: balance;
  border-radius: 0.3rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: auto 1rem;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity var(--animation-timing), transform var(--animation-timing);
  line-height: 2;
  text-align: start;
  font-weight: 700;
}

.faq-question.active + .faq-answer {
  animation: slide-in-list var(--animation-timing) forwards;
}

.faq-question::before {
  content: "⇨";
  display: inline-flex;
  scale: 1.5;
  transition: transform var(--animation-timing);
  transform: rotate(180deg);
  padding: 0rem 0.5rem;
}

.faq-question.active::before {
  transform: rotate(90deg);
}

@keyframes slide-in-list {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.about {
  display: grid;
  gap: 2.5rem;
  padding-block: 2rem 4rem;
  /* תמונת עודד */
  /* אזור הטקסט */
}
.about .wrapper-content-about {
  width: min(90%, 900px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.about .wrapper-img-about {
  width: clamp(200px, 25vw, 300px);
}
.about .wrapper-img-about img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: top;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.about .wrapper-text-about {
  width: 100%;
  max-width: 75ch;
  display: grid;
  gap: 2rem;
  text-align: right;
  line-height: 1.8;
}
.about .about-story p,
.about .about-vision p,
.about .about-bio p {
  margin: 0;
  text-wrap: pretty;
}
.about .about-vision-block {
  display: grid;
  gap: 0.75rem;
}
.about .about-vision-block h2 {
  margin: 0;
}
.about .about-cta {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.blog-filter {
  display: grid;
  gap: 1rem;
  justify-content: center;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.filter-tag {
  width: 100%;
  max-height: 4rem;
  border: 2px solid var(--btn--tag);
  margin: 0;
  background-color: transparent;
}

.filter-tag.active,
.filter-tag[aria-pressed=true] {
  background: var(--btn--tag);
  color: var(--text);
  border-color: var(--btn--tag);
}

.posts {
  margin: 2rem 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.last-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 1rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
  grid-auto-rows: auto 1fr;
  margin-inline: auto;
}

.post-card {
  display: grid;
  grid-template-areas: "post-card-img" "post-card-title" "post-card-description" "post-card-meta" "post-card-button";
  grid-template-columns: 1fr;
  gap: 1rem;
  justify-items: center;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
.post-card .tag-list {
  display: flex;
  gap: 1rem;
}

.post-card-img {
  grid-area: post-card-img;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.post-card-title {
  grid-area: post-card-title;
  margin: 0;
  text-align: center;
  max-width: 25ch;
  text-wrap: balance;
}

.post-card-meta {
  grid-area: post-card-meta;
  font-size: var(--fs-300);
}
.post-card-meta i {
  font-size: var(--fs-300);
}

.post-card-description {
  grid-area: post-card-description;
}

.post-card-button {
  grid-area: post-card-button;
  justify-self: start;
}

/* Individual post page ---------------------------------------------- */
.post {
  margin-inline: auto;
}

/* Meta */
.post-meta {
  text-align: center;
}
.post-meta .icon-clock {
  width: 1.2em;
  height: 1.2em;
  vertical-align: text-bottom;
}

/* Main image */
.post-main-image {
  margin-inline: auto;
  overflow: hidden;
}
.post-main-image img {
  display: block;
  width: 100%;
  max-height: 40svh;
  object-fit: cover;
  object-position: center;
}

/* Title */
.post-title {
  max-width: 20ch;
  margin: 2rem auto 1rem;
  text-align: center;
  text-wrap: balance;
  line-height: 1.5;
}

/* Intro */
.post-intro {
  max-width: 65ch;
  margin: 1.5rem auto;
  text-wrap: pretty;
}

/* Opening / additional Markdown */
.post-body {
  display: grid;
  gap: 1rem;
  max-width: 65ch;
  margin-inline: auto;
}

/* ==================================================
   Content sections
   ================================================== */
.post-sections {
  display: grid;
  gap: clamp(3rem, 8vw, 6rem);
  margin-block: 3rem;
}

.post-content-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.post-content-section__text {
  min-width: 0;
}
.post-content-section__text h2 {
  margin-bottom: 1rem;
  text-align: start;
  text-wrap: balance;
}

.post-content-section__body {
  display: grid;
  gap: 1rem;
}
.post-content-section__body p {
  margin: 0;
}

/* Vertical images from video */
.post-content-section__media {
  width: min(100%, 24rem);
  margin-inline: auto;
  overflow: hidden;
}
.post-content-section__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* ==================================================
   UL
   ================================================== */
.post-content-section__body ul,
.post-body ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-content-section__body ul li,
.post-body ul li {
  position: relative;
  padding: 0.5rem 1.75rem 0.5rem 0;
}
.post-content-section__body ul li::before,
.post-body ul li::before {
  content: "";
  width: 1rem;
  height: 2rem;
  background: url(/assets/image/lightning.png) center/contain no-repeat;
  position: absolute;
  right: 0;
  opacity: 0.3;
}

/* ==================================================
   OL — numbered design
   ================================================== */
.post-content-section__body ol,
.post-body ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: post-step;
}
.post-content-section__body ol li,
.post-body ol li {
  counter-increment: post-step;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: 1rem 5rem 1rem 0;
  text-align: start;
  text-wrap: balance;
  overflow: hidden;
}
.post-content-section__body ol li::before,
.post-body ol li::before {
  content: counter(post-step, decimal-leading-zero);
  position: absolute;
  top: 50%;
  right: 0.1em;
  transform: translateY(-50%);
  font-family: "Oswald", sans-serif;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--app-success);
  opacity: 0.3;
  pointer-events: none;
}

/* ==================================================
   Video
   ================================================== */
.post-video {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-block: 3rem;
  text-align: center;
}
.post-video h2 {
  margin: 0;
}

/* ==================================================
   Tags
   ================================================== */
.post-tags {
  margin-bottom: 2rem;
}
.post-tags h3 {
  text-align: center;
}
.post-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0;
  list-style: none;
  font-size: var(--fs-300);
}

/* ==================================================
   Desktop
   ================================================== */
@media (min-width: 48rem) {
  /* Text + vertical image */
  .post-content-section:has(.post-content-section__media) {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.65fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  /* Alternate sides */
  .post-content-section:nth-child(even):has(.post-content-section__media) .post-content-section__media {
    grid-column: 1;
    grid-row: 1;
  }
  .post-content-section:nth-child(even):has(.post-content-section__media) .post-content-section__text {
    grid-column: 2;
    grid-row: 1;
  }
  /* Section without image */
  .post-content-section:not(:has(.post-content-section__media)) {
    width: 100%;
    max-width: 65ch;
    margin-inline: auto;
  }
  .post-content-section__media {
    width: min(100%, 22rem);
  }
  /* OL can spread out a little more on desktop */
  .post-content-section__body ol,
  .post-body ol {
    gap: 1.25rem;
  }
  .post-content-section__body ol li,
  .post-body ol li {
    padding-inline-start: 5.5rem;
  }
}
.services-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  grid-auto-flow: column;
  grid-auto-columns: 90%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 1rem;
}
.services-grid .service-card {
  scroll-snap-align: start;
}

.service-card {
  display: grid;
  min-width: 0;
  padding: 1.5rem;
  --service-color: currentColor;
  border: 2px solid var(--service-color);
  border-radius: var(--border-radius);
  text-align: center;
  transition: scale 250ms ease, box-shadow 250ms ease;
}
.service-card .btn--primary {
  outline-color: var(--service-color);
  margin: 1rem auto;
}
.service-card .btn--secondary {
  background-color: var(--service-color);
}

.service-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.service-image {
  min-width: 0;
}
.service-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--border-radius);
}

.service-meta {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
  margin: 1rem auto;
  list-style: none;
  text-align: center;
  line-height: 1.8;
}

.service-body {
  min-width: 0;
  width: 100%;
  max-width: 70ch;
  margin: 2rem auto 0;
  overflow-wrap: anywhere;
}

.service-page {
  display: grid;
  gap: 2rem;
  width: 100%;
  min-width: 0;
  margin: 2rem auto;
  grid-template-areas: "title" "summary" "meta" "body" "certificates" "feedback";
}
.service-page > * {
  min-width: 0;
}
.service-page .service-title {
  grid-area: title;
}
.service-page .service-summary {
  grid-area: summary;
  text-align: center;
  text-wrap-style: balance;
  border: 2px solid var(--service-color);
  width: fit-content;
  border-radius: 1rem;
  padding: 1rem;
  corner-shape: scoop;
  margin: auto;
}
.service-page .service-image {
  grid-area: image;
}
.service-page .service-meta {
  grid-area: meta;
}
.service-page .service-body {
  grid-area: body;
}
.service-page .service-certificates {
  grid-area: certificates;
}
.service-page .feedback {
  grid-area: feedback;
}
.service-page .btn--secondary {
  background-color: var(--service-color);
}
.service-page .btn--primary {
  outline-color: var(--service-color);
  margin: 1rem auto;
}

.service-title {
  position: relative;
  width: fit-content;
  margin: 1rem auto;
  padding-bottom: 0.75rem;
  font-size: clamp(var(--fs-500), 2vw, var(--fs-600));
  font-weight: var(--fw-700);
  line-height: 1.2;
}
.service-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 250ms ease;
}
.service-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 2.5rem;
  height: 0.2rem;
  background-color: var(--service-color, var(--primary));
  border-radius: 100vw;
  transition: width 250ms ease;
}

@media (hover: hover) {
  .service-card:hover {
    scale: 1.05;
  }
  .service-card:hover .service-title a {
    color: var(--service-color);
  }
  .service-card:hover .service-title::after {
    width: 4rem;
  }
}
.gallery {
  text-align: center;
}

.gallery-item {
  position: relative;
  text-align: center;
  display: grid;
  row-gap: 1rem;
  font-size: inherit;
  grid-template-rows: 1fr 4rem auto;
}

.gallery-image {
  width: 100%;
  min-width: 70svw;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  opacity: 0.9;
}

.gallery-title {
  margin-top: 1rem;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.lightbox.hidden {
  display: none;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 5rem;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-prev {
  left: 1rem;
  padding: 1rem;
}

.lightbox-next {
  right: 1rem;
  padding: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ccc;
}

.lightbox-pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.lightbox-pagination button {
  background: none;
  border: none;
  color: var(--light-color);
  width: 0.5rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--light-color);
  background-color: transparent;
  cursor: pointer;
  transition: background-color var(--animation-timing), transform var(--animation-timing);
}

.lightbox-pagination button.active {
  background-color: var(--light-color);
  transform: scale(1.2);
}

.feedback {
  text-align: center;
  padding: 1rem;
  background-color: var(--secondary);
  color: var(--text);
  margin: 2rem auto;
  border-radius: var(--border-radius);
}

.feedback-card {
  display: flex;
  gap: var(--gap);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  min-width: 80svw;
  height: fit-content;
  justify-items: center;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--border-radius);
  color: var(--text);
}

.feedback-summary {
  font-size: inherit;
  list-style: none;
  cursor: pointer;
  position: relative;
  width: fit-content;
  margin: 1rem auto;
  background-color: var(--dark-brown);
  color: white;
  min-width: 70%;
}
.feedback-summary::-webkit-details-marker {
  display: none;
}
.feedback-summary::before {
  content: "הצג ביקורת";
}
.feedback-content[open] .feedback-summary::before {
  content: "הסתר ביקורת";
}
.feedback-summary:hover {
  background-color: var(--blue);
  color: black;
  font-weight: 700;
}

.close-feedback {
  display: flex;
  width: 1ch;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  min-width: 1ch;
  max-width: 1ch;
  margin: 0;
  padding: 0;
}
.close-feedback:hover {
  transform: rotate(360deg);
}

.feedback-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.feedback-name {
  font-weight: bold;
  margin: 1rem auto;
  font-size: inherit;
}

.feedback-date {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.feedback-rating {
  min-height: 5rem;
}

.feedback-text {
  font-size: var(--fs-500);
  padding: 2rem 0;
  font-weight: 500;
}

/* Player & Coach app styles
   Split by responsibility. Keep this file as the single entry point. */
:root {
  --app-success: #48e5bc;
  --app-danger: #ff9b9b;
  --app-danger-border: #6f3e46;
  --app-pending: #ff9b9b;
  --app-overdue: #ff7070;
  --app-warning: #ffd27c;
  --app-warning-border: #775f35;
}

.player-app-body {
  --app-bg: #07111f;
  --app-surface: #101c2b;
  --app-surface-muted: #0b1624;
  --app-input: #101f30;
  --app-border: #263648;
  --app-border-strong: #304156;
  --app-input-border: #33465d;
  --app-control-border: #35506b;
  --app-text: #d6dde7;
  --app-text-strong: #ffffff;
  --app-text-soft: #aeb9c9;
  --app-text-secondary: #9eacbd;
  --app-text-muted: #8190a4;
  --app-text-subtle: #718198;
  --app-accent: #39e9ef;
  --app-accent-hover: #79f7fb;
  --app-accent-contrast: #07111f;
  --app-progress-track: #1e2b3b;
  --app-glow: rgba(0, 102, 255, 0.13);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  .player-app-body {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-surface-muted: #eef3f8;
    --app-input: #ffffff;
    --app-border: #d7e0ea;
    --app-border-strong: #c5d1de;
    --app-input-border: #aebdcd;
    --app-control-border: #8ca0b5;
    --app-text: #243247;
    --app-text-strong: #101b2b;
    --app-text-soft: #45566c;
    --app-text-secondary: #526176;
    --app-text-muted: #5e6f84;
    --app-text-subtle: #6b7c91;
    --app-accent: #007e86;
    --app-accent-hover: #006a71;
    --app-accent-contrast: #ffffff;
    --app-progress-track: #d7e0ea;
    --app-glow: rgba(0, 126, 134, 0.08);
    color-scheme: light;
  }
}
.is-auth-checking {
  visibility: hidden;
}

.player-app-body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--app-text);
  background: var(--app-bg);
  font-family: var(--ff-body);
}

.player-app-body *,
.player-app-body *::before,
.player-app-body *::after {
  box-sizing: border-box;
}

.player-app-body a {
  text-decoration: none;
}

.player-app-body button,
.player-app-body input,
.player-app-body select,
.player-app-body textarea {
  font: inherit;
}

/* =========================================================
   Selects — global visual style
========================================================= */
.player-app-body select {
  font: inherit;
  color: var(--app-text-strong);
}

/* Modern customizable select */
@supports (appearance: base-select) {
  .player-app-body select:not([multiple]),
  .player-app-body select:not([multiple])::picker(select) {
    appearance: base-select;
  }
  .player-app-body select:not([multiple]) {
    border: 1px solid var(--app-input-border);
    border-radius: var(--border-radius);
    background: var(--app-surface-muted);
    color: var(--app-text-strong);
    padding: 0.65rem 0.8rem;
    cursor: pointer;
  }
  .player-app-body select:not([multiple]):hover {
    border-color: var(--app-control-border);
  }
  .player-app-body select:not([multiple]):focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
  }
  /* הרשימה שנפתחת */
  .player-app-body select:not([multiple])::picker(select) {
    border: 1px solid var(--app-input-border);
    border-radius: var(--border-radius);
    background: var(--app-surface-muted);
  }
  /* החץ */
  .player-app-body select:not([multiple])::picker-icon {
    color: var(--app-text-soft);
    transition: rotate 160ms ease;
  }
  .player-app-body select:not([multiple]):open::picker-icon {
    rotate: 180deg;
  }
  /* האפשרויות */
  .player-app-body select:not([multiple]) option {
    padding: 0.65rem 0.8rem;
    color: var(--app-text-strong);
    background: var(--app-surface-muted);
  }
  .player-app-body select:not([multiple]) option:checked {
    background: var(--app-accent);
    color: var(--app-accent-contrast);
  }
}
.player-app-body h1,
.player-app-body h2,
.player-app-body h3,
.player-app-body p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset: 0.5rem auto auto 0.5rem;
  translate: 0 -200%;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--app-text-strong);
  color: var(--app-accent-contrast) !important;
}

.skip-link:focus {
  translate: 0;
}

.player-kicker {
  margin-bottom: 0.45rem;
  color: var(--app-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
}

.app-brand .logo {
  width: 9rem;
  height: auto;
  margin-inline: 0;
}

.app-brand span {
  padding-inline-start: 0.9rem;
  border-inline-start: 1px solid var(--app-border-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.player-primary-button {
  display: grid;
  place-items: center;
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--border-radius);
  color: var(--app-accent-contrast);
  background: var(--app-accent);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.player-primary-button:hover {
  background: var(--app-accent-hover);
  transform: translateY(-2px);
}

.player-primary-button:focus-visible {
  outline: 3px solid var(--app-text-strong);
  outline-offset: 3px;
}

.player-shell {
  min-height: 100svh;
  background: radial-gradient(circle at 12% 8%, var(--app-glow), transparent 25%), var(--app-bg);
}

/* =====================================================
   Authentication
   Login / password reset / invitations
===================================================== */
.player-login {
  display: grid;
  gap: 0;
  padding: 0;
  min-height: 100svh;
  min-height: 100dvh;
  background: radial-gradient(circle at 15% 15%, rgba(0, 102, 255, 0.17), transparent 35%), var(--app-bg);
}

.player-login__panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}

.player-login__heading {
  width: min(100%, 29rem);
  margin: clamp(2rem, 7vh, 4rem) auto 1.5rem;
}

.player-login__heading h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 10vw, 3rem);
}

.player-login__heading > p:last-child {
  max-width: 36ch;
  color: var(--app-text-soft);
}

.player-login__form {
  display: grid;
  gap: 1rem;
  width: min(100%, 29rem);
  margin-inline: auto;
}

.player-field {
  display: grid;
  gap: 0.5rem;
}

.player-field label {
  font-weight: 700;
}

.player-field input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.45rem;
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface);
}

.player-field input:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.14);
}

.player-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-text-button {
  padding: 0;
  border: 0;
  color: var(--app-text-muted);
  background: transparent;
}

.player-form-note {
  color: var(--app-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.player-login__visual {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 12, 23, 0.12), rgba(4, 12, 23, 0.92)), url("/assets/image/oded-run.webp") center/cover;
}

.player-login__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--app-bg) 0, transparent 24%);
}

.player-login__visual-copy {
  position: absolute;
  inset: auto clamp(2rem, 5vw, 5rem) clamp(3rem, 8vh, 7rem);
  z-index: 1;
}

.player-login__visual-copy p {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
}

.player-login__visual-copy strong {
  color: var(--app-accent);
}

.player-stat {
  display: block;
  margin-bottom: 1rem;
  color: var(--app-accent);
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
}

.app-topbar {
  display: grid;
  grid-template-areas: "brand profile";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 5.5rem;
  padding: 1rem clamp(1rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--app-border);
}

.app-topbar--has-dashboard {
  grid-template-areas: "brand profile" "dashboard dashboard";
}

.app-topbar .app-brand {
  grid-area: brand;
  justify-self: start;
}

.app-brand--compact .logo {
  width: 6.8rem;
}

.app-topbar__dashboard {
  grid-area: dashboard;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.4rem;
  min-height: 2.7rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--app-control-border);
  border-radius: var(--border-radius);
  color: var(--app-text) !important;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-topbar__dashboard span {
  color: var(--app-accent);
  font-size: 1rem;
}

.app-topbar__dashboard:hover {
  border-color: var(--app-accent);
  color: var(--app-accent) !important;
}

.app-topbar__dashboard:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 3px;
}

.app-profile {
  grid-area: profile;
  display: flex;
  align-items: center;
  justify-self: end;
  align-items: flex-end;
  gap: 0.75rem;
}

.app-profile__copy {
  display: none;
  text-align: left;
}

.app-profile__copy strong,
.app-profile__copy small {
  display: block;
}

.app-profile__copy small {
  color: var(--app-text-muted);
}

.app-avatar,
.player-avatar {
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 1px solid var(--app-accent);
  border-radius: 50%;
  color: var(--app-accent);
  font-weight: 800;
}

.app-logout {
  color: var(--app-text-muted);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: color 200ms ease, border-color 200ms ease;
}
.app-logout:hover {
  color: var(--app-accent);
  border-color: var(--app-accent);
}

.player-dashboard {
  width: min(100% - 2rem, 82rem);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
}

.player-welcome {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.player-welcome h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
}

.player-welcome > div > p:last-child {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--app-text-soft);
}

.player-week {
  display: grid;
  gap: 0.55rem;
  min-width: min(100%, 15rem);
  color: var(--app-text-soft);
  font-size: 0.9rem;
}

.player-week progress {
  width: 100%;
  height: 0.35rem;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--app-progress-track);
}

.player-week progress::-webkit-progress-bar {
  background: var(--app-progress-track);
}

.player-week progress::-webkit-progress-value {
  background: var(--app-accent);
}

.player-week progress::-moz-progress-bar {
  background: var(--app-accent);
}

.player-next-workout {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  overflow: hidden;
  border: 1px solid #265b76;
  border-radius: 0.65rem;
  background: linear-gradient(120deg, rgba(0, 102, 255, 0.19), rgba(17, 31, 47, 0.9));
}

.player-next-workout__number {
  position: absolute;
  inset: -0.9rem auto auto 1rem;
  color: rgba(57, 233, 239, 0.08);
  font-family: Oswald, sans-serif;
  font-size: 8rem;
  font-weight: 700;
}

.player-next-workout__content {
  position: relative;
  z-index: 1;
}

.player-next-workout h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.player-workout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--app-text);
}

.player-workout-meta li:not(:last-child)::after {
  content: "•";
  margin-inline-start: 1.5rem;
  color: var(--app-accent);
}

.player-next-workout .player-primary-button {
  position: relative;
  z-index: 1;
  width: 100%;
}

.player-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.player-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.player-section-heading > p {
  max-width: 32rem;
  margin: 0;
  color: var(--app-accent);
  font-size: 0.9rem;
}

.player-tools-grid {
  display: grid;
  gap: 1rem;
}

.player-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.player-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--app-accent);
}

.player-tool-card:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 3px;
}

.player-tool-card__index {
  position: absolute;
  inset: 1.15rem auto auto 1.25rem;
  color: #66778d;
  font-family: Oswald, sans-serif;
}

.player-tool-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  margin-bottom: auto;
  border: 1px solid var(--app-control-border);
  color: var(--app-accent);
  font-size: 1.35rem;
}

.player-tool-card h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.35rem;
}

.player-tool-card p {
  margin-bottom: 1.25rem;
  color: var(--app-text-secondary);
  line-height: 1.55;
}

.player-tool-card__link {
  color: var(--app-accent);
  font-weight: 700;
}

.player-tool-card--workouts {
  background: linear-gradient(145deg, rgba(0, 102, 255, 0.23), var(--app-surface) 62%);
}

.player-tool-card--accent {
  border-color: #2b6d72;
  background: linear-gradient(145deg, rgba(57, 233, 239, 0.13), var(--app-surface) 62%);
}

.player-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--app-text-muted);
  font-size: 0.9rem;
}

.player-breadcrumb a:hover {
  color: var(--app-accent);
}

.player-page-heading {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.player-page-heading h1,
.player-workout-header h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.player-page-heading > div:first-child > p:last-child,
.player-workout-header > div:first-child > p:last-child {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--app-text-soft);
}

.player-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: min(100%, 20rem);
  padding: 0.55rem;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
}

.player-calendar-nav button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 0;
  color: var(--app-text-subtle);
  background: transparent;
  font-size: 1.6rem;
}

.player-calendar-nav strong {
  font-size: 0.9rem;
}

.player-week-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(5rem, 1fr);
  gap: 0.65rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: inline mandatory;
}

.player-day {
  display: grid;
  gap: 0.45rem;
  place-items: center;
  min-height: 7.5rem;
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--app-text);
  background: var(--app-surface);
  scroll-snap-align: start;
  cursor: pointer;
}

.player-day strong {
  color: var(--app-text-strong);
  font-size: 1.5rem;
}

.player-day small {
  color: var(--app-text-subtle);
}

.player-day--has-workout {
  border-bottom: 3px solid #0066ff;
}

.player-day--active {
  border-color: var(--app-accent);
  color: var(--app-accent);
  background: rgba(57, 233, 239, 0.09);
}

.player-day--active small {
  color: var(--app-accent);
}

[data-player-schedule] {
  display: grid;
  gap: 1rem;
}

.player-workout-card {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid #2d5267;
  border-radius: 0.65rem;
  background: linear-gradient(125deg, rgba(0, 102, 255, 0.16), var(--app-surface) 62%);
}

.player-workout-card__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--app-success);
  font-size: 0.85rem;
  font-weight: 700;
}

.player-workout-card__status span:first-child {
  flex: 0 0 auto;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #48e5bc;
  box-shadow: 0 0 0 5px rgba(72, 229, 188, 0.1);
}

.player-workout-card__main {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.player-workout-card__number {
  color: var(--app-accent);
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
}

.player-workout-card h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.player-workout-card p {
  margin: 0;
  color: var(--app-text-secondary);
}

.player-workout-card .player-primary-button {
  display: grid;
  place-items: center;
  width: 100%;
}

.player-workout-header {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--app-border);
}

.player-workout-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.player-workout-summary span {
  display: grid;
  gap: 0.2rem;
  min-width: 5rem;
  padding: 0.8rem;
  border-inline-start: 2px solid var(--app-accent);
  color: var(--app-text-muted);
  font-size: 0.8rem;
}

.player-workout-summary strong {
  color: var(--app-text-strong);
  font-size: 1.15rem;
}

.player-exercise-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: exercise;
}

.player-entry-help {
  margin: -0.35rem 0 1rem;
  color: var(--app-text-secondary);
  font-size: 0.9rem;
}

.player-exercise {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.player-exercise__summary {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.player-exercise__index {
  color: var(--app-accent);
  font-family: Oswald, sans-serif;
}

.player-exercise__copy h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.player-exercise__copy p {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.92rem;
}

.player-exercise dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.player-exercise dl div {
  padding-inline-start: 0.65rem;
  border-inline-start: 1px solid var(--app-border-strong);
}

.player-exercise dt {
  color: var(--app-text-subtle);
  font-size: 0.75rem;
}

.player-exercise dd {
  margin: 0.2rem 0 0;
  color: var(--app-text-strong);
  font-weight: 700;
}

.player-exercise__state {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border: 1px solid #3a526b;
  border-radius: 2rem;
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.player-exercise--complete {
  border-color: rgba(72, 229, 188, 0.55);
  opacity: 0.78;
}

.player-exercise--complete .player-exercise__state {
  border-color: #48e5bc;
  color: var(--app-accent-contrast);
  background: #48e5bc;
}

.player-set-log {
  margin-top: 1.2rem;
  border-top: 1px solid var(--app-border);
}

.player-set-log summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem 0.25rem;
  color: var(--app-accent);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.player-set-log summary::-webkit-details-marker {
  display: none;
}

.player-set-log[open] summary span {
  rotate: 180deg;
}

.player-set-log__head {
  display: none;
}

.player-set-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.4rem;
  background: var(--app-surface-muted);
}

.player-set-row > strong {
  grid-column: 1/-1;
  color: var(--app-accent);
}

.player-set-row label {
  display: grid;
  gap: 0.35rem;
  color: var(--app-text-muted);
  font-size: 0.78rem;
}

.player-set-row input[type=number],
.player-exercise-note textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.3rem;
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-input);
}

.player-set-row input:focus,
.player-exercise-note textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.player-set-resistance {
  align-self: center;
  color: var(--app-text);
  font-size: 0.9rem;
}

.player-set-check {
  display: flex !important;
  grid-column: 1/-1;
  align-items: center;
  justify-content: center;
  gap: 0.55rem !important;
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #3a526b;
  border-radius: var(--border-radius);
  color: var(--app-text) !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  cursor: pointer;
}

.player-set-check:has(input:checked) {
  border-color: #48e5bc;
  color: var(--app-accent-contrast) !important;
  background: #48e5bc;
}

.player-set-check input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--app-accent);
}

.player-set-error {
  grid-column: 1/-1;
  margin: 0;
  color: var(--app-danger);
  font-size: 0.82rem;
}

.player-set-error:empty {
  display: none;
}

.player-exercise-note {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--app-text-soft);
  font-size: 0.9rem;
}

.player-exercise-note textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.player-mobile-label {
  display: inline;
}

.player-demo-note {
  margin-top: 1rem;
  color: var(--app-text-subtle);
  font-size: 0.85rem;
}

.player-workout-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--app-border);
}

.player-finish-status {
  margin: 0;
  color: var(--app-success);
  font-weight: 700;
}

.player-finish-status:empty {
  display: none;
}

.player-secondary-button {
  display: grid;
  place-items: center;
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid orange;
  border-radius: var(--border-radius);
  font-weight: 700;
  background-color: transparent;
}

.player-secondary-button:hover {
  border-color: var(--app-accent);
}

.player-workout-actions .player-primary-button:disabled {
  background: #48e5bc;
  cursor: default;
  transform: none;
}

.player-progress-section + .player-progress-section {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

/* =========================================================
   Tracking layout
========================================================= */
.player-tracking-layout {
  display: grid;
  gap: 1rem;
}

.player-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.player-panel h3 {
  margin-bottom: 1.25rem;
}

/* =========================================================
   Forms
========================================================= */
.player-weight-form,
.player-video-form {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.player-progress-fields {
  display: grid;
  gap: 1rem;
}

.player-weight-form label,
.player-video-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--app-text);
  font-weight: 700;
}

.player-weight-form input,
.player-video-form input,
.player-video-form select,
.player-video-form textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.player-video-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.player-video-form input[type=file] {
  padding: 0.7rem;
  color: var(--app-text-soft);
}

.player-video-form input[type=file]::file-selector-button {
  margin-inline-end: 0.7rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #3a526b;
  border-radius: 0.25rem;
  color: var(--app-accent-contrast);
  background: var(--app-accent);
  font-weight: 800;
  cursor: pointer;
}

.player-weight-form input:focus,
.player-video-form input:focus,
.player-video-form select:focus,
.player-video-form textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.player-video-form small {
  color: var(--app-text-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

/* =========================================================
   Form status
========================================================= */
.player-form-status {
  margin: 0;
  color: var(--app-success);
  font-weight: 700;
}

.player-form-status:empty {
  display: none;
}

/* =========================================================
   Weight history
========================================================= */
.player-weight-history ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-weight-history li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--app-border);
}

.player-weight-history li:last-child {
  border-bottom: 0;
}

.player-weight-history li span {
  color: var(--app-text-secondary);
}

.player-weight-history li strong {
  color: var(--app-text-strong);
  font-size: 1.15rem;
}

.player-weight-history li small {
  grid-column: 1/-1;
  color: var(--app-accent);
}

/* =========================================================
   Empty state
========================================================= */
.player-empty-state {
  display: block !important;
  color: var(--app-text-muted);
}

/* =========================================================
   Exercise records
========================================================= */
.player-records-grid {
  display: grid;
  gap: 1rem;
}

.player-record-card {
  position: relative;
  padding: 1.4rem;
  overflow: hidden;
  border: 1px solid #2b5368;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(0, 102, 255, 0.15), var(--app-surface) 60%);
}

.player-record-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--app-accent), #0066ff);
}

.player-record-card__badge {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #2b6d72;
  border-radius: 2rem;
  color: var(--app-success);
  font-size: 0.75rem;
  font-weight: 700;
}

.player-record-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.player-record-card__result {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.3rem;
}

.player-record-card__result strong {
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.player-record-card__result span {
  color: var(--app-text-muted);
  font-size: 0.8rem;
}

.player-record-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0;
}

.player-record-card dl div {
  padding-inline-start: 0.7rem;
  border-inline-start: 1px solid var(--app-border-strong);
}

.player-record-card dt {
  color: var(--app-text-subtle);
  font-size: 0.75rem;
}

.player-record-card dd {
  margin: 0.25rem 0 0;
  color: var(--app-text-strong);
  font-weight: 700;
}

.player-record-card .player-positive {
  color: var(--app-success);
}

/* =========================================================
   Video history
========================================================= */
.player-video-history ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   Video accordion
========================================================= */
.player-video-accordion {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.player-video-accordion:hover {
  border-color: var(--app-accent);
}

.player-video-accordion.is-open {
  border-color: var(--app-accent);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.05);
}

/* =========================================================
   Accordion trigger
========================================================= */
.player-video-accordion__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.player-video-accordion__trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--app-accent) 30%, transparent);
  outline-offset: -3px;
}

/* =========================================================
   Accordion summary
========================================================= */
.player-video-accordion__summary {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.player-video-accordion__summary strong {
  overflow: hidden;
  color: var(--app-text-strong);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-video-accordion__date {
  color: var(--app-text-muted);
  font-size: 0.78rem;
}

/* =========================================================
   Accordion meta
========================================================= */
.player-video-accordion__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-video-accordion__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: var(--app-text-muted);
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.player-video-accordion.is-open .player-video-accordion__chevron {
  transform: rotate(180deg);
}

/* =========================================================
   Video status
========================================================= */
.player-video-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 2rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.player-video-status.is-waiting {
  color: #854d0e;
  border-color: #fcd34d;
  background: #fef3c7;
}

.player-video-status.is-reviewed {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}

.player-video-status.is-more-video {
  color: #9a3412;
  border-color: #fdba74;
  background: #ffedd5;
}

/* =========================================================
   Accordion body
========================================================= */
.player-video-accordion__body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--app-border);
}

.player-video-accordion__body[hidden] {
  display: none;
}

/* =========================================================
   Accordion sections
========================================================= */
.player-video-accordion__section {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface-muted);
}

.player-video-accordion__label {
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.player-video-accordion__section p {
  margin: 0;
  color: var(--app-text);
  white-space: pre-wrap;
}

/* =========================================================
   Coach feedback
========================================================= */
.player-video-feedback {
  border-color: color-mix(in srgb, var(--app-accent) 30%, var(--app-border));
}

.player-video-feedback__label {
  color: var(--app-accent);
}

/* =========================================================
   Video actions
========================================================= */
.player-video-accordion__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.player-video-accordion__actions > * {
  width: 100%;
}

.player-video-delete {
  border-color: #ef4444;
  color: #b91c1c;
}

.player-video-delete:hover {
  background: #fef2f2;
}

/* =========================================================
   Deleted video note
========================================================= */
.player-video-deleted-note {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.45rem;
  color: var(--app-text-muted);
  background: var(--app-surface-muted);
  font-size: 0.82rem;
}

/* =========================================================
   Load more videos
========================================================= */
.player-video-history-more {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.player-video-history-more .player-secondary-button {
  width: min(100%, 18rem);
}

/* =========================================================
   Progress footer
========================================================= */
.player-progress-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--app-border);
}

.player-progress-footer .player-secondary-button {
  width: min(100%, 18rem);
}

/* =========================================================
   Light mode
========================================================= */
@media (prefers-color-scheme: light) {
  .player-login__visual,
  .player-technique-media {
    color: #ffffff;
  }
  .player-technique-media {
    background: radial-gradient(circle at center, rgba(0, 126, 134, 0.12), transparent 38%), linear-gradient(145deg, #dcebf2, #edf4f8);
  }
  .player-tool-card--workouts,
  .player-tool-card--accent,
  .player-next-workout,
  .player-workout-card,
  .coach-program-card,
  .player-record-card {
    background: linear-gradient(145deg, rgba(0, 126, 134, 0.08), var(--app-surface) 62%);
  }
  .coach-workspace,
  .coach-library-list-panel {
    background: rgba(255, 255, 255, 0.82);
  }
  .coach-schedule-toolbar input,
  .coach-player-payment-form input,
  .coach-player-payment-form select,
  .coach-new-program-fields input,
  .coach-new-program-fields select {
    color-scheme: light;
  }
  .coach-program-row__status--active,
  .coach-program-row__status--ending,
  .coach-payment-badge.is-complete,
  .player-workout-card__status,
  .player-finish-status {
    color: #08745d;
  }
  .coach-program-row__status--attention,
  .coach-program-row__status--draft,
  .coach-payment-badge.is-receipt-missing {
    color: #8a5b00;
  }
  .coach-payment-badge.is-pending,
  .coach-payment-badge.is-overdue {
    color: #b42332;
  }
}
/* =========================================================
   Tablet +
========================================================= */
@media (min-width: 48rem) {
  .player-video-accordion__trigger {
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .player-video-accordion__body {
    padding: 1.25rem;
  }
  .player-video-accordion__actions {
    flex-direction: row;
    align-items: center;
  }
  .player-video-accordion__actions > * {
    width: auto;
    min-width: 10rem;
  }
}
.player-check-in-layout {
  display: grid;
  gap: 1rem;
}

.player-check-in-form {
  display: grid;
  gap: 1.4rem;
}

.player-check-in-date,
.player-check-in-note {
  display: grid;
  gap: 0.45rem;
  color: var(--app-text);
  font-weight: 700;
}

.player-check-in-date input,
.player-check-in-note textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.player-check-in-note textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.player-check-in-date input:focus,
.player-check-in-note textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.player-rating-field {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
}

.player-rating-field legend {
  padding-inline: 0.45rem;
  color: var(--app-text-strong);
  font-size: 1.05rem;
  font-weight: 800;
}

.player-rating-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  color: var(--app-text-muted);
  font-size: 0.78rem;
}

.player-rating-heading span:last-child {
  text-align: left;
}

.player-rating-heading output {
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid var(--app-accent);
  border-radius: 50%;
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.player-rating-field input[type=range] {
  width: 100%;
  accent-color: var(--app-accent);
  cursor: pointer;
}

.player-pain-details {
  display: grid;
}

.player-pain-details[hidden] {
  display: none;
}

.player-pain-details fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
}

.player-pain-details legend {
  padding-inline: 0.45rem;
  color: var(--app-text-strong);
  font-weight: 800;
}

.player-pain-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.player-pain-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  color: var(--app-text);
  background: var(--app-surface-muted);
  cursor: pointer;
}

.player-pain-options label:has(input:checked) {
  border-color: var(--app-accent);
  color: var(--app-accent);
  background: rgba(57, 233, 239, 0.08);
}

.player-pain-options input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--app-accent);
}

.player-field-error {
  margin: 0.75rem 0 0;
  color: var(--app-danger);
  font-size: 0.82rem;
}

.player-field-error:empty {
  display: none;
}

.player-health-note {
  margin: 0;
  padding: 0.8rem 1rem;
  border-inline-start: 3px solid var(--app-warning);
  color: var(--app-text);
  background: color-mix(in srgb, var(--app-warning) 7%, transparent);
  font-size: 0.85rem;
}

.player-check-in-history h2 {
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.player-check-in-history ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-check-in-history li {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--app-border);
}

.player-check-in-history li:last-child {
  border-bottom: 0;
}

.player-check-in-history li > div {
  display: grid;
  gap: 0.2rem;
}

.player-check-in-history li > div span {
  color: var(--app-text-secondary);
  font-size: 0.85rem;
}

.player-check-in-history dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0;
}

.player-check-in-history dl div {
  padding-inline-start: 0.65rem;
  border-inline-start: 1px solid var(--app-border-strong);
}

.player-check-in-history dt {
  color: var(--app-text-subtle);
  font-size: 0.75rem;
}

.player-check-in-history dd {
  margin: 0.2rem 0 0;
  color: var(--app-accent);
  font-weight: 800;
}

.player-technique-filters {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.player-filter-button {
  min-height: 2.8rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--app-control-border);
  border-radius: 2rem;
  color: var(--app-text-soft);
  background: var(--app-surface);
  font-weight: 700;
  cursor: pointer;
}

.player-filter-button:hover,
.player-filter-button.is-active {
  border-color: var(--app-accent);
  color: var(--app-accent-contrast);
  background: var(--app-accent);
}

.player-filter-button:focus-visible {
  outline: 3px solid var(--app-text-strong);
  outline-offset: 2px;
}

.player-technique-grid {
  display: grid;
  gap: 1rem;
}

.player-technique-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.player-technique-card[hidden] {
  display: none;
}

.player-technique-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12rem;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(57, 233, 239, 0.13), transparent 38%), linear-gradient(145deg, rgba(0, 102, 255, 0.2), #091524);
}

.player-technique-number {
  position: absolute;
  inset: 0.8rem auto auto 0.9rem;
  color: rgba(57, 233, 239, 0.15);
  font-family: Oswald, sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.player-technique-play {
  display: grid;
  place-items: center;
  width: 3.8rem;
  aspect-ratio: 1;
  padding-inline-start: 0.2rem;
  border: 1px solid var(--app-accent);
  border-radius: 50%;
  color: var(--app-accent);
  font-size: 1.2rem;
}

.player-technique-status {
  position: absolute;
  inset: auto 1rem 1rem;
  color: var(--app-text-muted);
  font-size: 0.8rem;
}

.player-technique-card__content {
  padding: 1.25rem;
}

.player-technique-card__content h2 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.player-technique-card__content > p:not(.player-kicker) {
  min-height: 3rem;
  margin-bottom: 1rem;
  color: var(--app-text-secondary);
}

.player-technique-card details {
  border-top: 1px solid var(--app-border);
}

.player-technique-card summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--app-accent);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.player-technique-card summary::-webkit-details-marker {
  display: none;
}

.player-technique-card details[open] summary span {
  rotate: 180deg;
}

.player-technique-card ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding-inline-start: 1.1rem;
  color: var(--app-text);
  font-size: 0.9rem;
}

.player-technique-card li::marker {
  color: var(--app-accent);
}

.player-filter-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--app-text-muted);
  font-size: 0.85rem;
}

.coach-shell {
  min-height: 100svh;
  background: radial-gradient(circle at 88% 4%, rgba(57, 233, 239, 0.1), transparent 24%), var(--app-bg);
}

.coach-dashboard {
  width: min(100% - 2rem, 88rem);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
}

.coach-welcome {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1rem;
}

.coach-welcome h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
}

.coach-welcome p:last-child {
  margin-bottom: 0;
  color: var(--app-text-soft);
}

.coach-welcome__actions {
  display: grid;
  gap: 0.7rem;
}

.coach-welcome__actions .player-primary-button,
.coach-welcome__actions .player-secondary-button {
  width: 100%;
}

.coach-action-status {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  color: var(--app-accent);
  font-size: 0.9rem;
}

.coach-overview-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.coach-stat-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-stat-card span {
  color: var(--app-text-soft);
  font-weight: 700;
}

.coach-stat-card strong {
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: 2.6rem;
  line-height: 1;
}

.coach-stat-card small {
  color: var(--app-text-subtle);
}

.coach-stat-card--warning {
  border-color: #775f35;
  background: linear-gradient(145deg, rgba(255, 210, 124, 0.09), var(--app-surface) 60%);
}

.coach-stat-card--warning strong {
  color: var(--app-warning);
}

.coach-stat-card--link {
  color: inherit;
  transition: border-color 0.2s ease, translate 0.2s ease;
}

.coach-stat-card--link:hover {
  border-color: var(--app-accent);
  translate: 0 -0.15rem;
}

.coach-workspace {
  padding: clamp(1rem, 3vw, 2rem);
  border: 2px solid rgba(16, 28, 43, 0.28);
  border-radius: 0.65rem;
}

.coach-player-tools {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.coach-player-search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.coach-player-search input:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.coach-player-filters {
  display: flex;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
}

.coach-player-list {
  display: grid;
  gap: 0.7rem;
}

.coach-player-row {
  display: grid;
  grid-template-areas: "identity status" "data data" "open open";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-inline-start: 0.3rem solid var(--service-color, var(--app-control-border));
  border-radius: 0.45rem;
  background: var(--app-surface-muted);
}

.coach-player-row[hidden] {
  display: none;
}

.coach-player-identity {
  grid-area: identity;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.coach-player-identity h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.coach-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-bottom: 0.3rem;
  color: var(--app-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.coach-service-badge::before {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--service-color, var(--app-control-border));
  content: "";
}

.coach-player-identity p {
  margin: 0;
  overflow: hidden;
  color: var(--app-text-muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-player-data {
  grid-area: data;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.coach-player-data div {
  padding-inline-start: 0.6rem;
  border-inline-start: 1px solid var(--app-border-strong);
}

.coach-player-data dt {
  color: var(--app-text-subtle);
  font-size: 0.72rem;
}

.coach-player-data dd {
  margin: 0.2rem 0 0;
  color: var(--app-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.coach-player-status {
  grid-area: status;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--app-control-border);
  border-radius: 2rem;
  color: var(--app-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.coach-player-status--attention {
  background-color: #775f35;
  color: #e8ddc8;
}

.coach-player-status--video {
  border-color: #2b6d72;
  color: var(--app-success);
}

.coach-player-open {
  grid-area: open;
  display: grid;
  place-items: center;
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--app-control-border);
  border-radius: var(--border-radius);
  color: var(--app-accent);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.coach-player-open:hover {
  border-color: var(--app-accent);
  background: rgba(57, 233, 239, 0.07);
}

.coach-empty-results {
  padding: 2rem 1rem;
  color: var(--app-text-muted);
  text-align: center;
}

.coach-empty-results[hidden] {
  display: none;
}

@media (min-width: 42rem) {
  .coach-welcome__actions {
    grid-template-columns: repeat(2, max-content);
  }
}
/* =========================================================
   Player header
========================================================= */
.coach-player-header {
  display: grid;
  grid-template-areas: "identity" "actions";
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--app-border);
}

.coach-player-header__identity {
  grid-area: identity;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.coach-player-header__identity h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.coach-player-header__identity p:last-child {
  margin: 0;
  color: var(--app-text-secondary);
}

.coach-player-avatar {
  width: 4rem;
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.coach-player-header__actions {
  grid-area: actions;
  display: grid;
  gap: 0.7rem;
}

/* =========================================================
   Player navigation
========================================================= */
.coach-player-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.55rem;
  margin: 1.5rem 0 2.5rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.coach-player-nav a {
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--app-control-border);
  color: var(--app-text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.coach-player-nav a:hover {
  border-color: var(--app-accent);
  color: var(--app-accent);
}

/* =========================================================
   Detail sections
========================================================= */
.coach-detail-section {
  display: grid;
  gap: 1.5rem;
  scroll-margin-top: 1rem;
}

.coach-detail-section + .coach-detail-section {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

/* =========================================================
   Readiness
========================================================= */
.coach-readiness-grid {
  display: grid;
  grid-template-areas: "pain recovery" "motivation motivation" "note note";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.coach-reading-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-reading-card:nth-child(1) {
  grid-area: pain;
}

.coach-reading-card:nth-child(2) {
  grid-area: recovery;
}

.coach-reading-card:nth-child(3) {
  grid-area: motivation;
}

.coach-reading-card--note {
  grid-area: note;
}

.coach-reading-card > span {
  color: var(--app-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-reading-card strong {
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: 2rem;
}

.coach-reading-card small {
  color: var(--app-text-soft);
}

.coach-reading-card--note p {
  margin: 0.45rem 0 0;
  color: var(--app-text);
}

/* =========================================================
   Program
========================================================= */
.coach-program-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.coach-program-header > div:first-child {
  min-width: 0;
}

.coach-program-header h2 {
  margin-bottom: 0;
}

.coach-program-card {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  overflow: hidden;
  border: 1px solid #2d5267;
  border-radius: 0.6rem;
  background: linear-gradient(125deg, rgba(0, 102, 255, 0.16), var(--app-surface) 62%);
}

.coach-program-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.coach-program-card > div:first-child > p:last-child {
  margin: 0;
  color: var(--app-text-secondary);
}

.coach-program-number {
  position: absolute;
  inset: -0.7rem auto auto 1rem;
  color: rgba(57, 233, 239, 0.08);
  font-family: Oswald, sans-serif;
  font-size: 7rem;
  font-weight: 700;
}

.coach-program-card__week {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.coach-program-card [data-coach-workout-status] {
  margin-bottom: 0.35rem;
  color: var(--app-accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.coach-program-card [data-player-workout-summary] {
  margin: 0;
  color: var(--app-text-secondary);
}

/* =========================================================
   Program navigation
========================================================= */
.coach-program-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-program-navigation[hidden] {
  display: none;
}

.coach-program-navigation--weeks {
  margin-top: 0.25rem;
}

.coach-program-navigation--workouts {
  background: var(--app-surface-muted);
}

.coach-program-navigation__position {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 6.5rem;
  text-align: center;
}

.coach-program-navigation__position .player-kicker {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.7rem;
  line-height: 1;
}

.coach-program-navigation__position strong {
  color: var(--app-text-strong);
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.coach-program-navigation__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.coach-program-navigation__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   Clickable workout card
========================================================= */
.coach-program-card--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.coach-program-card--link:hover {
  border-color: var(--app-accent);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.coach-program-card--link:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 3px;
  border-color: var(--app-accent);
}

.coach-program-card--link:active {
  transform: translateY(0);
}

.coach-program-card--link[aria-disabled=true] {
  cursor: default;
  pointer-events: none;
}

/* =========================================================
   Workout completion
========================================================= */
.coach-workout-completion {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-width: min(100%, 18rem);
}

.coach-workout-completion span {
  color: var(--app-text-muted);
  font-size: 0.82rem;
}

.coach-workout-completion strong {
  color: var(--app-text-strong);
}

.coach-workout-completion progress {
  width: 100%;
  height: 0.4rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: var(--app-progress-track);
}

.coach-workout-completion progress::-webkit-progress-bar {
  background: var(--app-progress-track);
}

.coach-workout-completion progress::-webkit-progress-value {
  background: var(--app-accent);
}

.coach-workout-completion progress::-moz-progress-bar {
  background: var(--app-accent);
}

/* =========================================================
   Progress cards
========================================================= */
.coach-progress-grid {
  display: grid;
  gap: 0.8rem;
}

.coach-progress-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-progress-card span {
  color: var(--app-text-muted);
  font-size: 0.82rem;
}

.coach-progress-card strong {
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: 1.8rem;
}

.coach-progress-card small {
  color: var(--app-text-secondary);
}

/* =========================================================
   Chart
========================================================= */
.coach-chart-card {
  margin: 1rem 0 0;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-chart-card figcaption {
  display: grid;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.coach-chart-card figcaption h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.coach-chart-card figcaption p {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.85rem;
}

.coach-chart-card figcaption label {
  display: grid;
  gap: 0.35rem;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-chart-card select {
  min-height: 2.8rem;
  outline: 0;
}

.coach-chart-card select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.coach-chart-wrap {
  overflow-x: auto;
}

.coach-chart-wrap svg {
  display: block;
  width: max(100%, 42rem);
  height: auto;
}

.coach-chart-gridline {
  stroke: var(--app-border);
  stroke-width: 1;
}

.coach-chart-axis-label,
.coach-chart-date-label {
  fill: var(--app-text-muted);
  font-family: Assistant, sans-serif;
  font-size: 12px;
}

.coach-chart-line {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coach-chart-point {
  fill: var(--app-bg);
  stroke: var(--app-accent);
  stroke-width: 4;
}

.coach-chart-point:focus {
  outline: none;
  stroke: var(--app-text-strong);
}

.coach-chart-summary {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--app-border);
  color: var(--app-text-soft);
  font-size: 0.85rem;
}

.coach-chart-summary strong {
  color: var(--app-success);
}

/* =========================================================
   Technique videos accordion
========================================================= */
.coach-video-list {
  display: grid;
  gap: 0.75rem;
}

.coach-video-accordion {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.coach-video-accordion:hover {
  border-color: var(--app-accent);
}

.coach-video-accordion.is-open {
  border-color: var(--app-accent);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.05);
}

/* =========================================================
   Accordion trigger
========================================================= */
.coach-video-accordion__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.coach-video-accordion__trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--app-accent) 30%, transparent);
  outline-offset: -3px;
}

/* =========================================================
   Accordion summary
========================================================= */
.coach-video-accordion__summary {
  min-width: 0;
}

.coach-video-accordion__summary h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.coach-video-accordion__summary p {
  margin: 0;
  overflow: hidden;
  color: var(--app-text-muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   Status + arrow
========================================================= */
.coach-video-accordion__status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.coach-video-accordion__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--app-text-muted);
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.coach-video-accordion.is-open .coach-video-accordion__chevron {
  transform: rotate(180deg);
}

/* =========================================================
   Video status
========================================================= */
.player-video-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.player-video-status.is-waiting {
  color: #854d0e;
  border-color: #fcd34d;
  background: #fef3c7;
}

.player-video-status.is-reviewed {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}

/* =========================================================
   Accordion body
========================================================= */
.coach-video-accordion__body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--app-border);
}

.coach-video-accordion__body[hidden] {
  display: none;
}

/* =========================================================
   Player note
========================================================= */
.coach-video-accordion__player-note {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface-muted);
}

.coach-video-accordion__player-note strong {
  color: var(--app-text-muted);
  font-size: 0.78rem;
}

.coach-video-accordion__player-note p {
  margin: 0;
  color: var(--app-text);
}

/* =========================================================
   Video actions
========================================================= */
.coach-video-accordion__video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =========================================================
   Feedback form
========================================================= */
.coach-video-feedback-form {
  display: grid;
  gap: 1rem;
}

.coach-video-feedback-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--app-text);
  font-weight: 700;
}

.coach-video-feedback-form textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.55rem;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
  font: inherit;
  resize: vertical;
}

.coach-video-feedback-form textarea:focus {
  border-color: var(--app-accent);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 18%, transparent);
}

/* =========================================================
   Feedback actions
========================================================= */
.coach-video-feedback-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coach-video-feedback-form__actions button {
  width: 100%;
}

.coach-technique-delete-button {
  border-color: #ef4444;
  color: #b91c1c;
}

.coach-technique-delete-button:hover {
  background: #fef2f2;
}

/* =========================================================
   Coach note
========================================================= */
.coach-note-form {
  display: grid;
  gap: 1rem;
}

.coach-note-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--app-text);
  font-weight: 700;
}

.coach-note-form textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
  resize: vertical;
}

.coach-note-form textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

/* =========================================================
   Tablet / Desktop
========================================================= */
@media (min-width: 48rem) {
  .coach-program-header {
    grid-template-columns: minmax(0, 1fr) minmax(25rem, auto);
    align-items: end;
  }
  .coach-program-navigation--weeks {
    justify-self: end;
    max-width: 34rem;
  }
  .coach-program-navigation--workouts {
    max-width: 38rem;
    margin-inline: auto;
  }
  .coach-program-navigation__button {
    width: auto;
    min-width: 7rem;
    padding-inline: 1rem;
    font-size: 0.88rem;
  }
  .coach-program-navigation__position {
    min-width: 9rem;
  }
  .coach-program-navigation__position strong {
    font-size: 1rem;
  }
  .coach-program-card {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .coach-video-accordion__trigger {
    padding: 1rem 1.25rem;
  }
  .coach-video-accordion__body {
    padding: 1.25rem;
  }
  .coach-video-feedback-form__actions {
    flex-direction: row;
    align-items: center;
  }
  .coach-video-feedback-form__actions button {
    width: auto;
    min-width: 10rem;
  }
}
/* =========================================================
   Larger desktop
========================================================= */
@media (min-width: 64rem) {
  .coach-program-navigation--weeks {
    max-width: 38rem;
  }
  .coach-program-navigation--workouts {
    max-width: 42rem;
  }
  .coach-program-navigation__button {
    min-width: 8rem;
  }
}
.coach-program-settings {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.coach-program-settings__fields {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.coach-program-settings__fields label,
.coach-workout-editor__header label,
.coach-editor-field {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-program-settings__fields input,
.coach-program-settings__fields select,
.coach-workout-editor__header select,
.coach-editor-field input,
.coach-editor-field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.3rem;
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.coach-program-settings__fields input:focus,
.coach-program-settings__fields select:focus,
.coach-workout-editor__header select:focus,
.coach-editor-field input:focus,
.coach-editor-field select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.coach-week-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.coach-week-tabs button {
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--app-control-border);
  border-radius: var(--border-radius);
  color: var(--app-text-soft);
  background: var(--app-surface);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.coach-week-tabs button.is-active {
  border-color: var(--app-accent);
  color: var(--app-accent-contrast);
  background: var(--app-accent);
}

.coach-week-tabs button:focus-visible {
  outline: 3px solid var(--app-text-strong);
  outline-offset: 2px;
}

.coach-workout-tabs {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.8rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface-muted);
}

.coach-workout-tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.coach-workout-tab-list button {
  min-height: 2.8rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--app-control-border);
  border-radius: var(--border-radius);
  color: var(--app-text-soft);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.coach-workout-tab-list button.is-active {
  border-color: #f4a261;
  color: var(--app-accent-contrast);
  background: #f4a261;
}

.coach-workout-editor {
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-workout-editor__header {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--app-border);
}

.coach-workout-editor__header input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.3rem;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.coach-exercise-editor__head {
  display: none;
}

.coach-exercise-editor {
  display: grid;
  gap: 0.8rem;
}

.coach-exercise-editor__row {
  display: grid;
  grid-template-areas: "name" "type" "sets" "reps" "weight" "instructions" "remove";
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
  background: var(--app-surface-muted);
}

.coach-editor-field {
  min-width: 0;
}

.coach-editor-field--name {
  grid-area: name;
}

.coach-editor-field--type {
  grid-area: type;
}

.coach-editor-field--sets {
  grid-area: sets;
}

.coach-editor-field--reps {
  grid-area: reps;
}

.coach-editor-field--weight {
  grid-area: weight;
}

.coach-editor-field--instructions {
  grid-area: instructions;
}

.coach-remove-exercise {
  grid-area: remove;
  min-height: 2.7rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--app-danger-border);
  border-radius: 0.3rem;
  color: var(--app-danger);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.coach-remove-exercise:hover {
  border-color: var(--app-danger);
  background: color-mix(in srgb, var(--app-danger) 7%, transparent);
}

.coach-delete-workout {
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--app-danger-border);
  border-radius: var(--border-radius);
  color: var(--app-danger);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.coach-editor-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--app-border);
}

.player-publish-button {
  display: grid;
  place-items: center;
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem;
  border: 1px solidvar(--app-success);
  border-radius: var(--border-radius);
  color: var(--app-accent-contrast);
  background: var(--app-success);
  font-weight: 800;
  cursor: pointer;
}

.player-publish-button[hidden] {
  display: none;
}

.player-publish-button:hover {
  background: #b7ffec;
}

.coach-publication-status {
  margin: 0.5rem 0 0;
  color: var(--app-success);
  font-weight: 700;
}

.coach-program-duration {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin: 1rem 0;
  justify-content: center;
}

.coach-program-duration__controls {
  display: flex;
  justify-content: center;
  align-items: baseline;
  column-gap: 1rem;
}

.coach-week-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-block: 1rem;
}

.coach-week-duplicate {
  display: grid;
  gap: 0.35rem;
  min-width: 10rem;
}
.coach-week-duplicate span {
  font-size: 1rem;
  font-weight: 600;
}
.coach-week-duplicate select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: inherit;
  background: inherit;
  border: 1px solid;
  border-radius: 0.4rem;
}

.coach-week-actions .player-secondary-button {
  min-height: 2.75rem;
}

/* =========================================
   שכפול אימון
========================================= */
.coach-workout-duplicate {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin-block-start: 0.75rem;
}
.coach-workout-duplicate label {
  display: grid;
  gap: 0.35rem;
}
.coach-workout-duplicate label > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-text-soft);
}

@media (min-width: 42rem) {
  .coach-workout-duplicate {
    grid-template-columns: minmax(12rem, 18rem) auto;
    align-items: end;
    width: fit-content;
  }
  .coach-workout-duplicate .player-secondary-button {
    white-space: nowrap;
  }
}
/* =========================================
   Dialogs - הוספת שבוע / הוספת אימון
========================================= */
.coach-week-dialog,
.coach-workout-dialog {
  width: min(92vw, 34rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--player-surface, Canvas);
  color: var(--player-text, CanvasText);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.coach-week-dialog::backdrop,
.coach-workout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

/* תוכן החלון */
.coach-week-dialog__content,
.coach-workout-dialog__content {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

/* כותרת */
.coach-week-dialog__header,
.coach-workout-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.coach-week-dialog__header h3,
.coach-workout-dialog__header h3 {
  margin: 0.25rem 0 0;
}

/* כפתור X */
.coach-week-dialog__close,
.coach-workout-dialog__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.coach-week-dialog__close:hover,
.coach-workout-dialog__close:hover {
  background: rgba(127, 127, 127, 0.14);
}

.coach-week-dialog__close:active,
.coach-workout-dialog__close:active {
  transform: scale(0.95);
}

/* שתי אפשרויות הפעולה */
.coach-week-dialog__choices,
.coach-workout-dialog__choices {
  display: grid;
  gap: 1rem;
}

/* הכפתור של שבוע נקי / אימון חדש */
.coach-week-dialog__choices > .player-primary-button,
.coach-workout-dialog__choices > .player-primary-button {
  width: 100%;
  min-height: 3rem;
}

/* אזור השכפול */
.coach-week-dialog__duplicate,
.coach-workout-dialog__duplicate {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 0.8rem;
  background: rgba(127, 127, 127, 0.06);
}

.coach-week-dialog__duplicate label,
.coach-workout-dialog__duplicate label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

/* הסלקט */
.coach-week-dialog__duplicate select,
.coach-workout-dialog__duplicate select {
  width: 100%;
}

/* טקסט ההסבר */
.coach-week-dialog__hint,
.coach-workout-dialog__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.72;
}

/* כפתור השכפול */
.coach-week-dialog__duplicate .player-secondary-button,
.coach-workout-dialog__duplicate .player-secondary-button {
  width: 100%;
  min-height: 3rem;
}

/* מצב disabled ברור */
.coach-week-dialog button:disabled,
.coach-workout-dialog button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Desktop */
@media (min-width: 40rem) {
  .coach-week-dialog__content,
  .coach-workout-dialog__content {
    padding: 2rem;
  }
  .coach-week-dialog__duplicate,
  .coach-workout-dialog__duplicate {
    padding: 1.25rem;
  }
}
/* כפתור שכפול אחרי שנבחר פריט */
.coach-week-dialog [data-template-duplicate-week]:not(:disabled),
.coach-workout-dialog [data-template-duplicate-workout]:not(:disabled) {
  opacity: 1;
  font-weight: 700;
  box-shadow: 0 0 0 2px currentColor, 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coach-week-dialog [data-template-duplicate-week]:not(:disabled):hover,
.coach-workout-dialog [data-template-duplicate-workout]:not(:disabled):hover {
  transform: translateY(-2px);
}

.coach-template-details {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-template-details label {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-template-details input,
.coach-template-details textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.3rem;
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
  font: inherit;
}

.coach-template-details textarea {
  min-height: 6rem;
  resize: vertical;
}

.coach-template-details input:focus,
.coach-template-details textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.coach-template-details .player-primary-button {
  width: max-content;
}

.coach-library-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.coach-library-form-panel h2 {
  margin-bottom: 1.25rem;
  font-size: 1.45rem;
}

.coach-library-form {
  display: grid;
  gap: 1rem;
}

.coach-library-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-library-form input,
.coach-library-form select,
.coach-library-form textarea,
.coach-library-category-filter {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: 0.3rem;
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.coach-library-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.coach-library-form input:focus,
.coach-library-form select:focus,
.coach-library-form textarea:focus,
.coach-library-category-filter:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(57, 233, 239, 0.12);
}

.coach-library-short-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.coach-library-form-actions {
  display: grid;
  gap: 0.7rem;
}

.player-secondary-button[hidden] {
  display: none;
}

.coach-library-list-panel {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
}

.coach-library-list {
  display: grid;
  gap: 0.7rem;
}

.coach-library-list article {
  display: grid;
  grid-template-areas: "copy" "actions";
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
  background: var(--app-surface-muted);
}

.coach-library-list article > div:first-child {
  grid-area: copy;
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.coach-library-list article > div:first-child > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.coach-library-list h3 {
  margin: 0;
  font-size: 1.05rem;
}

.coach-library-list article > div:first-child > div span {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--app-control-border);
  border-radius: 2rem;
  color: var(--app-accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.coach-library-list p {
  margin: 0;
  color: var(--app-text-soft);
  font-size: 0.85rem;
}

.coach-library-list small {
  color: var(--app-text-subtle);
}

.coach-library-list article > div:last-child {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.coach-library-list article button {
  min-height: 2.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--app-control-border);
  border-radius: 0.3rem;
  color: var(--app-accent);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.coach-library-list article button:hover {
  border-color: var(--app-accent);
  background: rgba(57, 233, 239, 0.07);
}

.coach-library-list article button.is-delete {
  border-color: var(--app-danger-border);
  color: var(--app-danger);
}

.coach-review-toolbar {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.coach-review-toolbar p {
  margin: 0;
  color: var(--app-text-soft);
  font-weight: 700;
}

.coach-review-toolbar select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
}

.coach-review-list {
  display: grid;
  gap: 1rem;
}

.coach-review-card {
  display: grid;
  grid-template-areas: "details" "feedback";
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-review-card__details {
  grid-area: details;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.coach-review-card__details h2 {
  margin: 0;
  font-size: 1.2rem;
}

.coach-review-card__details p {
  margin: 0;
  color: var(--app-text-soft);
}

.coach-review-card__details small {
  color: var(--app-text-muted);
}

.coach-review-card__feedback {
  grid-area: feedback;
  display: grid;
  gap: 0.7rem;
}

.coach-review-card__feedback label {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text);
  font-weight: 700;
}

.coach-review-card__feedback textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  color: var(--app-text-strong);
  background: var(--app-bg);
  resize: vertical;
}

.coach-review-card__actions {
  display: grid;
  gap: 0.6rem;
}

.coach-review-card.is-reviewed {
  border-color: #28675f;
}

.coach-review-card.is-reviewed .player-video-status {
  border-color: #28675f;
  color: var(--app-success);
}

/* Status badges are actions: clicking opens the relevant update UI. */
.coach-status-action {
  appearance: none;
  width: fit-content;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.coach-status-action:hover {
  transform: translateY(-1px);
}

.coach-status-action:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}

.coach-status-action:active {
  transform: scale(0.97);
}

.coach-review-card__feedback[hidden] {
  display: none;
}

.coach-check-ins-list {
  display: grid;
  gap: 1rem;
}

.coach-check-in-card {
  display: grid;
  grid-template-areas: "heading" "ratings" "note" "treatment" "form" "actions";
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #775f35;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(255, 210, 124, 0.07), var(--app-surface) 58%);
}

.coach-check-in-card.is-handled {
  border-color: #28675f;
  background: var(--app-surface);
}

.coach-check-in-card__heading {
  grid-area: heading;
  display: grid;
  gap: 0.35rem;
}

.coach-check-in-card__heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.coach-check-in-card__heading p {
  margin: 0;
  color: var(--app-text-muted);
}

.coach-check-in-card__ratings {
  grid-area: ratings;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.coach-check-in-card__ratings div {
  padding: 0.75rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.4rem;
  background: var(--app-surface-muted);
}

.coach-check-in-card__ratings dt {
  color: var(--app-text-muted);
  font-size: 0.75rem;
}

.coach-check-in-card__ratings dd {
  margin: 0.2rem 0 0;
  color: var(--app-text-strong);
  font-weight: 800;
}

.coach-check-in-card__note {
  grid-area: note;
  margin: 0;
  color: var(--app-text);
}

.coach-check-in-card__actions {
  grid-area: actions;
  display: grid;
  gap: 0.6rem;
}

.coach-treatment-box {
  grid-area: treatment;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-inline-start: 0.2rem solid var(--app-accent);
  background: var(--app-surface-muted);
}

.coach-treatment-box:empty {
  display: none;
}

.coach-treatment-box p {
  margin: 0;
  color: var(--app-text);
}

.coach-treatment-box small {
  color: var(--app-success);
}

.coach-treatment-form {
  grid-area: form;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
  background: var(--app-surface-muted);
}

.coach-treatment-form[hidden] {
  display: none;
}

.coach-treatment-form label:not(.coach-treatment-follow-up) {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text);
  font-weight: 700;
}

.coach-treatment-form select,
.coach-treatment-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  color: var(--app-text-strong);
  background: var(--app-bg);
}

.coach-treatment-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.coach-treatment-follow-up {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--app-text);
  font-weight: 700;
}

.coach-treatment-follow-up input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--app-accent);
}

/* =========================================================
   ADD PLAYER PANEL
========================================================= */
.coach-library-form-panel[hidden] {
  display: none;
}

@media (min-width: 64rem) {
  .coach-library-layout:has(.coach-library-form-panel[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
}
.coach-schedule-toolbar {
  display: grid;
  grid-template-areas: "date date" "previous next";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.5rem 0 3rem;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-schedule-toolbar label {
  grid-area: date;
  display: grid;
  gap: 0.35rem;
  color: var(--app-text-soft);
  font-weight: 700;
}

.coach-schedule-toolbar input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  color: var(--app-text-strong);
  color-scheme: dark;
  background: var(--app-bg);
}

.coach-schedule-toolbar [data-schedule-previous] {
  grid-area: previous;
}

.coach-schedule-toolbar [data-schedule-next] {
  grid-area: next;
}

/* =========================================================
   PERSONAL SESSION FORM
========================================================= */
.coach-schedule-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-schedule-form > * {
  grid-column: 1/-1;
}

.coach-schedule-form .coach-payment-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.coach-schedule-form label {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-schedule-form input,
.coach-schedule-form select,
.coach-schedule-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.coach-schedule-form input,
.coach-schedule-form select {
  min-height: 3rem;
}

.coach-schedule-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.coach-schedule-form input:focus,
.coach-schedule-form select:focus,
.coach-schedule-form textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 18%, transparent);
}

.coach-schedule-form .coach-player-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.coach-schedule-form .player-primary-button {
  width: auto;
  min-width: 10rem;
}

.coach-schedule-form [data-schedule-form-status] {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.82rem;
}

/* Tablet */
@media (min-width: 40rem) {
  .coach-schedule-form .coach-payment-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Desktop */
@media (min-width: 64rem) {
  .coach-schedule-form .coach-payment-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.coach-schedule-list {
  display: grid;
  gap: 0.8rem;
}

.coach-schedule-card {
  display: grid;
  grid-template-areas: "time status" "identity identity" "workout workout" "action action" "actions actions";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-schedule-card__time {
  grid-area: time;
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.coach-schedule-card__status {
  grid-area: status;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--app-control-border);
  border-radius: 2rem;
  color: var(--app-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.coach-schedule-card__identity {
  grid-area: identity;
}

.coach-schedule-card__identity h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.coach-schedule-card__identity p,
.coach-schedule-card__workout {
  margin: 0;
  color: var(--app-text-muted);
}

.coach-schedule-card__workout {
  grid-area: workout;
}

.coach-schedule-card__action {
  grid-area: action;
}

.coach-schedule-card__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.coach-schedule-card__unavailable {
  color: var(--app-text-subtle);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* =========================================================
   MANAGED PLAYERS
========================================================= */
.coach-managed-player-list {
  display: grid;
  gap: 1rem;
}

.coach-managed-player-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--app-border);
  border-inline-start: 0.3rem solid var(--service-color, var(--app-accent));
  border-radius: 0.55rem;
  background: var(--app-surface);
}

.coach-managed-player-card.is-inactive {
  opacity: 0.65;
}

/* =========================================================
   PLAYER HEADER
========================================================= */
.coach-managed-player-card__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--app-border);
}

.coach-managed-player-card__identity h3 {
  margin: 0;
  color: var(--app-text-strong);
  font-size: 1.15rem;
}

/* =========================================================
   SERVICE BADGE
========================================================= */
.coach-service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--service-color, var(--app-accent));
  border-radius: 999px;
  color: var(--app-text-strong);
  background: color-mix(in srgb, var(--service-color, var(--app-accent)) 12%, transparent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* =========================================================
   PAYMENT STATUS
========================================================= */
.coach-player-payment-summary {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.coach-payment-badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.coach-payment-badge:hover {
  transform: translateY(-1px);
}

.coach-payment-badge:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}

.coach-payment-badge:active {
  transform: scale(0.97);
}

.coach-payment-badge.is-pending {
  color: var(--app-pending);
}

.coach-payment-badge.is-overdue {
  color: var(--app-overdue);
  background: color-mix(in srgb, var(--app-overdue) 8%, transparent);
}

.coach-payment-badge.is-receipt-missing {
  color: var(--app-warning);
}

.coach-payment-badge.is-complete {
  color: var(--app-success);
}

/* =========================================================
   PLAYER DETAILS
========================================================= */
.coach-managed-player-card__details {
  display: grid;
  gap: 1rem;
}

.coach-managed-player-card__details > label {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.coach-managed-player-card__details > label > span {
  color: var(--app-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

/* =========================================================
   PLAYER INPUTS
========================================================= */
.coach-managed-player-card__details input[type=text],
.coach-managed-player-card__details input[type=number],
.coach-managed-player-card__details input[type=tel],
.coach-managed-player-card__details select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-surface-muted);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.coach-managed-player-card__details input::placeholder {
  color: var(--app-text-subtle);
}

.coach-managed-player-card__details input[type=text]:focus,
.coach-managed-player-card__details input[type=number]:focus,
.coach-managed-player-card__details input[type=tel]:focus,
.coach-managed-player-card__details select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 18%, transparent);
}

/* =========================================================
   ACTIVE PLAYER
========================================================= */
.coach-managed-player-card__details > label:has(input[type=checkbox]) {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  min-height: 2.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--app-border);
  border-radius: var(--border-radius);
  background: var(--app-surface-muted);
}

.coach-managed-player-card__details > label:has(input[type=checkbox]) > span {
  color: var(--app-text-strong);
  font-size: 0.82rem;
}

.coach-managed-player-card__details input[type=checkbox] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--app-accent);
}

/* =========================================================
   PLAYER ACTIONS
========================================================= */
.coach-managed-player-card .coach-library-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.coach-managed-player-card .coach-library-form-actions > * {
  width: 100%;
}

.coach-managed-player-card .player-form-status {
  grid-column: 1/-1;
  min-height: 1.2rem;
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.8rem;
}

/* =========================================================
   PAYMENT FORM
========================================================= */
.coach-player-payment-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
  background: var(--app-surface-muted);
}

.coach-player-payment-form[hidden] {
  display: none;
}

.coach-payment-fields {
  display: grid;
  gap: 0.8rem;
}

.coach-player-payment-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.coach-player-payment-form input,
.coach-player-payment-form select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  outline: 0;
  color: var(--app-text-strong);
  background: var(--app-bg);
  font: inherit;
}

.coach-player-payment-form input:focus,
.coach-player-payment-form select:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 18%, transparent);
}

.coach-payment-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.coach-payment-checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coach-payment-checks input {
  width: 1.1rem;
  min-height: 1.1rem;
  accent-color: var(--app-accent);
}

.coach-payment-form__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-direction: column-reverse;
}

.coach-payment-form__header strong {
  color: var(--app-text-strong);
  margin: auto;
}

.coach-payment-form__close {
  border: 0;
  color: var(--app-text-muted);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.coach-payment-form__close:hover {
  color: var(--app-accent);
}

/* =========================================================
   TABLET
========================================================= */
@media (min-width: 40rem) {
  .coach-managed-player-card__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coach-payment-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coach-managed-player-card .coach-library-form-actions {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
  }
  .coach-managed-player-card .coach-library-form-actions > * {
    width: auto;
    min-width: 9rem;
  }
  .coach-managed-player-card .player-form-status {
    grid-column: 1/-1;
  }
}
/* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 64rem) {
  .coach-managed-player-card {
    padding: 1.4rem;
  }
  .coach-managed-player-card__details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
  .coach-payment-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.coach-payment-overview {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}

.coach-payment-overview article {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-payment-overview span {
  color: var(--app-text-muted);
  font-weight: 700;
}

.coach-payment-overview strong {
  color: var(--app-accent);
  font-family: var(--ff-heading);
  font-size: 1.8rem;
}

.coach-payment-history {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.coach-payment-history-card {
  display: grid;
  grid-template-areas: "player status" "payment payment" "receipt receipt";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem 1rem;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-inline-start: 0.3rem solid var(--service-color);
  border-radius: 0.45rem;
  background: var(--app-surface-muted);
}

.coach-payment-history-card__player {
  grid-area: player;
}

.coach-payment-history-card__player h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.coach-payment-history-card__player p,
.coach-payment-history-card__payment p,
.coach-payment-history-card__receipt {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.85rem;
}

.coach-payment-history-card__status {
  grid-area: status;
}

.coach-payment-history-card__payment {
  grid-area: payment;
  display: grid;
  gap: 0.2rem;
}

.coach-payment-history-card__payment strong {
  color: var(--app-text-strong);
}

.coach-payment-history-card__receipt {
  grid-area: receipt;
}

.coach-program-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.coach-program-row {
  display: grid;
  grid-template-areas: "identity status" "week progress" "next next" "actions actions";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-inline-start: 0.3rem solid var(--service-color);
  border-radius: 0.5rem;
  background: var(--app-surface);
}

.coach-program-row[hidden] {
  display: none;
}

.coach-program-row__identity {
  grid-area: identity;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.coach-program-row__identity h2 {
  margin: 0;
  font-size: 1.1rem;
}

.coach-program-row__identity p {
  margin: 0;
  overflow: hidden;
  color: var(--app-text-muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coach-program-row__week {
  grid-area: week;
}

.coach-program-row__progress {
  grid-area: progress;
}

.coach-program-row__next {
  grid-area: next;
}

.coach-program-row__week,
.coach-program-row__progress,
.coach-program-row__next {
  display: grid;
  gap: 0.25rem;
}

.coach-program-row__week span,
.coach-program-row__progress span,
.coach-program-row__next span {
  color: var(--app-text-subtle);
  font-size: 0.75rem;
}

.coach-program-row__progress progress {
  width: 100%;
  height: 0.35rem;
  accent-color: var(--service-color);
}

.coach-program-row__status {
  grid-area: status;
  align-self: start;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--app-control-border);
  border-radius: 2rem;
  color: var(--app-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.coach-program-row__status--attention {
  border-color: var(--app-warning-border);
  color: var(--app-warning);
}

.coach-program-row__status--ending {
  border-color: #2b6d72;
  color: var(--app-success);
}

.coach-program-row__status--active {
  border-color: #28675f;
  color: var(--app-success);
}

.coach-program-row__status--scheduled {
  border-color: #355f8c;
  color: #9fcfff;
}

.coach-program-row__status--draft {
  border-color: var(--app-warning-border);
  color: var(--app-warning);
}

.coach-program-row__actions {
  grid-area: actions;
  display: grid;
  gap: 0.6rem;
}

.coach-new-program-form {
  display: grid;
  gap: 2rem;
  width: min(100%, 58rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.coach-new-program-form section {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--app-border);
}

.coach-new-program-form h2 {
  margin: 0;
  font-size: 1.35rem;
}

.coach-new-program-fields {
  display: grid;
  gap: 0.8rem;
}

.coach-new-program-fields label {
  display: grid;
  gap: 0.4rem;
  color: var(--app-text-soft);
  font-weight: 700;
}

.coach-new-program-fields input,
.coach-new-program-fields select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--app-input-border);
  border-radius: var(--border-radius);
  color: var(--app-text-strong);
  color-scheme: dark;
  background: var(--app-surface-muted);
}

.coach-program-template-options {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.coach-program-template-options label {
  display: flex;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 0.45rem;
  cursor: pointer;
}

.coach-program-template-options label:has(input:checked) {
  border-color: var(--app-accent);
  background: rgba(57, 233, 239, 0.07);
}

.coach-program-template-options input {
  margin-top: 0.25rem;
  accent-color: var(--app-accent);
}

.coach-program-template-options span {
  display: grid;
  gap: 0.2rem;
}

.coach-program-template-options small {
  color: var(--app-text-muted);
}

.coach-new-program-actions {
  display: grid;
  gap: 0.7rem;
}

.coach-new-program-fields[hidden] {
  display: none;
}

/* =========================
   CHECK-IN PLAYER GROUP
========================= */
.coach-check-in-player-group {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--neutral);
  border: 1px solid var(--neutral-hover);
  border-radius: calc(var(--border-radius) * 1.25);
}

.coach-check-in-player-group__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.coach-check-in-player-group__header h2 {
  margin: 0;
}

.coach-check-in-player-group__header p {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.coach-player-attention-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 100vmax;
  font-size: 0.85rem;
  font-weight: var(--fw-700);
  border: 1px solid currentColor;
}

.coach-player-attention-badge.is-attention {
  color: var(--outline-color-invalid);
}

.coach-player-attention-badge.is-clear {
  color: var(--secondary);
}

.coach-check-ins-list,
.coach-check-in-player-group__reports {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 48em) {
  .coach-check-in-player-group__header {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (min-width: 30rem) {
  .coach-exercise-editor__row {
    grid-template-areas: "name name" "type type" "sets reps" "weight weight" "instructions instructions" "remove remove";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 42rem) {
  .coach-workout-tabs {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
  }
  .coach-workout-tab-list {
    grid-template-columns: repeat(4, minmax(6rem, 1fr));
  }
  .coach-review-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, auto);
    align-items: center;
  }
  .coach-review-card__actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
  }
  .coach-check-in-card {
    grid-template-areas: "heading ratings" "note ratings" "treatment treatment" "form form" "actions actions";
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  }
  .coach-check-in-card__actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
  }
  .coach-schedule-toolbar {
    grid-template-areas: "previous date next";
    grid-template-columns: max-content minmax(14rem, 20rem) max-content;
    justify-content: center;
    align-items: end;
  }
  .coach-schedule-card {
    grid-template-areas: "time identity workout status action" "actions actions actions actions actions";
    grid-template-columns: 5rem minmax(10rem, 1fr) minmax(12rem, 1.2fr) auto auto;
  }
  .coach-schedule-card__actions {
    justify-content: end;
  }
  .coach-payment-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coach-payment-history-card {
    grid-template-areas: "player payment receipt status";
    grid-template-columns: minmax(12rem, 1.2fr) minmax(12rem, 1fr) minmax(10rem, 1fr) auto;
    align-items: center;
  }
  .coach-program-row__actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
  }
  .coach-new-program-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coach-new-program-form section:first-child .coach-new-program-fields {
    grid-template-columns: minmax(12rem, 0.8fr) minmax(16rem, 1.2fr);
  }
  .coach-program-template-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coach-new-program-actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
  }
  .coach-library-form-actions {
    grid-template-columns: auto auto;
  }
  .coach-library-list article {
    grid-template-areas: "copy actions";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .coach-library-list article > div:last-child {
    grid-template-columns: auto auto;
  }
  .coach-week-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .coach-program-settings__fields {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .coach-workout-editor__header {
    grid-template-columns: minmax(0, 1fr) 12rem;
  }
  .coach-editor-actions {
    grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
    justify-content: end;
  }
  .coach-player-header {
    grid-template-areas: "identity actions";
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .coach-player-header__actions {
    grid-template-columns: auto auto;
  }
  .coach-readiness-grid {
    grid-template-areas: "pain recovery motivation" "note note note";
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coach-program-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .coach-progress-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coach-chart-card figcaption {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .coach-chart-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .coach-chart-summary strong {
    text-align: center;
  }
  .coach-chart-summary span:last-child {
    text-align: left;
  }
  .coach-welcome {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .coach-welcome .player-primary-button {
    width: auto;
    min-width: 11rem;
  }
  .coach-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-topbar--has-dashboard {
    grid-template-areas: "brand dashboard profile";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .player-progress-fields {
    grid-template-columns: 1fr 1fr;
  }
  .player-records-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-technique-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-profile__copy {
    display: block;
  }
  .player-welcome {
    grid-template-columns: 1fr auto;
  }
  .player-next-workout {
    grid-template-columns: 1fr auto;
  }
  .player-next-workout .player-primary-button {
    width: auto;
    min-width: 10.5rem;
  }
  .player-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .player-page-heading,
  .player-workout-header {
    grid-template-columns: 1fr auto;
  }
  .player-workout-card {
    grid-template-columns: 1fr auto;
  }
  .player-workout-card__status,
  .player-workout-card__main,
  .player-workout-card .player-workout-meta {
    grid-column: 1;
  }
  .player-workout-card .player-primary-button {
    grid-column: 2;
    grid-row: 1/5;
    width: auto;
    min-width: 11rem;
    align-self: center;
  }
  .player-exercise__summary {
    grid-template-columns: 2rem minmax(12rem, 1.4fr) minmax(16rem, 1fr) auto;
  }
  .player-set-log__head,
  .player-set-row {
    display: grid;
    grid-template-columns: 3rem 1fr 1fr 5rem;
    gap: 0.8rem;
    align-items: center;
  }
  .player-set-log__head {
    padding: 1rem 1rem 0.3rem;
    color: var(--app-text-subtle);
    font-size: 0.78rem;
  }
  .player-set-row > strong,
  .player-set-check {
    grid-column: auto;
  }
  .player-set-error {
    grid-column: 2/-1;
  }
  .player-set-row label {
    display: block;
  }
  .player-set-check {
    justify-content: center;
  }
  .player-set-check span,
  .player-mobile-label {
    display: none;
  }
  .player-workout-actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }
  .player-finish-status {
    grid-column: 1/-1;
  }
  .player-workout-actions .player-primary-button,
  .player-workout-actions .player-secondary-button {
    min-width: 12rem;
  }
}
@media (min-width: 64rem) {
  .coach-library-layout {
    grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.5fr);
  }
  .coach-review-card {
    grid-template-areas: "details feedback";
    grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  }
  .coach-library-form-panel {
    position: sticky;
    top: 1rem;
  }
  .coach-exercise-editor__head {
    display: grid;
    grid-template-columns: minmax(12rem, 1.5fr) minmax(9rem, 1fr) 4.5rem 6rem minmax(8rem, 1fr) 5rem;
    gap: 0.65rem;
    padding: 0 1rem 0.5rem;
    color: var(--app-text-subtle);
    font-size: 0.75rem;
  }
  .coach-exercise-editor__row {
    grid-template-areas: "name type sets reps weight remove" "instructions instructions instructions instructions instructions remove";
    grid-template-columns: minmax(12rem, 1.5fr) minmax(9rem, 1fr) 4.5rem 6rem minmax(8rem, 1fr) 5rem;
    align-items: end;
  }
  .coach-remove-exercise {
    align-self: stretch;
  }
  .coach-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .coach-player-tools {
    grid-template-columns: minmax(16rem, 1fr) auto;
    align-items: center;
  }
  .coach-player-row {
    grid-template-areas: "identity data status open";
    grid-template-columns: minmax(12rem, 1.3fr) minmax(17rem, 1fr) auto auto;
  }
  .coach-program-row {
    grid-template-areas: "identity week progress status" "next next actions actions";
    grid-template-columns: minmax(14rem, 1.35fr) 7rem minmax(10rem, 0.8fr) auto;
    align-items: center;
  }
  .coach-player-open {
    min-width: 7.5rem;
  }
  .player-tracking-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  }
  .player-check-in-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
    align-items: start;
  }
  .player-technique-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-login {
    direction: ltr;
    grid-template-columns: minmax(27rem, 0.82fr) 1.18fr;
    padding: 0;
  }
  .player-login__panel,
  .player-login__visual {
    direction: rtl;
  }
  .player-login__panel {
    justify-content: center;
    padding: 1rem clamp(2rem, 6vw, 4rem);
  }
  .player-login__heading {
    margin: 2rem 0 1.5rem;
  }
  .player-login__form {
    margin-inline: 0;
  }
  .player-login__heading h1 {
    font-size: clamp(2.3rem, 4vw, 4rem);
  }
  .player-login__visual {
    display: block;
  }
  .player-tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 26rem) {
  .app-topbar {
    gap: 0.5rem;
    padding-inline: 0.7rem;
  }
  .app-topbar__dashboard {
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }
  .app-avatar,
  .player-avatar {
    display: none;
  }
  .app-brand .logo {
    width: 7.4rem;
  }
  .app-brand span {
    padding-inline-start: 0.7rem;
    font-size: 0.8rem;
  }
  .player-login__heading {
    margin-block: 1.6rem 1.15rem;
  }
  .player-login__heading > p:last-child {
    margin-bottom: 0;
    line-height: 1.5;
  }
  .player-field input,
  .player-primary-button {
    min-height: 3.1rem;
  }
  .player-form-note {
    margin-bottom: 0;
  }
}
@media (max-height: 38rem) and (orientation: landscape) and (max-width: 63.99rem) {
  .player-login__panel {
    padding-block: 0.85rem;
  }
  .player-login__heading {
    margin-block: 1rem;
  }
  .player-login__heading > p:last-child,
  .player-form-note {
    display: none;
  }
  .player-login__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    max-width: 46rem;
  }
  .player-login__form .player-primary-button {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .player-primary-button,
  .player-tool-card {
    transition: none;
  }
}
@media (min-width: 64rem) {
  [data-player-schedule] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  [data-player-schedule] > .player-section-heading,
  [data-player-schedule] > .player-empty-state {
    grid-column: 1/-1;
  }
}
:root {
  --animation-timing: 500ms ease-in-out;
  --border-radius: 0.3rem;
  --gap: 1rem;
}

/* Utilities */
.grid {
  display: grid;
}

.cookie-consent.active {
  bottom: 0;
  display: block;
}

.cookie-consent {
  display: none;
  gap: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: min(92vw, 32rem);
  z-index: 1000;
  text-align: center;
  background-color: var(--background-color);
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block-end: 1rem;
  text-wrap: balance;
  margin: 0 0 1rem 1rem;
}
.cookie-consent p {
  max-width: 30ch;
}
.cookie-consent img {
  justify-content: center;
  object-fit: contain;
  max-width: 20svw;
  max-height: 20svw;
}
.cookie-consent button {
  width: fit-content;
  min-width: 8rem;
  padding: 0.75rem 1.5rem;
  height: 3rem;
  border: 2px solid var(--primary);
  color: var(--light-color);
}
.cookie-consent .color-light {
  color: var(--light-color);
}
.cookie-consent .accept-reject-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
}
.cookie-consent .flex-column {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
}
.cookie-consent .accept-cookies {
  background-color: var(--secondary);
  color: var(--secondary-text);
}
.cookie-consent .accept-cookies:hover,
.cookie-consent .accept-cookies:focus-visible {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--secondary);
  font-weight: 700;
}
.cookie-consent .reject-cookies {
  background-color: var(--primary);
}
.cookie-consent .reject-cookies:hover,
.cookie-consent .reject-cookies:focus-visible {
  background-color: transparent;
  border: 2px solid var(--red);
  color: var(--light-color);
  font-weight: 700;
}

/* =======================================================
   VIEW TRANSITIONS
======================================================= */
@view-transition {
  navigation: auto;
}
/* =======================================================
   SHARED ELEMENTS
======================================================= */
/* התמונה של עודד */
.home-about-img img,
.wrapper-img-about img {
  view-transition-name: oded-image;
}

/* תזמון כללי לאלמנטים משותפים */
::view-transition-group(*) {
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =======================================================
   ODED IMAGE
======================================================= */
::view-transition-group(oded-image) {
  animation-duration: 550ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* התמונה הישנה נעלמת בעדינות */
::view-transition-old(oded-image) {
  animation: oded-image-out 250ms ease-out both;
}

/* התמונה החדשה נכנסת מעט מהצד */
::view-transition-new(oded-image) {
  animation: oded-image-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes oded-image-out {
  to {
    opacity: 0;
  }
}
@keyframes oded-image-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* =======================================================
   PAGE TRANSITION
======================================================= */
/* יציאת העמוד הישן */
::view-transition-old(root) {
  animation: page-out 200ms ease-out both;
}

/* כניסת העמוד החדש */
::view-transition-new(root) {
  animation: page-in 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* =======================================================
   REDUCED MOTION
======================================================= */
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
@media (min-width: 64em) {
  header.page-header .nav-list {
    flex-direction: row;
    min-height: 5svh;
  }
  header .page-header-content {
    place-self: center;
  }
  .hamburger-menu {
    opacity: 0;
    width: 0;
  }
  .sidebar {
    padding: 1.5em;
    translate: 0;
    width: auto;
    min-height: max-content;
    background-color: inherit;
  }
  /* ===== INFO BAR ===== */
  /* החל מהפריט השני והלאה – קו הקדמי */
  /* =====  HOME ABOUT =====  */
  /* אפקט hover */
  /* form */
  /* צור קשר */
  /* form */
  /* בלוקים אי-זוגיים: טקסט משמאל, תמונה מימין */
  /* בלוקים זוגיים: תמונה משמאל, טקסט מימין */
  /* ===== BLOG POST CONTENT ===== */
  /* אי-זוגי — תמונה משמאל */
  /* זוגי — תמונה מימין */
  /* סעיפים ללא תמונה נשארים במרכז */
}
@media (min-width: 64em) and (prefers-color-scheme: dark) {
  a[class=nav-item] {
    color: white;
  }
}
@media (min-width: 64em) {
  .home-final-cta {
    justify-items: start;
    justify-content: end;
    align-content: center;
    min-height: 80svh;
  }
  .home-final-cta .card {
    width: min(100%, 45ch);
  }
  .hero-grid {
    padding-top: var(--header-height);
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas: "  .  cta . content content " "  .  cta .   .       .    ";
    justify-items: center;
    align-content: center;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.1) 75%), url("/assets/image/Image-hero.webp");
    background-position: top;
  }
  .hero-benefits {
    margin: 0;
  }
  .hero-content {
    max-width: 38rem;
    padding: clamp(2rem, 4vw, 4rem);
    align-self: center;
  }
  .hero-content .section-title {
    max-width: 14ch;
    margin: 0;
    color: white;
    font-size: clamp(2.5rem, 3vw, 4rem);
    line-height: 1.05;
    text-align: right;
  }
  .hero-content > p {
    max-width: 40ch;
    margin: 0;
    color: white;
    font-size: var(--fs-500);
    line-height: 1.7;
  }
  .hero-cta {
    grid-area: cta;
    justify-self: end;
    align-self: end;
    margin: 0 auto 12dvh auto;
  }
  .info-bar {
    padding: 1rem 2rem;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    justify-items: center;
  }
  .info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* אין קו בפריט הראשון */
    border: none;
    padding-inline-start: 1rem;
    background-color: transparent;
  }
  .info-item:not(:first-child) {
    border-inline-start: 1px solid var(--secondary-hover);
  }
  .top-background {
    background-size: contain;
  }
  .svg-title {
    min-height: 20ch;
  }
  .flex-group {
    justify-content: space-evenly;
  }
  .faq-answer {
    text-align: center;
    margin: auto;
    width: 80svw;
  }
  .about-certificates .scroll-images,
  .service-certificates .scroll-images {
    align-items: center;
  }
  .about-certificates .scroll-images img,
  .service-certificates .scroll-images img {
    width: auto;
    max-width: 100%;
    height: 65svh;
    max-height: 700px;
    aspect-ratio: auto;
    object-fit: contain;
  }
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  img:hover {
    opacity: 0.9;
  }
  .home-about-grid {
    grid-template-columns: 1fr 2fr;
    gap: clamp(3rem, 7vw, 7rem);
    justify-content: space-around;
    width: 80%;
    margin: auto;
  }
  .home-about-content {
    padding-block: 2rem;
  }
  .home-about-img {
    width: 100%;
    max-width: 34rem;
  }
  ol li {
    grid-template-columns: 50svw;
  }
  .scroll-x {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
  }
  .gallery-image {
    min-width: 15svw;
    max-width: 15svw;
  }
  .gallery-item img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  .cookie-consent img {
    width: 10svw;
    height: 10svw;
  }
  #form .text-fields {
    grid-template-areas: "name phone email" "message message message" "consent consent consent" "submit submit submit";
    padding: 1rem 0 0;
    align-items: start;
  }
  #form input:invalid,
  #form textarea:invalid {
    min-height: 1rem;
  }
  .contact {
    flex-direction: row-reverse;
    align-items: center;
  }
  .services-grid {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 2rem 0;
  }
  .form-section {
    min-width: 50svw;
  }
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
  }
  .lightbox.hidden {
    display: none;
  }
  .lightbox-image {
    max-width: 90%;
    max-height: 80%;
    margin: 0 auto;
    object-fit: contain;
  }
  .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
  }
  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 5rem;
    cursor: pointer;
    z-index: 1001;
  }
  .lightbox-prev {
    left: 1rem;
    padding-right: 10rem;
  }
  .lightbox-next {
    right: 1rem;
    padding-left: 10rem;
  }
  .lightbox-prev:hover,
  .lightbox-next:hover {
    color: #ccc;
  }
  .lightbox-pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
  }
  .lightbox-pagination button {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    width: 0.5rem;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--light-color);
    background-color: transparent;
    cursor: pointer;
    transition: background-color var(--animation-timing), transform var(--animation-timing);
  }
  .lightbox-pagination button.active {
    background-color: var(--light-color);
    transform: scale(1.2);
  }
  .tags-list .btn-tag {
    min-width: 10ch;
  }
  .tags-list {
    grid-template: auto/auto auto auto auto;
  }
  .post-card {
    display: grid;
    grid-template-areas: "post-card-meta post-card-meta" "post-card-title post-card-title" "post-card-img post-card-description" "post-card-img post-card-button" "post-tag-list post-tag-list";
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    justify-items: center;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    max-width: 50%;
  }
  .post-card-img {
    aspect-ratio: 1;
    object-fit: cover;
  }
  .content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-bottom: 5rem;
    line-height: 2;
    justify-items: center;
  }
  .content-block p {
    direction: rtl;
  }
  .content-block .block-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius, 0);
  }
  .content-block:nth-child(odd) {
    direction: rtl;
  }
  .content-block:nth-child(even) {
    direction: ltr;
  }
  .tags-list .btn-tag {
    min-width: 10ch;
  }
  .tags-list {
    grid-template: auto/auto auto auto auto;
  }
  .post-content-section:has(.post-content-section__media) {
    grid-template-columns: minmax(16rem, 0.65fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  .post-content-section:nth-child(odd):has(.post-content-section__media) .post-content-section__media {
    grid-column: 1;
    grid-row: 1;
  }
  .post-content-section:nth-child(odd):has(.post-content-section__media) .post-content-section__text {
    grid-column: 2;
    grid-row: 1;
  }
  .post-content-section:nth-child(even):has(.post-content-section__media) .post-content-section__text {
    grid-column: 1;
    grid-row: 1;
  }
  .post-content-section:nth-child(even):has(.post-content-section__media) .post-content-section__media {
    grid-column: 2;
    grid-row: 1;
  }
  .post-content-section:not(:has(.post-content-section__media)) {
    width: 100%;
    max-width: 65ch;
    margin-inline: auto;
  }
  .post-content-section__media {
    width: min(100%, 22rem);
  }
  .faq-question {
    width: 80svw;
  }
  .about .wrapper-content-about {
    gap: 3rem;
  }
  .about .wrapper-img-about {
    width: 280px;
  }
  .about .wrapper-text-about {
    max-width: 75ch;
    font-size: 1.05rem;
  }
  .text-fields {
    padding: 1rem;
    margin-bottom: 0.5rem;
    width: inherit;
    grid-gap: 2rem;
    justify-content: center;
    justify-items: center;
    margin: 2rem auto;
    display: grid;
    grid-template-areas: "name" "phone" "email" "message" "submit";
  }
  .feedback-card {
    min-width: 20svw;
  }
}
@media (min-width: 35em) {
  :root {
    --fs-300: 1rem;
    --fs-400: 1.125rem;
    --fs-500: 1.5rem;
    --fs-600: 2.25rem;
    --fs-700: 3rem;
  }
}
