
/* Ensure JavaScript-controlled loading/empty states actually disappear.
   Author display rules such as .plan-placeholder { display: flex; } can
   otherwise override the browser's default [hidden] styling. */
[hidden] {
  display: none !important;
}
:root {
  --charcoal: #1e2329;
  --charcoal-soft: #2a313a;
  --blue: #2d7ff9;
  --blue-dark: #1f63c7;
  --soft-blue: #eef5ff;
  --background: #f4f7fb;
  --white: #ffffff;
  --text: #1e2329;
  --muted: #667085;
  --border: #e4e7ec;
  --success: #23845b;
  --warning: #9a6700;
  --shadow: 0 12px 36px rgba(20, 35, 60, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
a {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(45, 127, 249, 0.24);
  font-size: 22px;
}

.brand-name {
  color: var(--blue);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.35px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-dark);
  background: var(--soft-blue);
}

.nav-link.check-in-link {
  color: var(--white);
  background: var(--blue);
}

.nav-link.check-in-link:hover {
  background: var(--blue-dark);
}

.account-area {
  display: flex;
  align-items: center;
  gap: 11px;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--charcoal);
  font-weight: 850;
}

.logout-button {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}

.logout-button:hover {
  background: #f8fafc;
}

.page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.loading-state {
  padding: 100px 20px;
  text-align: center;
}

.loading-mark {
  margin-bottom: 16px;
  font-size: 44px;
  animation: forgePulse 1.2s ease-in-out infinite;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 38px;
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(
      circle at top right,
      rgba(108, 171, 255, 0.55),
      transparent 36%
    ),
    linear-gradient(135deg, #17202b, #245ea8 58%, #2d7ff9);
  box-shadow: 0 24px 60px rgba(30, 65, 115, 0.2);
}



.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -1.8px;
}

.hero-message {
  position: relative;
  z-index: 1;
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 22px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.card-kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.card-description {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: #fff7da;
  font-size: 12px;
  font-weight: 800;
}

.coach-message {
  border-left: 5px solid var(--blue);
}

.coach-message blockquote {
  margin: 0;
  color: #3f4c5d;
  font-size: 19px;
  line-height: 1.7;
}

.plan-placeholder {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px dashed #b8c7dc;
  border-radius: 15px;
  background: #fafcff;
}

.placeholder-icon svg { width: 24px; height: 24px; display: block; }

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 24px;
}

.plan-placeholder h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.plan-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 11px;
  color: var(--white);
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.action-link:hover {
  background: var(--blue-dark);
}

.action-link.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--white);
}

.action-link.secondary:hover {
  background: #f8fafc;
}

.focus-box {
  padding: 19px;
  border-radius: 15px;
  background: var(--charcoal);
  color: var(--white);
}

.focus-box h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.focus-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.profile-list {
  display: grid;
  gap: 14px;
}

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

.profile-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.profile-value {
  max-width: 62%;
  text-align: right;
  font-weight: 800;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-action {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--white);
  text-decoration: none;
  transition: 0.15s ease;
}

.quick-action:hover {
  border-color: #b9c9df;
  transform: translateY(-1px);
}

.quick-action-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.quick-action-title {
  display: block;
  font-weight: 850;
}

.quick-action-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.error-banner {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #f0b6b6;
  border-radius: 12px;
  color: #9c2f2f;
  background: #fff1f1;
}

.mobile-nav {
  display: none;
}

@keyframes forgePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

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


.workout-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.workout-overview > div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafcff;
}

.workout-meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workout-section {
  margin-top: 24px;
}

.workout-section h3 {
  margin: 0 0 13px;
  font-size: 18px;
}

.workout-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #3f4c5d;
  line-height: 1.55;
}

.exercise-list {
  display: grid;
  gap: 14px;
}

.exercise-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #ffffff;
}

.exercise-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

.exercise-prescription {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
}

.exercise-pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 800;
}

.exercise-notes,
.exercise-alternatives {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cardio-box,
.coach-note-box {
  display: grid;
  gap: 7px;
  padding: 17px;
  border-radius: 14px;
  background: #f7f9fc;
}

.coach-note-box {
  margin-top: 24px;
  border-left: 4px solid var(--blue);
}

.coach-note-box p {
  margin: 0;
  color: #3f4c5d;
  line-height: 1.6;
}

.workout-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

#workoutDayIndicator {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 650px) {
  .workout-overview {
    grid-template-columns: 1fr;
  }

  .workout-navigation {
    flex-wrap: wrap;
  }

  #workoutDayIndicator {
    width: 100%;
    order: -1;
    text-align: center;
  }
}




@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

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

  .page {
    padding-bottom: 100px;
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 40px rgba(20, 30, 50, 0.2);
    backdrop-filter: blur(12px);
  }

  .mobile-nav a {
    padding: 9px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
  }

  .mobile-nav a.active {
    color: var(--blue);
  }

  .mobile-nav span {
    display: block;
    margin-bottom: 3px;
    font-size: 19px;
  }
}

@media (max-width: 650px) {
  .topbar {
    min-height: 66px;
    padding: 0 16px;
  }

  .member-chip {
    display: none;
  }

  .page {
    width: min(100% - 24px, 1240px);
    padding-top: 20px;
  }

  .hero {
    padding: 28px 23px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-message {
    font-size: 16px;
  }

  .card {
    padding: 21px;
  }

  .card-header {
    flex-direction: column;
  }

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

  .profile-value {
    max-width: 58%;
  }
}
	  .today-workout-progress {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.today-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.today-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.today-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.25s ease;
}

.today-workout-action {
  width: 100%;
  margin-top: 20px;
}

.workout-complete-card {
  border-color: #a9ddc7;
  background: #f7fffb;
}

.workout-complete-card .status-badge {
  color: var(--success);
  background: #e8f8f0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 15px;
  border-radius: 11px;
  background: var(--blue);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  background: var(--blue-dark);
}

@media (max-width: 650px) {
  .today-progress-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.journey-weekly-card{background:linear-gradient(135deg,#fff,#f2f7ff)}.journey-weekly-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:16px}.journey-weekly-grid div{padding:12px 8px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:center}.journey-weekly-grid strong,.journey-weekly-grid span{display:block}.journey-weekly-grid strong{font-size:23px;color:var(--charcoal)}.journey-weekly-grid span{margin-top:3px;color:var(--muted);font-size:11px;font-weight:800}
