/* PIX Modal Styles */
#pix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(8px);
    font-family: 'Inter', sans-serif;
}

#pix-modal-content {
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 128, 0.2);
    border: 1px solid #333;
}

#pix-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

#pix-modal-content h2 {
    margin-top: 0;
    color: #00ff80;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

#pix-form .form-group {
    margin-bottom: 15px;
}

#pix-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

#pix-form input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    box-sizing: border-box;
    font-size: 16px;
}

#pix-form input:focus {
    outline: none;
    border-color: #00ff80;
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.3);
}

#pix-generate-btn {
    width: 100%;
    padding: 15px;
    background: #00ff80;
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, background 0.2s;
    text-transform: uppercase;
}

#pix-generate-btn:hover {
    background: #00e673;
    transform: scale(1.02);
}

#pix-generate-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* Result Section */
#pix-result {
    display: none;
    text-align: center;
}

#pix-qrcode {
    width: 250px;
    height: 250px;
    background: #fff;
    margin: 20px auto;
    padding: 10px;
    border-radius: 10px;
}

#pix-payload-container {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    border: 1px dashed #555;
    max-height: 80px;
    overflow-y: auto;
}

#pix-copy-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: bold;
    cursor: pointer;
}

.loader {
    border: 4px solid #333;
    border-top: 4px solid #00ff80;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 20px auto;
}

.pix-error-msg {
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

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