/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #202124;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cores do Google */
:root {
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC04;
    --google-green: #34A853;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-lg: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Controle de Telas */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Google */
.logo-google {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 30px;
    gap: 8px;
}

.logo-google svg {
    height: 32px;
    width: auto;
    max-width: 150px;
}

.logo-google.centered {
    justify-content: center;
}

.maps-text {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Títulos */
.main-title {
    font-size: 34px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin: 20px 0 12px;
    line-height: 1.3;
}

.subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 35px;
    font-weight: 300;
}

/* Benefícios Compactos */
.benefits-compact {
    display: flex;
    gap: 24px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.benefit-row:hover {
    transform: translateY(-2px);
}

.benefit-icon-compact {
    font-size: 28px;
}

.benefit-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.benefit-content strong {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.benefit-content span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Preview de Ganhos */
.earnings-preview {
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    padding: 16px 24px;
    border-radius: 10px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.earnings-text {
    font-size: 15px;
    color: white;
    font-weight: 400;
}

.highlight {
    font-weight: 700;
    font-size: 28px;
    display: inline-block;
    margin: 0 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Botão Primary */
.btn-primary {
    background: var(--google-blue);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
    font-family: 'Roboto', sans-serif;
}

.btn-primary:hover {
    background: #1a73e8;
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #dadce0;
    color: #80868b;
    cursor: not-allowed;
}

/* Indicadores de Confiança */
.trust-indicators {
    margin-top: 30px;
    text-align: center;
}

.trust-indicators p {
    color: var(--google-green);
    font-size: 14px;
    margin: 8px 0;
    font-weight: 500;
}

/* Header Bar (Tela de Avaliação) */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
}

.logo-small svg {
    height: 24px;
    width: auto;
}

.earnings-counter {
    background: linear-gradient(135deg, #e6f4ea, #d4edda);
    padding: 10px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 2px solid var(--google-green);
}

.earnings-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 8px;
    font-weight: 500;
}

.earnings-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--google-green);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: countUp 0.5s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(1.3);
        color: var(--google-yellow);
    }
    to {
        transform: scale(1);
        color: var(--google-green);
    }
}

/* Barra de Progresso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--google-blue), var(--google-green));
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Card da Loja */
.store-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.store-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.store-info {
    padding: 16px;
}

.store-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.store-category {
    display: inline-block;
    background: #e8f0fe;
    color: var(--google-blue);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.store-address {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Seção de Avaliação */
.rating-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    text-align: center;
}

.rating-section h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.star {
    font-size: 42px;
    color: #dadce0;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star:hover,
.star.active {
    color: var(--google-yellow);
    transform: scale(1.1);
}

.rating-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Textarea de Review */
.review-textarea {
    width: 100%;
    min-height: 60px;
    max-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    resize: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--google-blue);
}

/* Tela de Saldo */
.success-animation {
    text-align: center;
    margin: 30px 0;
}

.checkmark {
    width: 100px;
    height: 100px;
    background: var(--google-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 60px;
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.congrats-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin: 20px 0 10px;
}

.congrats-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.balance-card {
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
    box-shadow: var(--shadow-lg);
}

.balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.balance-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 12px;
}

.testimonial-trigger {
    text-align: center;
    margin: 30px 0;
    font-size: 16px;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* VSL / Depoimentos */
.vsl-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin: 30px 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 2;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-content {
    margin: 40px 0;
}

.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-header h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stars-rating {
    color: var(--google-yellow);
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.testimonial-earnings {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.earnings-badge,
.time-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.earnings-badge {
    background: #e6f4ea;
    color: var(--google-green);
}

.time-badge {
    background: #e8f0fe;
    color: var(--google-blue);
}

.cta-final {
    text-align: center;
    margin: 40px 0 30px;
}

.cta-final h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cta-final p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Formulário PIX */
.withdraw-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin: 30px 0 20px;
}

.balance-summary {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 30px;
}

.balance-summary p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.withdraw-amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--google-green);
    margin: 0;
}

.pix-form {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--google-blue);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #e6f4ea;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--google-green);
}

.pix-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

/* Tela de Processamento */
.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.loading-animation {
    margin-bottom: 30px;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #e8eaed;
    border-top-color: var(--google-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.processing-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.processing-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

.processing-steps {
    width: 100%;
    max-width: 400px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    color: var(--text-secondary);
}

.step.active {
    color: var(--google-blue);
    border-left: 4px solid var(--google-blue);
}

.step.completed {
    color: var(--google-green);
    border-left: 4px solid var(--google-green);
}

.step-icon {
    font-size: 24px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .main-title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 16px;
    }

    .benefits-compact {
        flex-direction: column;
        gap: 12px;
    }

    .benefit-row {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }
    
    .earnings-badge {
        padding: 6px 14px;
        margin: 15px auto 8px;
    }
    
    .badge-text {
        font-size: 12px;
    }
    
    .badge-value {
        font-size: 18px;
    }
    
    .testimonial-image {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .earnings-preview {
        padding: 14px 18px;
    }
    
    .earnings-text {
        font-size: 14px;
    }
    
    .highlight {
        font-size: 24px;
    }

    .balance-amount {
        font-size: 42px;
    }

    .congrats-title {
        font-size: 28px;
    }

    .vsl-title {
        font-size: 22px;
    }
}

/* Animações de sucesso */
.success-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animação Gamificada de Ganho */
.earning-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.earning-popup {
    background: linear-gradient(135deg, var(--google-blue), var(--google-green));
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.earning-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bounce 0.6s ease-in-out;
}

.earning-amount {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.earning-message {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Confetes */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 50%;
    animation: confettiFall 2s ease-out forwards;
    opacity: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes confettiFall {
    0% {
        top: -10px;
        opacity: 1;
        transform: rotateZ(0deg) translateX(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotateZ(720deg) translateX(calc(-50px + (var(--random) * 100px)));
    }
}

/* Breakdown de valores */
.balance-breakdown {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-row:last-child {
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
}

.breakdown-label {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

.breakdown-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.breakdown-row.total .breakdown-label {
    font-weight: 700;
    font-size: 16px;
}

.breakdown-row.total .breakdown-value {
    font-weight: 700;
    font-size: 22px;
    color: var(--google-green);
}

.breakdown-row.fee .breakdown-value {
    color: var(--google-red);
}

.fee-info {
    background: #fef7e0;
    border-left: 4px solid var(--google-yellow);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.fee-info strong {
    color: var(--text-primary);
    font-weight: 500;
}

.fee-benefits {
    margin-top: 12px;
}

.fee-benefits li {
    margin: 6px 0;
    color: var(--text-secondary);
    list-style-position: inside;
}

.urgency-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
    font-size: 15px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(238, 90, 111, 0.6);
    }
}

.scarcity-text {
    text-align: center;
    color: var(--google-red);
    font-size: 13px;
    font-weight: 500;
    margin: 16px 0;
}

/* Loading de Localização */
.location-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s;
}

.loader-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.loader-content .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--google-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-content p {
    font-size: 18px;
    margin: 10px 0;
}

.loader-subtitle {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Earnings Badge */
.earnings-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--google-green);
    border-radius: 8px;
    margin: 20px auto 10px;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.2);
}

.badge-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.badge-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--google-green);
}

/* Depoimento Preview */
.testimonial-preview {
    margin: 10px 0 25px;
    text-align: center;
}

.testimonial-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: inline-block;
}
