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

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

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    border-radius: 15px 15px 0 0;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo i {
    font-size: 2em;
    color: #2563eb;
}

.logo h1 {
    font-size: 1.5em;
    color: #1e40af;
    font-weight: 700;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    padding: 8px 16px;
    border-radius: 20px;
}

.security-badge i {
    color: #16a34a;
}

.security-badge span {
    color: #15803d;
    font-weight: 600;
    font-size: 0.9em;
}

/* Main Content */
.main-content {
    background: white;
    padding: 40px 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.payment-card {
    max-width: 100%;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h2 {
    color: #1e40af;
    font-size: 2em;
    margin-bottom: 10px;
}

.payment-header .subtitle {
    color: #64748b;
    font-size: 1.1em;
}

/* Loan Info */
.loan-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.info-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-box.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-color: #3b82f6;
}

.info-box i {
    font-size: 2.5em;
    color: #2563eb;
}

.info-box > div {
    display: flex;
    flex-direction: column;
}

.info-box .label {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 5px;
}

.info-box .value {
    font-size: 1.8em;
    font-weight: 700;
    color: #1e40af;
}

.info-box .value.success {
    color: #16a34a;
}

/* QR Code Section */
.qr-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #bae6fd;
}

.qr-section h3 {
    color: #0369a1;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-section h3 i {
    font-size: 1.2em;
    color: #00bfa5;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode img {
    border-radius: 8px;
}

.qr-instruction {
    color: #0369a1;
    font-weight: 500;
    font-size: 1em;
}

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

.pix-code-section h3 {
    color: #1e40af;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.code-container {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
}

#pixCode {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: none;
    background: white;
    color: #334155;
    margin-bottom: 15px;
}

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

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

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

.copy-message {
    display: none;
    background: #dcfce7;
    color: #15803d;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.copy-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* Instructions */
.instructions {
    background: #fefce8;
    border: 2px solid #fde047;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.instructions h3 {
    color: #854d0e;
    font-size: 1.4em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content i {
    font-size: 1.5em;
    color: #2563eb;
    margin-bottom: 10px;
}

.step-content h4 {
    color: #1e40af;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.step-content p {
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Important Info */
.important-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #2563eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.important-info i {
    font-size: 1.8em;
    color: #1e40af;
    flex-shrink: 0;
}

.important-info h4 {
    color: #1e40af;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.important-info p {
    color: #1e3a8a;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #60a5fa;
}

.footer-section p {
    color: #cbd5e1;
    font-size: 0.9em;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #475569;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9em;
}

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

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.3em;
    }

    .main-content {
        padding: 25px 20px;
    }

    .payment-header h2 {
        font-size: 1.5em;
    }

    .loan-info {
        grid-template-columns: 1fr;
    }

    .info-box .value {
        font-size: 1.5em;
    }

    .qr-section {
        padding: 20px;
    }

    #pixCode {
        font-size: 0.75em;
        min-height: 120px;
    }

    .steps {
        gap: 25px;
    }

    .step {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-section h4 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.1em;
    }

    .payment-header h2 {
        font-size: 1.3em;
    }

    .payment-header .subtitle {
        font-size: 1em;
    }

    .info-box .value {
        font-size: 1.3em;
    }

    .copy-btn {
        font-size: 1em;
        padding: 12px;
    }
}
