.mockup-app {
  width: 393px;
  height: 840px;
  background-color: #f0e9e0;
  border: 8px solid #ffffff;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Onest', sans-serif;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 48px 100px -20px rgba(160, 146, 135, 0.4), 0px 16px 40px -12px rgba(160, 146, 135, 0.25);
}

@keyframes springIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes springInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes springInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Header */
.mockup-header {
  position: relative;
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px 20px;
  box-sizing: border-box;
  margin-top: 8px;
  flex-shrink: 0;
}

.mockup-streak-badge {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 6px 6px 12px -4px rgba(33, 31, 28, 0.1);
  border-radius: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 4px;
  overflow: hidden;
  opacity: 0;
  animation: springInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.6s;
}

.mockup-streak-icon-wrapper {
  background-color: #efeae0;
  width: 40px;
  height: 40px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mockup-streak-icon-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 2px 4px 4px 0px #e9e1d2;
  pointer-events: none;
}

.mockup-streak-icon-wrapper img {
  width: 24px;
  height: 24px;
}

.mockup-streak-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mockup-streak-title {
  font-size: 16px;
  font-weight: 500;
  color: #211f1c;
  line-height: 1.3;
  letter-spacing: -0.176px;
  margin: 0;
}

.mockup-streak-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #6f6c67;
  line-height: 1.3;
  letter-spacing: -0.143px;
  margin: 0;
}

.mockup-avatar-wrapper {
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  animation: springInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.7s;
}

.mockup-avatar {
  position: absolute;
  top: -25%;
  left: -12.5%;
  width: 68px;
  height: 68px;
  max-width: none;
}

/* Greeting */
.mockup-greeting {
  position: relative;
  width: 100%;
  padding: 32px 24px 24px 24px;
  /* Increased bottom padding to 32px */
  box-sizing: border-box;
  flex-shrink: 0;
}

.mockup-bg-blur {
  position: absolute;
  top: 49px;
  left: 50%;
  transform: translateX(-50%);
  width: 292px;
  height: 292px;
  z-index: 0;
}

.mockup-bg-blur img {
  position: absolute;
  top: -34.25%;
  left: -34.25%;
  width: 168.5%;
  height: 168.5%;
  max-width: none;
}

.mockup-greeting-text {
  position: relative;
  z-index: 1;
  line-height: 1.4;
  font-size: 24px;
  letter-spacing: -0.242px;
  width: 300px;
  margin: 0;
  opacity: 0;
  animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.8s;
}

.mockup-greeting-text-bold {
  font-weight: 500;
  color: #211f1c;
  line-height: 1.3;
}

.mockup-greeting-text-light {
  font-weight: 300;
  color: #6f6c67;
  line-height: 1.3;
}

/* Content Area */
.mockup-content {
  position: relative;
  width: 100%;
  flex: 1;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  z-index: 1;
}

/* Calories Widget */
.mockup-widget {
  background-color: #fdfdfc;
  box-shadow: 0px 6px 28px -4px rgba(33, 31, 28, 0.1);
  border-radius: 28px;
  width: 100%;
  padding: 16px 20px 20px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.9s;
}

.mockup-calories-info {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.mockup-calories-main {
  font-size: 50px;
  font-weight: 400;
  color: #211f1c;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0;
}

.mockup-calories-unit {
  font-size: 24px;
  font-weight: 500;
  color: #211f1c;
  line-height: 1;
  letter-spacing: -0.264px;
  padding: 10px 0;
  margin: 0;
}

.mockup-calories-total {
  font-size: 24px;
  font-weight: 400;
  color: #c8c3c0;
  line-height: 1;
  letter-spacing: -0.264px;
  padding: 10px 0;
  margin: 0;
}

/* Macros */
.mockup-macros {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.mockup-macro-item {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mockup-macro-bar-container {
  width: 8px;
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.mockup-macro-track {
  background-color: #f2f2f2;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
}

.mockup-macro-fill {
  width: 100%;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  height: 0%;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s ease;
  will-change: height;
}

.mockup-macro-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-macro-label {
  font-size: 14px;
  font-weight: 500;
  color: #211f1c;
  line-height: 1;
  letter-spacing: -0.154px;
  margin: 0;
}

.mockup-macro-values {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-macro-amount {
  display: flex;
  align-items: baseline;
  color: #211f1c;
  margin: 0;
}

.mockup-macro-amount .val {
  font-family: 'Onest', sans-serif;
  font-size: 26px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.96px;
  padding-right: 2px;
}

.mockup-macro-amount .unit {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.64px;


}

.mockup-macro-percent {
  font-size: 13px;
  font-weight: 400;
  color: #6f6c67;
  line-height: 1.4;
  letter-spacing: -0.143px;
  margin: 0;
}

/* Tip Text */
.mockup-tip-text {
  font-size: 14px;
  font-weight: 400;
  color: #6f6c67;
  line-height: 1.4;
  letter-spacing: -0.154px;
  text-align: center;
  width: 338px;
  margin-top: 16px;
  opacity: 0;
  animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1.0s;
}

/* Meal Card */
.mockup-meal-card {
  background-color: #ffffff;
  border-radius: 24px;
  width: 100%;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.4s ease forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mockup-meal-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-meal-time,
.mockup-meal-type {
  font-family: var(--primary-font, 'Onest', sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: #6f6c67;
  line-height: 1.4;
  letter-spacing: -0.154px;
  margin: 0;
}

.mockup-meal-dot {
  width: 4px;
  height: 4px;
  background-color: #c8c3c0;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-meal-title {
  font-family: var(--primary-font, 'Onest', sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: #211f1c;
  line-height: 1.3;
  letter-spacing: -0.176px;
  margin: 0;
  max-width: 294px;
}

.mockup-meal-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding-top: 8px;
}

.mockup-meal-macros {
  display: flex;
  gap: 8px;
  font-family: var(--primary-font, 'Onest', sans-serif);
  font-weight: 400;
  font-size: 14px;
  color: #6f6c67;
  letter-spacing: -0.154px;
  line-height: 1.4;
  margin: 0;
}

.mockup-meal-macros span {
  display: block;
}

.mockup-meal-calories {
  font-family: var(--primary-font, 'Onest', sans-serif);
  font-size: 24px;
  font-weight: 500;
  color: #211f1c;
  letter-spacing: -0.22px;
  line-height: 1.3;
  margin: 0;
}

/* Fadeout */
.mockup-fadeout {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 98px;
  background: linear-gradient(to bottom, rgba(240, 233, 224, 0), #f0e9e0);
  pointer-events: none;
  z-index: 2;
}

/* Add Meal Button */
.mockup-bottom-action {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: 32px;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  animation: springIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1.1s;
}

.mockup-add-meal-btn {
  background-color: #211f1c;
  box-shadow: 4px 8px 24px -8px rgba(33, 31, 28, 0.7);
  border-radius: 100px;
  height: 64px;
  width: 146px;
  /* initial width for "Add meal" state */
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.mockup-add-meal-btn:active,
.mockup-add-meal-btn.pressed {
  transform: scale(0.8);
}

.mockup-add-meal-default {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
  position: absolute;
}

.mockup-add-meal-icon {
  width: 24px;
  height: 24px;
}

.mockup-add-meal-text {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0px;
  margin: 0;
}

.mockup-add-meal-expanded-content {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  pointer-events: none;
}

.mockup-add-meal-expanded-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 40px;
}

.mockup-add-meal-expanded-item img {
  width: 24px;
  height: 24px;
}

.mockup-add-meal-expanded-text {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.143px;
  margin: 0;
}

/* Expanded State Trigger */
.mockup-add-meal-btn.expanded {
  height: 72px;
  width: 264px;
  padding: 16px 24px;
  /* adjusted padding */
}

.mockup-add-meal-btn.expanded .mockup-add-meal-default {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.mockup-add-meal-btn.expanded .mockup-add-meal-expanded-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Voice Overlay */
.mockup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 31, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mockup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mockup-voice-modal {
  position: absolute;
  top: 132px;
  left: 0;
  width: 100%;
  height: 720px;
  background-color: #f5f1eb;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 34px 24px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-voice-modal.visible {
  transform: translateY(0);
}

.mockup-voice-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mockup-voice-icon-wrapper {
  width: 53.6px;
  height: 53.6px;
  margin-bottom: 8px;
}

.mockup-voice-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mockup-voice-text-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.mockup-voice-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: #211f1c;
  line-height: 1.3;
  letter-spacing: -0.264px;
  margin: 0;
}

.mockup-voice-hint {
  font-weight: 400;
  font-size: 14px;
  color: #6f6c67;
  line-height: 1.4;
  margin: 0;
  max-width: 280px;
}

.mockup-voice-transcription-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 8px;
  /* Offset from the top padding to match Figma */
  display: none;
  /* Hidden by default, toggled via JS */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mockup-voice-transcription {
  font-family: inherit;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  width: 100%;
  text-align: left;
}

.mockup-voice-transcription.completed {
  color: #211f1c;
}

.mockup-voice-transcription.pending {
  color: #b1a9a5;
}

.mockup-voice-actions {
  position: absolute;
  bottom: 48px;
  left: 19.5px;
  right: 19.5px;
  background-color: #211f1c;
  height: 72px;
  /* Figma has 72px */
  border-radius: 100px;
  box-shadow: 4px 8px 24px -8px rgba(33, 31, 28, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  box-sizing: border-box;
}

.mockup-voice-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.mockup-voice-action-btn img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  flex-shrink: 0;
}

.mockup-voice-action-btn span {
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  letter-spacing: -0.154px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Voice Animation Bars */
.mockup-voice-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 33px;
  flex-shrink: 0;
}

.mockup-voice-bar {
  width: 3px;
  background-color: #ffffff;
  border-radius: 24px;
  flex-shrink: 0;
}

/* Static heights from Figma to act as base */
.mockup-voice-bar.b1 {
  height: 19px;
}

.mockup-voice-bar.b2 {
  height: 33px;
}

.mockup-voice-bar.b3 {
  height: 19px;
}

.mockup-voice-bar.b4 {
  height: 27px;
}

.mockup-voice-bar.b5 {
  height: 33px;
}

.mockup-voice-bar.b6 {
  height: 13px;
}

.mockup-voice-bar.b7 {
  height: 27px;
}

.mockup-voice-bar.b8 {
  height: 27px;
}

.mockup-voice-bar.b9 {
  height: 27px;
}

.mockup-voice-bar.b10 {
  height: 13px;
}

.mockup-voice-bar.b11 {
  height: 27px;
}

.mockup-voice-bar.b12 {
  height: 13px;
}

/* Apply animation when visible */
.mockup-voice-modal.visible .mockup-voice-bar {
  animation: equalize 1.2s ease-in-out infinite alternate;
  transform-origin: center;
}

/* Adding slightly different animation durations for realistic effect */
.mockup-voice-modal.visible .mockup-voice-bar.b1 {
  animation-duration: 0.9s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b2 {
  animation-duration: 1.3s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b3 {
  animation-duration: 1.1s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b4 {
  animation-duration: 1.4s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b5 {
  animation-duration: 1.2s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b6 {
  animation-duration: 1.5s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b7 {
  animation-duration: 1.1s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b8 {
  animation-duration: 1.6s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b9 {
  animation-duration: 1.3s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b10 {
  animation-duration: 1.0s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b11 {
  animation-duration: 1.2s;
}

.mockup-voice-modal.visible .mockup-voice-bar.b12 {
  animation-duration: 1.4s;
}

/* Pause animation when transcription ends */
.mockup-voice-bars.paused .mockup-voice-bar {
  animation: none !important;
  transform: scaleY(0.1);
}

@keyframes equalize {
  0% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0.4);
  }
}

/* Simulated Tap Animation */
.simulated-tap {
  position: fixed;
  width: 60px;
  height: 60px;
  background-color: rgba(33, 31, 28, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 1;
  animation: tapClick 0.8s ease-out forwards;
}

@keyframes tapClick {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}