:root {
  --color-primary: #4ade80;
  --color-primary-dark: #064e3b;
  --color-black100: #121212;
  --color-black90: #171717;
  --color-black80: #1e1e1e;
  --color-black60: #393939;
  --color-black20: #b3b3b3;
  --color-white: #ffffff;
  --border-radius: 16px;
  --transition-speed: 0.25s;
}

.hide {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-black100);
  color: var(--color-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  z-index: 10;
  background: var(--color-black100);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 33%; /* reserve space */
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 33%; /* reserve space */
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.3s;
}
.icon-btn.hide {
  opacity: 0;
  pointer-events: none;
}

.logo {
  text-decoration: none;
}

.logo-fit {
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.5px;
}

.logo-pro {
  color: var(--color-white);
}

.app-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link, .lang-btn {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Progress Bar */
.progress-container {
  position: absolute;
  top: 60px; /* Below standard header height */
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-black80);
  z-index: 9;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  width: 0%;
  transition: width 0.4s ease-out;
}

/* Main content */
.app-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  overflow: hidden;
}

.background-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 96, 37, 0.15) 0%, rgba(30,30,30,0) 100%);
  pointer-events: none;
  z-index: 0;
}

.quiz-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
}

.step-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.step-container.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.step-container.exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

.step-container.exit-right {
  opacity: 0;
  transform: translateX(40px);
}

.main-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sub-title {
  font-size: 16px;
  color: var(--color-black20);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Choices Common */
.choices-container {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-bottom: 32px;
}

.choices-container.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.choice-card {
  position: relative;
  display: flex;
  background-color: var(--color-black80);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  user-select: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.choice-card input {
  display: none;
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  border-color: rgba(255, 96, 37, 0.3);
}

.choice-card.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary-dark);
}

/* Custom Check Circle */
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-black60);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
  position: relative;
}

.choice-card.selected .check-icon {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.choice-card.selected .check-icon::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 8px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 3px;
}

/* Image Choice Variant */
.choice-card.image-card {
  flex-direction: column;
}

.choice-img-wrapper {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: var(--color-black90);
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.choice-img-wrapper img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  max-height: 95%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choice-card:hover .choice-img-wrapper img {
  transform: translateX(-50%) scale(1.08);
}

.choice-content {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 60px;
}
.choice-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
}

.choice-card.image-card .choice-text {
  background-color: var(--color-primary);
  color: var(--color-black100);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
}

/* Text Choice Variant */
.choice-card.text-card {
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
}
.choice-card.text-card .choice-text {
  font-size: 16px;
}

/* Inline Image Card Variant */
.choice-card.text-card.inline-img-card {
  padding: 0 0 0 24px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.choice-card.text-card.inline-img-card .choice-content {
  padding: 0;
  flex: 1;
}
.choice-card.text-card.inline-img-card .choice-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  padding-right: 12px;
}
.inline-card-img {
  height: 100%;
  width: 140px;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
}

/* Base button */
.btn-primary {
  width: 100%;
  padding: 18px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 16px;
}
.btn-primary:active {
  opacity: 0.8;
}

/* Legal text */
.legal-text {
  text-align: center;
  font-size: 12px;
  color: var(--color-black20);
  line-height: 1.5;
  padding: 0 8px;
  margin-top: auto; /* Push to bottom */
}

.legal-text a {
  color: var(--color-white);
  text-decoration: underline;
  transition: color var(--transition-speed) ease;
}

.legal-text a:hover {
  color: var(--color-primary);
}

/* Pulse Animation for Loading Step */
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.pulse-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-primary);
  animation: pulse 1.5s infinite running;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pulse-circle svg {
  width: 40px;
  height: 40px;
  fill: var(--color-white);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@media (min-width: 768px) {
  .app-content { padding-top: 80px; }
  .progress-container { top: 72px; }
  .main-title { font-size: 40px; }
  .sub-title { font-size: 18px; margin-bottom: 40px; }
  .choices-container { gap: 16px; margin-bottom: 40px; }
  .choice-content { padding: 16px; min-height: 70px; }
  .choice-text { font-size: 16px; }
  .check-icon { width: 24px; height: 24px; }
  .choice-card.selected .check-icon::after { width: 6px; height: 10px; top: 4px; }
}

@media (max-width: 480px) {
  .choices-container.grid-2 { grid-template-columns: 1fr; }
  .main-title { font-size: 24px; }
  .app-header { padding: 16px; }
}

/* Inputs & Form Elements */
.input-wrapper {
  width: 100%;
  margin-bottom: 32px;
}
.input-field {
  width: 100%;
  padding: 18px 24px;
  background-color: var(--color-black80);
  border: 2px solid var(--color-black60);
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-size: 18px;
  outline: none;
  transition: all var(--transition-speed);
  font-family: inherit;
  text-align: center;
}
.input-field:focus {
  border-color: var(--color-primary);
  background-color: var(--color-primary-dark);
}
.input-field::placeholder {
  color: var(--color-black20);
}

/* Checkbox specific icon */
.choice-card.checkbox-card .check-icon {
  border-radius: 6px;
}

/* Info page styles */
.info-text {
  font-size: 16px;
  color: var(--color-black20);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}
.info-text b, .info-text strong {
  color: var(--color-white);
}

/* Continue Wrapper */
.continue-wrapper {
  width: 100%;
  margin-top: 24px;
}

/* Dynamic Chart Styling */
.chart-title-wrapper {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 24px;
}
.chart-title-wrapper .highlight {
  color: var(--color-primary);
}
.chart-desc {
  font-size: 15px;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 8px;
  line-height: 1.5;
  padding: 0 16px;
}
.chart-date-target {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  display: block;
}
.chart-date-target span {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
}
.chart-svg-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  margin-bottom: 12px;
}
.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 6px rgba(74, 222, 128, 0.4));
}
.chart-badge {
  position: absolute;
  background-color: var(--color-primary);
  color: var(--color-black100);
  font-weight: 800;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  top: 0;
  left: 0;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
  pointer-events: none;
}
.chart-badge.start-badge {
  background-color: var(--color-black60);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.chart-badge::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--color-primary) transparent transparent transparent;
}
.chart-badge.start-badge::after {
  border-color: var(--color-black60) transparent transparent transparent;
}

.chart-bottom-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-black20);
  padding: 0 4px;
}
.chart-disclaimer {
  font-size: 11px;
  color: var(--color-black20);
  text-align: left;
  margin-top: 16px;
  padding: 0 4px;
}

/* Health Warning Page Styles */
.info-top-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 32px auto;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.info-top-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.health-intro {
  text-align: left;
  margin-bottom: 16px;
  color: var(--color-white);
  font-size: 16px;
}
.health-list {
  text-align: left;
  list-style: none;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 24px;
  color: var(--color-white);
}
.health-list li {
  position: relative;
  padding-left: 16px;
}
.health-list li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}
.health-disclaimer-info {
  font-size: 15px;
  text-align: left;
  color: var(--color-white);
  line-height: 1.5;
}

/* Checkout and Dashboard Styles */
.checkout-wrapper {
  animation: slideIn var(--transition-speed) ease-out;
  margin: 0 auto; 
  padding: 0 20px;
  width: 100%;
}
.spin-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
.checkout-title {
  color: var(--color-white);
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
}

/* Compare Grid */
.dashboard-compare-grid {
  background-color: var(--color-black80);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-black60);
  overflow: hidden;
  margin-bottom: 40px;
}
.compare-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-black60);
  background-color: var(--color-black100);
}
.col-head {
  flex: 1;
  text-align: center;
  padding: 16px;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-white);
}
.col-head:first-child {
  border-right: 1px solid var(--color-black60);
}
.compare-body {
  display: flex;
  flex-direction: column;
}
.compare-row {
  display: flex;
  border-bottom: 1px solid var(--color-black60);
}
.compare-row:last-child {
  border-bottom: none;
}
.col-side {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.col-side:first-child {
  border-right: 1px solid var(--color-black60);
}
.compare-label {
  font-size: 14px;
  color: var(--color-white);
  margin-bottom: 8px;
  font-weight: 600;
}
.compare-val-red {
  font-size: 20px;
  font-weight: 800;
  color: #ef4444; /* red */
}
.compare-val-green {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}
.muscle-bars {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.m-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background-color: var(--color-black40);
}
.m-bar.full {
  background-color: #ef4444;
}
.col-side:last-child .m-bar.full {
  background-color: var(--color-primary);
}

/* Sections */
.dash-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 24px;
  text-align: left;
}
.dash-section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
  text-align: left;
}
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-black80);
  border: 1px solid var(--color-black60);
  border-radius: var(--border-radius);
  padding: 16px;
}
.benefit-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-black60);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.benefit-text strong {
  display: block;
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 4px;
}
.benefit-text p {
  font-size: 14px;
  color: var(--color-black20);
  line-height: 1.4;
}
.goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--color-white);
}
.goals-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-circle {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 16px;
}

/* Social Proof */
.social-proof-box {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px 16px;
  background-color: var(--color-black80);
  border-radius: var(--border-radius);
}
.laurel-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.laurel-leaf {
  width: 40px;
  height: 80px;
}
.laurel-text {
  text-align: center;
}
.laurel-big {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-white);
  display: block;
  line-height: 1.1;
  margin-bottom: 8px;
}
.laurel-sub {
  font-size: 12px;
  color: var(--color-black20);
  display: block;
  max-width: 140px;
  margin: 0 auto;
}
.social-review-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-top: 16px;
  line-height: 1.4;
}

/* Workout Plan List */
.workout-plan-list {
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 40px;
}
.workout-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background-color: var(--color-black80);
  border-radius: var(--border-radius);
}
.check-square {
  background-color: var(--color-primary);
  color: var(--color-black100);
  font-weight: 900;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Wheel Customization */
.wheel-title {
  text-align: center;
  color: var(--color-white);
}
.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 40px auto;
}
.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 32px;
  z-index: 10;
  text-shadow: 0 4px 6px rgba(0,0,0,0.8);
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 8px solid var(--color-black60);
  transition: transform 3.5s cubic-bezier(0.17, 0.67, 0.12, 0.99); 
  background: conic-gradient(
    var(--color-black60) 0 60deg, 
    var(--color-black40) 60deg 120deg, 
    var(--color-black60) 120deg 180deg, 
    var(--color-black40) 180deg 240deg, 
    var(--color-black60) 240deg 300deg, 
    var(--color-black40) 300deg 360deg
  );
}

.wheel-slice {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 50%;
  transform-origin: 0% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
}

.slice-1 { transform: rotate(30deg) skewY(-30deg); }
.slice-1 span { transform: skewY(30deg) rotate(-30deg) translate(-20px, 40px); display:block; }
.slice-2 { transform: rotate(90deg) skewY(-30deg); }
.slice-2 span { transform: skewY(30deg) rotate(-30deg) translate(-20px, 40px); display:block; }
.slice-3 { transform: rotate(150deg) skewY(-30deg); }
.slice-3 span { transform: skewY(30deg) rotate(-30deg) translate(-20px, 40px); display:block; }
.slice-4 { transform: rotate(210deg) skewY(-30deg); }
.slice-4 span { transform: skewY(30deg) rotate(-30deg) translate(-20px, 40px); display:block; }
.slice-5 { transform: rotate(270deg) skewY(-30deg); }
.slice-5 span { transform: skewY(30deg) rotate(-30deg) translate(-20px, 40px); display:block; }
.slice-6 { transform: rotate(330deg) skewY(-30deg); }
.slice-6 span { transform: skewY(30deg) rotate(-30deg) translate(-20px, 40px); display:block; }

/* Final Pricing Section */
.pricing-section {
  text-align: center;
  animation: fadeIn 1s;
  padding: 32px 24px;
  background-color: var(--color-black80);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  margin-top: 40px;
  margin-bottom: 64px;
}
.price-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.price-old {
  font-size: 20px;
  color: #ef4444;
  text-decoration: line-through;
  font-weight: 700;
}
.price-new {
  font-size: 44px;
  font-weight: 900;
  color: var(--color-primary);
}
.price-sub {
  font-size: 14px;
  color: var(--color-black20);
  margin-top: 8px;
  margin-bottom: 32px;
}

/* Sticky Button */
.sticky-buy-btn {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 440px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(74, 222, 128, 0.4);
  text-align: center;
  text-decoration: none;
  font-size: 20px;
}

.pulse-btn {
  animation: pulse-shadow 2s infinite;
}
@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
