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

:root {
    --primary-color: #ff0000;
    --secondary-color: #ff4444;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

.app-container {
    max-width: 414px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* Header Simplificado */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo i {
    font-size: 1.5rem;
}

.balance {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
}

.balance span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* Seção de Progresso */
.progress-section {
    padding: 1.5rem;
}

.progress-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.mission-header {
    margin-bottom: 1.5rem;
}

.mission-header h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.mission-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.mission-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

.mission-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 12px;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat .sublabel {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.progress-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.progress-percentage {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
}

.motivation-box {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 68, 68, 0.1));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.motivation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.motivation-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.motivation-content p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.progress-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Seção de Vídeo */
.video-section {
    margin: 0 1.5rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-container {
    aspect-ratio: 16/9;
    background: var(--dark-color);
    position: relative;
    width: 100%;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.video-info p {
    color: var(--gray-600);
}

/* Avaliação Simples */
.evaluation-section {
    margin: 0 1.5rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.evaluation-section h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.evaluation-section p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.rating-simple {
    text-align: center;
    margin-bottom: 2rem;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars i {
    font-size: 2.5rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stars i:hover,
.stars i.active {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-text {
    color: var(--gray-600);
    font-weight: 500;
}

.quick-feedback {
    margin-bottom: 2rem;
}

.quick-feedback h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feedback-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feedback-btn {
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feedback-btn.active {
    border-color: var(--primary-color);
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
}

.feedback-btn:hover {
    border-color: var(--primary-color);
}

.action-buttons {
    display: grid;
    gap: 1rem;
}

.btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-600);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

/* Seção de Sucesso */
.success-section {
    margin: 0 1.5rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
}

.success-card i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.success-card p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.success-card strong {
    color: var(--success-color);
    font-size: 1.2rem;
}

.earnings-summary {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.earnings-summary p {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.earnings-summary span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Seção de Conclusão */
.complete-section {
    margin: 0 1.5rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    text-align: center;
}

.complete-card i {
    font-size: 5rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.complete-card h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.complete-card p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.final-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.conversion-info {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Popup de Boas-vindas */
.welcome-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    text-align: center;
    max-width: 320px;
    width: 85%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0;
    max-height: 85vh;
    overflow: hidden;
}

.welcome-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 0.6s ease-in-out;
}

.welcome-popup h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.welcome-popup p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.welcome-popup strong {
    color: var(--success-color);
    font-weight: 700;
}

.video-intro-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem;
    text-align: center;
}

.welcome-video {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-video iframe {
    border: none !important;
}

.welcome-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: 8px;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.welcome-popup .btn {
    width: 100%;
    justify-content: center;
}

/* Popup de Avaliação */
.evaluation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
    max-width: 300px;
    width: 90%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.evaluation-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.evaluation-popup .popup-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-in-out;
}

.evaluation-popup h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.evaluation-popup p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.evaluation-popup .earning-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Popup de Saque PIX */
.withdraw-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    max-width: 350px;
    width: 90%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.withdraw-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.withdraw-header {
    text-align: center;
    margin-bottom: 2rem;
}

.withdraw-header i {
    font-size: 3rem;
    color: #32BCAD;
    margin-bottom: 1rem;
}

.withdraw-header h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.withdraw-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.withdraw-header strong {
    color: var(--success-color);
    font-size: 1.2rem;
}

.pix-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.form-select {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input.valid {
    border-color: var(--success-color);
}

.form-input.invalid {
    border-color: var(--primary-color);
}

.input-helper {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Popup de Confirmação de Saque */
.confirm-withdraw-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1004;
    max-width: 320px;
    width: 90%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirm-withdraw-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.confirm-header {
    margin-bottom: 2rem;
}

.confirm-header i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-in-out;
}

.confirm-header h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.withdraw-details {
    margin-bottom: 2rem;
}

.amount-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.withdraw-details p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.pix-key-display {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--dark-color);
    word-break: break-all;
}

.confirm-withdraw-popup .btn-large {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .progress-section,
    .video-section,
    .evaluation-section,
    .success-section,
    .complete-section {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .mission-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat .number {
        font-size: 1.5rem;
    }

    .feedback-buttons {
        grid-template-columns: 1fr;
    }
}