/* ===== CSS Variables & Tokens ===== */
:root {
    --primary: #00d26a;
    --primary-hover: #00b35a;
    --primary-glow: rgba(0, 210, 106, 0.4);
    
    --bg-color: #f7fcf9;
    --card-bg: rgba(255, 255, 255, 0.85);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-focus: #00d26a;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.1);
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Resets & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 210, 106, 0.15);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.1);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* ===== Layout Container ===== */
.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 550px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Step Container */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.step.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    animation: stepEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes stepEnter {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Typography & Elements ===== */
.badge {
    background: rgba(0, 210, 106, 0.1);
    color: #047857;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(0, 210, 106, 0.2);
}

.main-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.main-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.main-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background: rgba(0, 210, 106, 0.2);
    bottom: 4px;
    left: 0;
    z-index: -1;
    border-radius: 4px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.micro-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-weight: 600;
}

/* ===== Primary Button ===== */
.btn {
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 210, 106, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 210, 106, 0.4);
}

.primary-btn:active {
    transform: translateY(1px) scale(0.98);
}

.pulse-glow {
    animation: pulseglow 2s infinite;
}

@keyframes pulseglow {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); }
}

/* Button Ripple effect */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}

/* ===== Progress Bar ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-pill);
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-pill);
    transition: width 0.8s ease-in-out;
}

/* ===== Quiz Options ===== */
.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.options-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.option-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
}

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

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

.option-btn.selected {
    border-color: var(--primary);
    background: rgba(0, 210, 106, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.1);
}

.final-btn {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    justify-content: center;
    text-align: center;
    font-size: 1.15rem;
}
.final-btn .option-icon { display: none; }
.final-btn:hover {
    background: var(--primary);
    color: white;
}

/* ===== Result Screen ====== */
.result-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    text-align: left;
}

.result-intro {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.alert-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 4px 8px 8px 4px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pulse-warning {
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.alert-icon { font-size: 1.5rem; }

.alert-box p {
    color: #b45309;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.result-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.result-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.check-icon { margin-right: 0.75rem; color: var(--primary); }

.solution-box {
    background: rgba(0, 210, 106, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px dashed var(--primary);
}

.highlight-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.action-call {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ===== Loading Screen ===== */
.loading-step {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner-container {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 2rem;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 5px solid rgba(0, 210, 106, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loading-text {
    color: var(--text-muted);
    font-weight: 500;
    animation: breath 1.5s infinite alternate;
}

@keyframes breath {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ===== Utilities & Animations ===== */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.slide-in {
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.stagger-1 { animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards; opacity: 0; }
.stagger-2 { animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards; opacity: 0; }
.stagger-3 { animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards; opacity: 0; }
.stagger-4 { animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards; opacity: 0; }

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Response for very small screens */
@media (max-width: 480px) {
    .app-container { padding: 1.5rem; }
    .main-title { font-size: 1.7rem; }
    .option-btn { font-size: 0.95rem; padding: 1rem; }
}

/* ===== Sales Page Styles ===== */
.sales-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sales-container.hidden {
    display: none !important;
}

.sales-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    width: 100%;
}

.dark-card {
    background: #1e293b;
    color: white;
}

.danger-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.green-alert {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    margin-bottom: 0;
    padding: 1.5rem;
}
.green-alert p { color: #047857; margin: 0; font-weight: 800; font-size: 1.2rem; }

.info-alert {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}
.info-alert p { color: #1e3a8a; }

.sales-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.text-muted { color: var(--text-muted); font-style: italic; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

.sales-highlight {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.sales-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.sales-title span { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(0, 210, 106, 0.4); text-decoration-thickness: 4px;}
.sales-title-sm {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.clean-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.clean-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.clean-list .check-icon { font-weight: 800; margin-right: 0.5rem; }

.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tag {
    background: rgba(0, 210, 106, 0.15);
    color: #047857;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
}
.tag.outline {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}
.feature-list li {
    background: rgba(255,255,255,0.7);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.feature-list.light-text li { background: rgba(255,255,255,0.1); color: white;}
.emoji-icon { font-size: 1.4rem; margin-right: 1rem; }

/* Pricing Section */
.price-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 210, 106, 0.15);
    border: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}
.pulse-glow-box { animation: pulseglow 3s infinite; }
.price-strikethrough { text-decoration: line-through; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0.5rem; }
.price-strikethrough-value { font-size: 1.3rem; font-weight: 800; color: #ef4444; margin-bottom: 0.5rem; text-transform: uppercase; }
.price-main { font-size: 1.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem;}
.price-main span { font-size: 4rem; color: var(--primary); display: block; margin-top: 0.5rem; }
.price-spot { font-size: 1.3rem; font-weight: 700; color: var(--text-muted); }

/* Guarantee */
.guarantee-section {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
}
.guarantee-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.guarantee-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }

/* Carousels */
.carousel-section { width: 100%; margin: 1rem 0; }
.carousel-title { font-size: 1.3rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; }
.carousel-container { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.carousel-track { display: flex; transition: var(--transition); width: 100%; }
.carousel-slide { min-width: 100%; padding: 0.5rem; display: flex; justify-content: center; }
.fake-img-placeholder {
    width: 100%; max-width: 350px; height: 400px; background: #e2e8f0; border-radius: var(--radius-md);
    background-size: cover; background-position: center; border: 4px solid white; box-shadow: var(--shadow-sm);
}
.carousel-nav { display: flex; justify-content: space-between; margin-top: 1rem; padding: 0 1rem; }
.nav-btn { background: white; border: 2px solid var(--border-color); padding: 0.75rem 1.25rem; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; box-shadow: var(--shadow-sm); transition: var(--transition); color: var(--text-main); }
.nav-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

@media (min-width: 768px) {
    .sales-container { padding: 3rem 1.5rem; }
}

/* ===== Privacy Modal ===== */
.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none; border: none; font-size: 2.2rem;
    line-height: 1;
    cursor: pointer; color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: #ef4444;
}

.modal-scroll-area {
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.modal-scroll-area p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.modal-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.modal-scroll-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
