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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.earnings-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.earnings-display {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.earnings-display span {
    color: #15803d;
    font-weight: 600;
}

.withdraw-btn, .final-withdraw-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
}

.withdraw-btn:hover, .final-withdraw-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Main Content */
.main-content {
    max-width: 768px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.survey-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Progress Section */
.progress-section {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    border-radius: 0.25rem;
    transition: width 0.5s ease;
    width: 20%;
}

/* Question Section */
.question-section {
    text-align: center;
    margin-bottom: 2rem;
}

.question-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.question-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Options */
.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    position: relative;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    transform: scale(1);
}

.option-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.option-btn.selected {
    border-color: #ec4899;
    background: #fdf2f8;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.option-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.option-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.option-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #ec4899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

/* Continue Button */
.continue-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
}

.continue-btn:enabled {
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    color: white;
}

.continue-btn:enabled:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    transform: scale(1.02);
}

.continue-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Incentive Text */
.incentive-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

/* Survey Completed */
.completed-section {
    text-align: center;
    padding: 3rem 0;
}

.completed-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.completed-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.completed-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.final-earnings {
    font-size: 3rem;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 2rem;
}

.final-withdraw-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
}

.final-withdraw-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.completed-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.popup-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 28rem;
    width: 100%;
    padding: 2rem;
    text-align: center;
    animation: popup-enter 0.3s ease-out;
}

@keyframes popup-enter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.popup-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.popup-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.popup-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
}

.reward-amount, .fee-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.fee-amount {
    color: #ef4444;
}

.popup-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
    margin-bottom: 0.75rem;
}

.popup-btn:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    transform: scale(1.02);
}

.popup-btn.fee-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.popup-btn-secondary {
    width: 100%;
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-btn-secondary:hover {
    background: #d1d5db;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popup-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.warning-box p {
    font-size: 0.875rem;
    color: #92400e;
}

/* PIX Styles */
.pix-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pix-value-section {
    margin-bottom: 1rem;
}

.pix-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.pix-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10b981;
}

.pix-key-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.pix-key {
    font-family: 'Courier New', monospace;
    color: #1f2937;
    font-weight: 600;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #dbeafe;
    color: #1d4ed8;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #bfdbfe;
}

.copy-btn.copied {
    background: #dcfce7;
    color: #166534;
}

.pix-instructions {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pix-instructions p {
    font-size: 0.875rem;
    color: #1e40af;
    text-align: left;
}

/* PIX Input Styles */
.pix-input-section {
    margin-bottom: 1.5rem;
}

.pix-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #1f2937;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pix-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pix-input-warning {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pix-input-warning p {
    font-size: 0.875rem;
    color: #1e40af;
    text-align: left;
}

/* Confetti */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.9;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .survey-container {
        padding: 1.5rem;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .option-btn {
        padding: 1.25rem;
    }
    
    .final-earnings {
        font-size: 2.5rem;
    }
    
    .popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .reward-amount, .fee-amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .earnings-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .option-emoji {
        font-size: 2rem;
    }
    
    .final-earnings {
        font-size: 2rem;
    }
}