:root {
    --background: #0D0D0F;
    --golden-dark: #A8852A;
    --golden-light: #F0DB4F;
    --text-light: #EAEAEA;
    --text-dark: #1A1A1A;
    --text-muted: #999;
    --progress-bg: rgba(255, 255, 255, 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--background); color: var(--text-light); display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; text-align: center; overflow-x: hidden; overflow-y: auto; position: relative; }
main { max-width: 650px; width: 100%; padding: 20px; position: relative; z-index: 2; min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.screen { display: none; flex-direction: column; gap: 20px; width: 100%; opacity: 0; transition: opacity 0.7s ease-in-out; position: absolute; top: 0; left: 0; height: 100%; justify-content: center; align-items: center; padding: 20px 0; }
.screen.active { display: flex; opacity: 1; position: relative; }
.hidden { display: none !important; }
h1 { font-size: clamp(2.5rem, 10vw, 4rem); font-weight: 700; background: linear-gradient(135deg, var(--golden-light), var(--golden-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 30px rgba(212, 175, 55, 0.2); margin-bottom: 10px; line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 400; line-height: 1.5; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
p { font-weight: 300; font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); max-width: 550px; margin: 0 auto; }

#contact-form { width: 100%; max-width: 450px; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
#contact-form input { width: 100%; padding: 15px; border-radius: 50px; border: 1px solid var(--golden-dark); background-color: rgba(0,0,0,0.3); color: var(--text-light); font-size: 1rem; text-align: center; outline: none; transition: all 0.3s ease; }
#contact-form input:focus { box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }
#contact-form input.invalid { border-color: #c0392b; box-shadow: 0 0 15px rgba(192, 57, 43, 0.3); }
#contact-form button { margin-top: 5px; }

.btn-link { background: none; border: none; color: var(--text-muted); font-size: 0.9rem; text-decoration: underline; cursor: pointer; padding: 10px; margin-top: 10px; transition: color 0.3s ease; }
.btn-link:hover { color: var(--text-light); }

#diagnosis-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
#video-incentive, .recommendation-text { text-align: center; font-size: clamp(1rem, 3.5vw, 1.1rem); line-height: 1.6; max-width: 550px; color: var(--text-muted); margin-bottom: 20px; }
#result-screen .highlight-category { font-size: clamp(1.8rem, 9vw, 2.8rem); word-break: break-word; font-weight: 700; background: linear-gradient(135deg, var(--golden-light), var(--golden-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 40px rgba(240,219,79,0.5); line-height: 1.2; margin-top: 5px; margin-bottom: 20px; animation: pulseTextGlow 2s infinite alternate; }
.btn-container { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 10px; }
.quiz-navigation { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.btn { background: transparent; color: var(--text-light); border: 1px solid rgba(212, 175, 55, 0.5); padding: 12px 30px; border-radius: 50px; font-size: 1rem; font-weight: 400; cursor: pointer; transition: all 0.3s ease; min-width: 140px; }
.btn:hover { border-color: var(--golden-light); color: var(--golden-light); box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
.btn-secondary { background: transparent; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text-light); box-shadow: 0 0 15px rgba(255,255,255,0.1); }
#slider-value-display { font-size: 3rem; font-weight: 700; color: var(--golden-light); text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); margin: 10px 0; transition: color 0.3s ease; }
.slider-hint { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-top: 8px; animation: pulse-text 2.5s infinite ease-in-out; }
@keyframes pulse-text { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.03); } }
input[type=range] { -webkit-appearance: none; width: 80%; background: transparent; margin: 10px 0; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--golden-light), var(--golden-dark)); cursor: pointer; margin-top: -8px; box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 10px rgba(240, 219, 79, 0.5); transition: transform 0.15s ease-in-out; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05)); border-radius: 5px; transition: background 0.3s ease; }
.cta-button { background: linear-gradient(135deg, #F0DB4F, #A8852A); color: var(--text-dark); border: none; padding: 18px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; box-shadow: 0 5px 25px rgba(212, 175, 55, 0.3); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); letter-spacing: 1.5px; margin-top: 15px; }
.cta-button:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 10px 35px rgba(240, 219, 79, 0.4); }
.background-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; }
.background-particles li { position: absolute; display: block; list-style: none; width: 20px; height: 20px; background: rgba(212,175,55,0.15); animation: animate-particles 25s linear infinite; bottom: -150px; }
.background-particles li:nth-child(1) { left: 5%; width: 80px; height: 80px; animation-delay: 0s; }
.background-particles li:nth-child(2) { left: 15%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.background-particles li:nth-child(3) { left: 25%; width: 10px; height: 10px; animation-delay: 4s; }
.background-particles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.background-particles li:nth-child(5) { left: 50%; width: 20px; height: 20px; animation-delay: 1s; }
.background-particles li:nth-child(6) { left: 65%; width: 110px; height: 110px; animation-delay: 3s; }
.background-particles li:nth-child(7) { left: 75%; width: 150px; height: 150px; animation-delay: 7s; }
.background-particles li:nth-child(8) { left: 85%; width: 30px; height: 30px; animation-delay: 5s; animation-duration: 20s; }
.background-particles li:nth-child(9) { left: 95%; width: 15px; height: 15px; animation-delay: 8s; }
.background-particles li:nth-child(10) { left: 55%; width: 40px; height: 40px; animation-delay: 10s; }
@keyframes animate-particles { 0%{transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0;} 100%{transform: translateY(-120vh) rotate(720deg); opacity: 0; border-radius: 50%;} }
@keyframes pulseTextGlow { 0%{text-shadow: 0 0 30px rgba(240,219,79,0.3); transform: scale(1);} 50%{text-shadow: 0 0 50px rgba(240,219,79,0.7); transform: scale(1.02);} 100%{text-shadow: 0 0 30px rgba(240,219,79,0.3); transform: scale(1);} }
.start-testimonial-wrapper { border: 2px solid var(--golden-dark); border-radius: 12px; padding: 20px; margin-top: 30px; max-width: 500px; width: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.start-testimonial-wrapper.wrapper-visible { opacity: 1; }
.testimonial-container-start { opacity: 0; transition: opacity 0.5s ease-in-out; min-height: 100px; text-align: left; }
.testimonial-container-start.visible { opacity: 1; }
.testimonial-container-start .testimonial-text { font-size: 1rem; font-style: italic; color: var(--text-muted); line-height: 1.6; }
.testimonial-container-start .testimonial-author { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-top: 8px; text-align: left;}
#quiz-social-proof-container { margin-top: 25px; display: none; background-color: rgba(255,255,255,0.05); border-left: 3px solid var(--golden-dark); padding: 15px; border-radius: 5px; text-align: left; }
#quiz-social-proof-container.active { display: block; }
#quiz-social-proof-container p { font-size: 1rem; color: var(--text-light); font-style: italic; margin: 0; }
#quiz-social-proof-container span { display: block; text-align: right; font-weight: 600; font-size: 0.9rem; color: var(--golden-light); margin-top: 10px; }
#results-testimonials-section { width: 100%; max-width: 550px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
#results-testimonials-section h3 { font-weight: 600; font-size: 1.2rem; color: var(--text-light); margin-bottom: 20px; text-align: center;}
#results-testimonials-section .testimonial-box { background-color: rgba(255,255,255,0.05); border-left: 3px solid var(--golden-dark); padding: 15px; border-radius: 5px; text-align: left; min-height: 100px; opacity: 0; transition: opacity 0.5s ease-in-out; }
#results-testimonials-section .testimonial-box.visible { opacity: 1; }
#results-testimonials-section .testimonial-box p { font-size: 1rem; color: var(--text-light); font-style: italic; margin: 0; }
#results-testimonials-section .testimonial-box span { display: block; text-align: right; font-weight: 600; font-size: 0.9rem; color: var(--golden-light); margin-top: 10px; }
.ebook-carousel-container { position: relative; width: 100%; height: 350px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.carousel-viewport { width: 100%; height: 100%; overflow: hidden; }
.carousel-track { display: flex; height: 100%; align-items: center; position: relative; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.carousel-item { flex: 0 0 200px; margin: 0 15px; height: 300px; opacity: 0.4; transform: scale(0.75); transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; }
.carousel-item.active { opacity: 1; transform: scale(1); }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 35px rgba(0,0,0,0.5); border: 2px solid transparent; transition: border-color 0.4s ease; }
.carousel-item.active img { border-color: var(--golden-light); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 2rem; cursor: pointer; z-index: 10; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; }
.carousel-arrow:hover { background-color: rgba(0,0,0,0.7); border-color: var(--golden-light); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
#ebook-details-container { text-align: center; max-width: 500px; margin: 0 auto; min-height: 120px; }
#ebook-details-container h3 { color: var(--text-light); font-size: 1.5rem; margin-bottom: 10px; transition: opacity 0.4s ease; }
#ebook-details-container p { color: var(--text-muted); font-size: 1.1rem; transition: opacity 0.4s ease; }
#loading-overlay, #progress-update-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.92); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity .4s ease-out, visibility .4s ease-out; gap: 25px; }
#loading-overlay.active, #progress-update-overlay.active { opacity: 1; visibility: visible; }
.loading-spinner { border: 8px solid rgba(255,255,255,0.2); border-top: 8px solid var(--golden-light); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.loading-spinner.move-up { transform: translateY(-50px); }
@keyframes spin { 0%{transform: rotate(0deg);} 100%{transform: rotate(360deg);} }
#loading-message { color: var(--text-light); font-size: 1.4rem; font-weight: 400; text-align: center; max-width: 80%; opacity: 0; transition: opacity .5s ease-in-out; }
#loading-message.active { opacity: 1; }
#progress-update-motivation { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1.5rem; color: #CCCCCC; text-shadow: 0 1px 3px rgba(0,0,0,0.3); max-width: 85%; }
#progress-update-container { width: 60%; max-width: 400px; height: 10px; background-color: var(--progress-bg); border-radius: 10px; overflow: hidden; }
#progress-update-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--golden-dark), var(--golden-light)); border-radius: 10px; transition: width 0.6s ease-out; }
.scroll-down-incentive { margin: 5px 0 10px 0; text-align: center; }
.scroll-down-incentive span { font-size: 3rem; color: var(--golden-dark); animation: bounce-scroll 2s infinite cubic-bezier(0.5, 0.05, 0.55, 0.95); }
@keyframes bounce-scroll { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

#exit-form { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
#exit-form textarea { width: 100%; height: 100px; padding: 15px; border-radius: 12px; border: 1px solid var(--golden-dark); background-color: rgba(0,0,0,0.3); color: var(--text-light); font-size: 1rem; font-family: 'Poppins', sans-serif; outline: none; resize: none; transition: all 0.3s ease; }
#exit-form textarea:focus { box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }
.exit-btn-container { display: flex; flex-direction: column; gap: 5px; align-items: center; }

@media (max-width: 480px) {
    .btn {width: 100%;} 
    .btn-container, .quiz-navigation {flex-direction: column;} 
    #progress-update-motivation { font-size: 1.2rem; } 
    .ebook-carousel-container { height: 300px; }
    .carousel-item { flex: 0 0 160px; height: 240px; }
    .carousel-arrow { font-size: 1.5rem; width: 40px; height: 40px; }
    #ebook-details-container p { font-size: 1rem; }
    #contact-form { gap: 15px; }
}

.carousel-item { position: relative; overflow: hidden; border-radius: 10px; }
.price-tag { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0)); color: white; padding: 10px 5px 8px 5px; box-sizing: border-box; transition: opacity 0.3s ease; opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.carousel-item.active .price-tag { opacity: 1; }
.old-price { font-size: 0.8rem; color: #999; text-decoration: line-through; white-space: nowrap; line-height: 1; }
.new-price { font-size: 1.1rem; font-weight: 700; color: var(--golden-light); white-space: nowrap; line-height: 1.2; }

#social-proof-notification { position: fixed; bottom: 20px; left: 20px; background-color: #1a1a1d; color: var(--text-light); border-radius: 8px; padding: 15px 20px; display: flex; align-items: center; gap: 15px; z-index: 10000; box-shadow: 0 5px 25px rgba(0,0,0,0.5); border-left: 4px solid var(--golden-dark); opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); max-width: 320px; }
#social-proof-notification.visible { opacity: 1; transform: translateY(0); }
.proof-content p { font-size: 0.9rem; line-height: 1.4; font-weight: 300; color: var(--text-light); text-align: left; margin: 0; max-width: 100%; }
.proof-content p strong { font-weight: 600; color: var(--text-light); }
#proof-stars { font-size: 0.8rem; color: var(--golden-light); margin-top: 4px; text-align: left; }

#skip-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); z-index: 10001; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#skip-modal-overlay.visible { opacity: 1; visibility: visible; }
.skip-modal-content { background-color: #1a1a1d; padding: 30px; border-radius: 12px; max-width: 450px; width: 100%; text-align: center; border-top: 4px solid var(--golden-dark); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.skip-modal-content h3 { font-size: 1.5rem; color: var(--text-light); margin-bottom: 15px; }
.skip-modal-content p { font-size: 1rem; color: var(--text-muted); margin-bottom: 25px; }
.modal-btn-container { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 480px) {
    #social-proof-notification { left: 50%; transform: translateX(-50%) translateY(20px); width: calc(100% - 30px); }
    #social-proof-notification.visible { transform: translateX(-50%) translateY(0); }
    .modal-btn-container { flex-direction: column-reverse; }
}