/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

:root {
    --primary-color: #2F855A;
    --primary-light: #48BB78;
    --primary-dark: #276749;
    --bg-color: #F7FAFC;
    --card-bg: #FFFFFF;
    --text-main: #2D3748;
    --text-light: #718096;
    --gold: #D69E2E;
    --gold-light: #FEFCBF;
    --border-radius: 16px;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0,0,0,0.03);
}

/* Progress Bar */
#progress-container {
    padding: 20px 24px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #EDF2F7;
}

/* Custom Interactive Body Area */
.body-interactive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.body-interactive-options {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.checkbox-option:hover {
    border-color: var(--primary-light);
    background: #F0FFF4;
}

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

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-option.selected .custom-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox::after {
    content: "✓";
    color: white;
    font-size: 16px;
    display: none;
}

.checkbox-option.selected .custom-checkbox::after {
    display: block;
}

.body-image-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    margin: 0 auto;
}

.body-base-image {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 16px;
    display: block;
}

.body-highlight {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.85) 0%, rgba(255, 204, 0, 0) 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 50%;
}

.body-highlight.active {
    opacity: 1;
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    from { 
        filter: brightness(1) drop-shadow(0 0 8px rgba(255, 204, 0, 0.6)); 
        transform: scale(0.95);
    }
    to { 
        filter: brightness(1.5) drop-shadow(0 0 20px rgba(255, 204, 0, 1)); 
        transform: scale(1.05);
    }
}

/* Approximate positions of body parts based on full body image */
.highlight-bracos_left { top: 32%; left: 22%; width: 15%; height: 25%; }
.highlight-bracos_right { top: 32%; right: 22%; width: 15%; height: 25%; }
.highlight-ombros_left { top: 20%; left: 28%; width: 15%; height: 12%; }
.highlight-ombros_right { top: 20%; right: 28%; width: 15%; height: 12%; }
.highlight-cotovelos_left { top: 40%; left: 18%; width: 12%; height: 12%; }
.highlight-cotovelos_right { top: 40%; right: 18%; width: 12%; height: 12%; }
.highlight-abdomen { top: 35%; left: 38%; width: 24%; height: 18%; }
.highlight-quadris { top: 50%; left: 35%; width: 30%; height: 15%; }
.highlight-pernas { top: 65%; left: 35%; width: 30%; height: 25%; }

.question-inline-image {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 16px auto;
    display: block;
}

@media (max-width: 600px) {
    .body-interactive-container {
        flex-direction: column-reverse;
    }
}

.progress-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar-bg {
    height: 6px;
    background-color: #EDF2F7;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

/* Screens */
#screens-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(20px);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.screen.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.content-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: auto;
    padding: 20px 0;
}

.hidden {
    display: none !important;
}

/* Typography */
.headline {
    font-size: 28px;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 16px;
    line-height: 1.25;
}

.subheadline {
    font-size: 16px;
    color: #4A5568;
    margin-bottom: 32px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(47, 133, 90, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 24px;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.3);
}

/* Quiz Options */
.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1A202C;
    line-height: 1.3;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.option-btn {
    background-color: white;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.option-btn .option-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: #F0FFF4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.option-btn.selected {
    border-color: var(--primary-color);
    background-color: #F0FFF4;
    color: var(--primary-dark);
    font-weight: 600;
}

.option-btn.selected, .option-card-btn.selected {
    border-color: var(--primary-color);
    background-color: #F0FFF4;
    color: var(--primary-dark);
}

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

.option-image-right {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 16px;
}

.info-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 24px;
    object-fit: cover;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    text-align: left;
    margin-bottom: 32px;
}

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

.age-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.age-btn {
    text-align: center;
    justify-content: center;
    padding: 24px 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

@media (max-width: 400px) {
    .options-grid {
        gap: 8px;
    }
    .age-grid {
        gap: 12px;
    }
}

.option-card-btn {
    background-color: white;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

.option-card-btn:hover {
    border-color: var(--primary-color);
    background-color: #F0FFF4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-card-img {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
    flex: 1;
}

/* Processing */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #EDF2F7;
    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); }
}

.processing-messages {
    color: #4A5568;
    font-weight: 600;
    height: 28px;
    overflow: hidden;
    position: relative;
    font-size: 18px;
    transition: opacity 0.2s ease;
}

.processing-bar-bg {
    width: 100%;
    max-width: 250px;
    height: 8px;
    background-color: #EDF2F7;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 24px;
}

.processing-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

/* Result Screen */
.premium-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    border: 1px solid #E2E8F0;
    position: relative;
    text-align: center;
}

.seal-gold {
    background-color: var(--gold-light);
    color: #975A16;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-title {
    font-size: 24px;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 24px;
}

.result-details {
    background: #F7FAFC;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item:first-child {
    padding-top: 0;
}

.detail-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

.result-benefits {
    text-align: left;
    margin-bottom: 24px;
}

.result-benefits h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.result-benefits ul {
    list-style: none;
}

.result-benefits li {
    font-size: 15px;
    color: #4A5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Offer Screen */
.offer-content {
    padding: 10px 0;
    text-align: center;
}

.offer-headline {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1A202C;
    line-height: 1.3;
}

.highlight {
    color: var(--primary-color);
}

.offer-subheadline {
    font-size: 16px;
    color: #4A5568;
    margin-bottom: 32px;
    line-height: 1.6;
}

.offer-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
}

.feature-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.check {
    font-size: 18px;
}

.price-box {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
    padding: 24px;
    background: #F0FFF4;
    border-radius: 16px;
    border: 2px dashed #9AE6B4;
    position: relative;
}

.seal-special {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #E53E3E;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
}

.price-old {
    text-decoration: line-through;
    color: #A0AEC0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 8px;
}

.price-new {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
}

.price-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-top: 8px;
    letter-spacing: -1px;
}

.btn-purchase {
    background-color: #38A169;
    color: white;
    border: none;
    padding: 22px 24px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 16px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.4);
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-purchase:active {
    transform: scale(0.96);
}

.trust-seals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.trust-item {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #EDF2F7;
    padding: 8px 12px;
    border-radius: 8px;
}

.post-purchase-info {
    font-size: 13px;
    color: #A0AEC0;
    line-height: 1.5;
    padding: 0 16px;
    padding-bottom: 40px;
}

/* Animations */
.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 20px rgba(56, 161, 105, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: .2;
    transition: 0s;
}

/* Helpers */
.logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 24px;
    background: #F0FFF4;
    padding: 12px 24px;
    border-radius: 30px;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.mt-6 { margin-top: 32px !important; }
