:root {
    --primary-color: #E84393;
    /* Vibrant Pink */
    --primary-hover: #D63080;
    --secondary-color: #FD79A8;
    /* Lighter Pink */
    --background-color: #F7F9FC;
    --card-background: #FFFFFF;
    --text-main: #2D3436;
    --text-secondary: #636E72;
    --border-color: #DFE6E9;
    --success-color: #00B894;

    --font-family: 'Outfit', sans-serif;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    --border-radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    --transition-speed: 0.3s;

    /* Animation Variables */
    --anim-duration-fast: 0.2s;
    --anim-duration-normal: 0.4s;
    --anim-ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    /* Ease Out Cubic */
    --anim-ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* Ease In Cubic */
    --anim-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Spring */
}

/* Global Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 67, 147, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(232, 67, 147, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 67, 147, 0);
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}





* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Header */
.main-header {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--card-background);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.5s ease;
}

/* Main Content */
.quiz-container {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    align-items: stretch;
    min-height: 60vh;
}

/* Step Animations */
/* Step Animations */
.step-content {
    /* Base state */
    width: 100%;
}

.step-content-enter {
    animation: slideInRight var(--anim-duration-normal) var(--anim-ease-out) forwards;
}

.step-content-exit {
    animation: slideOutLeft var(--anim-duration-fast) var(--anim-ease-in) forwards;
}

/* Typography */
h1,
h2 {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.3;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: 1.1rem;
}

/* Buttons & Inputs */
.btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    margin-top: var(--spacing-md);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(232, 67, 147, 0.3);
    transition: transform var(--anim-duration-fast) var(--anim-spring), box-shadow var(--anim-duration-fast) ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(232, 67, 147, 0.4);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(232, 67, 147, 0.2);
}

.option-btn {
    background: var(--card-background);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-sm);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--anim-duration-fast) var(--anim-ease-out);
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #FFF5F5;
    transform: translateX(4px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: #FFF0F0;
    color: var(--primary-color);
    animation: pop 0.3s var(--anim-spring);
}

.option-btn .emoji {
    font-size: 1.4rem;
    margin-right: var(--spacing-sm);
}

/* Inputs */
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: var(--primary-color);
}

/* Sliders & Ruler */
.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    /* Reduced from 20px */
}

.unit-toggle-container {
    background: #F0F2F5;
    border-radius: 20px;
    padding: 4px;
    display: inline-flex;
    margin-bottom: 16px;
    /* Reduced from 30px */
}

.unit-toggle-btn {
    padding: 8px 24px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.unit-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(232, 67, 147, 0.2);
}

.slider-value-large {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 10px;
}

.slider-unit-label {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.ruler-container {
    position: relative;
    width: 100%;
    height: 80px;
    margin: 20px 0;
    overflow: hidden;
}

.ruler-scale {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 40px;
    width: 100%;
    padding: 0 10px;
}

.ruler-mark {
    width: 2px;
    background: #E0E0E0;
    height: 20px;
}

.ruler-mark.major {
    height: 40px;
    background: #BDBDBD;
}

.ruler-mark.center-marker {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 60px;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 2px 2px 0 0;
}

.ruler-mark.center-marker::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}

/* Custom Range Input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 3;
    cursor: grab;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 80px;
    width: 40px;
    background: transparent;
    cursor: grab;
}

input[type="range"]:active {
    cursor: grabbing;
}

.slider-instruction {
    text-align: center;
    color: #B0B0B0;
    font-size: 0.9rem;
    margin-top: 10px;
}

.ruler-numbers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Image & Grid Options */
.step-image-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.step-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.option-card {
    background: var(--card-background);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 0;
    /* Remove padding to let image fill top */
    cursor: pointer;
    transition: all var(--anim-duration-fast) var(--anim-ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    /* For image border radius */
    height: 100%;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #FFF0F0;
}

.option-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.option-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.option-card .emoji-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.option-card span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

/* Enhanced Button Options with Emojis */
.option-btn {
    padding: 20px 24px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Text to the left */
    text-align: left;
}

.option-btn .btn-emoji {
    font-size: 1.8rem;
    margin-right: 16px;
    min-width: 40px;
    text-align: center;
}

.option-btn .btn-image {
    width: 70px;
    height: 70px;
    margin-right: 16px;
    object-fit: contain;
}

/* Compact Options for steps with bottom images */
.step-content.has-bottom-image .option-btn {
    padding: 10px 16px;
    margin-bottom: 8px;
}

.step-content.has-bottom-image .option-btn .btn-emoji {
    font-size: 1.4rem;
}

.option-btn span:last-child {
    flex: 1;
}

/* Progress Bar Enhancement */
.progress-container {
    height: 8px;
    background-color: #EDF2F7;
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(232, 67, 147, 0.5);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for progress bar */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* Sales Page Specifics */
.vsl-container {
    background: var(--card-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.urgency-bar {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    animation: pulse 2s infinite, pulse-glow 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.price-box {
    text-align: center;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: #FFF5F5;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.price-new {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0;
}

.price-tag {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.daily-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.benefits-list {
    list-style: none;
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.benefits-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.benefits-list li::before {
    content: "✅";
    margin-right: 12px;
    flex-shrink: 0;
}

/* Benefit Sections */
.benefit-section {
    margin: 40px 0;
    text-align: center;
}

.benefit-section img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.benefit-section h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.testimonial-card {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.testimonial-card img {
    width: 100%;
    border-radius: 12px;
    margin-top: 12px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.testimonial-result {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Bonuses */
.bonus-item {
    background: #F0FDF4;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid var(--success-color);
    text-align: left;
}

.bonus-title {
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 4px;
    display: block;
}

/* Guarantee */
.guarantee-box {
    background: #FFF;
    padding: 30px;
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    margin-top: 40px;
    text-align: center;
}

.cta-button-large {
    background: var(--primary-color);
    /* Pink for conversion as requested */
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 24px 32px;
    border-radius: 50px;
    width: 100%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(232, 67, 147, 0.3);
    transition: transform 0.2s;
    text-transform: uppercase;
    margin-top: 16px;
    white-space: normal;
    line-height: 1.2;
}

.cta-button-large:hover {
    transform: scale(1.02);
    background: var(--primary-hover);
}

/* Footer */
.main-footer {
    padding: var(--spacing-lg);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .app-container {
        box-shadow: none;
    }
}

/* Age Card Specifics (Grid) */
.age-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.age-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    aspect-ratio: 3/4;
    border: 2px solid transparent;
}

.age-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.age-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.age-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    /* Specific Pink */
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* List Card with Image Right (Body/Focus) */
.list-card-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    overflow: hidden;
    height: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.list-card-right:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.list-card-right.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.list-card-right span {
    padding-left: 24px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2D3436;
    flex: 1;
    text-align: left;
}

.list-card-right.selected span {
    color: white;
}

.list-card-right img {
    height: 100%;
    width: 100px;
    object-fit: cover;
    object-position: center;
    /* Mask effect to blend if needed, but clean cut is requested */
}

/* Difficulty Card (Image Left + Checkbox) */
.difficulty-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.difficulty-card:hover {
    border-color: var(--primary-color);
}

.difficulty-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.difficulty-card span {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2D3436;
    text-align: left;
}

.difficulty-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.difficulty-card.selected .difficulty-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.difficulty-card.selected .difficulty-checkbox::after {
    content: '✓';
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Detailed List Layout (Diet Question) */
.category-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 0 12px;
    text-align: center;
    width: 100%;
}

.detailed-option-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all var(--anim-duration-fast) var(--anim-ease-out);
    box-shadow: var(--shadow-sm);
}

.detailed-option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detailed-option-card.selected {
    border-color: var(--primary-color);
    background: #FFF0F0;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.detailed-option-icon {
    font-size: 2rem;
    margin-right: 16px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.detailed-option-content {
    flex: 1;
    text-align: left;
}

.detailed-option-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
}

.detailed-option-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

/* Premium Text Card (Step 4) */
.premium-text-card {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFFFFF 100%);
    border-radius: 24px;
    padding: 24px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #FFE4E1;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.08);
}

.premium-text-card p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.premium-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.premium-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Dynamic Slider Visuals */
.dynamic-visual-container {
    height: 100px;
    /* Reduced from 120px */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    /* Reduced from 20px */
    position: relative;
}

.height-visual-bar {
    width: 60px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 30px 30px 0 0;
    transition: height 0.1s ease-out;
    box-shadow: 0 4px 10px rgba(232, 67, 147, 0.3);
    position: absolute;
    bottom: 0;
    animation: breathe 3s infinite ease-in-out;
    transform-origin: bottom;
}

.weight-visual-circle {
    background: radial-gradient(circle at 30% 30%, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(232, 67, 147, 0.4);
    animation: pulse-scale 2s infinite ease-in-out;
}

@keyframes breathe {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.05);
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.slider-value-large.changing {
    transform: scale(1.1);
    color: var(--primary-hover);
    transition: transform 0.1s ease-out, color 0.1s;
}

/* Loading Screen & Testimonial Carousel */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 700;
}

.loading-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 80%;
}

.testimonial-carousel-container {
    width: 100%;
    max-width: 400px;
    height: 300px;
    /* Fixed height to prevent layout shifts */
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-slide.exit {
    opacity: 0;
    transform: translateX(-50px);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.testimonial-user {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    /* Center the user info block */
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid var(--primary-color);
}

.testimonial-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    display: block;
}

.testimonial-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 4px;
    display: block;
}

/* Weight Graph (Step 37) */
.weight-graph-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
    padding: 10px;
}

.weight-graph {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #a1c4fd 100%);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    /* Triangle shape approx */
    /* Better shape: polygon(0 0, 100% 70%, 100% 100%, 0 100%) for a slope */
    clip-path: polygon(0 10%, 100% 80%, 100% 100%, 0 100%);
    border-radius: 8px;
    position: relative;
}

.graph-line {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 70%;
    border-top: 3px solid #e84393;
    transform: rotate(15deg);
    /* Simple visual approximation */
    transform-origin: 0 0;
    display: none;
    /* Using SVG or Canvas is better, but simple CSS for now */
}

/* Using an image for the graph is safer if provided, but let's try a CSS approach */
.css-graph {
    width: 100%;
    height: 200px;
    position: relative;
    background: white;
    border-left: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
}

.graph-point {
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #e84393;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.graph-point.start {
    top: 10%;
    left: 0;
}

.graph-point.mid {
    top: 45%;
    left: 50%;
}

.graph-point.end {
    top: 80%;
    left: 100%;
    transform: translate(-50%, 0);
}

.graph-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.graph-tag {
    position: absolute;
    top: 70%;
    right: -10px;
    background: #e84393;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Final Transition Screen */
.final-transition-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2D3436;
    margin-bottom: 24px;
    line-height: 1.3;
}

.green-box {
    background: #e0f9e8;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.green-box h3 {
    color: #00b894;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.green-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    /* Adjust based on image aspect ratio */
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-image.before {
    z-index: 1;
    width: 50%;
    /* Initial position */
    border-right: 2px solid white;
}

.comparison-image.after {
    z-index: 0;
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through to container */
}

.handle-circle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

.comparison-label {
    position: absolute;
    top: 20px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

.comparison-label.before-label {
    left: 20px;
}

.comparison-label.after-label {
    right: 20px;
}

/* Star Particles */
.star-particle {
    position: fixed;
    pointer-events: none;
    color: #FFD700;
    /* Gold */
    font-size: 20px;
    z-index: 9999;
    animation: fadeOutUp 1s ease-out forwards;
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.5);
    }
}