:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-soft: #121212;
  --bg-panel: rgba(25, 25, 25, 0.6);
  --accent: #CCFF00; /* Electric lime */
  --accent-hover: #b3e600;
  --accent-soft: rgba(204, 255, 0, 0.1);
  --accent-2: #FF4500;
  --accent-3: #00E5FF;
  --text: #FFFFFF;
  --muted: #A0A0A0;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 0 20px rgba(204, 255, 0, 0.2);
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.body {
  position: relative;
  display: flex;
  flex-direction: column;
}

.body--centered main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

/* Subtle background glow */
.app-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 0%, rgba(204, 255, 0, 0.05), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(0, 229, 255, 0.05), transparent 40%);
  z-index: -1;
}

.shell {
  width: 100%;
}

.shell__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.shell--header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.shell--header .shell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.shell--footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.shell--footer .shell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: 14px;
  color: var(--muted);
}

.shell--top {
  padding-top: 48px;
  padding-bottom: 80px;
}

/* Typography & Links */
a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo__mark {
  color: var(--accent);
}

.logo__accent {
  color: var(--text);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

.nav--ghost {
  background: transparent;
  border: none;
}

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__link--active {
  color: var(--bg);
  background: var(--text);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(204, 255, 0, 0.15);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 24px;
}

.hero__content {
  max-width: 600px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title-gradient {
  color: transparent;
  background: linear-gradient(90deg, #FFFFFF, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-pill {
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-pill__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.meta-pill__label {
  font-size: 12px;
  color: var(--muted);
}

/* Hero Visual / Card Spotlight */
.hero__visual {
  display: flex;
  justify-content: flex-end;
  perspective: 1000px;
}

.card-spotlight {
  width: 100%;
  max-width: 400px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.card-spotlight:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.card-spotlight__header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.dot--red { background: #FF5F56; }
.dot--yellow { background: #FFBD2E; }
.dot--green { background: #27C93F; }

.card-spotlight__body {
  padding: 24px;
}

/* Stats */
.stat-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat--horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.stat__value {
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.stat__tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.stat__tag--beginner {
  background: rgba(0, 229, 255, 0.1);
  color: #00E5FF;
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--muted);
}

.badge--intensity {
  background: rgba(255, 69, 0, 0.1);
  color: #FF4500;
  border-color: rgba(255, 69, 0, 0.2);
}

.badge--soft {
  background: rgba(255, 255, 255, 0.05);
}

.programs-summary__badge {
  gap: 0.35em;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Progress */
.progress {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 12px;
}

.progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--accent);
}

/* Mini Calendar */
.mini-calendar {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.mini-calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.mini-calendar__counter {
  color: var(--accent);
}

.mini-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.day--done {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

/* Sections */
.section {
  padding: 60px 24px;
}

.section__header {
  margin-bottom: 40px;
  max-width: 600px;
}

.section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 100%;
  gap: 24px;
  flex-wrap: wrap;
}

.section__title {
  font-size: 32px;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 16px;
  color: var(--muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-panel);
  border-color: var(--border-strong);
  transform: translateY(-5px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.feature-card__icon--purple { background: linear-gradient(135deg, #B92B27, #1565C0); }
.feature-card__icon--blue { background: linear-gradient(135deg, #00C9FF, #92FE9D); }
.feature-card__icon--green { background: linear-gradient(135deg, var(--accent), #22C55E); }

.feature-card__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 15px;
  color: var(--muted);
}

/* CTA */
.section--cta {
  padding: 80px 24px;
}

.cta {
  padding: 48px;
  background: linear-gradient(135deg, #1A1A1A, #000000);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--muted); font-size: 16px; margin: 0; }

/* Auth Forms */
.auth {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.auth-panel__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
  flex: 1;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.auth-tab--active {
  color: var(--bg);
  background: var(--text);
}

.auth-panel__body {
  padding: 32px;
}

.auth-form {
  display: none;
}

.auth-form--active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.auth-form__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}

.auth-form__subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.4;
}

.field {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

.field--inline {
  border: none;
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
}

.field--inline .field__label {
  margin-bottom: 10px;
}

.field--inline .pill-select {
  width: 100%;
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.field__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
  padding-right: 40px;
}

/* Pill Selects (Radio alternatives) */
.pill-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-select--stacked {
  flex-direction: column;
}

.pill-select__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-select__option:hover {
  border-color: var(--muted);
}

.pill-select__option input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.pill-select__chip {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.pill-select__chip:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pill-select__chip--active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.auth-form__footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form__footer .btn {
  width: 100%;
}

.auth-form__hint {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.link-inline {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-inline:hover {
  color: var(--accent-hover);
}

.auth-message {
  font-size: 14px;
  color: var(--accent-2);
  margin-top: 16px;
  text-align: center;
  min-height: 20px;
}

/* Programs Layout */
.programs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.filters {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.filters__group {
  margin-bottom: 24px;
}

.filters__group:last-child {
  margin-bottom: 0;
}

.filters__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.slider-row {
  margin-bottom: 12px;
}

.slider-row__label {
  font-size: 14px;
  color: var(--muted);
}

.slider {
  width: 100%;
  accent-color: var(--accent);
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.programs-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* Program Card */
.program-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.program-card:hover {
  background: var(--bg-panel);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.program-card__chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.program-card__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.program-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.program-card__description {
  font-size: 14px;
  color: #D1D5DB;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.program-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.program-card__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.program-card__footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.program-card__choice-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.program-card__remove {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.08s ease;
}

.program-card__remove:hover {
  background: #b91c1c;
}

.profile-progress__actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.btn--progress-home {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-3);
  background: transparent;
  color: var(--accent-3);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--progress-home:hover {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-3);
}

.btn--progress-gym {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-2);
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--progress-gym:hover {
  background: rgba(255, 69, 0, 0.15);
  color: var(--accent-2);
}

/* Profile */
.profile-empty {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.profile-empty__card {
  max-width: 500px;
  text-align: center;
  padding: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.profile-empty__card h2 { margin-bottom: 16px; }
.profile-empty__card p { color: var(--muted); margin-bottom: 32px; }

.profile-empty__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.profile-card__actions {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

.profile__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.profile-card {
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.profile-card__title {
  font-size: 20px;
  margin-bottom: 4px;
}

.profile-card__subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.profile-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-meta__row:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}

.profile-meta__row dt {
  font-size: 14px;
  color: var(--muted);
}

.profile-meta__row dd {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  text-align: right;
  max-width: 58%;
  line-height: 1.45;
}

.profile-progress {
  margin-top: 0;
}

.profile-card--progress .profile-card__header {
  margin-bottom: 20px;
}

.profile-progress__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.profile-progress__chips {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.profile-programs {
  margin-top: 60px;
}

.profile-programs__header {
  margin-bottom: 24px;
}

.profile-programs .programs-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* Loading skeleton */
.profile-loading__hint {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

.profile-card--skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton--avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.skeleton--line {
  height: 14px;
  width: 100%;
}

.skeleton--line.skeleton--lg {
  height: 20px;
  width: 70%;
}

.skeleton--line.skeleton--short {
  width: 45%;
}

.skeleton--btn {
  height: 44px;
  width: 55%;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.profile-error {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.profile-error__text {
  color: var(--muted);
  margin: 0 0 20px;
}

/* Questionnaire */
.questionnaire {
  max-width: 800px;
  margin: 0 auto;
}

.questionnaire__form {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.questionnaire__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.questionnaire__group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.questionnaire__title {
  font-size: 18px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.questionnaire__results {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.questionnaire__results .profile-card > .profile-card__title {
  margin: 0 0 10px;
}

.questionnaire__results .profile-card > .profile-card__subtitle {
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 52ch;
}

.questionnaire__results .profile-card > .profile-meta {
  margin-top: 4px;
}

.profile-card--programs {
  padding: 32px;
}

.programs-grid--questionnaire {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.programs-grid--questionnaire .program-card {
  width: 100%;
  max-width: none;
  padding: 28px;
}

.program-card__footer--questionnaire {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
}

.program-card__footer--questionnaire .program-card__badge {
  padding: 8px 12px;
  line-height: 1.4;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 44px;
}

/* ========== Адаптация: планшеты и ниже ========== */
@media (max-width: 1024px) {
  .shell__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .hero__content {
    max-width: 100%;
  }

  .section {
    padding: 48px 20px;
  }

  .section--cta {
    padding: 60px 20px;
  }

  .cta {
    padding: 32px 24px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .programs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filters {
    position: static;
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .profile__top {
    grid-template-columns: 1fr;
  }

  .questionnaire__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .questionnaire__results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .shell--header .shell__inner {
    height: 64px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav__link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    text-align: center;
    padding: 40px 16px;
    gap: 32px;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero__actions .btn--lg {
    min-height: 48px;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__visual {
    justify-content: center;
  }

  .card-spotlight {
    max-width: 100%;
  }

  .section {
    padding: 40px 16px;
  }

  .section__header--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section__title {
    font-size: 26px;
  }

  .section__subtitle {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  .section--cta {
    padding: 40px 16px;
  }

  .cta {
    padding: 24px 16px;
  }

  .auth {
    padding: 24px 0;
  }

  .auth-panel {
    max-width: 100%;
    margin: 0 16px;
  }

  .auth-panel__body {
    padding: 24px 20px;
  }

  .auth-form__title {
    font-size: 22px;
  }

  .field__input {
    padding: 12px 14px;
    font-size: 16px; /* предотвращает зум на iOS при фокусе */
  }

  .questionnaire__form {
    padding: 24px 20px;
  }

  .questionnaire__group {
    gap: 16px;
  }

  .profile-meta__row dd {
    max-width: 55%;
    font-size: 14px;
  }

  .profile-progress__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--progress-home,
  .btn--progress-gym {
    min-height: 44px;
  }

  .program-card__footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .program-card__remove {
    min-height: 44px;
    padding: 10px 18px;
  }

  .shell--footer .shell__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .shell__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell--header .shell__inner {
    height: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    gap: 4px;
  }

  .nav__link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 28px 16px;
    gap: 24px;
  }

  .hero__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero__subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .eyebrow {
    font-size: 11px;
    padding: 5px 10px;
  }

  .meta-pill {
    padding: 10px 12px;
  }

  .meta-pill__value {
    font-size: 14px;
  }

  .section {
    padding: 32px 16px;
  }

  .section__title {
    font-size: 22px;
  }

  .section__subtitle {
    font-size: 14px;
  }

  .btn--lg {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 48px;
  }

  .auth-panel {
    margin: 0 12px;
    border-radius: var(--radius-md);
  }

  .auth-panel__body {
    padding: 20px 16px;
  }

  .auth-tab {
    padding: 12px;
    font-size: 14px;
  }

  .auth-form__title {
    font-size: 20px;
  }

  .auth-form__subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .field {
    margin-bottom: 16px;
  }

  .field--inline {
    margin-bottom: 16px;
  }

  .pill-select {
    flex-direction: column;
  }

  .pill-select__option {
    width: 100%;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .program-card {
    padding: 18px;
  }

  .program-card__title {
    font-size: 16px;
  }

  .questionnaire__form {
    padding: 20px 16px;
  }

  .questionnaire__title {
    font-size: 16px;
  }

  .profile-empty__card {
    padding: 24px 20px;
  }

  .profile-card {
    padding: 18px;
  }

  .profile-meta__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profile-meta__row dd {
    max-width: 100%;
    text-align: left;
  }

  .profile-meta__row:last-child {
    padding-bottom: 24px;
  }

  .profile-card__actions {
    margin-top: 28px;
    padding-top: 24px;
  }

  .shell--footer .shell__inner {
    padding: 16px;
  }
}

/* Очень узкие экраны (маленькие смартфоны) */
@media (max-width: 360px) {
  .shell__inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .auth-panel {
    margin: 0 8px;
  }

  .auth-panel__body {
    padding: 16px 12px;
  }
}

/* Nutrition calendar */
.nutrition-calendar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nutrition-calendar__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nutrition-calendar__date-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.nutrition-calendar__date {
  max-width: 220px;
}

.nutrition-calendar__label {
  font-size: 14px;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.nutrition-calendar__notice {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nutrition-calendar__notice--error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.nutrition-calendar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nutrition-calendar__grid .nutrition-meals {
  grid-column: 1 / -1;
}

.meal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meal-form__macros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.macro-bar__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.macro-bar__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.macro-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c5cff, #3dd6c6);
  transition: width 0.3s ease;
}

.macro-bar__fill--over {
  background: linear-gradient(90deg, #ff6b6b, #ffb347);
}

.meals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meal-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meal-item__title {
  font-weight: 600;
  margin: 0 0 4px;
}

.meal-item__meta {
  font-size: 13px;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.meal-item__delete {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255, 120, 120, 0.9);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .nutrition-calendar__grid {
    grid-template-columns: 1fr;
  }
}

/* Classic month calendar */
.calendar-month-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-month-panel__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.calendar-month-panel__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn--icon {
  min-width: 40px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 1.25rem;
  line-height: 1;
}

.classic-calendar {
  padding: 16px !important;
}

.classic-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.classic-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.classic-calendar__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  font: inherit;
}

.classic-calendar__day:hover:not(:disabled) {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-1px);
}

.classic-calendar__day--outside {
  opacity: 0.35;
  cursor: default;
}

.classic-calendar__day--today {
  border-color: rgba(61, 214, 198, 0.6);
  box-shadow: inset 0 0 0 1px rgba(61, 214, 198, 0.25);
}

.classic-calendar__day--selected {
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.2);
}

.classic-calendar__day--ok {
  background: rgba(61, 214, 198, 0.12);
}

.classic-calendar__day--partial {
  background: rgba(255, 179, 71, 0.12);
}

.classic-calendar__day--over {
  background: rgba(255, 107, 107, 0.12);
}

.classic-calendar__num {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.classic-calendar__kcal {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.classic-calendar__meals {
  font-size: 10px;
  color: var(--text-muted, rgba(255, 255, 255, 0.5));
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}

.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.calendar-legend__dot--ok {
  background: #3dd6c6;
}

.calendar-legend__dot--partial {
  background: #ffb347;
}

.calendar-legend__dot--over {
  background: #ff6b6b;
}

.calendar-legend__dot--empty {
  background: rgba(255, 255, 255, 0.2);
}

.calendar-day-panel__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.calendar-day-panel__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: capitalize;
}

@media (max-width: 640px) {
  .classic-calendar__day {
    min-height: 56px;
    padding: 6px 2px;
  }

  .classic-calendar__kcal,
  .classic-calendar__meals {
    display: none;
  }

  .classic-calendar__day--ok,
  .classic-calendar__day--partial,
  .classic-calendar__day--over {
    position: relative;
  }

  .classic-calendar__day--ok::after,
  .classic-calendar__day--partial::after,
  .classic-calendar__day--over::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }

  .classic-calendar__day--ok::after {
    background: #3dd6c6;
  }

  .classic-calendar__day--partial::after {
    background: #ffb347;
  }

  .classic-calendar__day--over::after {
    background: #ff6b6b;
  }
}
