:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --secondary: #f59e0b;
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -5px rgba(16, 185, 129, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  user-select: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.1), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.08), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.08), transparent 40%);
  animation: drifting 15s ease-in-out infinite alternate;
}

@keyframes drifting {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.1) translate(2%, 2%);
  }

  100% {
    transform: scale(1) translate(-2%, -2%);
  }
}

.app-container {
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.step-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.step-card.exit {
  animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
}

/* Text Stylings */
.headline {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.headline.urgent {
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.headline.highlight {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Options Grid */
.options-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.options-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.option-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.option-btn .icon {
  font-size: 1.5rem;
  margin-left: 10px;
}

.option-btn:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.option-btn.selected {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Input Fields */
.input-text {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: var(--transition);
  text-align: center;
  margin-bottom: 1.5rem;
  background: white;
}

.input-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #34d399);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 3px;
}

/* Sliders */
.slider-container {
  margin: 2rem 0;
  position: relative;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  transition: var(--transition);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Images & Media */
.hero-image {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  text-align: left;
  border-left: 4px solid var(--primary);
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Utils */
.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.info-text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 480px) {
  .app-container {
    padding: 1rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .headline {
    font-size: 1.5rem;
  }
}

/* IMC Graph new approach */
.imc-track-container {
  background: linear-gradient(90deg, #14532d, #713f12, #7f1d1d);
  padding: 1.5rem 1rem;
  border-radius: 16px;
  position: relative;
  margin: 2rem 0;
}

.imc-track {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 6px;
  position: relative;
}

.imc-labels-top {
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.imc-labels-bottom {
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
}

.imc-marker-circle {
  width: 24px;
  height: 24px;
  background: white;
  border: 5px solid #10b981;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.imc-marker-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--text-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.imc-marker-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

/* Donut chart */
.donut-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.donut-title {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.donut-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-hole {
  width: 125px;
  height: 125px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
}

/* Weekly chart */
.weekly-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.weekly-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.weekly-col:not(:last-child) {
  border-right: 1px solid #e2e8f0;
}

.weekly-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.weekly-bar-bg {
  width: 35px;
  height: 100px;
  background: #e2e8f0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.weekly-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #15803d;
  border-radius: 8px;
  transition: height 2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
}

.weekly-loss {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.weekly-days {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Carousel */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.carousel-item img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* Custom Audio Player */
.custom-audio-player {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  gap: 1rem;
}

.custom-audio-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.audio-header-name {
  font-weight: 800;
  color: #166534;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.audio-track-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.audio-play-btn {
  background: transparent;
  border: none;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.audio-waveform-container {
  flex: 1;
  height: 24px;
  background-image: repeating-linear-gradient(90deg, #cbd5e1, #cbd5e1 3px, transparent 3px, transparent 6px);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.audio-waveform-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(22, 101, 52, 0.4);
  /* Green overlay for played track */
  transition: width 0.1s linear;
}

.audio-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #166534;
  border-radius: 50%;
  pointer-events: none;
}

.audio-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Compare Card UI */
.compare-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.compare-header {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.compare-col-header {
  flex: 1;
  text-align: center;
  padding: 1rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.compare-col-header:first-child {
  border-right: 1px solid #e2e8f0;
}

.compare-image-container {
  width: 100%;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.compare-body {
  display: flex;
}

.compare-col-body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.compare-col-body.right {
  border-left: 1px solid #e2e8f0;
}

.compare-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  min-height: 65px;
  margin-bottom: 1.5rem;
}

/* Fake slider */
.compare-slider-fake {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

.compare-track {
  height: 100%;
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
}

.compare-track.gray-track {
  background: #94a3b8;
  width: 40%;
}

.compare-track.green-track {
  background: #15803d;
  width: 80%;
}

.compare-thumb {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
}

.compare-thumb.gray-thumb {
  border: 4px solid #94a3b8;
}

.compare-thumb.green-thumb {
  border: 4px solid #15803d;
}

/* Alert Boxes */
.compare-alert {
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex: 1;
  line-height: 1.4;
}

.compare-alert.gray-alert {
  background: #f1f5f9;
  color: #475569;
}

.compare-alert.green-alert {
  background: #dcfce7;
  color: #166534;
}

.compare-alert i {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .compare-body {
    flex-direction: column;
  }

  .compare-col-body.right {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }

  .compare-desc {
    min-height: auto;
  }
}

.btn-success {
  background: #065F2C;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 0 #043d1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  margin-top: 1rem;
}

.btn-success:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #043d1c;
}