/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -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: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.logo i {
    font-size: 36px;
    color: #667eea;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

/* Main Content */
.main-content {
    margin-bottom: 30px;
}

/* Payment Card */
.payment-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

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

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.card-header h2 {
    font-size: 28px;
    font-weight: 600;
}

.card-body {
    padding: 40px;
}

/* Amount Section */
.amount-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #667eea;
}

.amount-label {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.amount-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

/* QR Code Section */
.qrcode-section {
    margin-bottom: 40px;
}

.qrcode-section h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qrcode-section h3 i {
    color: #667eea;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 15px;
}

#qrcode {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qrcode-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Pix Code Section */
.pix-code-section {
    margin-bottom: 40px;
}

.pix-code-section h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pix-code-section h3 i {
    color: #667eea;
}

.pix-code-container {
    position: relative;
}

#pixCode {
    width: 100%;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f9fa;
    color: #2d3748;
    resize: none;
    height: 120px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#pixCode:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.copy-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-message {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.copy-message.show {
    display: block;
}

.copy-message i {
    margin-right: 8px;
}

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

/* Instructions */
.instructions {
    margin-bottom: 40px;
}

.instructions h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions h3 i {
    color: #667eea;
}

.steps {
    display: grid;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-content h4 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 5px;
    font-weight: 600;
}

.step-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Security Info */
.security-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.security-info i {
    font-size: 24px;
    color: #059669;
}

.security-info p {
    font-size: 16px;
    font-weight: 600;
    color: #065f46;
    margin: 0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #764ba2;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo i {
        font-size: 28px;
    }

    .card-header h2 {
        font-size: 22px;
    }

    .card-body {
        padding: 25px;
    }

    .amount-value {
        font-size: 36px;
    }

    .qrcode-section h3,
    .pix-code-section h3,
    .instructions h3 {
        font-size: 18px;
    }

    #pixCode {
        font-size: 10px;
        padding: 15px;
    }

    .copy-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .step {
        flex-direction: row;
        padding: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-content h4 {
        font-size: 15px;
    }

    .step-content p {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .amount-value {
        font-size: 32px;
    }

    .qrcode-container {
        padding: 20px;
    }

    #qrcode canvas {
        max-width: 100%;
        height: auto;
    }
}
