:root {
  color-scheme: light;
  --ink: #0d1738;
  --muted: #647098;
  --line: rgba(96, 139, 255, 0.22);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --soft: #eef4ff;
  --blue: #2b5dff;
  --sky: #20c8ff;
  --violet: #8b55ff;
  --pink: #f37aff;
  --mint: #57e0df;
  --lavender: #b9a3ff;
  --lime: #9efff5;
  --shadow: 0 24px 70px rgba(31, 75, 190, 0.18);
  --glow: 0 18px 42px rgba(32, 200, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Manrope", Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(243, 122, 255, 0.25), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(87, 224, 223, 0.26), transparent 30%),
    radial-gradient(circle at 52% 100%, rgba(139, 85, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #f4f7ff 0%, #eaf2ff 48%, #f8edff 100%);
  color: var(--ink);
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(32, 200, 255, 0.6);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px);
}

.brand,
.section-heading,
.topbar,
.workout-card,
.stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 214px;
  height: auto;
}

.desktop-nav {
  display: grid;
  gap: 8px;
}

.desktop-nav a,
.bottom-nav a,
.bottom-nav button {
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.desktop-nav a {
  padding: 14px 16px;
  border-radius: 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  transform: translateX(3px);
  box-shadow: 0 14px 28px rgba(21, 92, 255, 0.22);
}

.coach-card,
.panel,
.pricing-card,
.app-dialog form {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.coach-card {
  position: relative;
  margin-top: auto;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
}

.coach-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink));
}

.coach-card span,
.eyebrow,
.pricing-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coach-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.coach-card p,
.hero p,
.workout-card p,
.shop-band p,
.app-dialog p {
  color: var(--muted);
  line-height: 1.62;
}

main {
  width: min(1500px, 100%);
  height: 100dvh;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0 auto;
  padding: 30px 34px 96px;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-brand img {
  flex: 0 0 auto;
  width: 230px;
  height: auto;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.language-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(96, 139, 255, 0.26);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(31, 75, 190, 0.12);
  color: var(--ink);
  font-weight: 900;
}

.language-chevron {
  font-size: 16px;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  padding: 8px;
  border: 1px solid rgba(96, 139, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(31, 75, 190, 0.16);
}

.language-option {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.language-option:hover,
.language-option.active {
  background: var(--soft);
  color: var(--blue);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  max-width: 900px;
  margin-top: 6px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-title-mobile {
  display: none;
}

.icon-button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--violet);
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  min-height: 380px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 22%, rgba(87, 224, 223, 0.42), transparent 24%),
    radial-gradient(circle at 22% 100%, rgba(243, 122, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #2b5dff 0%, #6a7cff 34%, #8b55ff 68%, #f37aff 100%);
  color: white;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(21, 92, 255, 0.32);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: 32px;
  width: 520px;
  height: 118px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  transform: rotate(-18deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.pill {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

h2 {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 570px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions .primary-action,
.hero-actions .ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.primary-action,
.ghost-action,
.workout-card button,
.pricing-card button,
.text-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-action {
  padding: 0 20px;
  background: linear-gradient(135deg, var(--lime), #3df7ff);
  color: #07206b;
  box-shadow: 0 16px 34px rgba(61, 247, 255, 0.3);
}

.ghost-action {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(12px);
}

.primary-action:hover,
.ghost-action:hover,
.workout-card button:hover,
.pricing-card button:hover,
.text-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
}

.hero-actions .active {
  background: linear-gradient(135deg, var(--lime), #3df7ff);
  color: #07206b;
  box-shadow: 0 16px 34px rgba(61, 247, 255, 0.3);
}

.motion-visual {
  position: relative;
  z-index: 1;
  min-height: 300px;
}

.trainer-preview {
  position: absolute;
  right: 122px;
  bottom: 28px;
  display: grid;
  gap: 12px;
  width: 210px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(13, 23, 56, 0.2);
  backdrop-filter: blur(18px);
}

.hero .trainer-preview {
  display: none;
}

.trainer-preview span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trainer-preview strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 20px;
  line-height: 1.1;
}

.ai-mascot {
  position: absolute;
  right: 54px;
  top: 54px;
  width: 230px;
  height: 270px;
  padding: 0;
  border: 0;
  background: transparent;
  animation: mascotTravel 5.8s ease-in-out infinite;
}

.fora-mascot-trigger {
  cursor: pointer;
}

.fora-mascot-trigger:hover {
  filter: saturate(1.08);
}

.fora-speech-bubble {
  position: absolute;
  left: 24px;
  bottom: 46px;
  z-index: 3;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px 18px 4px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(13, 23, 56, 0.18);
  backdrop-filter: blur(12px);
  animation: bob 3.4s ease-in-out infinite reverse;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fora-speech-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(13, 23, 56, 0.24);
}

.ai-mascot::before {
  content: "";
  position: absolute;
  inset: 34px -18px 0 -48px;
  border-radius: 999px;
  background:
    repeating-radial-gradient(circle at 45% 55%, rgba(255, 255, 255, 0.22) 0 2px, rgba(87, 224, 223, 0.08) 3px 7px, transparent 8px 14px),
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 42% 52%, rgba(87, 224, 223, 0.5), transparent 34%),
    linear-gradient(90deg, rgba(139, 85, 255, 0), rgba(87, 224, 223, 0.34), rgba(255, 255, 255, 0.18));
  filter: blur(11px);
  opacity: 0.86;
  transform: rotate(-14deg);
  animation: trailPulse 2.6s ease-in-out infinite;
}

.mascot-glow {
  position: absolute;
  display: block;
  left: 44px;
  bottom: -4px;
  z-index: 0;
  width: 84px;
  height: 22px;
  border: 3px solid rgba(87, 224, 223, 0.72);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(87, 224, 223, 0.88));
  animation: glowPulse 2.2s ease-in-out infinite;
}

.mascot-antenna,
.mascot-body,
.mascot-face,
.mascot-arm {
  position: absolute;
  display: block;
}

.mascot-antenna {
  left: 109px;
  top: 3px;
  width: 12px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b7fbff, #58ddff);
  box-shadow: 0 0 18px rgba(87, 224, 223, 0.7);
}

.mascot-antenna::before {
  content: "";
  position: absolute;
  left: -11px;
  top: -21px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0 26%, #89f5ff 28% 58%, rgba(87, 224, 223, 0.24) 60%);
  box-shadow: 0 0 26px rgba(87, 224, 223, 0.95);
}

.mascot-body {
  left: 36px;
  top: 44px;
  width: 160px;
  height: 170px;
  border-radius: 54px 54px 60px 60px;
  background: linear-gradient(145deg, #ffffff, #dbe7ff 76%, #b7f9ff);
  box-shadow: inset -16px -16px 0 rgba(105, 124, 255, 0.15), 0 24px 44px rgba(32, 200, 255, 0.28);
}

.mascot-face {
  left: 54px;
  top: 82px;
  z-index: 2;
  width: 108px;
  height: 64px;
  border-radius: 30px;
  background: linear-gradient(180deg, #131c5d, #050a32);
  box-shadow: inset 0 0 22px rgba(87, 224, 223, 0.36), 0 0 24px rgba(87, 224, 223, 0.6);
}

.mascot-face i {
  position: absolute;
  top: 18px;
  width: 20px;
  height: 20px;
  border: 6px solid #72f6ff;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.mascot-face i:first-child {
  left: 25px;
}

.mascot-face i:nth-child(2) {
  right: 25px;
}

.mascot-face b {
  position: absolute;
  left: 43px;
  bottom: 12px;
  width: 24px;
  height: 12px;
  border-bottom: 6px solid #72f6ff;
  border-radius: 0 0 24px 24px;
}

.mascot-arm {
  z-index: 1;
  width: 29px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #dce7ff);
  box-shadow: inset -8px -9px 0 rgba(105, 124, 255, 0.15);
}

.mascot-arm-left {
  left: 10px;
  top: 112px;
  transform: rotate(22deg);
}

.mascot-arm-right {
  right: 4px;
  top: 94px;
  transform-origin: top center;
  animation: mascotWave 2.2s ease-in-out infinite;
}

.wheelchair-figure {
  position: absolute;
  right: 38px;
  bottom: 18px;
  width: 260px;
  height: 250px;
  animation: floaty 4s ease-in-out infinite;
}

.wheelchair-figure span {
  position: absolute;
  display: block;
}

.head {
  left: 104px;
  top: 8px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffd2a8;
  box-shadow: inset -8px -8px 0 rgba(255, 143, 161, 0.22);
}

.body {
  left: 88px;
  top: 66px;
  width: 78px;
  height: 96px;
  border-radius: 28px 28px 18px 18px;
  background: linear-gradient(160deg, var(--lime), #22e9ff);
  transform: rotate(-8deg);
  box-shadow: 0 14px 28px rgba(13, 23, 56, 0.18);
}

.arm {
  width: 18px;
  height: 104px;
  border-radius: 999px;
  background: #ffd2a8;
  transform-origin: top center;
}

.arm-left {
  left: 91px;
  top: 72px;
  transform: rotate(48deg);
  animation: waveLeft 3.5s ease-in-out infinite;
}

.arm-right {
  left: 150px;
  top: 71px;
  transform: rotate(-38deg);
  animation: waveRight 3.5s ease-in-out infinite;
}

.wheel {
  border: 14px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(32, 200, 255, 0.38), 0 10px 28px rgba(13, 23, 56, 0.18);
}

.wheel-large {
  left: 36px;
  bottom: 12px;
  width: 142px;
  height: 142px;
  animation: spin 7s linear infinite;
}

.wheel-small {
  right: 8px;
  bottom: 22px;
  width: 72px;
  height: 72px;
  animation: spin 5s linear infinite;
}

.pulse-card {
  position: absolute;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.pulse-card-top {
  right: 18px;
  top: 38px;
  animation: bob 3.4s ease-in-out infinite;
}

.pulse-card-bottom {
  left: 20px;
  bottom: 46px;
  animation: bob 3.4s ease-in-out infinite reverse;
}

.level-panel,
.zone-panel,
.trainer-panel,
.sound-panel {
  margin-top: 24px;
}

.level-grid,
.zone-grid,
.trainer-grid,
.sound-grid {
  display: grid;
  gap: 12px;
}

.level-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zone-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trainer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sound-grid {
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1.1fr);
  align-items: stretch;
}

.level-card,
.zone-card,
.trainer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(21, 92, 255, 0.08);
  font-weight: 900;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.level-card,
.trainer-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.level-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.level-card strong,
.trainer-card strong {
  font-size: 24px;
  line-height: 1.08;
}

.level-card em,
.trainer-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.trainer-card {
  text-align: left;
  min-height: 360px;
}

.nutrition-card {
  scroll-margin-top: 30px;
}

.nutrition-photo-wrap {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(145deg, rgba(231, 239, 255, 0.96), rgba(206, 222, 255, 0.92));
}

.nutrition-photo {
  object-fit: cover;
  object-position: center;
}

.nutrition-card:hover .nutrition-photo,
.nutrition-card:focus-visible .nutrition-photo {
  animation: nutritionGreet 880ms ease-in-out infinite;
}

.coach-photo-wrap,
.coach-photo {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.coach-photo-wrap {
  position: relative;
  overflow: hidden;
  height: 255px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.86), transparent 18%),
    linear-gradient(145deg, rgba(231, 239, 255, 0.96), rgba(206, 222, 255, 0.92));
  box-shadow: 0 14px 28px rgba(105, 124, 255, 0.2);
}

.coach-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 16% 10px;
  height: 18px;
  border: 3px solid rgba(117, 229, 255, 0.62);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(87, 224, 223, 0.82));
  opacity: 0;
  transform: scaleX(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.trainer-card:hover .coach-photo-wrap::after,
.trainer-card:focus-visible .coach-photo-wrap::after {
  opacity: 1;
  transform: scaleX(1);
}

.coach-photo {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 26px rgba(13, 23, 56, 0.18));
  transition: transform 220ms ease, filter 220ms ease;
}

.coach-photo-large {
  height: 245px;
  object-fit: contain;
  object-position: center bottom;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.82), transparent 20%),
    linear-gradient(145deg, rgba(231, 239, 255, 0.88), rgba(206, 222, 255, 0.78));
  box-shadow: 0 18px 32px rgba(105, 124, 255, 0.2);
}

.trainer-card:hover .coach-photo,
.trainer-card:focus-visible .coach-photo,
.trainer-preview:hover .coach-photo {
  animation: coachGreet 880ms ease-in-out infinite;
  filter: drop-shadow(0 26px 34px rgba(87, 224, 223, 0.32)) saturate(1.08);
}

.mascot-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.mascot-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.mini-mascot {
  position: relative;
  width: 72px;
  height: 78px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #dce7ff);
  box-shadow: inset -8px -9px 0 rgba(105, 124, 255, 0.14), 0 0 24px rgba(87, 224, 223, 0.38);
  filter: drop-shadow(0 0 14px rgba(87, 224, 223, 0.5));
}

.mini-mascot::before {
  content: "";
  position: absolute;
  left: 31px;
  top: -10px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: #78efff;
  box-shadow: 0 -8px 16px rgba(87, 224, 223, 0.8);
}

.mini-face {
  position: absolute;
  left: 14px;
  top: 22px;
  width: 45px;
  height: 26px;
  border-radius: 14px;
  background: #111a55;
  box-shadow: 0 0 16px rgba(87, 224, 223, 0.58);
}

.mini-face::before,
.mini-face::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 3px solid #72f6ff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.mini-face::before {
  left: 8px;
}

.mini-face::after {
  right: 8px;
}

.range-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
}

.range-row input {
  width: 100%;
  accent-color: var(--violet);
}

.zone-card {
  min-height: 62px;
  padding: 0 14px;
  text-align: center;
}

.level-card:hover,
.zone-card:hover,
.trainer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 92, 255, 0.38);
}

.level-card.active,
.zone-card.active,
.trainer-card.active {
  border-color: transparent;
  background:
    radial-gradient(circle at 82% 20%, rgba(87, 224, 223, 0.45), transparent 32%),
    linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 18px 34px rgba(21, 92, 255, 0.24);
}

.trainer-card:hover,
.trainer-card:focus-visible {
  border-color: transparent;
  background:
    radial-gradient(circle at 82% 20%, rgba(87, 224, 223, 0.45), transparent 32%),
    linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 18px 34px rgba(21, 92, 255, 0.24);
}

.trainer-card:hover em,
.trainer-card:focus-visible em {
  color: rgba(255, 255, 255, 0.84);
}

.trainer-grid:has(.trainer-card:hover) .trainer-card.active:not(:hover) {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(21, 92, 255, 0.08);
}

.trainer-grid:has(.trainer-card:hover) .trainer-card.active:not(:hover) em {
  color: var(--muted);
}

.level-card.active span,
.level-card.active em,
.trainer-card.active em {
  color: rgba(255, 255, 255, 0.84);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
}

.panel {
  padding: 24px;
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h3 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.15;
}

.text-button {
  background: var(--soft);
  color: var(--blue);
  padding: 0 14px;
}

.workout-list {
  display: grid;
  gap: 12px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.94));
  box-shadow: 0 14px 30px rgba(21, 92, 255, 0.1);
}

.program-card span,
.tag-row span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.program-card p {
  color: var(--muted);
  line-height: 1.55;
}

.program-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #0d1738;
  color: white;
  font-weight: 900;
}

.workout-card {
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.94), rgba(255, 255, 255, 0.96));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.workout-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 92, 255, 0.38);
  box-shadow: 0 18px 36px rgba(21, 92, 255, 0.12);
}

.workout-card-with-guide {
  display: grid;
  grid-template-columns: 52px minmax(260px, 1fr) minmax(220px, 300px) auto;
  align-items: center;
}

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

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
}

.workout-icon {
  display: grid;
  flex: 0 0 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(32, 200, 255, 0.22);
}

.workout-card div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.workout-card h4,
.workout-card p {
  max-width: 44rem;
}

h4 {
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.workout-card p {
  margin-top: 4px;
  font-size: 14px;
}

.workout-prescription {
  color: var(--blue) !important;
  font-weight: 900;
}

.workout-guide-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.workout-guide-preview figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--soft);
}

.workout-guide-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 34%;
}

.workout-guide-preview figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workout-card button {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 0 14px;
  background: #0d1738;
  color: white;
}

@media (max-width: 1320px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.progress-panel {
  display: grid;
  width: 100%;
  max-width: 520px;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  justify-self: center;
}

.progress-heading {
  align-items: center;
}

.change-goal-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(43, 93, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  font-weight: 900;
}

.change-goal-button:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(43, 93, 255, 0.12);
}

.weekly-goal-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(43, 93, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(87, 224, 223, 0.12), transparent 42%),
    linear-gradient(135deg, #f4f7ff, #eef4ff);
}

.weekly-goal-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid rgba(67, 78, 255, 0.86);
  border-radius: 50%;
  color: var(--violet);
  font-size: 32px;
  font-weight: 900;
}

.weekly-goal-card > div:not(.weekly-goal-picker) {
  display: grid;
  gap: 3px;
}

.weekly-goal-card span:not(.weekly-goal-icon) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.weekly-goal-card strong {
  font-size: 21px;
  line-height: 1.2;
}

.weekly-goal-card small {
  color: var(--muted);
  font-size: 13px;
}

.weekly-goal-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.weekly-goal-picker[hidden] {
  display: none;
}

.weekly-goal-picker label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.weekly-goal-picker select {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(43, 93, 255, 0.3);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.weekly-progress-main {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.weekly-goal-celebration {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  padding: 16px 24px 16px 8px;
  border: 1px solid rgba(29, 201, 143, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 18%, #ffd950 0 3px, transparent 4px),
    radial-gradient(circle at 88% 26%, #7c5cff 0 3px, transparent 4px),
    radial-gradient(circle at 75% 78%, #ff679b 0 4px, transparent 5px),
    radial-gradient(circle at 38% 22%, #2edfb1 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(222, 255, 246, 0.96), rgba(236, 255, 248, 0.92));
}

.weekly-goal-celebration[hidden] {
  display: none;
}

.weekly-goal-celebration img {
  align-self: end;
  width: 128px;
  max-height: 126px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 16px rgba(24, 180, 143, 0.2));
}

.weekly-goal-celebration div {
  display: grid;
  gap: 6px;
}

.weekly-goal-celebration strong {
  color: #07945f;
  font-size: 22px;
}

.weekly-goal-celebration p {
  color: #33536b;
  font-size: 14px;
  font-weight: 800;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--violet) 0%, #e8edfb 0% 100%);
  box-shadow: 0 18px 38px rgba(21, 92, 255, 0.12);
  transition: background 280ms ease, box-shadow 280ms ease;
}

.progress-ring span {
  display: grid;
  width: 166px;
  height: 166px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
}

.progress-ring strong {
  font-size: 44px;
  line-height: 1;
}

.progress-ring small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weekly-goal-star {
  position: absolute;
  top: 8px;
  right: 4px;
  z-index: 2;
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 5px solid white;
  border-radius: 50%;
  background: linear-gradient(135deg, #22dd98, #12b8c4);
  color: white;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(22, 191, 159, 0.32);
}

.progress-panel.goal-completed .progress-ring {
  box-shadow:
    0 0 0 8px rgba(33, 216, 144, 0.08),
    0 0 38px rgba(19, 188, 193, 0.32),
    0 20px 42px rgba(21, 162, 145, 0.2);
}

.progress-panel.goal-completed .progress-ring span {
  color: #079f68;
}

.progress-panel.goal-completed .weekly-goal-star {
  display: grid;
}

.weekly-completed-copy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.weekly-completed-copy strong {
  color: var(--ink);
  font-size: 22px;
}

.extra-workout-badge {
  margin: -5px 0 0;
  padding: 7px 14px;
  border: 1px solid rgba(29, 201, 143, 0.26);
  border-radius: 999px;
  background: rgba(226, 255, 244, 0.86);
  color: #078b5d;
  font-size: 13px;
  font-weight: 900;
}

.extra-workout-badge[hidden] {
  display: none;
}

.weekly-workout-button {
  display: inline-flex;
  width: min(100%, 310px);
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 16px 32px rgba(65, 66, 255, 0.24);
  font-size: 16px;
}

.reset-week-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #687493;
  font-size: 13px;
  font-weight: 900;
}

.reset-week-button:hover {
  color: var(--blue);
}

.reset-week-button span {
  font-size: 19px;
}

.weekly-workout-button.in-progress {
  background: linear-gradient(135deg, #ff7859, #ff4f88);
  box-shadow: 0 16px 32px rgba(255, 79, 136, 0.2);
}

.weekly-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.weekly-stats > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 0 12px;
}

.weekly-stats > div + div {
  border-left: 1px solid var(--line);
}

.weekly-stat-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 900;
}

.weekly-stat-icon.minutes {
  background: rgba(43, 93, 255, 0.09);
  color: var(--blue);
}

.weekly-stat-icon.streak {
  background: rgba(255, 120, 89, 0.1);
  color: #ff603c;
}

.weekly-stats p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.weekly-stats strong {
  font-size: 15px;
}

.weekly-stats small {
  color: var(--muted);
  font-size: 11px;
}

.weekly-reset-info {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(43, 93, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(237, 245, 255, 0.9), rgba(242, 250, 255, 0.94));
}

.weekly-reset-info > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-size: 20px;
}

.weekly-reset-info p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.weekly-reset-info strong {
  color: var(--blue);
  font-size: 12px;
}

.weekly-reset-info small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.reset-week-dialog {
  width: min(500px, calc(100vw - 28px));
}

.reset-week-dialog form {
  background:
    radial-gradient(circle at 95% 0%, rgba(87, 224, 223, 0.18), transparent 30%),
    white;
}

.reset-week-dialog h3 {
  padding-right: 36px;
  font-size: 26px;
}

.reset-week-dialog p {
  color: var(--muted);
  line-height: 1.55;
}

.reset-week-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reset-week-actions button {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 900;
}

.reset-week-cancel {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}

.reset-week-confirm {
  border: 0;
  background: linear-gradient(135deg, #687493, #4b5674);
  color: white;
}

.shop-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 23, 56, 0.88), rgba(21, 92, 255, 0.88)),
    #0d1738;
  color: white;
  box-shadow: 0 28px 70px rgba(13, 23, 56, 0.22);
}

.shop-band .eyebrow,
.shop-band p {
  color: rgba(255, 255, 255, 0.78);
}

.shop-band p {
  max-width: 720px;
  margin-top: 8px;
}

.pricing-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(16px);
}

.pricing-card span {
  color: var(--lime);
}

.pricing-card strong {
  font-size: 26px;
  line-height: 1.08;
}

.pricing-card button {
  background: linear-gradient(135deg, white, #dff7ff);
  color: var(--blue);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 5;
  display: none;
  width: min(520px, calc(100% - 12px));
  transform: translateX(-50%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(21, 92, 255, 0.18);
  backdrop-filter: blur(16px);
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  min-height: 48px;
  min-width: 0;
  place-items: center;
  gap: 2px;
  padding: 4px 3px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.bottom-nav a.active,
.bottom-nav button.active {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
}

.bottom-nav-icon {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.bottom-nav-more {
  cursor: pointer;
}

.mobile-more-dialog {
  position: fixed;
  inset: auto 8px calc(72px + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 16px));
  margin: 0 auto;
}

.mobile-more-dialog::backdrop {
  background: rgba(13, 23, 56, 0.32);
}

.mobile-more-dialog form {
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
}

.mobile-more-dialog h3 {
  padding-right: 42px;
  font-size: 24px;
  line-height: 1.1;
}

.mobile-more-actions {
  display: grid;
  gap: 10px;
}

.mobile-more-actions a,
.mobile-more-actions button {
  display: flex;
  align-items: center;
  min-height: 50px;
  min-width: 0;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(21, 92, 255, 0.08), rgba(118, 66, 255, 0.1));
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.mobile-more-actions span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: white;
  color: var(--blue);
  font-weight: 900;
}

.mobile-more-actions strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-dialog {
  width: min(780px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.app-dialog::backdrop {
  background: rgba(13, 23, 56, 0.58);
}

.app-dialog form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
}

.fora-dialog {
  width: min(470px, calc(100vw - 28px));
}

.fora-dialog form {
  overflow: hidden;
  border-color: rgba(87, 224, 223, 0.42);
  background:
    radial-gradient(circle at 92% 4%, rgba(87, 224, 223, 0.24), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(139, 85, 255, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.96);
}

.fora-dialog h3 {
  padding-right: 42px;
  font-size: 28px;
}

.fora-dialog > form > p {
  margin-top: -8px;
}

.fora-view {
  display: grid;
  gap: 14px;
}

.fora-view[hidden] {
  display: none;
}

.fora-main-actions,
.fora-mood-options {
  display: grid;
  gap: 10px;
}

.fora-action,
.fora-mood-options button {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.fora-main-actions .fora-action:hover,
.fora-main-actions .fora-action:focus-visible,
.fora-mood-options button:hover {
  transform: translateY(-2px);
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 14px 28px rgba(43, 93, 255, 0.24);
}

.fora-main-actions .fora-action-primary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: none;
}

.fora-main-actions .fora-action-primary:hover,
.fora-main-actions .fora-action-primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 14px 28px rgba(43, 93, 255, 0.24);
}

.fora-view-title {
  font-size: 17px;
}

.fora-mood-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fora-mood-options button {
  min-height: 72px;
  padding: 10px;
  text-align: center;
}

.fora-mood-options button.selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
}

.fora-feedback,
.fora-achievement,
.fora-note {
  padding: 12px 14px;
  border: 1px solid rgba(87, 224, 223, 0.42);
  border-radius: 12px;
  background: rgba(238, 248, 255, 0.88);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.fora-note {
  min-height: 96px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(87, 224, 223, 0.22), transparent 44%),
    rgba(244, 248, 255, 0.9);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.fora-note-caption {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.fora-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fora-progress-grid div {
  display: grid;
  gap: 4px;
  padding: 13px 8px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  text-align: center;
}

.fora-progress-grid strong {
  font-size: 23px;
  line-height: 1;
}

.fora-progress-grid span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.84;
}

.fora-back,
.fora-later {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--blue);
  font-weight: 900;
}

.fora-later {
  background: transparent;
  color: var(--muted);
}

.achievements-dialog {
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.achievements-dialog::backdrop {
  background: rgba(13, 23, 56, 0.64);
  backdrop-filter: blur(5px);
}

.achievements-screen {
  position: relative;
  display: grid;
  gap: 18px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background:
    radial-gradient(circle at 95% 4%, rgba(87, 224, 223, 0.16), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(139, 85, 255, 0.12), transparent 26%),
    rgba(252, 253, 255, 0.98);
  box-shadow: 0 34px 90px rgba(13, 23, 56, 0.28);
}

.achievements-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f4f6ff;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.achievements-header {
  padding-right: 68px;
}

.achievements-header h2 {
  margin-top: 5px;
  font-size: clamp(32px, 3vw, 42px);
  white-space: nowrap;
}

.achievements-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
}

.achievements-summary {
  position: relative;
  display: grid;
  grid-template-columns: 170px repeat(3, minmax(105px, 1fr)) 160px;
  align-items: center;
  gap: 22px;
  min-height: 176px;
  overflow: hidden;
  padding: 16px 22px;
  border: 1px solid rgba(43, 93, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(139, 85, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #fbfcff, #f0f4ff);
}

.achievements-progress-ring {
  display: grid;
  width: 146px;
  height: 146px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0%, var(--violet) 0%, #e6ebfa 0% 100%);
  box-shadow: 0 16px 34px rgba(65, 66, 255, 0.16);
}

.achievements-progress-ring > div {
  display: grid;
  width: 114px;
  height: 114px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  background: white;
}

.achievements-progress-ring span {
  font-size: 22px;
}

.achievements-progress-ring strong {
  font-size: 23px;
}

.achievements-progress-ring small,
.achievement-summary-stat small {
  color: var(--muted);
  font-weight: 800;
}

.achievement-summary-stat {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.achievement-summary-stat > span {
  font-size: 28px;
  font-weight: 900;
}

.achievement-summary-stat > strong {
  font-size: 27px;
}

.achievement-summary-stat.unlocked > span {
  color: #ffb300;
}

.achievement-summary-stat.locked > span {
  color: var(--violet);
}

.achievement-summary-stat.categories > span {
  color: #ff673e;
}

.achievements-summary-fora {
  align-self: end;
  width: 155px;
  max-height: 168px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 20px rgba(65, 66, 255, 0.2));
}

.achievement-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 12px;
}

.achievement-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f3f5fc;
  color: #3b4771;
  font-weight: 900;
}

.achievement-tabs button:hover,
.achievement-tabs button.active {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 12px 26px rgba(65, 66, 255, 0.2);
}

.achievement-groups {
  display: grid;
  gap: 22px;
}

.achievement-group {
  display: grid;
  gap: 14px;
}

.achievement-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.achievement-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
}

.achievement-group h3::before {
  font-size: 23px;
}

.achievement-group-workouts h3::before {
  content: "⌁";
  color: var(--blue);
}

.achievement-group-streaks h3::before {
  content: "♨";
  color: #ff6538;
}

.achievement-group-time h3::before {
  content: "◷";
  color: #16bfc5;
}

.achievement-group-goals h3::before {
  content: "◎";
  color: #dc42bf;
}

.achievement-group > header span {
  color: var(--muted);
  font-weight: 800;
}

.achievement-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.achievement-card {
  position: relative;
  display: grid;
  min-height: 204px;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 14px 10px;
  border: 1px solid rgba(43, 93, 255, 0.14);
  border-radius: 18px;
  background: white;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.achievement-card.unlocked:hover {
  transform: translateY(-3px);
}

.achievement-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.achievement-card.locked {
  border-color: #dce1ec;
  background: linear-gradient(180deg, #fbfcfe, #f4f5f8);
  color: #8991a5;
}

.achievement-card.locked .achievement-card-status {
  background: #e2e5ec;
  color: #7c8498;
}

.achievement-badge {
  width: 102px;
  height: 102px;
  background-image: url("assets/achievement-badges-v2.png");
  background-image: image-set(url("assets/achievement-badges-v2.webp") type("image/webp"), url("assets/achievement-badges-v2.png") type("image/png"));
  background-size: 400% 300%;
  background-position: var(--badge-position-x) var(--badge-position-y);
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 12px rgba(43, 93, 255, 0.2));
}

.achievement-group-workouts .achievement-card.unlocked {
  background: linear-gradient(180deg, rgba(66, 91, 255, 0.09), white 68%);
  box-shadow: 0 14px 30px rgba(65, 66, 255, 0.12);
}

.achievement-group-streaks .achievement-card.unlocked {
  background: linear-gradient(180deg, rgba(255, 103, 55, 0.1), white 68%);
  box-shadow: 0 14px 30px rgba(255, 94, 47, 0.12);
}

.achievement-group-time .achievement-card.unlocked {
  background: linear-gradient(180deg, rgba(42, 213, 208, 0.1), white 68%);
  box-shadow: 0 14px 30px rgba(22, 191, 197, 0.12);
}

.achievement-group-goals .achievement-card.unlocked {
  background: linear-gradient(180deg, rgba(232, 69, 191, 0.1), white 68%);
  box-shadow: 0 14px 30px rgba(190, 46, 176, 0.12);
}

.achievement-card.locked .achievement-badge {
  filter: grayscale(1) saturate(0.35) opacity(0.7) drop-shadow(0 7px 8px rgba(75, 82, 98, 0.14));
}

.achievement-card h4 {
  font-size: 14px;
}

.achievement-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.achievement-card.locked p {
  color: #969dad;
}

.achievements-motivation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  padding: 18px 24px;
  border: 1px solid rgba(43, 93, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(87, 224, 223, 0.22), transparent 26%),
    linear-gradient(135deg, #f3f6ff, #fbf7ff);
}

.achievements-motivation strong {
  color: var(--blue);
  font-size: 21px;
}

.achievements-motivation p {
  margin-top: 5px;
  color: var(--muted);
}

.achievements-motivation img {
  position: absolute;
  right: 22px;
  bottom: -38px;
  width: 132px;
  filter: drop-shadow(0 14px 18px rgba(65, 66, 255, 0.18));
}

.achievement-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 100;
  display: grid;
  min-width: 290px;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 22px 50px rgba(43, 46, 160, 0.34);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.achievement-toast[hidden] {
  display: none;
}

.achievement-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-toast span {
  color: rgba(255, 255, 255, 0.88);
}

.level-panel.fora-needs-level {
  animation: levelPrompt 900ms ease;
}

.fora-level-guidance {
  margin-top: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

@keyframes levelPrompt {
  0%,
  100% {
    box-shadow: var(--shadow);
  }

  50% {
    border-color: var(--sky);
    box-shadow: 0 0 0 7px rgba(32, 200, 255, 0.16), var(--shadow);
  }
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 24px;
}

.toggle-row,
.exercise-steps,
.exercise-guide,
.rep-summary {
  display: grid;
  gap: 10px;
}

.toggle-row,
.exercise-steps span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  font-weight: 800;
}

.exercise-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.position-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.position-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.position-card div {
  padding: 12px;
}

.position-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.position-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.rep-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rep-summary div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
}

.nutrition-view {
  min-height: calc(100dvh - 60px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nutrition-view[hidden] {
  display: none;
}

body.nutrition-open:not(.week-open) main > :not(.nutrition-view) {
  display: none;
}

body.nutrition-open:not(.week-open) .nutrition-view {
  display: block;
}

.nutrition-week-view[hidden] {
  display: none;
}

body.week-open main > :not(.nutrition-week-view) {
  display: none;
}

body.week-open .nutrition-week-view {
  display: block;
}

.nutrition-page-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
}

.nutrition-page-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.nutrition-back {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--muted);
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(21, 92, 255, 0.08);
  transition: transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nutrition-back:hover {
  transform: translateX(-3px);
  color: var(--blue);
  box-shadow: 0 16px 32px rgba(21, 92, 255, 0.16);
}

.nutrition-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  align-items: center;
  min-height: 285px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 40%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, #e9f2ff, #dceaff);
}

.nutrition-hero div {
  z-index: 1;
  padding: 46px 32px 46px 62px;
}

.nutrition-hero strong,
.nutrition-hero span {
  display: block;
}

.nutrition-hero strong {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

.nutrition-hero span {
  margin-top: 22px;
  color: var(--blue);
  font-size: 25px;
  font-weight: 900;
}

.nutrition-hero p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 800;
}

.nutrition-hero img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08);
  mask-image: linear-gradient(90deg, transparent 0%, black 22%);
}

.nutrition-weeks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.nutrition-week-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 18px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(21, 92, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nutrition-week-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
  box-shadow: 0 14px 30px rgba(21, 92, 255, 0.12);
}

.nutrition-week-card .calendar-icon {
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  background-color: #f1f5ff;
  box-shadow: 0 10px 24px rgba(21, 92, 255, 0.14);
}

.nutrition-week-card .calendar-icon::before {
  left: 12px;
  top: 14px;
  width: 25px;
  height: 22px;
}

.nutrition-week-card .calendar-icon::after {
  left: 16px;
  right: 16px;
  top: 11px;
  height: 8px;
}

.nutrition-week-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 93, 255, 0.42);
  box-shadow: 0 22px 42px rgba(21, 92, 255, 0.15);
}

.calendar-icon {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: var(--soft);
}

.calendar-icon::before {
  content: "";
  position: absolute;
  inset: 21px 20px 18px;
  border: 3px solid var(--blue);
  border-radius: 4px;
  background:
    radial-gradient(circle, var(--blue) 0 2px, transparent 3px) 7px 12px / 11px 10px repeat;
}

.calendar-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 17px;
  height: 10px;
  border-left: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
}

.nutrition-week-card h3 {
  margin-top: 14px;
  font-size: 27px;
  text-transform: uppercase;
}

.nutrition-week-card p {
  margin: 12px 0 30px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.week-action {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.week-action + .week-action {
  margin-top: 16px;
}

.week-action span {
  font-size: 27px;
  line-height: 1;
}

.week-menu {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), #3974ff);
  color: white;
  box-shadow: 0 14px 28px rgba(43, 93, 255, 0.22);
}

.week-products {
  border: 2px solid var(--blue);
  background: white;
  color: var(--blue);
}

.week-action:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
}

.nutrition-week-view {
  min-height: calc(100dvh - 60px);
  padding: 28px 34px 34px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.week-detail-header {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 20px;
  background: #edf4ff;
}

.week-detail-header .nutrition-back {
  position: relative;
  z-index: 2;
}

.week-breadcrumb {
  position: absolute;
  left: 102px;
  top: 45px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.week-breadcrumb strong {
  color: var(--ink);
}

.week-title-block {
  position: relative;
  z-index: 2;
  margin: 62px 0 0 0;
}

.week-title-block h2 {
  margin: 0;
  font-size: 50px;
  line-height: 1;
}

.week-title-block p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.week-header-meal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-image:
    linear-gradient(90deg, rgba(245, 249, 255, 0.14), rgba(245, 249, 255, 0) 42%),
    var(--week-hero-image);
  background-size: 100% 100%, cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.08);
}

.shopping-list-banner {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: 114px;
  padding: 20px 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: linear-gradient(135deg, #edf5ff, #dfeaff);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 34px rgba(21, 92, 255, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shopping-list-banner:hover,
.shopping-list-banner.attention {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(21, 92, 255, 0.16);
}

.shopping-list-banner.attention {
  animation: shoppingPulse 780ms ease;
}

.shopping-basket {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font-size: 38px;
}

.shopping-basket::before {
  content: "";
  width: 30px;
  height: 21px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background:
    linear-gradient(90deg, transparent 27%, var(--blue) 28% 34%, transparent 35% 65%, var(--blue) 66% 72%, transparent 73%);
}

.shopping-basket::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 26px;
  height: 13px;
  border-left: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
  transform: perspective(20px) rotateX(-24deg);
}

.shopping-list-banner strong,
.shopping-list-banner small {
  display: block;
}

.shopping-list-banner strong {
  color: var(--blue);
  font-size: 22px;
  text-transform: uppercase;
}

.shopping-list-banner small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.shopping-list-banner > b {
  color: var(--blue);
  font-size: 40px;
  font-weight: 500;
}

.day-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.day-menu-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(21, 92, 255, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.day-menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 20px 38px rgba(21, 92, 255, 0.14);
}

.day-menu-card.selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(245, 249, 255, 0.98), rgba(227, 238, 255, 0.96));
  box-shadow: 0 20px 38px rgba(21, 92, 255, 0.14);
}

.day-card-calendar {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(21, 92, 255, 0.1);
}

.day-meal-image {
  width: 100%;
  height: 170px;
  border-radius: 13px;
  background-image: var(--week-sprite);
  background-size: 400% 200%;
  background-position: var(--meal-position);
  background-repeat: no-repeat;
}

.day-menu-card h3 {
  margin: 16px 0 0 2px;
  font-size: 21px;
  text-transform: uppercase;
}

.day-menu-card p {
  margin: 6px 0 0 2px;
  color: var(--muted);
  font-weight: 900;
}

.nutrition-content-dialog {
  width: min(920px, calc(100vw - 28px));
}

.nutrition-content-dialog form {
  max-height: min(90dvh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--violet) var(--soft);
}

.nutrition-content-dialog .dialog-close {
  position: sticky;
  z-index: 4;
  top: 0;
  justify-self: end;
  margin-bottom: -46px;
}

.daily-macro-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.daily-macro-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
}

.daily-macro-summary strong {
  font-size: 24px;
  line-height: 1;
}

.daily-macro-summary span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.84;
}

.daily-meals {
  display: grid;
  gap: 14px;
}

.day-plan-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.daily-meal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.daily-meal-heading {
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.daily-meal-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-meal-heading h4 {
  margin-top: 5px;
  font-size: 20px;
}

.daily-meal-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.recipe-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px 18px;
}

.recipe-columns section {
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.recipe-columns strong {
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
}

.recipe-columns ul,
.recipe-columns ol,
.product-category ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-category {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.product-category h4 {
  color: var(--blue);
  font-size: 18px;
}

.product-category li::marker {
  color: var(--violet);
}

.products-placeholder {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@keyframes shoppingPulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.8);
  }

  50% {
    border-color: var(--blue);
    box-shadow: 0 0 0 6px rgba(43, 93, 255, 0.12), 0 20px 38px rgba(21, 92, 255, 0.16);
  }
}

.rep-summary strong {
  font-size: 24px;
  line-height: 1;
}

.rep-summary span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.84;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes waveLeft {
  0%,
  100% {
    transform: rotate(48deg);
  }

  50% {
    transform: rotate(58deg);
  }
}

@keyframes waveRight {
  0%,
  100% {
    transform: rotate(-38deg);
  }

  50% {
    transform: rotate(-48deg);
  }
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-13px) rotate(2deg);
  }
}

@keyframes mascotTravel {
  0%,
  100% {
    transform: translate(0, 0) rotate(-1deg);
  }

  25% {
    transform: translate(-24px, -14px) rotate(2deg);
  }

  50% {
    transform: translate(-50px, 8px) rotate(-3deg);
  }

  75% {
    transform: translate(-18px, 18px) rotate(2deg);
  }
}

@keyframes mascotWave {
  0%,
  100% {
    transform: rotate(-34deg);
  }

  50% {
    transform: rotate(-58deg);
  }
}

@keyframes coachWave {
  0%,
  100% {
    transform: rotate(-38deg);
  }

  50% {
    transform: rotate(-70deg);
  }
}

@keyframes coachGreet {
  0%,
  100% {
    transform: translateY(-4px) rotate(-0.6deg) scale(1.02);
  }

  50% {
    transform: translateY(-10px) rotate(0.8deg) scale(1.04);
  }
}

@keyframes nutritionGreet {
  0%,
  100% {
    transform: translateY(-3px) rotate(-0.4deg) scale(1.025);
  }

  50% {
    transform: translateY(-9px) rotate(0.5deg) scale(1.055);
  }
}

@keyframes trailPulse {
  0%,
  100% {
    opacity: 0.54;
    transform: rotate(-14deg) scaleX(0.88);
  }

  50% {
    opacity: 0.94;
    transform: rotate(-14deg) scaleX(1.16);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.66;
    transform: scaleX(0.86);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.12);
  }
}

.premium-badge,
.premium-preview-badge,
.premium-inline-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid rgba(139, 85, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(43, 93, 255, 0.12), rgba(139, 85, 255, 0.15));
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.premium-preview-badge {
  border-color: rgba(87, 224, 223, 0.34);
  background: rgba(255, 255, 255, 0.68);
  color: #0c5d88;
}

.premium-inline-badge {
  min-height: 22px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--violet);
  font-size: 10px;
}

.premium-locked-card {
  position: relative;
  opacity: 0.76;
}

.premium-locked-card:hover {
  opacity: 0.9;
}

.workout-card.premium-locked-card,
.nutrition-week-card.premium-locked-card {
  border-color: rgba(139, 85, 255, 0.28);
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.78), rgba(255, 255, 255, 0.86));
}

.nutrition-premium-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  min-height: 20px;
  padding: 3px 7px;
  font-size: 9px;
  box-shadow: 0 8px 18px rgba(31, 75, 190, 0.12);
}

.week-action .premium-inline-badge {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1;
}

.premium-action-locked {
  border-color: rgba(139, 85, 255, 0.34) !important;
  background: linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(246, 238, 255, 0.96)) !important;
  color: var(--violet) !important;
}

.week-action.premium-action-locked {
  box-shadow: none;
}

.premium-card-button {
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
  color: white !important;
}

.upgrade-dialog {
  width: min(620px, calc(100vw - 28px));
}

.upgrade-dialog form {
  gap: 18px;
  overflow: hidden;
}

.upgrade-dialog h3 {
  max-width: calc(100% - 48px);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
}

.premium-lock-message {
  padding: 12px 14px;
  border: 1px solid rgba(139, 85, 255, 0.22);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink) !important;
  font-weight: 900;
}

.premium-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.premium-benefits span {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(96, 139, 255, 0.22);
  border-radius: 12px;
  background: rgba(238, 245, 255, 0.82);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.premium-unlock-button {
  width: 100%;
  min-height: 52px;
}

.premium-unlock-button:disabled {
  cursor: default;
  filter: grayscale(0.12);
  opacity: 0.72;
}

.premium-mock-note {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sidebar {
    display: none;
  }

  main {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
    padding: 22px 18px 100px;
  }

  .hero,
  .content-grid,
  .shop-band,
  .program-grid,
  .level-grid,
  .zone-grid,
  .trainer-grid,
  .sound-grid,
  .nutrition-hero,
  .nutrition-weeks,
  .day-menu-grid {
    grid-template-columns: 1fr;
  }

  .exercise-guide,
  .rep-summary,
  .daily-macro-summary,
  .recipe-columns,
  .product-categories {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .motion-visual {
    min-height: 330px;
  }

  .bottom-nav {
    display: grid;
  }

  .nutrition-view {
    min-height: auto;
    padding: 20px;
  }

  .nutrition-week-view {
    min-height: auto;
    padding: 20px;
  }

  .nutrition-hero div {
    padding: 34px 26px 18px;
  }

  .nutrition-hero img {
    height: 260px;
    mask-image: linear-gradient(180deg, transparent 0%, black 20%);
  }

  .week-header-meal {
    width: 100%;
    opacity: 1;
  }

  .achievements-screen {
    padding: 32px 24px;
  }

  .achievements-summary {
    grid-template-columns: 180px repeat(3, minmax(100px, 1fr));
  }

  .achievements-summary-fora {
    display: none;
  }

  .achievement-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  .header-brand {
    display: contents;
  }

  .header-brand img {
    order: 1;
    width: min(186px, calc(100% - 84px));
    max-width: calc(100% - 84px);
    min-width: 0;
  }

  .header-brand > div {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .language-switcher {
    order: 2;
    z-index: 50;
    max-width: 76px;
    margin-left: auto;
  }

  .language-button {
    min-width: 62px;
    min-height: 40px;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .language-menu {
    right: 0;
    z-index: 80;
    max-width: calc(100vw - 32px);
  }

  .hero-title-desktop {
    display: none;
  }

  .hero-title-mobile {
    display: block;
    max-width: 100%;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero,
  .panel,
  .content-grid,
  .nutrition-view,
  .nutrition-week-view {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero {
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
  }

  .hero-copy,
  .hero p,
  .hero h2 {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-actions .primary-action,
  .hero-actions .ghost-action {
    min-width: 0;
    white-space: normal;
  }
}
@media (max-width: 640px) {
  .premium-benefits {
    grid-template-columns: 1fr;
  }

  .premium-badge,
  .premium-preview-badge,
  .premium-inline-badge {
    white-space: normal;
  }

  .upgrade-dialog form {
    max-height: min(88dvh, 760px);
    overflow-y: auto;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 40px;
  }

  .topbar {
    align-items: center;
  }

  .language-button {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .language-menu {
    min-width: 138px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .ghost-action {
    width: 100%;
  }

  .workout-card {
    align-items: stretch;
    display: grid;
    grid-template-columns: 52px 1fr;
  }

  .workout-card-with-guide {
    grid-template-columns: 52px 1fr;
  }

  .workout-guide-preview {
    grid-column: 1 / -1;
  }

  .workout-card button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .wheelchair-figure {
    right: 0;
    width: 224px;
    height: 215px;
  }

  .trainer-preview {
    right: 112px;
    bottom: 10px;
    width: 190px;
  }

  .ai-mascot {
    right: -8px;
    top: 20px;
    width: 202px;
    height: 238px;
  }

  .pulse-card-bottom {
    left: 0;
  }

  .trainer-preview {
    left: 0;
    right: auto;
    bottom: 4px;
    width: 178px;
  }

  .ai-mascot {
    right: -18px;
    top: 4px;
    width: 175px;
    height: 205px;
  }

  .fora-speech-bubble {
    left: 0;
    bottom: 16px;
  }

  .fora-mood-options,
  .fora-progress-grid {
    grid-template-columns: 1fr;
  }

  .progress-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .change-goal-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .weekly-goal-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 16px;
  }

  .weekly-goal-icon {
    width: 44px;
    height: 44px;
    font-size: 27px;
  }

  .weekly-goal-card strong {
    font-size: 18px;
  }

  .weekly-goal-picker {
    grid-template-columns: 1fr;
  }

  .weekly-goal-celebration {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 110px;
    padding: 12px;
  }

  .weekly-goal-celebration img {
    width: 92px;
    max-height: 100px;
  }

  .weekly-goal-celebration strong {
    font-size: 18px;
  }

  .progress-ring {
    width: 190px;
    height: 190px;
  }

  .progress-ring span {
    width: 150px;
    height: 150px;
  }

  .weekly-stats > div {
    align-items: flex-start;
    padding: 0 8px;
  }

  .weekly-stat-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .reset-week-actions {
    grid-template-columns: 1fr;
  }

  .achievements-dialog,
  .achievements-screen {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .achievements-screen {
    gap: 20px;
    padding: 28px 18px 36px;
  }

  .achievements-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .achievements-header {
    padding-right: 46px;
  }

  .achievements-header h2 {
    font-size: 34px;
    white-space: normal;
  }

  .achievements-header p {
    font-size: 15px;
  }

  .achievements-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px 14px;
  }

  .achievements-progress-ring {
    grid-column: 1 / -1;
    width: 170px;
    height: 170px;
    justify-self: center;
  }

  .achievement-summary-stat > span {
    font-size: 27px;
  }

  .achievement-summary-stat > strong {
    font-size: 25px;
  }

  .achievement-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .achievement-tabs button {
    flex: 0 0 120px;
  }

  .achievement-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-card {
    min-height: 225px;
  }

  .achievements-motivation {
    grid-template-columns: minmax(0, 1fr) 100px;
    padding: 20px;
  }

  .achievements-motivation img {
    right: 4px;
    width: 115px;
  }

  .achievement-toast {
    right: 14px;
    bottom: 82px;
    left: 14px;
    min-width: 0;
  }

  .bottom-nav a {
    font-size: 11px;
  }

  .nutrition-page-heading {
    gap: 18px;
    margin-bottom: 22px;
  }

  .nutrition-hero strong {
    font-size: 34px;
  }

  .nutrition-hero span {
    font-size: 21px;
  }

  .week-detail-header {
    min-height: 220px;
  }

  .week-breadcrumb {
    left: 68px;
    font-size: 14px;
  }

  .week-title-block {
    margin-top: 60px;
  }

  .week-title-block h2 {
    font-size: 42px;
  }

  .week-header-meal {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .shopping-list-banner {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .shopping-basket {
    width: 56px;
    height: 56px;
  }
}


.legal-dialog {
  width: min(720px, calc(100vw - 28px));
  max-width: 100%;
}

.legal-dialog::backdrop {
  background: rgba(13, 23, 56, 0.72);
}

.legal-dialog form {
  max-height: min(88dvh, 760px);
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
}

.legal-list-view,
.legal-document-view {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.legal-list-view[hidden],
.legal-document-view[hidden] {
  display: none;
}

.legal-document-list {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.legal-document-list button,
.legal-back {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(21, 92, 255, 0.08), rgba(118, 66, 255, 0.1));
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.legal-document-list button {
  padding: 16px 18px;
  border-radius: 16px;
}

.legal-back {
  justify-self: start;
  width: auto;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
}

.legal-document-view h3,
.legal-list-view h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.legal-updated {
  margin-top: -6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.legal-document-body {
  max-height: min(52dvh, 440px);
  overflow-y: auto;
  padding-right: 6px;
  overflow-wrap: anywhere;
}

.legal-document-body p {
  margin: 0 0 14px;
}

.legal-close-action {
  justify-self: end;
  min-width: 120px;
}

@media (max-width: 640px) {
  .legal-dialog {
    width: min(100%, calc(100vw - 18px));
  }

  .legal-dialog form {
    max-height: 86dvh;
    padding: 20px;
    border-radius: 18px;
  }

  .legal-document-list button {
    padding: 14px 15px;
  }

  .legal-document-body {
    max-height: 48dvh;
  }

  .bottom-nav {
    width: min(640px, calc(100% - 16px));
  }

  .bottom-nav a {
    padding: 0 3px;
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  main {
    padding: 14px 12px calc(84px + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .header-brand img {
    width: min(164px, calc(100% - 76px));
  }

  .hero-title-mobile {
    font-size: clamp(24px, 7.4vw, 30px);
    line-height: 1.08;
  }

  .hero,
  .panel,
  .nutrition-view,
  .nutrition-week-view {
    border-radius: 16px;
  }

  .hero {
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .hero h2 {
    margin-top: 10px;
    font-size: clamp(25px, 8vw, 30px);
    line-height: 1.06;
  }

  .hero p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 14px;
  }

  .panel,
  .nutrition-view,
  .nutrition-week-view {
    padding: 15px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .section-heading h3,
  .legal-document-view h3,
  .legal-list-view h3 {
    font-size: clamp(22px, 6.8vw, 28px);
    line-height: 1.12;
  }

  .level-grid,
  .zone-grid,
  .trainer-grid,
  .program-grid,
  .nutrition-weeks,
  .day-menu-grid,
  .content-grid {
    gap: 12px;
  }

  .level-card,
  .trainer-card,
  .program-card,
  .day-menu-card,
  .nutrition-week-card,
  .mascot-card,
  .weekly-goal-card {
    min-height: auto;
    padding: 14px;
  }

  .level-card strong,
  .trainer-card strong,
  .program-card strong,
  .pricing-card strong {
    font-size: clamp(19px, 5.5vw, 22px);
    line-height: 1.12;
  }

  .trainer-card {
    gap: 10px;
  }

  .coach-photo-wrap,
  .nutrition-photo-wrap {
    height: 180px;
    min-height: 0;
  }

  .zone-card {
    min-height: 48px;
    padding: 0 12px;
  }

  .workout-card {
    gap: 10px;
    padding: 12px;
  }

  .workout-card h4 {
    font-size: 16px;
    line-height: 1.2;
  }

  .workout-card p,
  .program-card p,
  .day-menu-card p,
  .nutrition-week-card p {
    font-size: 13px;
    line-height: 1.42;
  }

  .motion-visual {
    min-height: 270px;
  }

  .app-dialog form,
  .nutrition-content-dialog form,
  .legal-dialog form,
  .reset-week-dialog form,
  .upgrade-dialog form {
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
  }

  .nutrition-page-heading {
    gap: 12px;
    margin-bottom: 16px;
  }

  .nutrition-page-heading h2,
  .week-title-block h2 {
    font-size: clamp(31px, 9vw, 38px);
    line-height: 1.04;
  }

  .nutrition-hero div {
    padding: 24px 20px 14px;
  }

  .nutrition-hero strong {
    font-size: clamp(28px, 8vw, 34px);
  }

  .nutrition-hero span {
    margin-top: 12px;
    font-size: 18px;
  }

  .nutrition-hero p {
    font-size: 15px;
    line-height: 1.45;
  }

  .nutrition-week-card h3,
  .day-menu-card h3 {
    font-size: 20px;
  }

  .week-detail-header {
    min-height: 200px;
    padding: 18px;
  }

  .shopping-list-banner {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .shopping-list-banner .text-button {
    grid-column: 1 / -1;
  }

  .achievements-screen {
    gap: 16px;
    padding: 22px 14px 28px;
  }

  .achievements-header h2 {
    font-size: clamp(27px, 8vw, 31px);
    line-height: 1.08;
  }

  .achievements-summary {
    gap: 10px;
    padding: 14px 10px;
  }

  .achievements-progress-ring {
    width: 146px;
    height: 146px;
  }

  .achievement-card-grid {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    min-height: auto;
    grid-template-columns: 78px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    padding: 14px;
    text-align: left;
  }

  .achievement-card-status {
    top: 8px;
    right: 8px;
  }

  .achievement-badge {
    grid-row: span 2;
    width: 72px;
    height: 72px;
  }

  .achievement-tabs button {
    flex-basis: 104px;
    min-height: 40px;
  }

  .bottom-nav {
    width: min(430px, calc(100% - 10px));
    gap: 3px;
    padding: 5px;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-height: 46px;
    padding: 4px 3px;
    font-size: 11px;
  }

  .bottom-nav-icon {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .bottom-nav a,
  .bottom-nav button {
    font-size: 10px;
  }

  .bottom-nav-icon {
    font-size: 15px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .achievements-summary {
    grid-template-columns: 1fr;
  }

  .achievement-summary-stat {
    min-height: 76px;
  }
}
