/* MUSCLECOUPLE GUEST JOURNEY — INTERACTIVE ONBOARDING & TOOLS PREVIEW */

.guest-identity-gateway {
  margin: 16px 14px 24px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.guest-gateway-header {
  text-align: center;
  margin-bottom: 14px;
}

.guest-gateway-kicker {
  color: #c7fa28;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.guest-gateway-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

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

.guest-role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
  user-select: none;
}

.guest-role-btn--coach {
  background: rgba(199, 250, 40, 0.12);
  border: 1px solid rgba(199, 250, 40, 0.35);
  color: #c7fa28;
}

.guest-role-btn--coach:hover,
.guest-role-btn--coach:active {
  background: #c7fa28;
  color: #050b18;
  box-shadow: 0 0 15px rgba(199, 250, 40, 0.35);
}

.guest-role-btn--student {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.guest-role-btn--student:hover,
.guest-role-btn--student:active {
  background: #38bdf8;
  color: #050b18;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.guest-role-btn--tools {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.guest-role-btn--tools:hover,
.guest-role-btn--tools:active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.guest-register-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.guest-register-link {
  color: #c7fa28;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-inline-start: 4px;
}

/* DESKTOP ROLE GATEWAY */
.desktop-landing .guest-identity-gateway {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 36px;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.desktop-landing .guest-identity-gateway .guest-gateway-header {
  text-align: right;
  margin-bottom: 0;
  flex: 1;
}

.desktop-landing .guest-identity-gateway .guest-gateway-kicker {
  font-size: 12px;
  letter-spacing: 0.8px;
}

.desktop-landing .guest-identity-gateway .guest-gateway-title {
  font-size: 20px;
  line-height: 1.3;
}

.desktop-landing .guest-identity-gateway .guest-gateway-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.desktop-landing .guest-identity-gateway .guest-role-btn {
  min-height: 46px;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 12px;
}

.desktop-landing .guest-identity-gateway .guest-register-hint {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

/* INTERACTIVE TOOL SHOWCASE SECTION */
.guest-tools-showcase {
  padding: 24px 14px 36px;
}

/* Desktop landing: the showcase sits inside the wide .home-live-tools band,
   so give it breathing room, a centered max-width and roomier tabs/cards. */
.desktop-landing .guest-tools-showcase {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 8px 0 20px;
}

.desktop-landing .guest-showcase-heading h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.desktop-landing .guest-showcase-heading p {
  max-width: 620px;
  font-size: 14px;
}

.desktop-landing .guest-tool-switcher {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 26px;
  justify-content: center;
}

.desktop-landing .guest-tool-tab {
  min-height: 48px;
  padding: 10px 22px;
  font-size: 14px;
}

.desktop-landing .guest-interactive-card {
  padding: 28px;
}

.desktop-landing .guest-exercise-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.desktop-landing .guest-exercise-card {
  padding: 16px;
}

.desktop-landing .guest-exercise-thumb {
  width: 88px;
  height: 88px;
}

.desktop-landing .guest-exercise-info h4 {
  font-size: 15px;
}

.desktop-landing .guest-nutrition-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.desktop-landing .guest-macro-bars {
  flex-wrap: wrap;
}

.desktop-landing .guest-calc-cta {
  min-height: 50px;
  font-size: 15px;
}

.guest-showcase-heading {
  text-align: center;
  margin-bottom: 20px;
}

.guest-showcase-kicker {
  color: #c7fa28;
  font-size: 11px;
  font-weight: 900;
}

.guest-showcase-heading h2 {
  color: #ffffff;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900;
  margin: 6px 0 8px;
}

.guest-showcase-heading p {
  color: #94a3b8;
  font-size: 13px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* TOOL TABS — wrap onto full rows on narrow screens so no label is ever cut off */
.guest-tool-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  margin-bottom: 18px;
}

.guest-tool-tab {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.guest-tool-tab.is-active {
  background: #1e293b;
  color: #ffffff;
  border-color: #c7fa28;
  box-shadow: 0 0 15px rgba(199, 250, 40, 0.2);
}

@media (max-width: 560px) {
  .guest-tool-switcher {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guest-tool-tab {
    width: 100%;
  }
}

/* CARD CONTAINER */
.guest-interactive-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* EXERCISE STUDIO DEMO — muscle pills wrap into rows and never shrink below
   their label (the global spotlight helper adds overflow:hidden + flex-shrink,
   which used to crush the labels on phones). */
.guest-muscle-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.guest-muscle-pill {
  flex: 0 0 auto;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.guest-muscle-pill.is-active {
  background: #c7fa28;
  color: #050b18;
  border-color: #c7fa28;
  box-shadow: 0 0 12px rgba(199, 250, 40, 0.35);
}

/* Playable exercise preview (two-frame GIF-style playback) */
.guest-workout-viewer {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(199, 250, 40, 0.06);
  border: 1px solid rgba(199, 250, 40, 0.35);
  border-radius: 14px;
}

.guest-workout-viewer-media {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  align-self: center;
}

.guest-workout-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.guest-workout-viewer-badge {
  position: absolute;
  bottom: 6px;
  inset-inline-end: 6px;
  background: rgba(2, 6, 23, 0.78);
  color: #c7fa28;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.guest-workout-viewer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.guest-workout-viewer-kicker {
  color: #c7fa28;
  font-size: 11px;
  font-weight: 900;
}

.guest-workout-viewer-info h4 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.guest-workout-viewer-sub {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.guest-viewer-close {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.guest-viewer-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

@media (max-width: 420px) {
  .guest-workout-viewer {
    flex-direction: column;
    gap: 10px;
  }

  .guest-workout-viewer-media {
    width: 100%;
    max-width: 250px;
    margin-inline: auto;
  }

  .guest-viewer-close {
    align-self: center;
    margin-top: 4px;
  }
}

.guest-exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.guest-exercise-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.guest-exercise-card:hover {
  border-color: #c7fa28;
  transform: translateY(-2px);
}

.guest-exercise-card.is-previewing {
  border-color: #c7fa28;
  box-shadow: 0 0 14px rgba(199, 250, 40, 0.18);
}

.guest-exercise-play {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(199, 250, 40, 0.55);
  color: #c7fa28;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

.guest-exercise-play svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  margin-inline-start: 1px;
}

.guest-exercise-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.guest-exercise-info h4 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.guest-exercise-info p {
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
}

.guest-exercise-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  color: #38bdf8;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.guest-exercise-badge--fa {
  color: #c7fa28;
  background: rgba(199, 250, 40, 0.12);
  margin-inline-start: 4px;
  border: 1px solid rgba(199, 250, 40, 0.35);
}

/* Persian execution steps inside the exercise preview panel */
.guest-workout-guide {
  margin-top: 8px;
  width: 100%;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(199, 250, 40, 0.22);
  border-radius: 10px;
  box-sizing: border-box;
}

.guest-workout-guide-title {
  display: block;
  color: #c7fa28;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 7px;
}

.guest-workout-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guestStep;
  display: grid;
  gap: 6px;
}

.guest-workout-guide li {
  position: relative;
  counter-increment: guestStep;
  padding-inline-start: 26px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.7;
}

.guest-workout-guide li::before {
  content: counter(guestStep);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(199, 250, 40, 0.14);
  color: #c7fa28;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* NUTRITION STUDIO DEMO */
.guest-nutrition-list {
  display: grid;
  gap: 12px;
}

.guest-nutrition-item {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.guest-nutrition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.guest-nutrition-head h4 {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.guest-nutrition-cal {
  color: #c7fa28;
  font-size: 13px;
  font-weight: 900;
}

.guest-macro-bars {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.guest-macro-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guest-swap-btn {
  width: 100%;
  min-height: 36px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.guest-swap-btn:hover {
  background: #38bdf8;
  color: #050b18;
}

.guest-swap-result {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(56, 189, 248, 0.14);
  border-radius: 8px;
  font-size: 11px;
  color: #bae6fd;
  line-height: 1.6;
}

/* CALCULATOR DEMO */
.guest-calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.guest-calc-field label {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.guest-calc-field input,
.guest-calc-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

.guest-calc-result-box {
  background: linear-gradient(135deg, rgba(199, 250, 40, 0.1), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(199, 250, 40, 0.25);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.guest-calc-result-value {
  color: #c7fa28;
  font-size: 26px;
  font-weight: 900;
  margin: 4px 0;
}

.guest-calc-result-desc {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.guest-calc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  background: #c7fa28;
  color: #050b18;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(199, 250, 40, 0.3);
  transition: all 0.2s;
}

.guest-calc-cta:hover {
  transform: translateY(-2px);
}

/* Keep the lime CTA readable (dark text) no matter what global link/spotlight
   helpers inject afterwards. */
.guest-tools-showcase a.guest-calc-cta,
.guest-tools-showcase a.guest-calc-cta:hover,
.guest-tools-showcase a.guest-calc-cta:visited {
  color: #050b18 !important;
}

.guest-tools-showcase .guest-calc-cta svg {
  color: #050b18;
  fill: currentColor;
}
