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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.checkout-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.checkout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.header h1 i {
    margin-right: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
}

.form-section {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group label i {
    margin-right: 8px;
    color: #4facfe;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #4facfe;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.order-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.order-summary h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.order-summary h3 i {
    margin-right: 8px;
    color: #4facfe;
}

.item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.pay-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.pay-button:active {
    transform: translateY(0);
}

.pay-button i {
    margin-right: 10px;
}

.pix-section {
    padding: 30px;
    text-align: center;
}

.pix-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.pix-header h2 i {
    margin-right: 10px;
    color: #32bcad;
}

.pix-header p {
    color: #666;
    margin-bottom: 25px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.qr-code {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.pix-code-container {
    margin: 25px 0;
}

.pix-code-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    font-family: monospace;
}

.copy-button {
    background: #32bcad;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: #2aa396;
    transform: translateY(-1px);
}

.copy-button i {
    margin-right: 5px;
}

.payment-status {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #856404;
}

.status-indicator i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.payment-status p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

.back-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.back-button i {
    margin-right: 8px;
}

.loading {
    padding: 50px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

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

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .checkout-card {
        border-radius: 15px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .form-section,
    .pix-section {
        padding: 25px 20px;
    }
    
    .code-input-group {
        flex-direction: column;
    }
    
    .copy-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .pay-button {
        font-size: 16px;
        padding: 16px;
    }
    
    .form-section,
    .pix-section {
        padding: 20px 15px;
    }
}

