* {
    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, #0f172a 0%, #1e3a8a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.6s ease-out;
}

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

/* Header */
.header {
    background: white;
    padding: 30px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    border-bottom: 4px solid #14b8a6;
}

.header h1 {
    color: #0f172a;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Payment Card */
.payment-card {
    background: white;
    padding: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Client Info */
.client-info {
    padding: 24px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

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

.info-row.highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border: none;
}

.info-row .label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-row.highlight .label {
    color: #e0f2fe;
}

.info-row .value {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

.info-row.highlight .value {
    color: white;
    font-size: 1.8rem;
}

/* PIX Section */
.pix-section {
    padding: 30px;
}

.pix-section h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.pix-code-container {
    margin-bottom: 16px;
}

#pixCode {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #334155;
    background: #f8fafc;
    text-align: center;
    transition: all 0.3s ease;
}

#pixCode:focus {
    outline: none;
    border-color: #14b8a6;
    background: white;
}

.copy-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

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

.copy-button.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 20px;
    background: #dcfce7;
    color: #166534;
    border-radius: 8px;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

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

.success-message.show {
    display: flex;
}

/* Instructions */
.instructions {
    padding: 24px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.instructions h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.instructions ol {
    margin-left: 20px;
    color: #475569;
}

.instructions li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-note {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .header h1 {
        font-size: 2rem;
    }

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

    .card-header h2 {
        font-size: 1.3rem;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .info-row.highlight .value {
        font-size: 1.5rem;
    }

    .pix-section,
    .instructions,
    .client-info {
        padding: 20px;
    }

    .copy-button {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}
