/* Reset e configurações básicas */
* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo i {
    font-size: 32px;
    color: #ffd700;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Progress Indicator */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 8px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.progress-step.completed {
    background: #10b981;
}

.progress-line {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.progress-line.active {
    background: #4f46e5;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 24px 24px 16px;
    text-align: center;
}

.card-header i {
    font-size: 24px;
    color: #4f46e5;
    margin-bottom: 12px;
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.card-header p {
    color: #6b7280;
    font-size: 16px;
}

.card-content {
    padding: 0 24px 24px;
}

/* Step Containers */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

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

/* Operators Grid */
.operators-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.operator-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 100px;
}

.operator-btn:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.operator-btn.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.operator-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.operator-name {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-group input:invalid {
    border-color: #ef4444;
}

/* Amount Options */
.amounts-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.amount-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: white;
}

.amount-option:hover {
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.amount-option.selected {
    border-color: #4f46e5;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.amount-option.popular {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.amount-option.popular.selected {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 16px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.amount-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.amount-bonus {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.amount-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.amount-option.selected .amount-radio {
    border-color: #4f46e5;
    background: #4f46e5;
}

.amount-option.selected .amount-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

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

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

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-copy {
    background: #6b7280;
    color: white;
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #4b5563;
}

/* QR Code */
.qr-container {
    text-align: center;
    margin: 24px 0;
}

.qr-code-wrapper {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    display: inline-block;
    margin-bottom: 20px;
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.pix-code-container {
    display: flex;
    gap: 8px;
}

.pix-code-container input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Payment Info */
.payment-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item.status {
    color: #0ea5e9;
    font-weight: 600;
    justify-content: center;
    gap: 8px;
}

/* Success/Error Content */
.success-content,
.error-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 64px;
    color: #ef4444;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #10b981;
    margin-bottom: 16px;
}

.error-content h2 {
    color: #ef4444;
    margin-bottom: 16px;
}

.success-content p,
.error-content p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Summary Card */
.summary-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.summary-item span:first-child {
    color: #6b7280;
}

.summary-item span:last-child {
    font-weight: 600;
    color: #1f2937;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 32px;
    color: #4f46e5;
    margin-bottom: 16px;
}

.loading-spinner p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Error Messages */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .operators-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .pix-code-container {
        flex-direction: column;
    }
    
    .qr-code-wrapper img {
        width: 150px;
        height: 150px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-container.active .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
