:root {
    --primary-color: #FF7A45;  /* Laranja mais suave */
    --secondary-color: #FF5A1F; /* Tom complementar */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --success-color: #28a745;
    --border-color: #e1e5eb;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

header h1 {
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.payment-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.security-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qrcode-container {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    transition: all 0.3s ease;
}

#qrcode:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#qrcode-img {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
}

.copy-section {
    margin-top: 30px;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

#pix-code {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    background-color: var(--light-gray);
    transition: border-color 0.3s;
}

#pix-code:focus {
    outline: none;
    border-color: var(--primary-color);
}

.copy-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background-color: var(--success-color);
}

.payment-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.5s ease-out;
}

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

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

.info-label {
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    width: 100%;
    text-align: center;
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
    font-weight: 500;
}

.error-message {
    color: #d32f2f;
    text-align: center;
    padding: 20px;
    background-color: #ffebee;
    border-radius: 8px;
    margin-top: 20px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .payment-container {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #pix-code {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .copy-btn {
        border-radius: 8px;
        padding: 12px;
        justify-content: center;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
}